/* ============================================================
   YAUH — Landing web "Silicon Valley"
   Sistema visual nocturno premium · náhuatl "ir, moverse"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* Fondo nocturno premium */
  --ink:        #0A0D11;
  --ink-2:      #0c1116;
  --surface:    #12171D;
  --surface-2:  #192026;
  --surface-3:  #212a32;
  --line:       rgba(246,243,236,0.08);
  --line-strong:rgba(246,243,236,0.14);

  /* Marca */
  --cyan:       #22D3EE;
  --cyan-light: #5FE6FB;
  --cyan-dark:  #0891B2;
  --amber:      #F59E0B;
  --amber-light:#FBBF24;
  --amber-dark: #D97706;

  /* Estado */
  --green:      #34D399;
  --red:        #FB7264;

  /* Texto */
  --text:       #F6F3EC;
  --muted:      #8B95A1;
  --faint:      #5b646e;

  /* Radios */
  --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 30px; --r-2xl: 36px;

  /* Sombras */
  --shadow-card:  0 1px 0 rgba(246,243,236,0.04) inset, 0 18px 50px rgba(0,0,0,0.45);
  --shadow-float: 0 8px 30px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-btn:   0 10px 28px rgba(245,158,11,0.34), 0 2px 6px rgba(245,158,11,0.25);
  --shadow-btn-cy:0 10px 28px rgba(34,211,238,0.28), 0 2px 6px rgba(34,211,238,0.20);
  --shadow-phone: 0 0 0 2px #23282d, 0 50px 120px rgba(0,0,0,0.65), 0 20px 60px rgba(0,0,0,0.5);

  --ff-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ff-body:    'Manrope', system-ui, sans-serif;
  --ff-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1200px;

  /* Tweakable accents */
  --accent: var(--amber);
  --accent-light: var(--amber-light);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.preloading{ overflow: hidden; height: 100vh; }

h1,h2,h3,h4{ margin: 0; font-family: var(--ff-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img,svg{ display: block; }
::selection{ background: rgba(34,211,238,0.3); color: #fff; }

.wrap{ width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ===== Eyebrow / labels ===== */
.eyebrow{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-body); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.eyebrow .tick{ width: 22px; height: 1.5px; background: var(--cyan); opacity: .8; }
.eyebrow.cy{ color: var(--cyan); }
.eyebrow.am{ color: var(--amber-light); }

/* ===== Buttons ===== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px;
  border-radius: var(--r); padding: 16px 26px; letter-spacing: -0.1px;
  transition: transform .16s cubic-bezier(.3,0,.2,1), filter .16s, box-shadow .25s, background .2s;
  white-space: nowrap;
}
.btn svg{ width: 19px; height: 19px; }
.btn:active{ transform: scale(.97); }
.btn--amber{ background: linear-gradient(180deg, var(--amber-light), var(--amber)); color: #1a1206; box-shadow: var(--shadow-btn); }
.btn--amber:hover{ filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 16px 40px rgba(245,158,11,0.42); }
.btn--cyan{ background: linear-gradient(180deg, var(--cyan-light), var(--cyan)); color: #04222a; box-shadow: var(--shadow-btn-cy); }
.btn--cyan:hover{ filter: brightness(1.06); transform: translateY(-2px); }
.btn--ghost{ background: rgba(246,243,236,0.02); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover{ background: rgba(246,243,236,0.06); transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(246,243,236,0.28); }
.btn--sm{ padding: 11px 18px; font-size: 14px; border-radius: var(--r-sm); }

/* ===== Pills ===== */
.pill{
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.pill--cyan{ background: rgba(34,211,238,0.13); color: var(--cyan-light); }
.pill--amber{ background: rgba(245,158,11,0.14); color: var(--amber-light); }
.pill--green{ background: rgba(52,211,153,0.14); color: var(--green); }
.pill--red{ background: rgba(251,114,100,0.14); color: var(--red); }
.dot{ width: 7px; height: 7px; border-radius: 50%; }
.dot--green{ background: var(--green); box-shadow: 0 0 0 3px rgba(52,211,153,0.22); }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader{
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 32%, #121b24 0%, var(--ink) 58%);
  transition: opacity .8s ease, visibility .8s ease;
}
#preloader.done{ opacity: 0; visibility: hidden; }
#preloader.done .pre-stage{ transform: scale(1.16); filter: blur(2px); }

/* layered cinematic background */
.pre-bg{ position: absolute; inset: 0; overflow: hidden; }
.pre-grid{ position: absolute; inset: -25% -25% -45% -25%;
  background-image: linear-gradient(rgba(34,211,238,0.10) 1px, transparent 1px), linear-gradient(90deg, rgba(34,211,238,0.07) 1px, transparent 1px);
  background-size: 54px 54px; transform: perspective(420px) rotateX(62deg);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(72% 62% at 50% 42%, #000 0%, transparent 76%);
  animation: pre-grid-move 3.2s linear infinite; opacity: .7; }
@keyframes pre-grid-move{ from{ background-position: 0 0; } to{ background-position: 0 54px; } }
.pre-glow{ position: absolute; left: 50%; top: 38%; width: 540px; height: 540px; transform: translate(-50%,-50%);
  background: radial-gradient(closest-side, rgba(34,211,238,0.18), transparent 70%); filter: blur(10px);
  animation: pre-glow-pulse 2.4s ease-in-out infinite; }
@keyframes pre-glow-pulse{ 0%,100%{ opacity: .5; transform: translate(-50%,-50%) scale(.9);} 50%{ opacity: .9; transform: translate(-50%,-50%) scale(1.06);} }
.pre-streak{ position: absolute; height: 2px; width: 220px; border-radius: 2px; left: -260px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.85), transparent); opacity: 0; }
.pre-streak.s1{ top: 30%; animation: pre-streak 2.6s ease-in .4s infinite; }
.pre-streak.s2{ top: 64%; width: 300px; animation: pre-streak 3.2s ease-in 1.1s infinite; }
.pre-streak.s3{ top: 48%; width: 170px; background: linear-gradient(90deg, transparent, rgba(245,158,11,0.75), transparent); animation: pre-streak 2.9s ease-in 1.9s infinite; }
@keyframes pre-streak{ 0%{ left: -300px; opacity: 0;} 12%{ opacity: 1;} 60%{ opacity: 1;} 100%{ left: 112%; opacity: 0;} }

.pre-stage{ position: relative; z-index: 2; width: min(560px, 86vw); display: grid; place-items: center;
  transition: transform .8s cubic-bezier(.5,0,.3,1), filter .8s ease; }
.pre-radar{ position: absolute; width: 380px; height: 380px; display: grid; place-items: center; pointer-events: none; }
.pre-radar .ring{
  position: absolute; border-radius: 50%; border: 1.5px solid rgba(34,211,238,0.45);
  width: 60px; height: 60px; opacity: 0;
  animation: pre-radar 3s ease-out infinite;
}
.pre-radar .ring:nth-child(2){ animation-delay: 1s; }
.pre-radar .ring:nth-child(3){ animation-delay: 2s; }
@keyframes pre-radar{ 0%{ width:60px;height:60px;opacity:.7 } 100%{ width:380px;height:380px;opacity:0 } }

.pre-logo{ position: relative; z-index: 2; width: 360px; max-width: 80vw; }
.pre-logo svg{ width: 100%; height: auto; overflow: visible; }
.pre-logo .c1, .pre-logo .c2{ filter: drop-shadow(0 0 7px rgba(34,211,238,0.6)); }
.pre-logo .y1, .pre-logo .y2{ filter: drop-shadow(0 0 10px rgba(245,158,11,0.7)); }
/* bloom flash when the Y locks in */
.pre-flash{ position: absolute; left: 34%; top: 52%; width: 90px; height: 90px; transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,242,214,0.95), rgba(245,158,11,0.45), transparent 72%); opacity: 0;
  animation: pre-flash .7s ease-out forwards 1.02s; pointer-events: none; z-index: 3; }
@keyframes pre-flash{ 0%{ opacity: 0; transform: translate(-50%,-50%) scale(.2);} 32%{ opacity: 1;} 100%{ opacity: 0; transform: translate(-50%,-50%) scale(1.9);} }
/* light sweep across the logo */
.pre-shine{ position: absolute; inset: 0; overflow: hidden; z-index: 4; pointer-events: none; }
.pre-shine::before{ content: ''; position: absolute; top: -25%; bottom: -25%; width: 58px; left: -90px; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); animation: pre-shine 1.1s ease-in forwards 1.3s; }
@keyframes pre-shine{ from{ left: -90px;} to{ left: 120%;} }

.pre-tag{
  position: relative; z-index: 2; margin-top: 30px; text-align: center; font-family: var(--ff-display);
  font-size: 20px; font-weight: 500; color: var(--muted);
  opacity: 0; letter-spacing: .2px;
  animation: pre-tag-in .8s ease forwards 1.75s;
}
.pre-tag b{ color: var(--text); font-weight: 700; }
@keyframes pre-tag-in{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }

/* route trace + traveling YAUH dot */
.pre-route{ position: absolute; bottom: -82px; left: 50%; transform: translateX(-50%); width: 320px; height: 96px; pointer-events: none; overflow: visible; }
.pre-route .track{ fill: none; stroke: rgba(34,211,238,0.18); stroke-width: 2.5; stroke-linecap: round; }
.pre-route .draw{ fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 360;
  filter: drop-shadow(0 0 5px rgba(34,211,238,0.6)); animation: pre-draw 1.6s ease forwards 1.1s; }
@keyframes pre-draw{ to{ stroke-dashoffset: 0; } }
.pre-route .pin{ opacity: 0; animation: pre-pin .5s cubic-bezier(.3,1.4,.5,1) forwards 2.55s; transform-box: fill-box; transform-origin: center; }
@keyframes pre-pin{ from{ opacity: 0; transform: translateY(-10px) scale(.4);} to{ opacity: 1; transform: translateY(0) scale(1);} }
.pre-carrier{ position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: #eafdff;
  box-shadow: 0 0 12px 3px rgba(34,211,238,0.9); opacity: 0;
  offset-path: path("M10 84 C 80 84, 80 22, 160 22 S 250 74, 310 16"); offset-rotate: 0deg;
  animation: pre-carry 1.7s ease-in-out forwards 1.1s, pre-carry-fade 1.9s ease forwards 1.1s; }
@keyframes pre-carry{ from{ offset-distance: 0%;} to{ offset-distance: 100%;} }
@keyframes pre-carry-fade{ 0%{ opacity: 0;} 8%{ opacity: 1;} 88%{ opacity: 1;} 100%{ opacity: 0;} }

/* falling chevrons animation for preloader logo */
@keyframes y-fall-1{ 0%{ transform: translateY(-60px); opacity:0 } 100%{ transform: translateY(0); opacity:.40 } }
@keyframes y-fall-2{ 0%{ transform: translateY(-60px); opacity:0 } 100%{ transform: translateY(0); opacity:.72 } }
@keyframes y-fall-y{ 0%{ transform: translateY(-60px) scale(1); opacity:0 } 70%{ transform: translateY(4px) scale(1.05); opacity:1 } 100%{ transform: translateY(0) scale(1); opacity:1 } }
@keyframes y-word-in{ 0%{ opacity:0; transform: translateX(-18px);} 100%{ opacity:1; transform: translateX(0);} }
.pre-logo .c1{ animation: y-fall-1 .5s ease-out forwards .15s; opacity: 0; }
.pre-logo .c2{ animation: y-fall-2 .5s ease-out forwards .42s; opacity: 0; }
.pre-logo .y1,.pre-logo .y2{ animation: y-fall-y .6s cubic-bezier(.3,1.3,.5,1) forwards .72s; opacity: 0; }
.pre-logo .word{ animation: y-word-in .7s ease-out forwards 1.15s; opacity: 0; }
@media (prefers-reduced-motion: reduce){ .pre-grid,.pre-glow,.pre-streak,.pre-radar .ring,.pre-carrier{ animation: none; opacity: .5; } }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled{
  background: rgba(10,13,17,0.72); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner{ width: 100%; max-width: var(--maxw); display: flex; align-items: center; gap: 28px; padding: 16px 28px; }
.nav-logo{ width: 116px; flex-shrink: 0; }
.nav-logo svg{ width: 100%; height: auto; }
.nav-links{ display: flex; align-items: center; gap: 30px; margin-left: 14px; }
.nav-links a{ font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .15s; }
.nav-links a:hover{ color: var(--text); }
.nav-cta{ margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative; padding: 168px 0 90px;
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow{ position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-glow.cy{ width: 620px; height: 620px; left: -180px; top: -120px; background: radial-gradient(closest-side, rgba(34,211,238,0.22), transparent); }
.hero-glow.am{ width: 560px; height: 560px; right: -160px; top: 180px; background: radial-gradient(closest-side, rgba(245,158,11,0.18), transparent); }
.hero-grid-lines{ position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%); }

.hero-inner{ position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy{ max-width: 600px; }
.hero h1{ font-size: clamp(42px, 5.6vw, 74px); letter-spacing: -0.035em; }
.hero h1 .accent{ color: var(--accent-light); }
.hero-sub{ margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 480px; font-weight: 500; }
.hero-sub b{ color: var(--text); font-weight: 700; }
.hero-actions{ margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta{ margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-meta .item{ display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.hero-meta .item svg{ width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }

/* tweak-driven toggles */
.no-cars .car{ display: none; }
.no-grid .hero-grid-lines{ display: none; }

/* reveal helpers — hidden state only applies when JS is present (graceful no-JS) */
html.has-js .reveal{ opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
html.has-js .reveal.in{ opacity: 1; transform: none; }
html.has-js .reveal.d1{ transition-delay: .08s; } html.has-js .reveal.d2{ transition-delay: .16s; }
html.has-js .reveal.d3{ transition-delay: .24s; } html.has-js .reveal.d4{ transition-delay: .32s; }
html.has-js .reveal.d5{ transition-delay: .40s; }
@media (prefers-reduced-motion: reduce){ html.has-js .reveal{ opacity:1; transform:none; transition:none; } }

/* ===== Phone mockup (hero) ===== */
.hero-phone-wrap{ position: relative; display: grid; place-items: center; }
.phone{
  position: relative; width: 360px; height: 760px; flex-shrink: 0;
  background: #000; border-radius: 52px; padding: 11px;
  box-shadow: var(--shadow-phone);
}
.phone-screen{ position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--ink); }
.phone-island{ position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 108px; height: 32px; background: #000; border-radius: 18px; z-index: 60; }
.phone-status{ position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 55; display: flex; align-items: center; justify-content: space-between; padding: 17px 28px 0; font-weight: 700; font-size: 14px; }
.phone-status .icons{ display: flex; gap: 6px; align-items: center; }

/* nocturnal map */
.pmap{ position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 80% at 70% 12%, #16202b 0%, transparent 55%),
              radial-gradient(120% 90% at 20% 90%, #0d141b 0%, transparent 60%),
              linear-gradient(160deg, #0c1116 0%, #0a0d11 100%); }
.pmap svg{ position: absolute; inset: -8%; width: 116%; height: 116%; }
.street{ fill: none; stroke: #1b242d; stroke-width: 7; stroke-linecap: round; }
.street.med{ stroke: #202a33; stroke-width: 11; }
.street.big{ stroke: #243744; stroke-width: 15; }
.block{ fill: rgba(255,255,255,0.012); stroke: rgba(255,255,255,0.02); }
.park{ fill: rgba(52,211,153,0.05); }
.route-line{ fill: none; stroke: var(--cyan); stroke-width: 4; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 6px rgba(34,211,238,0.5)); }

/* user pin */
.userpin{ position: absolute; left: 50%; top: 56%; transform: translate(-50%,-50%); z-index: 20; }
.userpin .core{ width: 20px; height: 20px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245,158,11,0.25), 0 0 18px rgba(245,158,11,0.55); position: relative; z-index: 3; }
.userpin .halo{ position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; border-radius: 50%; transform: translate(-50%,-50%); background: rgba(245,158,11,0.18); animation: y-halo 3s ease-out infinite; }
@keyframes y-halo{ 0%{ width:20px;height:20px;opacity:.7 } 100%{ width:130px;height:130px;opacity:0 } }

/* moving cars */
.car{ position: absolute; z-index: 15; color: var(--cyan); will-change: transform; }
.car svg{ width: 27px; height: 43px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 9px rgba(34,211,238,0.45)); }
.car.c-a{ animation: car-a 9s linear infinite; }
.car.c-b{ animation: car-b 11s linear infinite; }
.car.c-c{ animation: car-c 8s linear infinite; }
@keyframes car-a{ 0%{ transform: translate(40px,120px) rotate(8deg);} 50%{ transform: translate(230px,180px) rotate(8deg);} 100%{ transform: translate(40px,120px) rotate(8deg);} }
@keyframes car-b{ 0%{ transform: translate(250px,520px) rotate(-72deg);} 50%{ transform: translate(70px,360px) rotate(-72deg);} 100%{ transform: translate(250px,520px) rotate(-72deg);} }
@keyframes car-c{ 0%{ transform: translate(60px,440px) rotate(20deg);} 50%{ transform: translate(280px,400px) rotate(20deg);} 100%{ transform: translate(60px,440px) rotate(20deg);} }

/* top chip */
.pmap-chip{ position: absolute; top: 62px; left: 16px; right: 16px; z-index: 30; display: flex; gap: 8px; }
.chip{ display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 100px;
  background: rgba(18,23,29,0.78); backdrop-filter: blur(16px); box-shadow: var(--shadow-float), inset 0 0 0 1px var(--line);
  font-size: 12.5px; font-weight: 600; }

/* bottom sheet */
.psheet{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; padding: 16px 20px 26px;
  background: linear-gradient(180deg, rgba(25,32,38,0.97), rgba(15,19,24,0.99)); backdrop-filter: blur(28px);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0; box-shadow: 0 -24px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(246,243,236,0.06); }
.psheet .grab{ width: 38px; height: 5px; border-radius: 3px; background: rgba(246,243,236,0.18); margin: 0 auto 16px; }
.psheet h4{ font-size: 21px; font-weight: 700; }
.psheet .field{ margin-top: 14px; display: flex; align-items: center; gap: 12px; background: var(--surface-3); border-radius: var(--r); padding: 15px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.psheet .field svg{ width: 18px; height: 18px; color: var(--cyan); }
.psheet .field span{ color: var(--faint); font-weight: 600; font-size: 15px; }
.psheet .dest{ margin-top: 10px; }
.psheet .dest svg{ color: var(--amber); }
.psheet .dest span{ color: var(--text); }
.psheet .go{ margin-top: 16px; width: 100%; }
.phone-home{ position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 128px; height: 5px; border-radius: 3px; background: rgba(246,243,236,0.45); z-index: 60; }

/* phone float */
.phone-float{ animation: phone-float 6s ease-in-out infinite; }
@keyframes phone-float{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }

/* ============================================================
   SECTIONS
   ============================================================ */
section{ position: relative; }
.section{ padding: 96px 0; }
.section-head{ max-width: 680px; margin-bottom: 56px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ font-size: clamp(32px, 4vw, 50px); margin-top: 16px; letter-spacing: -0.03em; }
.section-head p{ margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--muted); font-weight: 500; }

/* ===== Cómo funciona ===== */
.steps{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step{ position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-radius: var(--r-lg);
  padding: 30px 28px 32px; box-shadow: var(--shadow-card); overflow: hidden; }
.step::before{ content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent); opacity: .7; }
.step .num{ font-family: var(--ff-mono); font-size: 13px; font-weight: 600; color: var(--cyan); letter-spacing: 1px; }
.step .ic{ position: relative; width: 78px; height: 78px; border-radius: 23px; display: grid; place-items: center; margin: 22px 0 26px;
  --ic-a: #74ebfc; --ic-b: #0c9bbd; --ic-sh: rgba(34,211,238,0.5);
  background: linear-gradient(155deg, var(--ic-a), var(--ic-b));
  box-shadow: 0 18px 32px -8px var(--ic-sh), 0 8px 16px rgba(0,0,0,0.42), inset 0 2px 0 rgba(255,255,255,0.65), inset 0 -10px 20px rgba(0,0,0,0.22);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.step:hover .ic{ transform: translateY(-6px) rotate(-3deg) scale(1.03); }
.step .ic::before{ content:''; position:absolute; left:7%; right:7%; top:5%; height:44%; border-radius: 18px 18px 60% 60% / 16px 16px 34% 34%; background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0)); pointer-events:none; z-index:1; }
.step .ic::after{ content:''; position:absolute; inset:-45% -45% auto auto; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(closest-side, var(--ic-sh), transparent); filter: blur(11px); opacity:.7; z-index:-1; }
.step .ic svg{ position: relative; z-index: 2; width: 44px; height: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.32)); }
.step h3{ font-size: 21px; font-weight: 700; }
.step p{ margin-top: 11px; font-size: 15.5px; line-height: 1.55; color: var(--muted); font-weight: 500; }
.step.amber::before{ background: linear-gradient(90deg, var(--amber), transparent); }
.step.amber .ic{ --ic-a:#fcd16a; --ic-b:#d97706; --ic-sh: rgba(245,158,11,0.5); }
.step.amber .num{ color: var(--amber-light); }
.step.green::before{ background: linear-gradient(90deg, var(--green), transparent); }
.step.green .ic{ --ic-a:#67efbc; --ic-b:#11a06f; --ic-sh: rgba(52,211,153,0.5); }
.step.green .num{ color: var(--green); }

/* ===== Pasajeros (feature split) ===== */
.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-list{ display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.feature{ display: flex; gap: 16px; padding: 20px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s, background .2s; }
.feature:hover{ transform: translateX(4px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-float); }
.feature .ic{ width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-3); color: var(--cyan); }
.feature .ic svg{ width: 23px; height: 23px; }
.feature.red .ic{ color: var(--red); background: rgba(251,114,100,0.1); }
.feature.green .ic{ color: var(--green); background: rgba(52,211,153,0.1); }
.feature.amber .ic{ color: var(--amber-light); background: rgba(245,158,11,0.1); }
.feature h4{ font-size: 17px; font-weight: 700; font-family: var(--ff-body); }
.feature p{ margin-top: 5px; font-size: 14.5px; line-height: 1.5; color: var(--muted); font-weight: 500; }

/* SOS demo card */
.sos-demo{ position: relative; border-radius: var(--r-2xl); padding: 32px; overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2), var(--ink-2)); box-shadow: var(--shadow-card);
  min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; }
.sos-demo .glow{ position: absolute; width: 320px; height: 320px; right: -80px; bottom: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(251,114,100,0.18), transparent); filter: blur(20px); }
.sos-top{ position: relative; display: flex; align-items: center; justify-content: space-between; }
.sos-stage{ position: relative; align-self: center; width: 172px; height: 172px; display: grid; place-items: center; margin: 6px 0; }
.sos-ring{ position: absolute; border-radius: 50%; border: 2px solid rgba(251,114,100,0.55); width: 124px; height: 124px; opacity: 0; animation: sos-ring 2.6s ease-out infinite; }
.sos-ring.r2{ animation-delay: 1.3s; }
@keyframes sos-ring{ 0%{ width: 122px; height: 122px; opacity: .85 } 100%{ width: 210px; height: 210px; opacity: 0 } }
.sos-dash{ position: absolute; width: 152px; height: 152px; border-radius: 50%; border: 2px dashed rgba(251,114,100,0.4); animation: sos-spin 9s linear infinite; }
@keyframes sos-spin{ to{ transform: rotate(360deg); } }
.sos-btn{ position: relative; z-index: 2; width: 128px; height: 128px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: radial-gradient(circle at 50% 30%, #ff9c92 0%, #fb7264 46%, #d63f33 100%); color: #fff; cursor: pointer;
  box-shadow: 0 16px 32px rgba(214,63,51,0.5), 0 0 0 6px rgba(251,114,100,0.1), inset 0 3px 6px rgba(255,255,255,0.55), inset 0 -12px 20px rgba(120,20,12,0.5);
  transition: transform .15s ease; animation: sos-breathe 2.4s ease-in-out infinite; }
.sos-btn:hover{ transform: scale(1.045); }
.sos-btn:active{ transform: scale(.95); }
@keyframes sos-breathe{
  0%,100%{ box-shadow: 0 16px 32px rgba(214,63,51,0.5), 0 0 0 6px rgba(251,114,100,0.1), inset 0 3px 6px rgba(255,255,255,0.55), inset 0 -12px 20px rgba(120,20,12,0.5); }
  50%{ box-shadow: 0 18px 42px rgba(214,63,51,0.7), 0 0 0 13px rgba(251,114,100,0.16), inset 0 3px 6px rgba(255,255,255,0.55), inset 0 -12px 20px rgba(120,20,12,0.5); } }
.sos-ic{ width: 25px; height: 25px; filter: drop-shadow(0 1px 1px rgba(120,20,12,0.5)); }
.sos-word{ font-family: var(--ff-display); font-weight: 800; font-size: 31px; letter-spacing: 1px; line-height: 1; text-shadow: 0 1px 2px rgba(120,20,12,0.45); }
.sos-cap{ position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }
.sos-cap svg{ width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.sos-demo .verified{ position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r);
  background: rgba(18,23,29,0.7); box-shadow: inset 0 0 0 1px var(--line); }
.sos-demo .verified .av{ width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display);
  font-weight: 700; color: #04222a; background: linear-gradient(135deg, var(--cyan-light), var(--cyan-dark)); }
.sos-demo .verified .nm{ font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 7px; }
.sos-demo .verified .nm svg{ width: 16px; height: 16px; color: var(--cyan); }
.sos-demo .verified .pl{ font-size: 12.5px; color: var(--muted); font-family: var(--ff-mono); margin-top: 2px; }
.sos-demo .verified .rate{ margin-left: auto; font-weight: 700; color: var(--amber-light); display:flex; align-items:center; gap:4px; }

/* ===== Choferes ===== */
.drivers{ background: linear-gradient(180deg, var(--ink), #0c1218 40%, var(--ink)); }
.driver-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.zero-card{ position: relative; border-radius: var(--r-2xl); padding: 54px 40px; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(165deg, #1f1608, #12171d 72%); box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(245,158,11,0.18); }
.zero-card .glow{ position: absolute; width: 360px; height: 360px; left: 50%; top: -40px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245,158,11,0.24), transparent); filter: blur(12px); animation: zero-glow 4s ease-in-out infinite; }
@keyframes zero-glow{ 0%,100%{ opacity: .65 } 50%{ opacity: 1 } }
.zero-ring{ position: absolute; top: 104px; left: 50%; width: 120px; height: 120px; border-radius: 50%; transform: translate(-50%,-50%);
  border: 2px solid rgba(245,158,11,0.45); animation: zero-ring 2.8s ease-out infinite; pointer-events: none; }
@keyframes zero-ring{ 0%{ width: 70px; height: 70px; opacity: .7 } 100%{ width: 300px; height: 300px; opacity: 0 } }
.zero-num{ position: relative; font-family: var(--ff-display); font-weight: 800; font-size: clamp(110px, 14vw, 172px); line-height: .82; letter-spacing: -6px;
  background: linear-gradient(110deg, var(--amber-dark) 0%, var(--amber-light) 34%, #fff6e0 50%, var(--amber-light) 66%, var(--amber-dark) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: zero-shine 3.6s linear infinite; filter: drop-shadow(0 10px 26px rgba(245,158,11,0.35)); }
.zero-num .pct{ font-size: .6em; vertical-align: 10%; }
@keyframes zero-shine{ 0%{ background-position: 180% 0 } 100%{ background-position: -80% 0 } }
.zero-label{ position: relative; margin-top: 10px; font-size: 20px; font-weight: 700; }
.zero-sub{ position: relative; margin-top: 14px; font-size: 15.5px; color: var(--muted); font-weight: 500; line-height: 1.55; max-width: 360px; }
.driver-points{ display: flex; flex-direction: column; gap: 26px; }
.dpoint{ display: flex; gap: 18px; }
.dpoint .ic{ width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(245,158,11,0.1); color: var(--amber-light); box-shadow: inset 0 0 0 1px rgba(245,158,11,0.18); }
.dpoint .ic svg{ width: 25px; height: 25px; }
.dpoint h4{ font-size: 18px; font-weight: 700; font-family: var(--ff-body); }
.dpoint p{ margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); font-weight: 500; }

/* ===== Cobertura (apenas empezamos) ===== */
.coverage{ position: relative; overflow: hidden; }
.coverage-card2{ position: relative; border-radius: var(--r-2xl); overflow: hidden; padding: 64px 48px 60px; text-align: center;
  background: radial-gradient(120% 110% at 50% 0%, #15212c 0%, var(--ink-2) 62%); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.cov-grain{ position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(60% 50% at 50% 0%, rgba(34,211,238,0.14), transparent 70%); }
.cov-radar{ position: relative; z-index: 2; width: 210px; height: 210px; margin: 0 auto 8px; display: grid; place-items: center; }
.cr-ring{ position: absolute; border-radius: 50%; border: 1.5px solid rgba(34,211,238,0.5); width: 64px; height: 64px; opacity: 0;
  animation: cr-expand 4s ease-out infinite; }
.cr-ring:nth-child(2){ animation-delay: 1s; } .cr-ring:nth-child(3){ animation-delay: 2s; } .cr-ring:nth-child(4){ animation-delay: 3s; }
@keyframes cr-expand{ 0%{ width: 64px; height: 64px; opacity: .7 } 100%{ width: 210px; height: 210px; opacity: 0 } }
.cr-core{ position: relative; z-index: 3; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(25,32,38,0.95), rgba(12,17,22,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 0 0 1px var(--line-strong), 0 12px 34px rgba(0,0,0,0.5), 0 0 46px rgba(34,211,238,0.22);
  animation: cr-bob 5s ease-in-out infinite; }
.cr-core svg{ width: 44px; height: auto; filter: drop-shadow(0 0 8px rgba(34,211,238,0.4)); }
@keyframes cr-bob{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-7px) } }
.cov-cta{ position: relative; z-index: 2; margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Descarga ===== */
.download{ text-align: center; }
.store-row{ display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.store-btn{ position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 15px 26px; border-radius: var(--r);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .2s, box-shadow .2s; }
.store-btn:hover{ transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(246,243,236,0.28), var(--shadow-float); }
.store-btn svg{ width: 28px; height: 28px; }
.store-btn .t{ text-align: left; }
.store-btn .t .s{ font-size: 11px; color: var(--muted); font-weight: 600; }
.store-btn .t .b{ font-size: 17px; font-weight: 700; font-family: var(--ff-display); }
.store-btn .soon{ position: absolute; top: -9px; right: 12px; }

/* ===== Footer ===== */
.footer{ position: relative; padding: 72px 0 40px; background: var(--ink-2); box-shadow: inset 0 1px 0 var(--line); }
.footer-top{ display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; box-shadow: inset 0 -1px 0 var(--line); }
.footer-brand .logo{ width: 130px; }
.footer-brand p{ margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 280px; font-weight: 500; }
.fcol h5{ font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--faint); margin-bottom: 16px; font-weight: 700; font-family: var(--ff-body); }
.fcol a{ display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 11px; font-weight: 500; transition: color .15s; }
.fcol a:hover{ color: var(--text); }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; flex-wrap: wrap; }
.footer-insof{ display: flex; align-items: center; gap: 14px; }
.footer-insof img{ height: 40px; width: auto; opacity: .92; }
.footer-insof .txt{ font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.footer-insof .txt b{ color: var(--text); font-weight: 700; }
.footer-copy{ font-size: 13px; color: var(--faint); font-weight: 500; }
.footer-nahuatl{ font-size: 13px; color: var(--muted); font-weight: 500; }
.footer-nahuatl b{ color: var(--cyan-light); font-weight: 700; }

/* ============================================================
   PREMIUM POLISH (Silicon Valley)
   ============================================================ */
/* scroll progress bar */
.scroll-progress{ position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 250; pointer-events: none; }
.scroll-progress span{ display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--amber)); box-shadow: 0 0 12px rgba(34,211,238,0.55); will-change: transform; }

/* floating nav pill when scrolled */
.nav-inner{ transition: max-width .45s cubic-bezier(.3,.9,.3,1), padding .45s cubic-bezier(.3,.9,.3,1), background .35s, box-shadow .35s, border-radius .45s, margin-top .45s; }
.nav.scrolled{ background: transparent; box-shadow: none; backdrop-filter: none; }
.nav.scrolled .nav-inner{ max-width: calc(var(--maxw) - 120px); margin-top: 12px; padding: 11px 14px 11px 22px; border-radius: 100px;
  background: rgba(12,16,21,0.74); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 12px 34px rgba(0,0,0,0.5), inset 0 0 0 1px var(--line-strong); }

/* animated nav underline + active link */
.nav-links a{ position: relative; }
.nav-links a::after{ content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s cubic-bezier(.3,.9,.3,1); }
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-links a.active{ color: var(--text); }
.nav-links a.active::after{ transform: scaleX(1); background: linear-gradient(90deg, var(--cyan), var(--amber)); }

/* spotlight cards (cursor-tracking glow) */
.step, .feature, .store-btn{ --mx: 50%; --my: 0%; }
.step::after, .feature::after, .store-btn::after{ content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255,255,255,0.08), transparent 62%); opacity: 0; transition: opacity .3s; }
.step:hover::after, .feature:hover::after, .store-btn:hover::after{ opacity: 1; }
.step > *, .feature > *, .store-btn > *{ position: relative; z-index: 2; }
.step{ transition: transform .32s cubic-bezier(.3,.9,.3,1), box-shadow .32s; }
.step:hover{ transform: translateY(-7px); box-shadow: var(--shadow-card), 0 28px 54px -18px rgba(0,0,0,0.62); }

/* button shine sweep */
.btn--amber, .btn--cyan{ position: relative; overflow: hidden; }
.btn--amber::after, .btn--cyan::after{ content: ''; position: absolute; top: -50%; bottom: -50%; width: 52px; left: -90px; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); pointer-events: none; }
.btn--amber:hover::after, .btn--cyan:hover::after{ animation: btn-shine .7s ease forwards; }
@keyframes btn-shine{ from{ left: -90px } to{ left: 130% } }

/* focus-visible polish */
a:focus-visible, button:focus-visible, .btn:focus-visible{ outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* hero phone parallax tilt */
.hero-phone-wrap{ perspective: 1100px; }
.phone-tilt{ transition: transform .35s cubic-bezier(.3,.9,.3,1); transform-style: preserve-3d; will-change: transform; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px){
  .hero-inner{ grid-template-columns: 1fr; gap: 48px; }
  .hero-phone-wrap{ order: -1; }
  .split, .driver-grid, .coverage-card{ grid-template-columns: 1fr; gap: 40px; }
  .steps{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .nav-links{ display: none; }
}
@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  .hero{ padding: 130px 0 60px; }
  .section{ padding: 70px 0; }
  .phone{ width: 300px; height: 634px; }
  .coverage-card{ padding: 32px 24px; }
  .footer-top{ grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .hero-actions .btn{ flex: 1; }
}
