/* =========================================================
   CEA MOVILIDAD SEGURA — Hoja de estilos principal
   Paleta: amarillo vial #FFCC00 · azul noche #0B1120 · gris #F5F7FA
   ========================================================= */
:root {
  --yellow: #FFCC00;
  --yellow-2: #FFB800;
  --ink: #0B1120;
  --ink-2: #111A2E;
  --ink-3: #1B2640;
  --slate: #64748B;
  --line: rgba(255, 255, 255, .1);
  --paper: #F5F7FA;
  --white: #fff;
  --green: #22C55E;
  --radius: 22px;
  --shadow: 0 30px 60px -20px rgba(2, 6, 23, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-body); color: #1E293B; background: var(--paper);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.display { font-family: var(--font-display); font-weight: 900; font-style: italic; letter-spacing: -.02em; line-height: 1.02; text-transform: uppercase; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: #92400E; background: #FEF3C7;
  padding: .45rem .9rem; border-radius: 999px;
}
.eyebrow--dark { background: rgba(255, 204, 0, .14); color: var(--yellow); }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--dark { background: var(--ink); color: #E2E8F0; }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin: 1rem 0 .8rem; color: var(--ink); }
.section--dark .section-head h2 { color: #fff; }
.section-head p { color: var(--slate); font-size: 1.1rem; margin: 0; }
.section--dark .section-head p { color: #94A3B8; }
.hl { color: var(--yellow); }
.hl-brush { position: relative; z-index: 0; white-space: nowrap; }
.hl-brush::before {
  content: ""; position: absolute; inset: 12% -6% 6% -4%; background: var(--yellow); z-index: -1;
  transform: skew(-12deg) rotate(-1.5deg); border-radius: 4px;
  clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .3s;
}
.is-visible .hl-brush::before, .hl-brush.is-visible::before { clip-path: inset(0 0 0 0); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: 14px; background: var(--bg); color: var(--fg);
  font-weight: 800; letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(255, 204, 0, .55);
}
.btn::after { /* brillo que barre el botón */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 18px 40px -12px rgba(255, 204, 0, .7); }
.btn--wa { --bg: var(--green); --fg: #fff; box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .6); }
.btn--ghost { --bg: rgba(255, 255, 255, .08); --fg: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); box-shadow: none; }
.btn--dark { --bg: var(--ink); --fg: #fff; box-shadow: 0 10px 30px -10px rgba(2, 6, 23, .5); }
.btn--sm { padding: .7rem 1.1rem; font-size: .92rem; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999; background: var(--ink); display: grid; place-items: center;
  transition: opacity .4s ease, visibility .4s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; display: none !important; }
.preloader__inner { width: min(340px, 75vw); text-align: center; }
.preloader__logo { width: 100%; animation: pulse 1.6s ease-in-out infinite; }
.preloader__road { margin-top: 1.6rem; height: 6px; background: #1E293B; border-radius: 99px; overflow: hidden; position: relative; }
.preloader__road::before {
  content: ""; position: absolute; inset: 0; width: 200%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 44px);
  animation: road 0.6s linear infinite;
}
@keyframes road { to { transform: translateX(-44px); } }
@keyframes pulse { 50% { opacity: .6; transform: scale(.98); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s ease, backdrop-filter .4s ease, transform .4s var(--ease);
}
.header.is-scrolled { background: rgba(11, 17, 32, .82); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .6); }
.header.is-hidden { transform: translateY(-100%); }
.header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__logo { display: inline-flex; align-items: center; padding: .35rem .75rem; border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.header__logo:hover { transform: scale(1.03); }
.header__logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 2rem; }
.nav a { color: #E2E8F0; font-weight: 600; font-size: .95rem; position: relative; padding: .3rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--yellow); }
.header__actions { display: flex; align-items: center; gap: .8rem; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .08); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Barra de progreso tipo carretera con carrito */
.road-progress { position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .15) 0 14px, transparent 14px 24px); }
.road-progress__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--yellow); box-shadow: 0 0 12px rgba(255, 204, 0, .7); }
.road-progress__car { position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); font-size: 15px; color: var(--yellow); filter: drop-shadow(0 0 6px rgba(255, 204, 0, .8)); }

/* Menú móvil */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--ink); padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  display: flex; flex-direction: column; gap: .4rem; clip-path: circle(0 at calc(100% - 44px) 38px);
  transition: clip-path .7s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 2rem; color: #fff; padding: .4rem 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: .5s var(--ease); }
.mobile-menu.is-open a:not(.btn) { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: .05s; } .mobile-menu.is-open a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: .15s; } .mobile-menu.is-open a:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: .25s; }
.mobile-menu .btn { margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 32, .94) 0%, rgba(11, 17, 32, .72) 42%, rgba(11, 17, 32, .15) 100%),
    linear-gradient(0deg, rgba(11, 17, 32, 1) 0%, rgba(11, 17, 32, 0) 30%);
}
.hero__grain { position: absolute; inset: -50%; opacity: .07; pointer-events: none; animation: grain 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0%,100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 4%); } 40% { transform: translate(4%, -3%); } 60% { transform: translate(-3%, -5%); } 80% { transform: translate(5%, 3%); } }
.hero__content { position: relative; z-index: 2; padding: calc(var(--header-h) + 3rem) 0 6rem; display: grid; grid-template-columns: 1.35fr .9fr; gap: 3rem; align-items: center; }
.hero__rating { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); font-size: .9rem; }
.hero__rating .g { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.hero__rating .stars { color: var(--yellow); letter-spacing: 2px; font-size: .8rem; }
.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); margin: 1.4rem 0 1.2rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.rotator { color: var(--yellow); display: inline-grid !important; }
.rotator__word { grid-area: 1 / 1; transition: transform .7s var(--ease), opacity .5s; }
.rotator__word:not(.is-active) { transform: translateY(80%) rotateX(-70deg); opacity: 0; }
.rotator__word.is-leaving { transform: translateY(-80%) rotateX(70deg); opacity: 0; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #CBD5E1; max-width: 560px; margin: 0 0 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: .9rem; transition: .3s var(--ease); }
.pill b { color: var(--ink); background: var(--yellow); padding: .1rem .45rem; border-radius: 6px; font-weight: 900; }
.pill:hover { background: rgba(255, 204, 0, .15); border-color: var(--yellow); transform: translateY(-3px); }
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready .reveal-up { opacity: 1; transform: none; }
.is-ready .reveal-up.d1 { transition-delay: .35s; } .is-ready .reveal-up.d2 { transition-delay: .5s; }
.is-ready .reveal-up.d3 { transition-delay: .65s; } .is-ready .reveal-up.d4 { transition-delay: .8s; }

/* Tarjeta "tablero" del hero */
.dash { position: relative; padding: 1.6rem; border-radius: 28px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.dash__status { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .92rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: ping 1.8s infinite; }
.dot.is-closed { background: #F97316; box-shadow: 0 0 0 0 rgba(249, 115, 22, .7); }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.gauge { position: relative; margin: 1.2rem auto .4rem; width: 100%; max-width: 280px; }
.gauge svg { width: 100%; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 14; stroke-linecap: round; }
.gauge__value { fill: none; stroke: url(#gaugeGrad); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 2s var(--ease); }
.gauge__needle { transform-origin: 150px 150px; transform: rotate(-90deg); transition: transform 2s var(--ease); }
.gauge__label { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge__label strong { display: block; font-family: var(--font-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: #fff; }
.gauge__label span { font-size: .8rem; color: #94A3B8; letter-spacing: .12em; text-transform: uppercase; }
.dash__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.dash__list li { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: .92rem; }
.dash__list i { color: var(--yellow); width: 18px; text-align: center; }

.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: .4rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #94A3B8; }
.hero__scroll span { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--yellow); border-radius: 4px; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }
.video-toggle { position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(8px); transition: .3s; }
.video-toggle:hover { background: var(--yellow); color: var(--ink); }

/* ---------- Marquesina ---------- */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; position: relative; transform: rotate(-1.2deg); margin: -1.2rem -2% 0; width: 104%; z-index: 4; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }
.marquee::before, .marquee::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, var(--yellow) 8px 16px); }
.marquee::before { top: 0; } .marquee::after { bottom: 0; background-position: 8px 0; }
.marquee__track { display: flex; width: max-content; padding: 1.3rem 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 1.2rem; padding-right: 1.2rem; font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.5rem); white-space: nowrap; }
.marquee__item i { font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { padding: 1.8rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1px solid #E2E8F0; text-align: center; position: relative; overflow: hidden; }
.stat strong { display: block; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--ink); line-height: 1; }
.stat strong small { font-size: .5em; color: var(--yellow-2); }
.stat span { color: var(--slate); font-weight: 600; font-size: .95rem; }
.stat::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.stat.is-visible::after { transform: scaleX(1); }

/* ---------- Revelado al hacer scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Método sin miedo ---------- */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.method__img { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.4; }
.method__img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.method__badge { position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem; display: flex; gap: .9rem; align-items: center; padding: 1rem 1.2rem; border-radius: 18px; background: rgba(11, 17, 32, .78); backdrop-filter: blur(12px); color: #fff; }
.method__badge i { font-size: 1.6rem; color: var(--yellow); }
.method__badge p { margin: 0; font-size: .92rem; line-height: 1.4; }
.method h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); color: var(--ink); margin: 1rem 0; }
.method > div > p { color: var(--slate); font-size: 1.08rem; }
.features { display: grid; gap: 1rem; margin-top: 2rem; }
.feature { position: relative; display: flex; gap: 1.1rem; padding: 1.3rem; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.feature:hover { transform: translateX(8px); box-shadow: 0 20px 40px -24px rgba(2, 6, 23, .35); }
.feature__icon { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--yellow); color: var(--ink); }
.feature:nth-child(2) .feature__icon { background: var(--ink); color: var(--yellow); }
.feature:nth-child(3) .feature__icon { background: var(--green); color: #fff; }
.feature h3 { margin: 0 0 .2rem; font-size: 1.08rem; color: var(--ink); }
.feature p { margin: 0; color: var(--slate); font-size: .95rem; }

/* Efecto "spotlight" que sigue el puntero */
.spotlight { --x: 50%; --y: 50%; }
.spotlight::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(400px circle at var(--x) var(--y), rgba(255, 204, 0, .16), transparent 45%); }
.spotlight:hover::before { opacity: 1; }

/* ---------- Doble mando con puntos interactivos ---------- */
.hotspots { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid var(--line); }
.hotspots img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hotspot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 0 0 0 rgba(255, 204, 0, .7); animation: hot 2s infinite; z-index: 2; }
.hotspot:hover, .hotspot[aria-expanded="true"] { animation: none; transform: translate(-50%, -50%) scale(1.15); background: #fff; }
@keyframes hot { 0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, .7); } 70% { box-shadow: 0 0 0 18px rgba(255, 204, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); } }
.hotspot__tip { position: absolute; z-index: 3; width: min(270px, 70vw); padding: 1rem 1.1rem; border-radius: 16px; background: rgba(11, 17, 32, .92); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255, 204, 0, .4); font-size: .9rem; line-height: 1.45; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .35s var(--ease); }
.hotspot__tip.is-open { opacity: 1; transform: none; pointer-events: auto; }
.hotspot__tip strong { display: block; color: var(--yellow); margin-bottom: .2rem; }
.hotspots-note { text-align: center; color: #94A3B8; font-size: .9rem; margin-top: 1.2rem; }

/* ---------- Licencias (pestañas) ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.tab { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.3rem; border-radius: 14px; background: #fff; border: 2px solid #E2E8F0; font-weight: 700; color: #334155; transition: .3s var(--ease); }
.tab b { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.tab:hover { border-color: var(--yellow); transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 14px 30px -14px rgba(2, 6, 23, .6); }
.tab[aria-selected="true"] b { color: var(--yellow); }
.license { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.license[hidden] { display: none; }
.license.is-entering .license__card, .license.is-entering .license__info > * { animation: enter .7s var(--ease) both; }
.license.is-entering .license__info > *:nth-child(2) { animation-delay: .06s; } .license.is-entering .license__info > *:nth-child(3) { animation-delay: .12s; }
.license.is-entering .license__info > *:nth-child(4) { animation-delay: .18s; } .license.is-entering .license__info > *:nth-child(5) { animation-delay: .24s; }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }
.license__card { position: relative; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform .2s ease-out; }
.license__card img { width: 100%; aspect-ratio: 849/719; object-fit: cover; }
.license__code { position: absolute; top: 1rem; left: 1rem; font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: 2.6rem; line-height: 1; color: #fff; background: #E11D48; padding: .4rem .9rem; border-radius: 14px; transform: translateZ(40px); box-shadow: 0 10px 20px -8px rgba(225, 29, 72, .6); }
.license__info h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: .8rem 0 .4rem; color: var(--ink); }
.license__info > p { color: var(--slate); font-size: 1.05rem; margin: 0 0 1.4rem; }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 500; }
.checks i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #DCFCE7; color: #15803D; font-size: .7rem; margin-top: .15rem; }
.license__tag { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #1D4ED8; background: #DBEAFE; padding: .35rem .8rem; border-radius: 999px; }
.license__pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; margin: 1.4rem 0 1.6rem; }
.price-pill { background: #F8FAFC; border: 1.5px solid #E2E8F0; border-radius: 16px; padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; transition: transform .25s var(--ease), border-color .25s; }
.price-pill:hover { transform: translateY(-2px); border-color: var(--yellow); }
.price-pill.is-featured { background: #FEFCE8; border-color: #FACC15; box-shadow: 0 10px 25px -10px rgba(250, 204, 21, .35); }
.price-pill small { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 800; }
.price-pill strong { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--ink); line-height: 1.1; }
.price-pill span { font-size: .8rem; color: #64748B; }
.price-pill__tag { color: #16A34A !important; font-weight: 800; font-size: .78rem; }

/* ---------- Ruta a tu licencia ---------- */
.route { position: relative; }
.route__road { position: absolute; left: 0; right: 0; top: 46px; height: 10px; }
.route__road svg { width: 100%; height: 100%; overflow: visible; }
.route__base { stroke: #1E293B; stroke-width: 10; stroke-linecap: round; }
.route__dash { stroke: rgba(255, 255, 255, .25); stroke-width: 2; stroke-dasharray: 14 12; }
.route__fill { stroke: var(--yellow); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 204, 0, .6)); }
.route__car { position: absolute; top: 51px; left: 0; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 0 0 6px rgba(255, 204, 0, .2), 0 10px 20px -6px rgba(255, 204, 0, .6); z-index: 2; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.step { padding-top: 96px; text-align: center; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--ink-3); color: #64748B; border: 3px solid #1E293B; transition: .5s var(--ease); z-index: 1; }
.step.is-on::before { background: var(--ink); color: var(--yellow); border-color: var(--yellow); }
.step i { font-size: 1.6rem; color: #475569; transition: color .5s; }
.step.is-on i { color: var(--yellow); }
.step h3 { color: #fff; margin: .7rem 0 .3rem; font-size: 1.08rem; }
.step p { margin: 0; color: #94A3B8; font-size: .92rem; }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sim__img { position: relative; }
.sim__img img { border-radius: 28px; box-shadow: var(--shadow); }
.sim__img::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; border-radius: 28px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); z-index: -1; }
.sim__chip { position: absolute; top: 1.2rem; right: -1rem; padding: .8rem 1.1rem; border-radius: 16px; background: #fff; box-shadow: var(--shadow); font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: .6rem; animation: float 5s ease-in-out infinite; }
.sim__chip i { color: var(--yellow-2); }
@keyframes float { 50% { transform: translateY(-12px); } }
.sim h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); color: var(--ink); margin: 1rem 0; }
.sim p { color: var(--slate); font-size: 1.06rem; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0 2rem; }
.mini { padding: 1.1rem; border-radius: 16px; background: #fff; border: 1px solid #E2E8F0; }
.mini i { color: var(--yellow-2); font-size: 1.3rem; }
.mini h4 { margin: .5rem 0 .2rem; color: var(--ink); }
.mini p { margin: 0; font-size: .9rem; }

/* ---------- Planificador ---------- */
.planner { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.planner__form { padding: clamp(1.6rem, 4vw, 3rem); }
.planner__progress { height: 8px; border-radius: 99px; background: #E2E8F0; overflow: hidden; margin-bottom: 2rem; }
.planner__progress span { display: block; height: 100%; width: 25%; background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, var(--yellow-2) 18px 30px); transition: width .6s var(--ease); }
.pstep { border: 0; padding: 0; margin: 0; }
.pstep[hidden] { display: none; }
.pstep.is-entering { animation: enter .6s var(--ease); }
.pstep legend { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--ink); margin-bottom: .3rem; line-height: 1.1; }
.pstep .hint { color: var(--slate); margin: 0 0 1.4rem; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.1rem; border-radius: 16px; border: 2px solid #E2E8F0; cursor: pointer; transition: .25s var(--ease); background: #F8FAFC; }
.option label i { font-size: 1.5rem; color: var(--ink); }
.option label strong { color: var(--ink); }
.option label small { color: var(--slate); line-height: 1.35; }
.option label:hover { border-color: var(--yellow); transform: translateY(-3px); }
.option input:checked + label { border-color: var(--ink); background: var(--ink); box-shadow: 0 14px 30px -14px rgba(2, 6, 23, .6); }
.option input:checked + label i, .option input:checked + label strong { color: var(--yellow); }
.option input:checked + label small { color: #CBD5E1; }
.option input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.planner__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.planner__summary { background: var(--ink); color: #E2E8F0; padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.planner__summary::before { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 204, 0, .35), transparent 70%); }
.planner__summary h3 { font-family: var(--font-display); font-style: italic; text-transform: uppercase; color: #fff; font-size: 1.5rem; margin: 0 0 1.4rem; }
.summary { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: .8rem; }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-size: .95rem; }
.summary li span { color: #94A3B8; }
.summary li strong { color: #fff; text-align: right; transition: color .3s; }
.summary li strong.is-empty { color: #475569; font-weight: 500; }
.summary li strong.flash { animation: flash .6s; }
@keyframes flash { 0% { color: var(--yellow); transform: scale(1.06); } }
.planner__note { font-size: .82rem; color: #94A3B8; margin: 1.2rem 0 .8rem; }
.planner__price-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 1.1rem 1.2rem; margin: 1.2rem 0; }
.planner__total-wrap { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.planner__total-label { font-size: .82rem; color: #94A3B8; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.planner__total-val { font-family: var(--font-display); font-size: 1.8rem; font-style: italic; color: var(--yellow); line-height: 1; }
.planner__breakdown { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .85rem; }
.planner__breakdown li { display: flex; justify-content: space-between; gap: .6rem; }
.planner__breakdown li span { color: #94A3B8; }
.planner__breakdown li strong { color: #F1F5F9; }
.planner__savings-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 100px; background: rgba(34, 197, 94, .18); color: #4ADE80; font-size: .78rem; font-weight: 800; margin-top: .7rem; width: 100%; justify-content: center; }

/* ---------- Zona de seguridad vial ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.5rem; scrollbar-width: none; cursor: grab; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.tip-card { flex: 0 0 clamp(240px, 28vw, 320px); scroll-snap-align: start; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -24px rgba(2, 6, 23, .45); transition: transform .4s var(--ease); position: relative; }
.tip-card:hover { transform: translateY(-8px) rotate(-.6deg); }
.tip-card img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; object-position: top; pointer-events: none; }
.tip-card span { position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(11, 17, 32, .8); color: var(--yellow); display: grid; place-items: center; opacity: 0; transition: .3s; }
.tip-card:hover span { opacity: 1; }
.carousel__ctrl { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .4rem; }
.carousel__ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); color: var(--ink); transition: .3s; }
.carousel__ctrl button:hover { background: var(--ink); color: var(--yellow); }

.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.panel { border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border: 1px solid #E2E8F0; position: relative; overflow: hidden; }
.panel--dark { background: var(--ink); color: #E2E8F0; border-color: transparent; }
.panel h3 { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-size: 1.5rem; margin: 0 0 .3rem; color: var(--ink); }
.panel--dark h3 { color: #fff; }
.panel > p { margin: 0 0 1.4rem; color: var(--slate); }
.panel--dark > p { color: #94A3B8; }

/* Checklist */
.checklist__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), #E2E8F0 0); transition: --p .6s; position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist label { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: 14px; background: #F8FAFC; border: 1px solid #E2E8F0; cursor: pointer; transition: .25s; }
.checklist input { appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #CBD5E1; display: grid; place-items: center; flex: none; transition: .25s; cursor: pointer; }
.checklist input::after { content: "\f00c"; font: 900 .75rem "Font Awesome 6 Free"; color: var(--ink); transform: scale(0); transition: transform .25s var(--ease); }
.checklist input:checked { background: var(--yellow); border-color: var(--yellow); }
.checklist input:checked::after { transform: scale(1); }
.checklist label:has(input:checked) { background: #FFFBEB; border-color: #FDE68A; }
.checklist label:has(input:checked) span { text-decoration: line-through; text-decoration-color: rgba(15, 23, 42, .35); }
.checklist small { display: block; color: var(--slate); }
.checklist__done { margin-top: 1rem; padding: .9rem 1rem; border-radius: 14px; background: #DCFCE7; color: #166534; font-weight: 700; display: none; }
.checklist__done.is-shown { display: block; animation: enter .5s var(--ease); }

/* Quiz */
.quiz__meta { display: flex; justify-content: space-between; font-size: .85rem; color: #94A3B8; margin-bottom: .8rem; }
.quiz__bar { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; margin-bottom: 1.4rem; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .5s var(--ease); }
.quiz__q { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 1.1rem; min-height: 3.2em; }
.quiz__answers { display: grid; gap: .6rem; }
.quiz__answers button { text-align: left; padding: .95rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #E2E8F0; font-weight: 600; transition: .25s; display: flex; gap: .8rem; align-items: center; }
.quiz__answers button:hover:not(:disabled) { border-color: var(--yellow); background: rgba(255, 204, 0, .08); }
.quiz__answers button b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; font-size: .85rem; }
.quiz__answers button.is-right { border-color: var(--green); background: rgba(34, 197, 94, .15); }
.quiz__answers button.is-right b { background: var(--green); color: #fff; }
.quiz__answers button.is-wrong { border-color: #EF4444; background: rgba(239, 68, 68, .14); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz__feedback { margin-top: 1rem; font-size: .92rem; color: #CBD5E1; min-height: 1.5em; }
.quiz__result { text-align: center; padding: 1rem 0; }
.quiz__result strong { display: block; font-family: var(--font-display); font-style: italic; font-size: 3.6rem; color: var(--yellow); line-height: 1; }

/* ---------- Empresas PESV ---------- */
.pesv { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pesv__img { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.pesv__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.2s var(--ease); }
.pesv__img:hover img { transform: scale(1.05); }
.pesv__img figcaption { position: absolute; left: 1rem; top: 1rem; padding: .5rem .9rem; border-radius: 10px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .85rem; }
.pesv h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: #fff; margin: 1rem 0; }
.pesv p { color: #94A3B8; font-size: 1.05rem; }
.pesv .checks li { color: #E2E8F0; }
.pesv .checks i { background: rgba(255, 204, 0, .15); color: var(--yellow); }

/* ---------- Opiniones Google ---------- */
.reviews { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.reviews__score { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(4rem, 9vw, 6rem); line-height: .9; color: var(--ink); }
.reviews__stars { color: var(--yellow-2); font-size: 1.4rem; letter-spacing: 3px; }
.reviews h3 { margin: 0 0 .3rem; font-size: 1.4rem; color: var(--ink); }
.reviews p { margin: 0; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: .9rem; }
.faq__item { border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; overflow: hidden; transition: box-shadow .3s; }
.faq__item.is-open { box-shadow: 0 20px 40px -24px rgba(2, 6, 23, .35); border-color: #FDE68A; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; font-weight: 700; color: var(--ink); text-align: left; font-size: 1.05rem; }
.faq__q i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #F1F5F9; transition: transform .4s var(--ease), background .3s; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--yellow); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--slate); }

/* ---------- Ubicación ---------- */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; }
.contact-cards { display: grid; gap: 1rem; align-content: start; }
.ccard { display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; transition: .3s var(--ease); }
a.ccard:hover { border-color: var(--yellow); transform: translateY(-3px); }
.ccard i { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-size: 1.1rem; }
.ccard h4 { margin: 0; color: var(--ink); }
.ccard p { margin: .1rem 0 0; color: var(--slate); font-size: .95rem; }
.map { border-radius: 26px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow); background: #E2E8F0; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: #070B16; color: #94A3B8; padding: 4.5rem 0 2rem; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--yellow) 0 30px, transparent 30px 50px); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a:hover { color: var(--yellow); }
.socials { display: flex; gap: .7rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #111A2E; color: #fff; transition: .3s; }
.socials a:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px); }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1E293B; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* ---------- Flotantes ---------- */
.wa-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 40; width: 62px; height: 62px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 15px 30px -10px rgba(34, 197, 94, .7); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ring 2.2s infinite; }
@keyframes ring { to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-bubble { position: fixed; right: 5.6rem; bottom: 1.9rem; z-index: 40; max-width: 230px; padding: .8rem 1rem; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; opacity: 0; transform: translateY(10px) scale(.95); transform-origin: bottom right; pointer-events: none; transition: .4s var(--ease); }
.wa-bubble.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-bubble button { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .7rem; }
.to-top { position: fixed; left: 1.3rem; bottom: 1.3rem; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .4s var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(7, 11, 22, .92); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 2rem; opacity: 0; visibility: hidden; transition: .35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 18px; transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; }
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1.2rem; top: 50%; } .lightbox .lb-next { right: 1.2rem; top: 50%; }

/* Confeti */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__actions .btn--wa { display: none; }
  .burger { display: block; }
  .hero__content { grid-template-columns: 1fr; }
  .dash { max-width: 520px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .method, .license, .sim, .pesv, .planner, .safety-grid, .location { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .route__road, .route__car { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { text-align: left; padding: 0 0 2rem 4.5rem; }
  .step::before { left: 0; top: 0; transform: none; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 3px; background: #1E293B; }
  .step.is-on:not(:last-child)::after { background: var(--yellow); }
  .step i { display: none; }
  .step h3 { margin-top: .4rem; }
  .reviews { grid-template-columns: 1fr; text-align: center; }
  .sim__chip { right: .8rem; }
  .sim__img { order: -1; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 38px; }
  .hero__ctas .btn { width: 100%; }
  .mini-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hotspot { width: 28px; height: 28px; font-size: .8rem; }
  .wa-bubble { display: none; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .reveal-up, .hero__title .line > span { opacity: 1 !important; transform: none !important; }
}
