@property --hd-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
/* =====================================================================
   JORGE GUS — Sistema visual
   Premium Digital Commerce Studio · mobile-first · sin dependencias
   ===================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #080C10;
  --bg-2: #101820;
  --surface: #14242C;
  --surface-2: #0D151B;
  --cyan: #22D3EE;
  --teal: #2DD4BF;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --muted-2: #7B8A9E;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .26);
  --cyan-soft: rgba(34, 211, 238, .12);
  --danger: #FDA4AF;
  --success: #5EEAD4;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --gutter: 20px;
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, .3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--cyan); color: #04141A; padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section { position: relative; padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2, .about-copy h2, .diag-intro h2, .contact h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); }
.lead { color: var(--muted); font-size: clamp(1.02rem, .95rem + .35vw, 1.15rem); margin-top: 16px; max-width: 62ch; }
.fine { color: var(--muted-2); font-size: .86rem; margin-top: 22px; max-width: 75ch; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #03161B;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 16px 40px -14px rgba(34, 211, 238, .75), inset 0 1px 0 rgba(255, 255, 255, .4); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, .5); background: var(--cyan-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-link {
  background: none; border: 0; padding: 8px 4px; color: var(--muted); cursor: pointer; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong);
}
.btn-link:hover { color: var(--text); text-decoration-color: var(--cyan); }
.wa-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

.arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(8, 12, 16, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  position: relative; width: 26px; height: 26px; border-radius: 8px;
  border: 1.5px solid var(--cyan);
  display: grid; place-items: center;
  box-shadow: 0 0 18px -4px rgba(34, 211, 238, .6);
}
.brand-mark span { width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--cyan), var(--teal)); }
.brand-name { font-weight: 700; letter-spacing: .2em; font-size: .92rem; }
.brand-logo { display: block; height: 34px; width: auto; }
@media (max-width: 600px) { .brand-logo { height: 28px; } }

.nav { display: none; }
.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-link {
  position: relative; display: inline-block; padding: 8px 14px;
  color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500;
  transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer;
}
.menu-icon { position: relative; width: 18px; height: 12px; }
.menu-icon span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon span:first-child { top: 2px; }
.menu-icon span:last-child { top: 9px; }
.menu-open .menu-icon span:first-child { top: 5.5px; transform: rotate(45deg); }
.menu-open .menu-icon span:last-child { top: 5.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 12px var(--gutter) 22px;
  background: rgba(8, 12, 16, .96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transform-origin: top;
}
.mobile-menu ul { list-style: none; margin-bottom: 16px; }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: 1.05rem; font-weight: 500;
}
.mobile-menu li a::after { content: '→'; color: var(--muted-2); transition: transform .25s var(--ease), color .25s; }
.mobile-menu li a:hover::after { transform: translateX(4px); color: var(--cyan); }
.js .mobile-menu.is-animating { animation: menu-in .35s var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 56px) 0 96px;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hl { fill: none; stroke-width: 1.2; stroke-dasharray: 6 10; opacity: .8; }
.hero-glow { position: absolute; border-radius: 50%; }
.hero-glow-1 { width: 760px; height: 760px; right: -260px; top: -4%; background: radial-gradient(circle, rgba(34, 211, 238, .17) 0%, rgba(34, 211, 238, .07) 35%, transparent 65%); }
.hero-glow-2 { width: 640px; height: 640px; left: -290px; bottom: -230px; background: radial-gradient(circle, rgba(45, 212, 191, .11) 0%, rgba(45, 212, 191, .04) 35%, transparent 65%); }

.hero-inner { display: grid; gap: 56px; align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 26px; }
.hero-tags li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(16, 24, 32, .6);
}
.hero-tags li:first-child { color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
.hero-title {
  font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.3rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1.03;
  max-width: 17ch;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .w > span { display: inline-block; }
.hero-title .accent > span {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--teal) 60%, #A5F3FC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); max-width: 54ch; margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-link {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 22px;
  color: var(--muted); font-size: .95rem; text-decoration: none;
}
.hero-link span { color: var(--text); border-bottom: 1px solid rgba(34, 211, 238, .45); }
.hero-link:hover .arrow { transform: translateX(4px); }
.hero-link .arrow { color: var(--cyan); width: 16px; height: 16px; }

/* Entrada directa al diagnóstico */
.hero-diag { position: relative; width: 100%; max-width: 500px; margin: 0 auto; }
.hero-diag::before {
  content: ''; position: absolute; inset: -1px; border-radius: calc(var(--radius-lg) + 1px); padding: 1px;
  background: conic-gradient(from var(--hd-angle, 0deg), rgba(34, 211, 238, .9), rgba(45, 212, 191, .15) 25%, rgba(148, 163, 184, .12) 50%, rgba(45, 212, 191, .15) 75%, rgba(34, 211, 238, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.hd-card {
  position: relative; border-radius: var(--radius-lg); padding: 26px 22px 20px;
  background: linear-gradient(180deg, rgba(20, 36, 44, .94), rgba(11, 18, 24, .96));
  box-shadow: 0 40px 90px -40px rgba(34, 211, 238, .45), var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hd-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .07);
}
.hd-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45, 212, 191, .6); }
.hd-time { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); }
.hd-title { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.65rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 18px; }
.hd-sub { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.hd-benefits { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.hd-benefits li { display: flex; align-items: flex-start; gap: 10px; color: #CBD5E1; font-size: .95rem; }
.hd-benefits svg { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 6px; background: rgba(45, 212, 191, .14); color: var(--teal); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hd-cta { margin-top: 22px; }
.hd-foot { margin-top: 16px; text-align: center; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted-2); }
.btn-glow { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5), 0 16px 40px -18px rgba(34, 211, 238, .8); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  display: none;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); }

@media (min-width: 600px) { .scroll-cue { display: block; } }
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
}
@media (max-width: 600px) {
  .hd-card { padding: 22px 16px 16px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* =====================================================================
   TARJETAS (con brillo localizado al pasar el cursor)
   ===================================================================== */
.card {
  --mx: 50%; --my: 50%; --glow: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(20, 36, 44, .55), rgba(16, 24, 32, .55));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(34, 211, 238, .75), rgba(45, 212, 191, .25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--glow); transition: opacity .35s;
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 211, 238, .06), transparent 60%);
  opacity: var(--glow); transition: opacity .35s;
}
@media (hover: hover) and (pointer: fine) {
  .card.is-hover { --glow: 1; }
  .solution:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(34, 211, 238, .35); }
}

/* ---------- Soluciones ---------- */
.solutions { display: grid; gap: 18px; }
.solution { padding: 28px 24px 26px; display: flex; flex-direction: column; }
.solution-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.solution-num { font-family: var(--mono); font-size: .8rem; color: var(--muted-2); letter-spacing: .1em; }
.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, .25); color: var(--cyan);
  transition: transform .5s var(--ease);
}
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.solution:hover .icon-box { transform: rotate(-8deg) translateY(-2px); }
.problem { font-size: 1.02rem; color: var(--text); font-style: italic; opacity: .92; padding-left: 14px; border-left: 2px solid var(--cyan); margin-bottom: 20px; }
.solution h3 { font-size: 1.4rem; margin-bottom: 10px; }
.solution > p:not(.problem):not(.list-title) { color: var(--muted); }
.list-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 22px 0 10px; }
.checklist { list-style: none; display: grid; gap: 9px; margin-bottom: 26px; }
.checklist li { position: relative; padding-left: 26px; color: #CBD5E1; font-size: .95rem; line-height: 1.5; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(45, 212, 191, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%232DD4BF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.card-cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-weight: 600; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid rgba(34, 211, 238, .3);
  transition: border-color .25s, gap .25s;
}
.card-cta:hover { border-color: var(--cyan); }
.card-cta:hover .arrow { transform: translateX(5px); }
@media (min-width: 900px) { .solutions { grid-template-columns: repeat(3, 1fr); } .solution { padding: 32px 28px 28px; } }

.complementary {
  margin-top: 44px; padding: 26px 24px; border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong); background: rgba(16, 24, 32, .45);
}
.complementary-head h3 { font-size: 1.15rem; }
.complementary-head p { color: var(--muted); margin-top: 6px; font-size: .95rem; }
.comp-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.comp-list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: #CBD5E1; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.comp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); flex: none; }
.complementary .fine { margin-top: 16px; }
@media (min-width: 760px) { .comp-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Proceso (línea con efecto "chicle") ---------- */
.process-wrap { position: relative; }
.process { list-style: none; display: grid; gap: 14px; position: relative; counter-reset: step; }
.step { position: relative; padding: 24px 22px 24px 76px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(16, 24, 32, .5); }
.step-num {
  position: absolute; left: 22px; top: 22px; z-index: 2;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .9rem; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .4); background: var(--bg);
  box-shadow: 0 0 20px -8px rgba(34, 211, 238, .8);
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.step.is-reached .step-num { background: linear-gradient(135deg, var(--cyan), var(--teal)); color: #03161B; border-color: transparent; box-shadow: 0 0 28px -4px rgba(34, 211, 238, .9); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }
/* La línea y la gota se ubican con JS sobre los números (vertical en celular, horizontal en escritorio). */
.process-line { position: absolute; z-index: 1; pointer-events: none; display: none; }
.js .process-line { display: block; }
.process-line::before { content: ''; position: absolute; inset: 0; border-radius: 2px; background: rgba(148, 163, 184, .16); }
.process-fill { position: absolute; left: 0; top: 0; border-radius: 2px; background: linear-gradient(var(--fill-dir, 180deg), var(--cyan), var(--teal)); box-shadow: 0 0 12px rgba(34, 211, 238, .6); }
.process-blob {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #CFFAFE, var(--cyan) 45%, var(--teal));
  box-shadow: 0 0 18px 4px rgba(34, 211, 238, .55), 0 0 40px 10px rgba(45, 212, 191, .2);
  will-change: transform;
}
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 8px; }
  .step { padding: 80px 22px 26px; background: transparent; border-color: transparent; }
  .step-num { top: 18px; left: 22px; }
}

/* ---------- Proyectos ---------- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-nav[hidden] { display: none; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); transition: transform .4s var(--spring), border-color .2s, background-color .2s;
}
.carousel-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .08); transform: scale(1.06); }
.carousel-btn:active { transform: scale(.92); }

/* Anillo 3D de proyectos y tiendas */
.section-projects { overflow: hidden; }
.section-projects .section-head { margin-bottom: 8px; }
.ring-stage {
  --panel-w: clamp(118px, 13vw, 176px);
  position: relative; height: calc(var(--panel-w) * 1.6 + 90px); perspective: 1300px; perspective-origin: 50% 45%;
  user-select: none; touch-action: pan-y; cursor: grab;
}
.ring-stage.is-dragging { cursor: grabbing; }
.ring-stage.is-dragging a { pointer-events: none; }
.ring-stage::after { content: ''; position: absolute; left: 50%; bottom: 18px; width: min(70%, 760px); height: 40px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(34, 211, 238, .22), transparent 70%); pointer-events: none; }
.ring { position: absolute; left: 50%; top: 45px; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.ring-item {
  position: absolute; left: calc(var(--panel-w) / -2); top: 0; width: var(--panel-w); aspect-ratio: 10 / 16;
  border-radius: 14px; background: #0D151B center top / cover no-repeat;
  border: 1px solid rgba(148, 163, 184, .22); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .9);
  transition: border-color .4s, box-shadow .4s;
}
.ring-item::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #05080B; opacity: var(--shade, 0); pointer-events: none; }
.ring-item.is-front { border-color: rgba(34, 211, 238, .65); box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 30px 60px -26px rgba(34, 211, 238, .55); }
.ring-nodo { overflow: hidden; }
.ring-caption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 56px 12px 12px; display: grid; gap: 2px;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 16, .96) 55%);
}
.ring-caption strong { font-size: 1.05rem; letter-spacing: .02em; }
.ring-caption a { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--muted); text-decoration: none; }
.ring-caption a:hover { color: var(--cyan); }
.ring-caption .arrow { width: 13px; height: 13px; }
.ring-note { margin-top: 4px; text-align: center; color: var(--muted-2); font-size: .88rem; }
/* Sin JavaScript (o antes de iniciar): fila con desplazamiento horizontal */
.ring-stage:not(.is-ready) { height: auto; perspective: none; cursor: auto; }
.ring-stage:not(.is-ready) .ring { position: static; width: auto; height: auto; display: flex; gap: 14px; overflow-x: auto; padding: 20px; }
.ring-stage:not(.is-ready) .ring-item { position: relative; left: 0; flex: none; }
@media (max-width: 600px) { .carousel-nav { display: none; } .ring-stage { perspective: 800px; } }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 44px; align-items: center; }
.about-photo { max-width: 420px; width: 100%; margin: 0 auto; }
.about-frame { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4 / 5; background: var(--surface); }
.about-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8, 12, 16, .55)); pointer-events: none; }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::before {
  content: ''; position: absolute; width: 130%; height: 130%; left: -15%; top: -15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .2) 0%, rgba(34, 211, 238, .06) 35%, transparent 62%); z-index: -1;
}
.about-photo { position: relative; z-index: 0; }
.about-copy > p:not(.eyebrow):not(.lead) { color: var(--muted); margin-top: 16px; }
.principles { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.principles li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(16, 24, 32, .5); color: var(--muted); font-size: .95rem; }
.principles strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .about { grid-template-columns: .85fr 1.15fr; gap: 72px; } }

/* ---------- Diagnóstico (contenedor) ---------- */
.diag-section { background: radial-gradient(ellipse 70% 60% at 80% 10%, rgba(34, 211, 238, .07), transparent 70%); }
.diag { display: grid; gap: 40px; align-items: start; }
.diag-points { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.diag-points li { display: flex; gap: 12px; align-items: center; color: #CBD5E1; }
.diag-points span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, .25); color: var(--cyan); }
.diag-points svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 980px) { .diag { grid-template-columns: .8fr 1.2fr; gap: 64px; } .diag-intro { position: sticky; top: calc(var(--header-h) + 40px); } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16, 24, 32, .5); transition: border-color .25s; }
.faq details[open] { border-color: rgba(34, 211, 238, .3); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--cyan); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }
.faq a { color: var(--cyan); }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; text-align: center; padding: 56px 24px; }
.contact .eyebrow { justify-content: center; }
.contact .lead { margin-inline: auto; }
.contact-glow { position: absolute; width: 760px; height: 480px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(34, 211, 238, .2) 0%, rgba(34, 211, 238, .07) 35%, transparent 65%); border-radius: 50%; pointer-events: none; }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 46px; background: #06090C; }
.footer-inner { display: grid; gap: 20px; }
.brand-sm .brand-mark { width: 22px; height: 22px; }
.brand-sm .brand-logo { height: 30px; }
.footer-note { color: var(--muted-2); font-size: .88rem; margin-top: 12px; max-width: 52ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a, .copyright { color: var(--muted-2); font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto; align-items: end; } .copyright { grid-column: 1 / -1; } }

/* =====================================================================
   QUIZ
   ===================================================================== */
.quiz { padding: 22px 18px 24px; min-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 600px) { .quiz { padding: 32px 32px 30px; } }
.quiz-noscript { display: grid; gap: 16px; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.q-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px 6px 8px 0; font-size: .92rem; border-radius: 8px; }
.q-back:hover { color: var(--text); }
.q-back .arrow { transform: rotate(180deg); width: 16px; height: 16px; }
.q-back:hover .arrow { transform: rotate(180deg) translateX(3px); }
.q-back[hidden] { display: inline-flex; visibility: hidden; }
.q-count { font-family: var(--mono); font-size: .74rem; color: var(--muted-2); letter-spacing: .06em; }
.q-progress { height: 4px; border-radius: 4px; background: rgba(148, 163, 184, .14); overflow: hidden; margin: 10px 0 26px; }
.q-progress-bar { height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--cyan), var(--teal)); border-radius: inherit; transition: transform .6s var(--ease-out); box-shadow: 0 0 12px rgba(34, 211, 238, .7); }

.q-stage { position: relative; flex: 1; display: flex; flex-direction: column; }
.q-panel { display: flex; flex-direction: column; flex: 1; }
.q-panel.enter-next { animation: q-in-next .45s var(--ease-out) both; }
.q-panel.enter-prev { animation: q-in-prev .45s var(--ease-out) both; }
@keyframes q-in-next { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes q-in-prev { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.q-title { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem); letter-spacing: -.02em; outline: none; }
.q-help { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.q-fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.q-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .q-options.cols-2 { grid-template-columns: 1fr 1fr; } }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-box {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line-strong);
  background: rgba(8, 12, 16, .45);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.opt:hover .opt-box { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .05); }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.opt input:checked + .opt-box { border-color: var(--cyan); background: rgba(34, 211, 238, .1); box-shadow: 0 0 0 1px var(--cyan) inset, 0 10px 30px -18px rgba(34, 211, 238, .8); }
.opt input:disabled + .opt-box { opacity: .45; cursor: not-allowed; }
.opt-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--line-strong); display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.opt-mark.square { border-radius: 6px; }
.opt-mark::after { content: ''; width: 8px; height: 8px; border-radius: inherit; background: #03161B; transform: scale(0); transition: transform .25s var(--ease-out); }
.opt input:checked + .opt-box .opt-mark { border-color: var(--cyan); background: var(--cyan); }
.opt input:checked + .opt-box .opt-mark::after { transform: scale(1); }
.opt-text { display: grid; gap: 2px; }
.opt-label { font-weight: 550; line-height: 1.35; }
.opt-hint { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.opt.pop .opt-box { animation: pop .35s var(--ease-out); }
@keyframes pop { 40% { transform: scale(.985); } 100% { transform: none; } }

.field { display: grid; gap: 7px; margin-top: 16px; }
.field-label { font-weight: 550; font-size: .95rem; }
.field-label .opt-tag { color: var(--muted-2); font-weight: 400; font-size: .85rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(8, 12, 16, .6);
  color: var(--text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.select option { background: var(--bg-2); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: #64748B; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-help { color: var(--muted-2); font-size: .84rem; }
.field-error { color: var(--danger); font-size: .87rem; display: flex; gap: 6px; align-items: flex-start; }
.field-error:empty { display: none; }
.field-error::before { content: '!'; flex: none; width: 16px; height: 16px; border-radius: 50%; background: rgba(253, 164, 175, .15); display: grid; place-items: center; font-size: .7rem; font-weight: 700; margin-top: 2px; }
.char-count { justify-self: end; color: var(--muted-2); font-size: .78rem; font-family: var(--mono); }
.phone-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.q-other { margin-top: 12px; }

.q-error-global { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(253, 164, 175, .08); border: 1px solid rgba(253, 164, 175, .3); color: #FECDD3; font-size: .93rem; }
.q-error-global:empty { display: none; }

.q-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 4px; }
.q-actions .btn { min-width: 160px; }
.q-actions .spacer { flex: 1; }
@media (max-width: 480px) { .q-actions .btn-primary { width: 100%; } }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-top: 18px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 12, 16, .4); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .opt-mark { margin-top: 2px; }
.check input:checked + .opt-mark { border-color: var(--cyan); background: var(--cyan); }
.check input:checked + .opt-mark::after { transform: scale(1); }
.check input:focus-visible + .opt-mark { outline: 2px solid var(--cyan); outline-offset: 3px; }
.check-text { font-size: .92rem; color: #CBD5E1; }
.privacy-note { color: var(--muted-2); font-size: .85rem; margin-top: 14px; }
.privacy-note a { color: var(--cyan); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Intro del quiz */
.q-intro-list { list-style: none; display: grid; gap: 8px; margin: 18px 0 4px; }

/* Cargando */
.q-loading { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding: 40px 0; }
.loader { position: relative; width: 64px; height: 64px; }
.loader span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cyan); animation: spin 1.1s linear infinite; }
.loader span:nth-child(2) { inset: 9px; border-top-color: var(--teal); animation-duration: 1.6s; animation-direction: reverse; }
.loader span:nth-child(3) { inset: 22px; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); border: 0; animation: pulse 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.7); opacity: .6; } }
.q-loading-text { color: var(--muted); min-height: 1.6em; }

/* Resultado */
.result { display: flex; flex-direction: column; gap: 18px; }
.result-head { display: flex; align-items: center; gap: 14px; }
.result-check { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(45, 212, 191, .14); border: 1px solid rgba(45, 212, 191, .5); color: var(--teal); }
.result-check svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.result.animate .result-check { animation: pop-in .5s var(--ease-out) both; }
.result.animate .result-check svg { animation: draw .6s .25s var(--ease-out) both; }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.result-title { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.6rem); outline: none; }
.code-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 6px 6px 6px 12px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .35); background: var(--cyan-soft); font-family: var(--mono); font-size: .9rem; }
.code-chip button { border: 0; border-radius: 999px; padding: 5px 10px; background: rgba(8, 12, 16, .6); color: var(--text); cursor: pointer; font: inherit; font-size: .76rem; }
.code-chip button:hover { background: rgba(8, 12, 16, .9); }
.result-blocks { display: grid; gap: 10px; }
.r-block { padding: 16px 16px 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 12, 16, .4); }
.result.animate .r-block { animation: rise .55s var(--ease-out) both; }
.result.animate .r-block:nth-child(2) { animation-delay: .08s; }
.result.animate .r-block:nth-child(3) { animation-delay: .16s; }
.result.animate .r-block:nth-child(4) { animation-delay: .24s; }
.result.animate .r-block:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.r-block h4 { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.r-block p { color: #CBD5E1; }
.r-block.highlight { border-color: rgba(34, 211, 238, .4); background: linear-gradient(135deg, rgba(34, 211, 238, .1), rgba(45, 212, 191, .04)); }
.r-block.highlight p { color: var(--text); font-weight: 550; }
.disclaimer { color: var(--muted-2); font-size: .84rem; }
.result-actions { display: grid; gap: 10px; }
.wa-note { font-size: .9rem; color: var(--success); padding: 12px 14px; border-radius: 12px; background: rgba(45, 212, 191, .08); border: 1px solid rgba(45, 212, 191, .3); }
.wa-note[hidden] { display: none; }
.consent-note { font-size: .88rem; color: var(--muted); }
.result-secondary { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }

/* Error */
.q-fail { flex: 1; display: grid; align-content: center; gap: 14px; text-align: center; justify-items: center; padding: 20px 0; }
.q-fail-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(253, 164, 175, .1); border: 1px solid rgba(253, 164, 175, .35); color: var(--danger); font-weight: 700; font-size: 1.3rem; }
.q-fail p { color: var(--muted); max-width: 46ch; }
.q-fail .btn { min-width: 220px; }

/* =====================================================================
   ANIMACIONES (solo con JS y sin "reducir movimiento")
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Apariciones al bajar: suben con un leve rebote, se enfocan y se aclaran */
  .js .reveal {
    opacity: 0; transform: translate3d(0, 38px, 0) scale(.97); filter: blur(6px);
    transition: opacity .8s var(--ease-out), filter .8s var(--ease-out), transform 1.1s cubic-bezier(.22, 1.3, .36, 1);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
  .js .section-head.reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s var(--ease-out) .12s, transform 1s var(--ease-out) .12s; }
  .js .section-head.reveal.in h2 { clip-path: inset(0 0 -10% 0); transform: none; }
  .js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .05s; }
  .js .reveal.in .eyebrow::before { transform: none; }
  .js .reveal.reveal-left { transform: translate3d(-46px, 0, 0); }
  .js .reveal.reveal-right { transform: translate3d(46px, 0, 0); }
  .js .reveal.reveal-left.in, .js .reveal.reveal-right.in { transform: none; }

  /* Efecto "chicle" al llegar a cada paso */
  .step.is-reached .step-num { animation: chicle .8s var(--ease-out) both; }
  @keyframes chicle {
    0% { transform: scale(1, 1); }
    25% { transform: scale(1.35, .72); }
    45% { transform: scale(.82, 1.22); }
    65% { transform: scale(1.12, .9); }
    82% { transform: scale(.96, 1.04); }
    100% { transform: scale(1, 1); }
  }

  .js .hero-title .w > span { transform: translateY(105%); animation: word-up .9s var(--ease-out) forwards; }
  .js .hero-title .w:nth-child(1) > span { animation-delay: .10s; }
  .js .hero-title .w:nth-child(2) > span { animation-delay: .16s; }
  .js .hero-title .w:nth-child(3) > span { animation-delay: .22s; }
  .js .hero-title .w:nth-child(4) > span { animation-delay: .28s; }
  .js .hero-title .w:nth-child(5) > span { animation-delay: .34s; }
  .js .hero-title .w:nth-child(6) > span { animation-delay: .40s; }
  .js .hero-title .w:nth-child(7) > span { animation-delay: .50s; }
  .js .hero-title .w:nth-child(8) > span { animation-delay: .56s; }
  .js .hero-title .w:nth-child(9) > span { animation-delay: .62s; }
  @keyframes word-up { to { transform: none; } }
  .js .hero-tags, .js .hero-sub, .js .hero-ctas, .js .hero-link { opacity: 0; animation: fade-up .9s var(--ease-out) forwards; }
  .js .hero-tags { animation-delay: .02s; }
  .js .hero-sub { animation-delay: .75s; }
  .js .hero-ctas { animation-delay: .9s; }
  .js .hero-link { animation-delay: 1.05s; }
  .js .hero-diag { opacity: 0; animation: card-in 1.1s .45s var(--ease-out) forwards; }
  .js .hd-benefits li { opacity: 0; animation: opt-in .7s var(--spring) forwards; }
  .js .hd-benefits li:nth-child(1) { animation-delay: .85s; }
  .js .hd-benefits li:nth-child(2) { animation-delay: .93s; }
  .js .hd-benefits li:nth-child(3) { animation-delay: 1.01s; }
  @keyframes opt-in { from { opacity: 0; transform: translateX(18px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes card-in { from { opacity: 0; transform: translateY(26px) rotateX(8deg); } to { opacity: 1; transform: none; } }

  /* Movimiento continuo y lento */
  .hd-card { animation: float-a 9s 1.6s ease-in-out infinite; }
  @keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .hero-diag::before { animation: hd-spin 6s linear infinite; }
  @keyframes hd-spin { to { --hd-angle: 360deg; } }
  .hd-pulse { animation: hd-ping 2s ease-out infinite; }
  @keyframes hd-ping { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); } }
  .btn-glow { animation: btn-glow 2.8s ease-out 2s infinite; }
  @keyframes btn-glow { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .45), 0 16px 40px -18px rgba(34, 211, 238, .8); } 70%, 100% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0), 0 16px 40px -18px rgba(34, 211, 238, .8); } }
  .hl { animation: dash 40s linear infinite; }
  .hl-2 { animation-duration: 55s; animation-direction: reverse; }
  .hl-3 { animation-duration: 70s; }
  @keyframes dash { to { stroke-dashoffset: -800; } }
  .hero-lines { animation: drift 30s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-30px, 18px, 0); } }
  .hero-glow-1 { animation: glow 14s ease-in-out infinite alternate; }
  @keyframes glow { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
  .scroll-cue span { animation: cue 2s var(--ease) infinite; }
  @keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

}

/* Celulares y pantallas táctiles: mismos efectos, menos carga para la placa gráfica */
@media (max-width: 900px), (hover: none) {
  .hd-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #13222A, #0B1218); }
  .hd-card, .hero-diag::before { animation: none !important; }
  .js .reveal { filter: none !important; }
  .js .section-head.reveal h2 { clip-path: none; }
  .hero-lines, .hl, .hero-glow-1 { animation: none !important; }
  /* Las máscaras crean capas gráficas enormes en iPhone: se reemplazan por bordes simples. */
  .hero-grid { display: none; }
  .hero-diag::before { display: none; }
  .hd-card { border: 1px solid rgba(34, 211, 238, .4); }
}
/* En pantallas táctiles el brillo que sigue al mouse no se usa: fuera la capa con máscara. */
@media (hover: none) {
  .card::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Páginas legales ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 10px; }
.legal .updated { color: var(--muted-2); font-family: var(--mono); font-size: .8rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin-top: 10px; }
.legal a { color: var(--cyan); }
.legal .back { display: inline-flex; margin-top: 44px; }

/* =====================================================================
   V2 — Plan de Crecimiento Digital
   ===================================================================== */
/* Servicios: subcategorías y enlaces de entrada */
.sol-sub { margin-top: 18px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 12, 16, .35); }
.sol-sub .list-title { margin-top: 0; color: var(--cyan); }
.sol-sub > p:not(.list-title) { color: var(--muted); font-size: .93rem; }
.sol-sub .checklist { margin-top: 10px; }
.sol-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .9rem; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(34, 211, 238, .4); }
.sol-link .arrow { width: 15px; height: 15px; color: var(--cyan); }
.sol-link:hover .arrow { transform: translateX(3px); }
.solution > .sol-link { align-self: flex-start; margin-top: 16px; }

/* Quiz: inicio, adelanto y plan */
.q-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.q-intro .q-title { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); }
.q-benefits { list-style: none; display: grid; gap: 10px; margin: 20px 0 6px; }
.q-benefits li { display: flex; gap: 10px; align-items: flex-start; color: #CBD5E1; }
.q-tick { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 6px; background: rgba(45, 212, 191, .14); color: var(--teal); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.preview .pv-summary { color: #CBD5E1; margin: 10px 0 16px; }
.preview .r-block { margin-top: 12px; }
.pv-step-title { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.pv-locked { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.pv-locked span { font-size: .8rem; color: var(--muted-2); padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); }
.plan-steps { list-style: none; counter-reset: ps; display: grid; gap: 12px; margin-top: 6px; }
.plan-steps li { counter-increment: ps; position: relative; padding-left: 40px; display: grid; gap: 2px; }
.plan-steps li::before { content: counter(ps); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: .85rem; color: #03161B; background: linear-gradient(135deg, var(--cyan), var(--teal)); }
.plan-steps strong { color: var(--text); }
.plan-steps span { color: var(--muted); font-size: .93rem; }

