/* ============ Llapi Design · web pública ============ */
:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .065);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f2f2f7;
  --text-2: #b9b9cc;
  --muted: #8b8ba3;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --accent-grad: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 35%, #6366f1 65%, #22d3ee 100%);
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.site-header { view-transition-name: header; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: clip;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.028em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; }
::selection { background: rgba(139, 92, 246, .45); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow-container { max-width: 860px; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.hidden, .js-hidden.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.mt { margin-top: 14px; }
.pt-0 { padding-top: 0 !important; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .3); }
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, #8b5cf6, #6366f1); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .7); }
.btn-primary:hover { background: linear-gradient(135deg, #9d73ff, #7779ff); border-color: transparent; box-shadow: 0 14px 40px -10px rgba(139, 92, 246, .9); }
.btn-ghost { background: transparent; }
.btn-wa { background: #25d366; border-color: transparent; color: #04250f; }
.btn-wa:hover { background: #3ee07a; border-color: transparent; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--violet-2); font-weight: 600; text-decoration: none; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(4px); }

/* ---------- Cursor y barra de progreso ---------- */
.cursor {
  position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; z-index: 90;
  border: 1.5px solid rgba(167, 139, 250, .7); pointer-events: none; opacity: 0; mix-blend-mode: screen;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s ease, opacity .3s ease;
}
.cursor.on { opacity: 1; }
.cursor.hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(139, 92, 246, .14); border-color: transparent; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--accent-grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 7, 13, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px -6px rgba(139, 92, 246, .8); transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; padding: 8px 14px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 999px; transition: color .2s ease, background .2s ease; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent-grad); }
.nav-actions { display: flex; gap: 8px; margin-left: 12px; }
.nav-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 110px; margin-top: -74px; padding-top: 154px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.orb-1 { width: 560px; height: 560px; left: -140px; top: -120px; background: radial-gradient(circle, #7c3aed, transparent 65%); }
.orb-2 { width: 480px; height: 480px; right: -120px; top: 120px; background: radial-gradient(circle, #0891b2, transparent 65%); opacity: .35; }
.grid-bg {
  position: absolute; inset: 0; opacity: .32;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #ddd3ff; background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .35); margin-bottom: 24px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-title { font-size: clamp(42px, 6.6vw, 78px); font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--text-2); margin: 24px 0 34px; max-width: 580px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 32px; color: var(--text-2); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--cyan); margin-right: 7px; font-weight: 700; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--violet-2); animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Maqueta que se construye sola */
.builder {
  position: relative; border-radius: 20px; background: linear-gradient(180deg, #151526, #0d0d19); border: 1px solid var(--border-strong);
  box-shadow: 0 50px 120px -40px rgba(99, 102, 241, .65), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.builder-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.builder-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b3b52; }
.builder-bar i:first-child { background: #f87171; } .builder-bar i:nth-child(2) { background: #fbbf24; } .builder-bar i:nth-child(3) { background: #34d399; }
.builder-url { margin-left: 12px; flex: 1; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; padding: 0 12px; font-family: ui-monospace, Consolas, monospace; }
.builder-url span::after { content: "|"; margin-left: 1px; animation: blink 1s steps(1) infinite; color: var(--violet-2); }
@keyframes blink { 50% { opacity: 0; } }
.builder-body { padding: 22px; display: grid; gap: 16px; min-height: 340px; }
.b-step { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.b-step.on { opacity: 1; transform: none; }
.b-nav { display: flex; gap: 10px; align-items: center; }
.b-nav span { height: 8px; width: 44px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.b-nav .b-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-grad); margin-right: auto; }
.b-hero { position: relative; height: 140px; border-radius: 14px; background: linear-gradient(135deg, rgba(139, 92, 246, .6), rgba(34, 211, 238, .35)); padding: 22px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; overflow: hidden; }
.b-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-100%); }
.b-hero.on::before { animation: shine 2.4s .4s ease; }
@keyframes shine { to { transform: translateX(100%); } }
.b-h1 { width: 62%; height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .95); }
.b-h2 { width: 44%; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .6); }
.b-btn { width: 90px; height: 24px; border-radius: 999px; background: #fff; margin-top: 6px; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.b-cards span { height: 78px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }
.b-score { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 12px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .28); font-size: 13.5px; color: #a5f3fc; }
.b-score b { font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.builder-chip { position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(20, 20, 34, .92); border: 1px solid var(--border-strong); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); white-space: nowrap; }
.chip-1 { left: -26px; top: 92px; } .chip-2 { right: -22px; top: 210px; } .chip-3 { left: 30px; bottom: -18px; }
.builder-cursor { position: absolute; width: 18px; height: 18px; left: 60%; top: 60%; border-radius: 50% 50% 50% 0; background: #fff; transform: rotate(-45deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); transition: left 1s var(--ease), top 1s var(--ease); opacity: .9; }

/* ---------- Secciones genéricas ---------- */
section.block { padding: 110px 0; position: relative; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.split > div { max-width: 720px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.section-head p { color: var(--text-2); margin-top: 14px; font-size: 17px; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--violet-2); margin-bottom: 14px; display: block; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .3s ease, background .3s ease, box-shadow .3s ease; }
a.card { text-decoration: none; display: block; }
.card:hover { border-color: rgba(139, 92, 246, .45); }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .45s var(--ease), border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.tilt.tilting { transition: transform .08s linear, border-color .3s ease, box-shadow .3s ease; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .16), transparent 45%); }
.tilt:hover::after { opacity: 1; }
.svc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .35); margin-bottom: 20px; color: #cbbcff; }

/* Cifras */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(139, 92, 246, .07), rgba(34, 211, 238, .05)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding: 40px 24px; }
.stat strong { display: block; font-size: clamp(34px, 4.5vw, 48px); font-weight: 800; letter-spacing: -.03em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--text-2); font-size: 15px; }

/* Categorías (portada) */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-featured { grid-row: span 2; background: linear-gradient(160deg, rgba(139, 92, 246, .16), rgba(99, 102, 241, .04) 60%); }
.cat-grid.even { grid-template-columns: repeat(2, 1fr); }
.cat-grid.even .cat-featured { grid-row: auto; }
.cat-grid.even .cat-featured .cat-items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cat h3 { font-size: 22px; margin-bottom: 10px; }
.cat p { color: var(--text-2); font-size: 15px; }
.cat-items { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-items li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.cat-featured .cat-items { flex-direction: column; flex-wrap: nowrap; }
.cat-featured .cat-items li { background: none; padding: 4px 0; font-size: 15px; border-radius: 0; }
.cat-featured .cat-items li::before { content: "→"; color: var(--violet); margin-right: 10px; }

/* Línea de tiempo del proceso */
.timeline-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--border); }
.timeline-steps::after { content: ""; position: absolute; left: 0; top: 27px; height: 2px; width: calc(var(--progress, 0) * 100%); background: var(--accent-grad); transition: width .2s linear; }
.timeline-steps li { position: relative; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-weight: 800; background: #11111d; border: 1px solid var(--border-strong); margin-bottom: 22px; transition: background .4s ease, border-color .4s ease, color .4s ease; }
.timeline-steps li.lit .step-n { background: linear-gradient(135deg, #8b5cf6, #6366f1); border-color: transparent; color: #fff; }
.timeline-steps h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-steps p { color: var(--text-2); font-size: 15px; }

/* Proyectos */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.work.filtered-out { display: none; }
.work-shot { aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; overflow: hidden; }
.work-shot span { position: relative; z-index: 1; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; text-align: center; padding: 0 18px; transition: transform .6s var(--ease); }
.work:hover .work-shot span { transform: scale(1.06); }
.work-shot::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 28px 28px; opacity: .4; }
.g0 { background: linear-gradient(135deg, #4c1d95, #1e3a8a); } .g1 { background: linear-gradient(135deg, #0e7490, #312e81); }
.g2 { background: linear-gradient(135deg, #7c3aed, #be185d); } .g3 { background: linear-gradient(135deg, #065f46, #1e40af); }
.work-body { padding: 20px 22px 24px; }
.work-body h3 { font-size: 19px; }
.work-body p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* Opiniones */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; }
.quote .stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 12px; }
.quote blockquote { margin: 0; font-size: 16px; }
.quote figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.quote figcaption b { color: var(--text); display: block; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: 76px 32px; border-radius: 28px; background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .08)); border: 1px solid rgba(139, 92, 246, .35); }
.cta-glow { position: absolute; width: 500px; height: 500px; left: 50%; top: 50%; margin: -250px 0 0 -250px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 60%); filter: blur(40px); animation: float 9s ease-in-out infinite; pointer-events: none; }
@keyframes float { 50% { transform: translate(60px, -30px) scale(1.1); } }
.cta h2 { position: relative; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.cta p { position: relative; color: var(--text-2); margin: 16px auto 30px; max-width: 560px; font-size: 17px; }
.cta .hero-actions { position: relative; }

/* ---------- Cabecera de página interior ---------- */
.page-hero { position: relative; padding: 150px 0 70px; margin-top: -74px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 360px at 20% 0%, rgba(139, 92, 246, .25), transparent 70%), radial-gradient(500px 300px at 90% 20%, rgba(34, 211, 238, .1), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; max-width: 900px; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip.active, .chip[aria-pressed="true"] { background: rgba(139, 92, 246, .18); border-color: rgba(139, 92, 246, .6); color: #fff; }
.chips.small .chip { padding: 5px 11px; font-size: 13px; cursor: default; }
.sticky-chips { position: sticky; top: 84px; z-index: 5; padding: 12px; margin: 0 -12px 40px; border-radius: 999px; background: rgba(7, 7, 13, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check:has(input:checked) { background: rgba(139, 92, 246, .2); border-color: rgba(139, 92, 246, .7); color: #fff; }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--violet-2); outline-offset: 3px; }

/* Servicios */
.svc-section { margin-bottom: 90px; scroll-margin-top: 160px; }
.svc-section:last-child { margin-bottom: 0; }
.svc-section .section-head { margin-bottom: 30px; }
.svc-section .section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.svc { display: flex; flex-direction: column; }
.svc h3 { font-size: 20px; margin-bottom: 8px; }
.svc p { color: var(--text-2); font-size: 15px; }
.svc ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 7px; font-size: 14.5px; color: var(--text-2); }
.svc ul li::before { content: "→"; color: var(--violet); margin-right: 9px; }
.svc-foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-foot .muted { font-size: 13px; }
.other-cats { margin-top: 80px; }
.other-cats h2 { font-size: 26px; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state h2 { font-size: 32px; margin-bottom: 10px; }

/* Ficha de proyecto */
.project-cover { border-radius: 24px; border: 1px solid var(--border); margin-bottom: 56px; aspect-ratio: 21 / 9; }
.project-cover span { font-size: clamp(30px, 6vw, 64px); }
.project-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.prose p { color: var(--text-2); font-size: 17.5px; margin-bottom: 18px; }
.prose h2 { font-size: 30px; margin-bottom: 18px; }
.project-meta { display: grid; gap: 20px; position: sticky; top: 100px; }
.project-meta > div { display: grid; gap: 6px; }
.project-meta .muted { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.next-project { display: flex; flex-direction: column; gap: 8px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--border); text-decoration: none; }
.next-project strong { font-size: clamp(28px, 4vw, 44px); display: inline-flex; align-items: center; gap: 14px; letter-spacing: -.03em; }
.next-project svg { transition: transform .3s var(--ease); }
.next-project:hover svg { transform: translateX(8px); }

/* Estudio */
.studio-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.studio-visual { display: flex; align-items: center; gap: 18px; justify-content: center; }
.sketch { width: 46%; aspect-ratio: 3 / 4; border-radius: 16px; padding: 18px; display: grid; gap: 12px; align-content: start; border: 2px dashed rgba(255, 255, 255, .25); }
.sketch span { height: 12px; border-radius: 6px; border: 2px dashed rgba(255, 255, 255, .3); }
.sketch .s1 { width: 50%; } .sketch .s2 { height: 70px; } .sketch .s3 { width: 80%; } .sketch .s4 { width: 60%; }
.sketch.built { border: 1px solid var(--border-strong); background: linear-gradient(180deg, #161628, #0e0e1a); box-shadow: 0 30px 70px -30px rgba(99, 102, 241, .6); }
.sketch.built span { border: 0; background: rgba(255, 255, 255, .12); }
.sketch.built .s1 { background: var(--accent-grad); } .sketch.built .s2 { background: linear-gradient(135deg, rgba(139, 92, 246, .6), rgba(34, 211, 238, .4)); }
.sketch-arrow { color: var(--violet-2); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { padding: 14px 26px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; color: var(--text-2); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-search { display: flex; align-items: center; gap: 12px; padding: 4px 20px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); margin-bottom: 14px; color: var(--muted); }
.faq-search:focus-within { border-color: var(--violet); }
.faq-search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; padding: 14px 0; outline: none; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 24px; transition: border-color .3s ease, background .3s ease; }
.faq details[open] { border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .05); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-2); font-size: 24px; line-height: 1; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 22px; white-space: pre-wrap; }
.faq mark { background: rgba(139, 92, 246, .35); color: inherit; border-radius: 3px; }

/* Contacto y formularios */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact > * { min-width: 0; }
.contact-info { display: grid; gap: 16px; }
.contact-card { display: flex !important; gap: 18px; align-items: flex-start; }
.contact-card .svc-icon { margin: 0; flex: none; }
.contact-card h3 { font-size: 18px; margin-bottom: 4px; }
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; color: var(--text-2); }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list a { color: var(--text); text-decoration: none; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.float { position: relative; }
.float input, .float select, .float textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 15.5px; transition: border-color .2s ease, background .2s ease;
}
.float textarea { min-height: 140px; resize: vertical; }
.float select option, .float select optgroup { background: #14141f; }
.float label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 15px; pointer-events: none; transition: top .2s var(--ease), font-size .2s var(--ease), color .2s ease; }
.float input:focus, .float select:focus, .float textarea:focus { outline: none; border-color: var(--violet); background: rgba(139, 92, 246, .06); }
.float input:focus + label, .float input:not(:placeholder-shown) + label,
.float textarea:focus + label, .float textarea:not(:placeholder-shown) + label, .float label.fixed { top: 7px; font-size: 12px; color: var(--violet-2); }
.float.invalid input, .float.invalid textarea { border-color: #f87171; }
.counter { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 4px; accent-color: var(--violet); width: 16px; height: 16px; flex: none; }
.check a { color: var(--violet-2); }
.notice { padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.notice-err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fecaca; }
.success-state { text-align: center; padding: 48px 24px; display: grid; gap: 14px; justify-items: center; }
.success-state h1, .success-state h2 { font-size: 30px; }
.success-check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 16px 40px -12px rgba(34, 197, 94, .7); animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Configurador */
.wizard { padding: 34px; }
.wizard-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.wizard-progress span { display: block; height: 100%; width: 25%; background: var(--accent-grad); border-radius: 3px; transition: width .5s var(--ease); }
.wizard-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 30px; font-size: 13px; color: var(--muted); counter-reset: ws; }
.wizard-steps li::before { counter-increment: ws; content: counter(ws) ". "; }
.wizard-steps li.current { color: var(--text); font-weight: 600; }
.wizard-steps li.done { color: var(--violet-2); }
.wizard-step { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
.wizard-step legend { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 6px; padding: 0; }
.wizard-step > p.muted { margin-bottom: 22px; }
.wizard.enhanced .wizard-step { display: none; }
.wizard.enhanced .wizard-step.active { display: block; animation: stepin .45s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(24px); } }
.wizard.enhanced .wizard-step.active.back { animation-name: stepback; }
@keyframes stepback { from { opacity: 0; transform: translateX(-24px); } }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.option-grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.option { position: relative; display: block; cursor: pointer; border-radius: 16px; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-body { position: relative; display: grid; gap: 6px; height: 100%; padding: 18px 18px 18px 50px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.option-grid.compact .option-body { padding: 13px 14px 13px 46px; }
.option:hover .option-body { border-color: rgba(255, 255, 255, .3); }
.option input:checked + .option-body { border-color: var(--violet); background: rgba(139, 92, 246, .12); }
.option input:focus-visible + .option-body { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.option-body .muted { font-size: 14px; }
.option-check { position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; color: transparent; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .3s var(--ease); }
.option-grid.compact .option-check { top: 13px; left: 14px; }
.option input:checked + .option-body .option-check { background: var(--violet); border-color: var(--violet); color: #fff; transform: scale(1.08); }
.option-tag { justify-self: start; margin-top: 4px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(34, 211, 238, .12); color: #a5f3fc; }
.option-group { font-size: 16px; margin: 26px 0 12px; display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 22px; }
.wizard-count { font-size: 14px; }
.summary { padding: 16px 18px; border-radius: 14px; background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .3); margin-bottom: 20px; font-size: 14.5px; }
.summary ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-2); }
.wizard-step .shake { animation: shake .4s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; color: var(--text-2); font-size: 15px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-grid a:not(.btn):not(.logo) { color: var(--text-2); text-decoration: none; }
.footer-grid a:not(.btn):not(.logo):hover { color: var(--text); }
.footer-claim { max-width: 320px; margin: 6px 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 32px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Legal */
.legal { padding: 150px 0 96px; margin-top: -74px; }
.legal .container { max-width: 840px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 10px; }
.legal .draft { margin: 18px 0 8px; }

/* ---------- Aparición al hacer scroll (solo si hay JS) ---------- */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  [data-reveal].in { opacity: 1; transform: none; }
  .tilt[data-reveal].in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .js-hidden { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 8px 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .builder { max-width: 600px; margin: 0 auto; width: 100%; }
  .cat-grid, .work-grid, .quotes, .features { grid-template-columns: 1fr 1fr; }
  .cat-featured { grid-row: auto; grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-layout, .studio-intro, .contact { grid-template-columns: 1fr; }
  .project-meta { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 90px 28px 40px;
    background: rgba(7, 7, 13, .97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav .nav-link { font-size: 30px; font-weight: 700; padding: 10px 0; color: var(--text); opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .site-nav .nav-link:hover { background: none; }
  .site-nav .nav-link.active { color: var(--violet-2); }
  .site-nav .nav-link.active::after { display: none; }
  .site-nav.open .nav-link { opacity: 1; transform: none; }
  .site-nav.open .nav-link:nth-child(2) { transition-delay: .05s; } .site-nav.open .nav-link:nth-child(3) { transition-delay: .1s; }
  .site-nav.open .nav-link:nth-child(4) { transition-delay: .15s; } .site-nav.open .nav-link:nth-child(5) { transition-delay: .2s; }
  .nav-actions { margin: 24px 0 0; flex-direction: column; }
  .nav-actions .btn { padding: 15px; font-size: 16px; }
  .timeline-steps { grid-template-columns: 1fr; gap: 30px; padding-left: 0; }
  .timeline-steps::before, .timeline-steps::after { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline-steps::after { height: calc(var(--progress, 0) * 100%); width: 2px; }
  .timeline-steps li { padding-left: 80px; }
  .step-n { position: absolute; left: 0; top: 0; margin: 0; }
  .wizard-steps { font-size: 12px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  section.block { padding: 76px 0; }
  .hero { padding-top: 120px; padding-bottom: 90px; }
  .page-hero { padding: 120px 0 50px; }
  .cat-grid, .cat-grid.even, .work-grid, .quotes, .features, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .cat-grid.even .cat-featured .cat-items { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .cat-featured { grid-column: auto; }
  .svc-grid, .option-grid, .option-grid.compact { grid-template-columns: 1fr; }
  .builder-body { padding: 16px; min-height: 0; }
  .b-hero { height: 112px; }
  .chip-1 { left: -6px; } .chip-2 { right: -6px; }
  .wizard { padding: 22px 18px; }
  .wizard-steps li { font-size: 0; height: 4px; }
  .wizard-steps li::before { font-size: 12px; }
  .wizard-nav .btn { flex: 1; }
  .wizard-count { order: -1; width: 100%; text-align: center; }
  .sticky-chips { top: 78px; border-radius: 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sticky-chips .chip { flex: none; }
  .project-cover { aspect-ratio: 4 / 3; }
  .cta { padding: 56px 20px; }
  .hero-actions .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .b-step { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-item[aria-hidden="true"] { display: none; }
  @view-transition { navigation: none; }
}
