/* AvantRENT · web comercial. Fuentes propias, sin recursos externos; el JavaScript está en js/. */

@font-face {
  font-family: "Outfit";
  src: url("fuentes/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fuentes/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --papel: #F7FCEB;
  --papel-2: #EEF8D6;
  --blanco: #FFFFFF;
  --tinta: #1F2328;
  --tinta-2: #2A3036;
  --gris: #4F5647;
  --gris-claro: #B9C2AE;
  --linea: #DCEBBE;
  --linea-2: #CFE3A2;
  --lima: #8DC814;
  --lima-claro: #A6DB2A;
  --lima-palido: #C8EC6E;
  --verde: #4DB01E;
  --verde-texto: #2E6B0C;
  --azul: #0A5FB8;
  --azul-medio: #0B7FD6;
  --cielo: #14A9E6;

  --titulos: "Outfit", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 30px;
  --r-xl: clamp(28px, 4vw, 52px);
  --sombra-s: 0 1px 2px rgba(31, 35, 40, .05), 0 3px 10px -2px rgba(31, 35, 40, .07);
  --sombra-m: 0 2px 4px rgba(31, 35, 40, .04), 0 16px 36px -12px rgba(31, 35, 40, .18);
  --sombra-l: 0 3px 8px rgba(31, 35, 40, .05), 0 34px 70px -24px rgba(31, 35, 40, .32);

  --suave: cubic-bezier(.22, 1, .36, 1);
  --muelle: cubic-bezier(.34, 1.56, .64, 1);

  --hueco: clamp(16px, 4vw, 40px);
  --ancho: 1200px;
  --alto-cabecera: 72px;
  --van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M4 30V12a5 5 0 0 1 5-5h36l15 12v11z' fill='%23fff' stroke='%231F2328' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M45 10h2l9 8h-11z' fill='%23BFE3F6' stroke='%231F2328' stroke-width='1.6'/%3E%3Ccircle cx='16' cy='31' r='5' fill='%231F2328' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='48' cy='31' r='5' fill='%231F2328' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  --flecha-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23C8EC6E'/%3E%3Cpath d='M5.6 10.3l2.9 2.8 5.9-6' fill='none' stroke='%231F2328' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-cabecera) + 16px);
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--titulos);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h3 { letter-spacing: -0.012em; }
p { text-wrap: pretty; }

a { color: var(--azul); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--papel-2);
  border-radius: 8px;
  padding: .1em .4em;
}

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 10px; }
.oscura :focus-visible, .pie :focus-visible, .demo-tarjeta-panel :focus-visible, .dialogo :focus-visible { outline-color: var(--lima-palido); }

::selection { background: var(--lima-palido); color: var(--tinta); }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--hueco); }

.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;
}

.saltar {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 12px; }

/* ---------- Piezas comunes ---------- */
.etiqueta {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--titulos); font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  color: var(--tinta);
  background: var(--lima-palido);
  border-radius: 999px;
  padding: .32em .95em .36em;
  margin-bottom: 18px;
}
.etiqueta-oscura { background: rgba(200, 236, 110, .14); color: var(--lima-palido); box-shadow: inset 0 0 0 1px rgba(200, 236, 110, .35); }

.pastilla {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .9rem; font-weight: 600; color: var(--tinta);
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--linea);
  border-radius: 999px;
  padding: .4em 1em .4em .55em;
  box-shadow: var(--sombra-s);
  margin-bottom: 26px;
}
.pastilla-punto {
  position: relative; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--lima-claro);
}
.pastilla-punto::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--tinta);
}

.cabeza-seccion { max-width: 880px; margin-bottom: clamp(36px, 5vw, 60px); }
.cabeza-seccion h2 { font-size: clamp(2.05rem, 1.25rem + 2.9vw, 3.6rem); }
.cabeza-seccion > p:not(.etiqueta) { margin-top: 18px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--gris); max-width: 620px; }

.seccion { padding-block: clamp(56px, 7vw, 100px); position: relative; isolation: isolate; overflow-x: clip; }

/* Botones */
.btn {
  --btn-fondo: var(--blanco);
  --btn-texto: var(--tinta);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px;
  padding: .7em 1.4em;
  border-radius: 999px;
  border: 0;
  background: var(--btn-fondo);
  color: var(--btn-texto);
  font-family: var(--titulos); font-weight: 600; font-size: 1.04rem; letter-spacing: .005em; line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: transform .35s var(--muelle), box-shadow .35s var(--suave), background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn .flecha { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--muelle); }
.btn:hover .flecha { transform: translateX(4px); }

.btn-lima { --btn-fondo: var(--lima); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 8px 22px -10px rgba(77, 140, 10, .9); }
.btn-lima:hover { --btn-fondo: var(--lima-claro); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 28px -12px rgba(77, 140, 10, .9); }
.btn-blanco { box-shadow: inset 0 0 0 1px var(--linea-2), var(--sombra-s); }
.btn-blanco:hover { box-shadow: inset 0 0 0 1px var(--lima), var(--sombra-m); }
.btn-tinta { --btn-fondo: var(--tinta); --btn-texto: #fff; box-shadow: 0 12px 24px -14px rgba(31, 35, 40, .8); }
.btn-tinta:hover { --btn-fondo: #000; }
.btn-peq { min-height: 42px; padding: .55em 1.15em; font-size: .97rem; }
.btn-grande { min-height: 56px; padding: .8em 1.65em; font-size: 1.1rem; }

.play {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: -.5em;
  border-radius: 50%; background: var(--azul); color: #fff;
  transition: transform .35s var(--muelle);
}
.play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.btn:hover .play { transform: scale(1.12); }

.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 479px) {
  .heroe .acciones .btn-grande { flex: 1 1 0; min-width: max-content; padding-inline: 1.05em; font-size: 1rem; min-height: 52px; }
  .heroe .acciones .play { width: 26px; height: 26px; margin-left: -.3em; }
}

.enlace-flecha { font-family: var(--titulos); font-weight: 600; color: var(--tinta); text-decoration: none; padding: .6em .4em; }
.enlace-flecha::after { content: "→"; display: inline-block; margin-left: .4em; transition: transform .3s var(--muelle); }
.enlace-flecha:hover::after { transform: translateX(4px); }
.enlace-flecha:hover { text-decoration: underline; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 252, 235, .78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow .3s, background-color .3s;
}
.cabecera.con-sombra { background: rgba(247, 252, 235, .92); box-shadow: 0 1px 0 var(--linea), 0 10px 30px -18px rgba(31, 35, 40, .3); }
.cabecera-in { display: flex; align-items: center; gap: 16px; min-height: var(--alto-cabecera); }
.logo { display: inline-flex; align-items: center; flex: none; border-radius: 12px; }
.logo img { display: block; height: 38px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block; padding: .5em .9em; border-radius: 999px;
  color: var(--tinta); text-decoration: none; font-weight: 500; font-size: .98rem;
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(141, 200, 20, .18); }
.nav a.actual { background: var(--tinta); color: #fff; }
.cabecera-cta { flex: none; }

.menu-boton {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px 0 12px; margin-left: 4px;
  border: 0; border-radius: 999px; background: var(--tinta); color: #fff;
  font-weight: 600; font-size: .95rem; cursor: pointer;
}
.menu-icono { position: relative; width: 18px; height: 12px; }
.menu-icono i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--muelle), top .35s var(--suave); }
.menu-icono i:first-child { top: 1px; }
.menu-icono i:last-child { top: 9px; }
.menu-abierto .menu-icono i:first-child { top: 5px; transform: rotate(45deg); }
.menu-abierto .menu-icono i:last-child { top: 5px; transform: rotate(-45deg); }

.menu-movil { display: none; }

@media (max-width: 999px) {
  .nav { display: none; }
  .cabecera-cta { margin-left: auto; }
  .js .menu-boton { display: inline-flex; }
  .js .menu-movil {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px var(--hueco) 20px;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .25s var(--suave), transform .35s var(--suave), visibility 0s .35s;
  }
  .js .menu-movil nav {
    background: var(--blanco); border-radius: 28px; padding: 12px; box-shadow: var(--sombra-l);
    border: 1px solid var(--linea);
  }
  .menu-movil ul { display: grid; gap: 2px; margin-bottom: 10px; }
  .menu-movil a:not(.btn) {
    display: block; padding: 14px 16px; border-radius: 18px; color: var(--tinta); text-decoration: none;
    font-family: var(--titulos); font-weight: 600; font-size: 1.3rem;
  }
  .menu-movil a:not(.btn):hover { background: var(--papel-2); }
  .menu-movil .btn { width: 100%; }
  .js .menu-abierto .menu-movil { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--suave), transform .45s var(--muelle), visibility 0s; }
  /* Sin JavaScript, la navegación se queda a la vista en una fila desplazable. */
  html:not(.js) .nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--papel); overflow-x: auto; }
  html:not(.js) .nav ul { padding: 4px var(--hueco) 8px; }
  html:not(.js) .nav a { white-space: nowrap; }
}
@media (max-width: 420px) {
  .logo img { height: 28px; }
  .menu-texto { display: none; }
  .menu-boton { padding: 0 13px; }
  .cabecera-cta { padding-inline: .95em; }
}
@media (max-width: 374px) {
  .cabecera-cta { display: none; }
  .menu-boton { margin-left: auto; }
}

/* ---------- Héroe ---------- */
.heroe { position: relative; padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); isolation: isolate; }
.heroe-fondo { position: absolute; inset: -80px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.burbuja { position: absolute; border-radius: 50%; will-change: transform; }
.b1 { width: 60vw; max-width: 760px; aspect-ratio: 1; right: -12vw; top: -8%; background: radial-gradient(circle at 50% 50%, rgba(166, 219, 42, .42), rgba(166, 219, 42, 0) 66%); }
.b2 { width: 42vw; max-width: 520px; aspect-ratio: 1; left: -14vw; top: 30%; background: radial-gradient(circle, rgba(20, 169, 230, .16), rgba(20, 169, 230, 0) 66%); }
.b3 { width: 30vw; max-width: 380px; aspect-ratio: 1; left: 38%; bottom: -10%; background: radial-gradient(circle, rgba(200, 236, 110, .5), rgba(200, 236, 110, 0) 66%); }

.heroe-in { display: grid; gap: clamp(28px, 4vw, 44px) clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) {
  .heroe-in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .heroe-cabeza { grid-column: 1 / -1; }
  .heroe-texto { padding-top: clamp(8px, 2vw, 28px); }
  .heroe .ruta { justify-self: end; }
}

.heroe h1 { font-size: clamp(2.7rem, 1.25rem + 5.1vw, 5.85rem); line-height: .97; letter-spacing: -0.042em; font-weight: 600; }
.heroe .pastilla { margin-bottom: clamp(20px, 3vw, 30px); }
.resalta {
  background-image: linear-gradient(transparent 58%, var(--lima-palido) 58%, var(--lima-palido) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .04em;
}
.entradilla { font-size: clamp(1.08rem, 1rem + .45vw, 1.28rem); line-height: 1.55; color: var(--gris); max-width: 36em; }
.heroe .acciones { margin-top: 34px; }
.datos { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .95rem; font-weight: 500; color: var(--gris); }
.datos li { display: inline-flex; align-items: center; gap: .55em; }
.datos li::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--flecha-svg) center / contain no-repeat; }

/* Composición del recorrido */
.ruta {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 560 / 500;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  border-radius: clamp(26px, 6cqw, 40px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(200, 236, 110, .55), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(20, 169, 230, .10), transparent 60%),
    var(--blanco);
  box-shadow: var(--sombra-l), inset 0 0 0 1px rgba(207, 227, 162, .7);
}
.ruta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(31, 35, 40, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 85%);
}
.ruta-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ruta-borde, .ruta-asfalto, .ruta-eje, .ruta-progreso { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ruta-borde { stroke: #DDEDB8; stroke-width: 40; }
.ruta-asfalto { stroke: #F1F9DE; stroke-width: 34; }
.ruta-eje { stroke: #FFFFFF; stroke-width: 3; stroke-dasharray: 3 12; }
.ruta-progreso { stroke: var(--lima); stroke-width: 9; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ruta-inicio circle { fill: var(--lima); stroke: #fff; stroke-width: 3; }
.ruta-meta path { fill: none; stroke: var(--tinta); stroke-width: 3; stroke-linecap: round; }
.ruta-meta .ruta-bandera { fill: var(--lima-claro); stroke: var(--tinta); stroke-width: 2.4; stroke-linejoin: round; }

.parada { transform-box: fill-box; transform-origin: center; }
.parada-aro { fill: #fff; stroke: #CFE3A2; stroke-width: 2.5; }
.parada-punto { fill: var(--verde); transform-box: fill-box; transform-origin: center; }
.parada-nombres text { font-family: var(--texto); font-size: 16px; font-weight: 600; fill: var(--gris); text-anchor: middle; }
@media (max-width: 600px) { .parada-nombres text { font-size: 19px; } }

.ruta-ficha-in { filter: drop-shadow(0 6px 10px rgba(10, 95, 184, .35)); }
.ficha-halo { fill: rgba(20, 169, 230, .22); transform-box: fill-box; transform-origin: center; }
.ficha-disco { fill: var(--azul); stroke: #fff; stroke-width: 3; }
.ficha-van { fill: #fff; }
.ficha-ventana { fill: var(--azul); }
.ficha-rueda { fill: var(--tinta); stroke: #fff; stroke-width: 1.6; }

.aviso {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7em;
  font-size: clamp(10px, 2.55cqw, 15px);
  padding: .65em 1.1em .65em .65em;
  background: rgba(255, 255, 255, .96);
  border-radius: 1.2em;
  box-shadow: 0 1px 2px rgba(31, 35, 40, .06), 0 14px 30px -12px rgba(31, 35, 40, .28);
  border: 1px solid rgba(207, 227, 162, .8);
  white-space: nowrap;
}
.aviso-icono { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .8em; background: var(--lima-palido); flex: none; }
.aviso-icono svg { width: 1.4em; height: 1.4em; fill: none; stroke: var(--tinta); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.aviso-texto { display: grid; line-height: 1.2; }
.aviso-texto b { font-weight: 650; font-size: 1.06em; }
.aviso-texto small { font-size: .88em; color: var(--gris); }
.a1 { left: 52.5%; top: 3%; }
.a2 { left: 7%; top: 36%; }
.a3 { left: 26%; top: 64.5%; }
.a4 { left: 61%; top: 64.5%; }
.a4 .aviso-icono { background: var(--tinta); }
.a4 .aviso-icono svg { stroke: var(--lima-claro); }

/* ---------- Cinta ---------- */
.cinta { position: relative; overflow: hidden; padding-block: 34px; margin-block: -14px; }
.cinta-pista {
  overflow: hidden;
  background: var(--tinta); color: #fff;
  transform: rotate(-1.3deg);
  margin-inline: -60px;
  box-shadow: 0 18px 40px -24px rgba(31, 35, 40, .6);
}
.cinta-tira { display: flex; width: max-content; }
.cinta ul { display: flex; flex: none; }
.cinta li {
  display: flex; align-items: center; gap: 28px; padding: 16px 0 17px 28px;
  font-family: var(--titulos); font-weight: 600; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); white-space: nowrap;
}
.cinta li::after { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--lima-claro); transform: rotate(45deg); }

/* ---------- Para quién ---------- */
.para-quien { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(40px, 5vw, 72px); }
.frase { font-size: clamp(1.7rem, 1rem + 2.3vw, 2.85rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.03em; max-width: 24em; }
.frase mark {
  color: inherit;
  background-image: linear-gradient(transparent 60%, var(--lima-palido) 60%, var(--lima-palido) 94%, transparent 94%);
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1s var(--suave);
}
.js .frase.aparece:not(.visible) mark { background-size: 0% 100%; }
.frase mark { transition-delay: .6s; }
.frase mark:nth-of-type(2) { transition-delay: .85s; }
.frase mark:nth-of-type(3) { transition-delay: 1.1s; }

.perfiles { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 760px) { .perfiles { grid-template-columns: repeat(3, 1fr); } }
.perfil {
  position: relative;
  background: var(--blanco); border-radius: var(--r-l); padding: 28px;
  box-shadow: var(--sombra-s); border: 1px solid var(--linea);
  transition: transform .5s var(--muelle), box-shadow .4s var(--suave);
}
.perfil:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--sombra-m); }
.perfil h3 { font-size: 1.3rem; margin: 20px 0 8px; }
.perfil p { color: var(--gris); }
.perfil-icono, .tarjeta-icono {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px;
  background: var(--papel-2);
  transition: transform .5s var(--muelle);
}
.perfil:hover .perfil-icono, .tarjeta:hover .tarjeta-icono { transform: rotate(-8deg) scale(1.06); }
.perfil-icono svg, .tarjeta-icono svg { width: 44px; height: 44px; fill: none; stroke: var(--tinta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.perfil-icono .r, .tarjeta-icono .r { fill: var(--lima-palido); stroke: none; }
.perfil-icono .a, .tarjeta-icono .a { stroke: var(--azul); fill: none; stroke-width: 2.6; }
.perfil-icono circle.a, .perfil-icono rect.a, .tarjeta-icono circle.a, .tarjeta-icono rect.a { fill: var(--azul); stroke: none; }
.tarjeta-icono .a2 { fill: var(--lima); stroke: none; }

/* ---------- Cómo funciona ---------- */
.recorrido { background: linear-gradient(180deg, var(--papel) 0%, var(--blanco) 22%, var(--blanco) 78%, var(--papel) 100%); }

.ciclo {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
  padding: 6px 2px 14px; margin-bottom: 28px;
  counter-reset: none;
}
.ciclo::-webkit-scrollbar { display: none; }
.ciclo li {
  flex: none; display: inline-flex; align-items: center; gap: .55em;
  padding: .5em 1em .5em .5em; border-radius: 999px;
  background: var(--papel); border: 1px solid var(--linea);
  font-family: var(--titulos); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background-color .4s, border-color .4s, transform .5s var(--muelle), box-shadow .4s;
}
.ciclo li span {
  display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  background: var(--blanco); font-size: .82em; color: var(--gris);
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: background-color .4s, color .4s;
}
.ciclo li + li::before {
  content: ""; order: -1; width: 18px; height: 2px; margin-left: -14px; margin-right: 2px;
  background: var(--linea-2); border-radius: 2px;
}
.ciclo li.activa { background: var(--lima-palido); border-color: var(--lima); transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(77, 140, 10, .8); }
.ciclo li.activa span { background: var(--tinta); color: var(--lima-claro); box-shadow: none; }
@media (max-width: 1099px) {
  .ciclo { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 48px), transparent); padding-right: 40px; }
}
@media (min-width: 1100px) { .ciclo { justify-content: space-between; overflow: visible; } }

.tour { display: grid; gap: 24px; }
@media (min-width: 1000px) { .js .tour { grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: start; } }

.tour-pestanas { display: none; }
.js .tour-pestanas { display: grid; gap: 8px; }
@media (max-width: 999px) {
  .js .tour-pestanas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-resumen { display: none; }
}
.tour-pestana {
  position: relative; display: grid; gap: 4px; text-align: left;
  padding: 16px 18px 20px; border-radius: 24px;
  background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: background-color .3s, border-color .3s, box-shadow .3s, transform .4s var(--muelle);
}
.tour-pestana:hover { background: var(--papel); }
.tour-pestana[aria-selected="true"] { background: var(--blanco); border-color: var(--linea-2); box-shadow: var(--sombra-m); }
.tour-num { font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--verde-texto); }
.tour-titulo { font-family: var(--titulos); font-weight: 600; font-size: 1.22rem; line-height: 1.15; }
.tour-resumen { color: var(--gris); font-size: .95rem; line-height: 1.45; }
.tour-barra { position: absolute; left: 18px; right: 18px; bottom: 9px; height: 4px; border-radius: 4px; background: var(--papel-2); overflow: hidden; opacity: 0; transition: opacity .3s; }
.tour-barra span { display: block; height: 100%; background: var(--lima); border-radius: inherit; transform-origin: left; transform: scaleX(0); }
.tour-pestana[aria-selected="true"] .tour-barra { opacity: 1; }
@media (max-width: 999px) {
  .tour-pestana { padding: 12px 14px 18px; border-radius: 20px; background: var(--papel); border-color: var(--linea); }
  .tour-titulo { font-size: 1.02rem; }
  .tour-barra { left: 14px; right: 14px; bottom: 8px; }
}

.tour-paneles { min-width: 0; }
.tour-panel { outline-offset: 6px; }
html:not(.js) .tour-panel + .tour-panel { margin-top: 56px; }
/* Con JavaScript los capítulos se apilan en la misma celda y se cruzan con desplazamiento y fundido. */
.js .tour-paneles { display: grid; }
.js .tour-panel { grid-area: 1 / 1; min-width: 0; }
.js .tour-panel:not(.activo) { visibility: hidden; opacity: 0; pointer-events: none; }

.tour-pasos { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 700px) { .tour-pasos { grid-template-columns: 1fr 1fr; } .tour-pasos-uno { grid-template-columns: 1fr; max-width: 720px; } }
.tour-pasos li { display: flex; gap: 14px; padding: 18px 20px; border-radius: 24px; background: var(--papel); border: 1px solid var(--linea); }
.paso-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--tinta); color: var(--lima-claro); font-family: var(--titulos); font-weight: 600; font-size: .95rem; }
.tour-pasos h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tour-pasos p { color: var(--gris); font-size: 1rem; line-height: 1.55; }

.tour-control { display: flex; justify-content: flex-end; margin-top: 18px; min-height: 44px; }
.btn-pausa {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 12px;
  border-radius: 999px; border: 1px solid var(--linea-2); background: var(--blanco); cursor: pointer;
  font-weight: 600; font-size: .93rem; color: var(--tinta);
  transition: background-color .2s, transform .3s var(--muelle);
}
.btn-pausa:hover { background: var(--papel-2); }
.btn-pausa-icono { position: relative; display: inline-flex; gap: 3px; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: var(--lima-palido); }
.btn-pausa-icono i { width: 3px; height: 9px; border-radius: 2px; background: var(--tinta); }
.btn-pausa[aria-pressed="true"] .btn-pausa-icono i:first-child { width: 0; height: 0; border-radius: 0; background: none; border-left: 8px solid var(--tinta); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.btn-pausa[aria-pressed="true"] .btn-pausa-icono i:last-child { display: none; }

/* Marcos de vídeo con ilustración de reserva */
.marco {
  position: relative; container-type: inline-size;
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: clamp(20px, 3.4cqw, 32px);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(166, 219, 42, .55), transparent 60%),
    radial-gradient(60% 70% at 5% 100%, rgba(20, 169, 230, .18), transparent 60%),
    linear-gradient(160deg, #F4FBE3, #E4F4C2);
  box-shadow: var(--sombra-l), inset 0 0 0 1px rgba(207, 227, 162, .9);
  isolation: isolate;
}
.marco-ilu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2.4em; padding: 3.2em 4em; font-size: clamp(7px, 1.55cqw, 14px); }
.marco-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: transparent; }
.js .marco-video { opacity: 0; transition: opacity .5s var(--suave); }
/* Sin JavaScript no hay quien ponga el póster ni lo reproduzca al verse: se queda la ilustración. */
html:not(.js) .marco-video { display: none; }
.js .marco.con-video .marco-video { opacity: 1; }
.marco.con-video .marco-ilu { visibility: hidden; }

/* Ventana de navegador de la ilustración */
.ventana { width: min(78%, 46em); background: #fff; border-radius: 1.6em; box-shadow: 0 2em 4em -1.6em rgba(31, 35, 40, .35), 0 0 0 1px rgba(207, 227, 162, .8); overflow: hidden; }
.ventana-barra { display: flex; align-items: center; gap: .45em; padding: .9em 1.2em; background: #F5FAEA; border-bottom: 1px solid #E5F0CC; }
.ventana-barra i { width: .75em; height: .75em; border-radius: 50%; background: #D8E8B5; }
.ventana-barra span { margin-left: 1em; padding: .25em 1em; border-radius: 999px; background: #fff; font-size: .95em; color: var(--gris); box-shadow: inset 0 0 0 1px #E5F0CC; }
.reserva-cuerpo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6em; padding: 1.6em; align-items: center; }
.reserva-foto { aspect-ratio: 4 / 3; border-radius: 1.2em; display: grid; place-items: center; background: linear-gradient(180deg, #CFEFFF 0%, #E9F7FF 55%, #DDF1AE 55%, #C8EC6E 100%); overflow: hidden; }
.reserva-foto svg { width: 82%; }
.v-carro { fill: #fff; stroke: var(--tinta); stroke-width: 2; stroke-linejoin: round; }
.v-cristal { fill: #BFE3F6; stroke: var(--tinta); stroke-width: 1.6; }
.v-franja { stroke: var(--lima); stroke-width: 4; stroke-linecap: round; }
.v-rueda { fill: var(--tinta); stroke: #fff; stroke-width: 3; }
.reserva-datos { display: grid; gap: .55em; font-size: 1.05em; }
.reserva-datos > b { font-family: var(--titulos); font-size: 1.55em; line-height: 1.1; }
.reserva-datos > small { color: var(--gris); }
.reserva-fechas { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; margin-top: .3em; }
.reserva-fechas span { display: grid; padding: .5em .8em; border-radius: .9em; background: var(--papel); font-size: .85em; color: var(--gris); box-shadow: inset 0 0 0 1px var(--linea); }
.reserva-fechas b { color: var(--tinta); font-size: 1.15em; }
.reserva-lineas { display: grid; gap: .3em; font-size: .9em; color: var(--gris); }
.reserva-lineas li { display: flex; align-items: center; gap: .6em; }
.reserva-lineas i { width: .9em; height: .9em; border-radius: 50%; background: var(--lima-palido); box-shadow: inset 0 0 0 2px var(--lima); }
.reserva-boton { justify-self: start; margin-top: .3em; padding: .65em 1.4em; border-radius: 999px; background: var(--lima); font-family: var(--titulos); font-weight: 600; }
.ilu-chip {
  position: absolute; right: 7%; bottom: 10%;
  display: inline-flex; align-items: center; gap: .6em; padding: .7em 1.3em .7em .8em;
  border-radius: 999px; background: var(--tinta); color: #fff; font-family: var(--titulos); font-weight: 600; font-size: 1.15em;
  box-shadow: 0 1.2em 2.4em -1em rgba(31, 35, 40, .6);
}
.ilu-chip::before { content: ""; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--lima-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 2.9 6-6.3' fill='none' stroke='%231F2328' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* Check-in */
.ilu-checkin { gap: 3em; }
.movil { width: 15.5em; padding: 1.4em 1.2em; border-radius: 2.2em; background: #fff; box-shadow: 0 2em 4em -1.6em rgba(31, 35, 40, .35), 0 0 0 .45em var(--tinta); display: flex; flex-direction: column; gap: 1em; }
.movil-cabeza { display: grid; line-height: 1.2; }
.movil-cabeza b { font-family: var(--titulos); font-size: 1.3em; }
.movil-cabeza small { color: var(--gris); }
.movil-lista { display: grid; gap: .55em; }
.movil-lista li { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: .9em; background: var(--papel); font-size: .95em; font-weight: 500; }
.movil-lista i { flex: none; width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 2.9 6-6.3' fill='none' stroke='%231F2328' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat; }
.movil-firma { margin-top: .2em; padding: .6em; border-radius: 1em; border: 1.5px dashed var(--linea-2); }
.movil-firma svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--azul); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.movil-firma path { stroke-dasharray: 520; stroke-dashoffset: 0; }
.pagos { display: grid; gap: .9em; width: 17em; }
.pago { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 1.2em; border-radius: 1.2em; background: #fff; box-shadow: 0 1.2em 2.4em -1.4em rgba(31, 35, 40, .35), 0 0 0 1px rgba(207, 227, 162, .8); font-size: 1.02em; }
.pago span { color: var(--gris); }
.pago b { font-family: var(--titulos); font-weight: 600; }
.estado-ok, .estado-azul { padding: .15em .7em; border-radius: 999px; font-size: .92em; }
.estado-ok { background: var(--lima-palido); color: var(--tinta); }
.estado-azul { background: #DCEEFF; color: #0A4E96; }
.pago-pdf { background: var(--tinta); }
.pago-pdf span { color: var(--gris-claro); }
.pago-pdf b { color: var(--lima-claro); }

/* Entrega */
.ilu-entrega { flex-direction: column; gap: 1.6em; }
.fotos { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9em; width: min(80%, 44em); }
.fotos span {
  position: relative; aspect-ratio: 4 / 3; border-radius: 1em;
  background: var(--van) var(--pos, center 64%) / var(--tam, 72%) auto no-repeat, linear-gradient(180deg, #CFEFFF 0 56%, #DDF1AE 56% 100%);
  box-shadow: 0 1em 2em -1.4em rgba(31, 35, 40, .45), 0 0 0 1px rgba(207, 227, 162, .8);
  overflow: hidden;
}
/* Cada «foto» es un encuadre distinto de la misma furgoneta: lateral, morro, trasera, ruedas… */
.fotos span:nth-child(2) { --tam: 150%; --pos: 100% 70%; }
.fotos span:nth-child(3) { --tam: 150%; --pos: 0% 70%; }
.fotos span:nth-child(4) { --tam: 210%; --pos: 14% 88%; }
.fotos span:nth-child(5) { --tam: 118%; --pos: 50% 68%; }
.fotos span:nth-child(6) { --tam: 210%; --pos: 86% 88%; }
.fotos span:nth-child(7) { --tam: 190%; --pos: 96% 38%; }
.fotos span:nth-child(8) { --tam: 96%; --pos: 40% 66%; }
.fotos span::after { content: ""; position: absolute; right: .45em; top: .45em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 2.9 6-6.3' fill='none' stroke='%231F2328' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 85% no-repeat; }
.entrega-datos { display: grid; grid-template-columns: repeat(4, auto); gap: .8em; }
.entrega-datos div { display: grid; gap: .2em; padding: .75em 1.1em; border-radius: 1.1em; background: #fff; box-shadow: 0 1em 2em -1.4em rgba(31, 35, 40, .35), 0 0 0 1px rgba(207, 227, 162, .8); }
.entrega-datos small { color: var(--gris); font-size: .85em; }
.entrega-datos b { font-family: var(--titulos); font-weight: 600; font-size: 1.1em; justify-self: start; }
.nivel { display: inline-flex; gap: .2em; align-items: center; height: 1.2em; }
.nivel i { width: .55em; height: 100%; border-radius: .2em; background: var(--lima); }

/* Devolución */
.liquida { width: min(60%, 30em); padding: 1.6em; border-radius: 1.6em; background: #fff; box-shadow: 0 2em 4em -1.6em rgba(31, 35, 40, .35), 0 0 0 1px rgba(207, 227, 162, .8); position: relative; }
.liquida-cabeza { display: grid; line-height: 1.2; margin-bottom: 1em; }
.liquida-cabeza b { font-family: var(--titulos); font-size: 1.45em; }
.liquida-cabeza small { color: var(--gris); }
.liquida ul { display: grid; gap: .45em; }
.liquida li { display: flex; justify-content: space-between; padding: .6em .9em; border-radius: .9em; background: var(--papel); font-size: 1.02em; }
.liquida li span { color: var(--gris); }
.liquida li b { font-weight: 600; }
.liquida-pie { display: flex; justify-content: flex-end; margin-top: 1em; }
.sello { display: inline-block; padding: .55em 1.2em; border-radius: 999px; background: var(--lima); font-family: var(--titulos); font-weight: 700; font-size: 1.3em; transform: rotate(-4deg); box-shadow: 0 0 0 .3em rgba(141, 200, 20, .25); }

/* Calendario del panel */
.cal { position: relative; width: 100%; max-width: 52em; padding: 1.4em 1.4em 1.6em; border-radius: 1.6em; background: #fff; box-shadow: 0 2em 4em -1.6em rgba(31, 35, 40, .35), 0 0 0 1px rgba(207, 227, 162, .8); --etq: 7.4em; }
.cal-cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6em; margin-bottom: 1em; }
.cal-cabeza b { font-family: var(--titulos); font-size: 1.5em; }
.cal-leyenda { display: inline-flex; align-items: center; gap: .45em; font-size: .85em; color: var(--gris); }
.cal-leyenda i { width: .9em; height: .9em; border-radius: .25em; margin-left: .5em; }
.l-res { background: var(--tinta); }
.l-blo { background: repeating-linear-gradient(45deg, #E9EFDD 0 3px, #CBD5B8 3px 5px); }
.l-pag { background: #DCEEFF; box-shadow: inset 0 0 0 1px var(--azul-medio); }
.cal-dias, .cal-fila { display: grid; grid-template-columns: var(--etq) repeat(12, minmax(0, 1fr)); gap: 0 .25em; align-items: center; }
.cal-dias span { text-align: center; font-size: .8em; color: var(--gris); padding-bottom: .5em; }
.cal-dias .hoy { color: var(--tinta); font-weight: 700; }
.cal-dias .hoy::before { content: ""; display: block; width: .5em; height: .5em; margin: 0 auto .25em; border-radius: 50%; background: var(--lima); }
.cal-fila { padding: .55em 0; border-top: 1px solid #EEF4E0; }
.cal-veh { grid-row: 1; grid-column: 1; font-weight: 600; font-size: .95em; }
.barra { grid-row: 1; grid-column: var(--i) / span var(--n); height: 2.3em; display: flex; align-items: center; padding: 0 .7em; border-radius: .8em; font-size: .82em; font-weight: 600; white-space: nowrap; overflow: hidden; transform-origin: left center; }
.barra.res { background: var(--tinta); color: #fff; }
.barra.res2 { background: var(--lima-palido); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--lima); }
.barra.blo { background: repeating-linear-gradient(45deg, #F1F5E8 0 5px, #DCE4CB 5px 9px); color: var(--gris); box-shadow: inset 0 0 0 1px #CBD5B8; }
.barra.pag { background: #DCEEFF; color: #0A4E96; box-shadow: inset 0 0 0 1px var(--azul-medio); }
.barra.ent { background: var(--azul); color: #fff; }
.cal-hoy { position: absolute; top: 7.1em; bottom: 1.2em; width: 2px; background: var(--lima); left: calc(1.4em + var(--etq) + (100% - 2.8em - var(--etq)) * 5.5 / 12); border-radius: 2px; }

/* Ilustraciones compactas en marcos estrechos (van detrás para ganar a las reglas de arriba). */
@container (max-width: 520px) {
  .marco-ilu { font-size: 2.4cqw; padding: 1.4em 1.6em; gap: 1.6em; }
  .ventana { width: 94%; }
  .reserva-lineas { display: none; }
  .reserva-cuerpo { padding: 1.2em; gap: 1.2em; }
  .ilu-chip { right: 3%; bottom: 5%; }
  .ilu-checkin { gap: 1.6em; }
  .movil { width: 15em; padding: 1.1em 1em; }
  .pagos { width: 16em; }
  .fotos { width: 94%; gap: .6em; }
  .liquida { width: 82%; padding: 1.2em 1.4em; }
  .cal { padding: 1em 1em 1.2em; --etq: 7.4em; }
  .cal-veh { font-size: .85em; }
  .cal-leyenda { display: none; }
  .cal-hoy { top: 5.6em; left: calc(1em + var(--etq) + (100% - 2em - var(--etq)) * 5.5 / 12); }
}

/* ---------- Funciones ---------- */
.funciones { background: var(--papel); }
.rejilla { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-panel { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .rejilla { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .t-reservas, .t-cobros, .t-checkin, .t-entrega { grid-column: span 6; }
  .t-finanzas, .t-correos, .t-idiomas { grid-column: span 4; }
  .t-registro, .t-datos { grid-column: span 6; }
}
.t-registro { background: linear-gradient(165deg, #FFFFFF 0%, #E8F4FC 100%); }
.t-datos { background: linear-gradient(165deg, #FFFFFF 0%, #F3FADF 100%); }

/* ---------- Cumplimiento ---------- */
.cumple { background: var(--papel); padding-top: 0; }
.sellos-ley { display: grid; gap: 16px; }
@media (min-width: 640px) { .sellos-ley { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sellos-ley { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.sello-ley {
  display: grid; gap: 8px; align-content: start;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--r-l);
  box-shadow: var(--sombra-s);
  transition: transform .5s var(--muelle), box-shadow .4s var(--suave);
}
.sello-ley:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--sombra-m); }
.sello-ley b { font-family: var(--titulos); font-size: 1.3rem; letter-spacing: -.01em; }
.sello-ley span:last-child { color: var(--gris); line-height: 1.45; }
.sello-ley-icono {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--lima-palido); box-shadow: 0 0 0 .3em rgba(141, 200, 20, .18);
  margin-bottom: 6px;
}
.sello-ley-icono svg { width: 28px; height: 28px; fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cumple-nota { margin-top: 18px; font-size: .92rem; color: var(--gris); }
.tarjeta {
  position: relative;
  background: var(--blanco); border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--linea);
  box-shadow: var(--sombra-s);
  transition: transform .5s var(--muelle), box-shadow .4s var(--suave);
}
.tarjeta:hover { transform: translateY(-5px); box-shadow: var(--sombra-m); }
.tarjeta h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); margin: 22px 0 8px; }
.tarjeta-entrada { font-size: 1.06rem; color: var(--gris); margin-bottom: 20px; }
.lista { display: grid; gap: 10px; }
.lista li { position: relative; padding-left: 32px; line-height: 1.5; }
.lista li::before { content: ""; position: absolute; left: 0; top: .1em; width: 21px; height: 21px; background: var(--flecha-svg) center / contain no-repeat; }

.t-reservas { background: linear-gradient(165deg, #FFFFFF 0%, #F3FADF 100%); }
.t-cobros { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.t-cobros .tarjeta-entrada { color: var(--gris-claro); }
.t-cobros .tarjeta-icono { background: rgba(200, 236, 110, .14); }
.t-cobros .tarjeta-icono svg { stroke: #fff; }
.t-cobros .tarjeta-icono .r { fill: rgba(200, 236, 110, .22); }
.t-cobros .tarjeta-icono rect.a { fill: var(--lima-claro); }
.t-cobros .lista li::before { filter: none; }

.t-panel {
  display: grid; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: linear-gradient(135deg, #E5F6B6 0%, #C8EC6E 100%);
  border-color: #BFE07A;
  overflow: hidden;
}
@media (min-width: 1100px) { .t-panel { grid-column: 1 / -1; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.t-panel .tarjeta-icono { background: rgba(255, 255, 255, .7); }
.t-panel .tarjeta-entrada { color: #3D4436; }
.t-panel .lista li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231F2328'/%3E%3Cpath d='M5.6 10.3l2.9 2.8 5.9-6' fill='none' stroke='%23C8EC6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.t-panel:hover { transform: none; }
.marco-panel { box-shadow: 0 30px 60px -28px rgba(31, 35, 40, .45), inset 0 0 0 1px rgba(255, 255, 255, .6); background: linear-gradient(160deg, #F7FCEB, #EAF6CC); }
.ilu-panel { padding: 2em 2.4em; font-size: clamp(8px, 2.05cqw, 15px); }

.idiomas { display: flex; flex-wrap: wrap; gap: 8px; }
.idiomas li { padding: .4em 1em; border-radius: 999px; background: var(--papel-2); font-weight: 600; font-family: var(--titulos); transition: transform .4s var(--muelle), background-color .3s; }
.idiomas li:hover { transform: translateY(-3px) rotate(-3deg); background: var(--lima-palido); }

/* ---------- Tu marca (sección oscura) ---------- */
.oscura {
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(141, 200, 20, .2), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(20, 169, 230, .14), transparent 70%),
    var(--tinta);
  color: #F3F7EA;
  border-radius: var(--r-xl);
  margin-inline: clamp(8px, 1.6vw, 22px);
}
.oscura h2 { color: #fff; }
.oscura .lima { color: var(--lima-claro); display: block; }
.oscura p { color: var(--gris-claro); }
.oscura code { background: rgba(255, 255, 255, .1); color: #fff; }

.marca-rejilla { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .marca-rejilla { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.navegador {
  --marca-color: var(--lima);
  container-type: inline-size;
  font-size: clamp(9px, 2.1cqw, 15px);
  border-radius: 1.8em; overflow: hidden; background: #fff; color: var(--tinta);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  rotate: -1.4deg;
}
.navegador-barra { display: flex; align-items: center; gap: 1em; padding: .9em 1.1em; background: #F2F4EF; }
.navegador-puntos { display: inline-flex; gap: .4em; }
.navegador-puntos i { width: .8em; height: .8em; border-radius: 50%; background: #D5D9CF; }
.navegador-puntos i:first-child { background: #F0A39A; }
.navegador-puntos i:nth-child(2) { background: #F3D27E; }
.navegador-puntos i:nth-child(3) { background: #A9D98A; }
.navegador-url { flex: 1; display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 999px; background: #fff; font-size: 1.05em; font-weight: 500; box-shadow: inset 0 0 0 1px #E3E6DD; min-width: 0; }
.navegador-url svg { width: 1em; height: 1em; flex: none; fill: none; stroke: var(--verde-texto); stroke-width: 1.6; stroke-linecap: round; }
.url-texto { white-space: nowrap; overflow: hidden; }
.cursor { width: 2px; height: 1.1em; background: var(--tinta); border-radius: 2px; }
.navegador-pagina { padding: 1.4em 1.6em 1.8em; display: grid; gap: 1.2em; }
.np-cabeza { display: flex; justify-content: space-between; align-items: center; }
.np-logo { display: inline-flex; align-items: center; gap: .5em; font-family: var(--titulos); font-weight: 700; font-size: 1.2em; }
.np-logo i { width: 1.4em; height: 1.4em; border-radius: .5em; background: var(--marca-color); transition: background-color .8s var(--suave); }
.np-menu { display: inline-flex; gap: .8em; }
.np-menu i { width: 3.4em; height: .55em; border-radius: 999px; background: #E6E9E1; }
.np-heroe { display: grid; gap: .9em; padding: 1.8em; border-radius: 1.4em; background: color-mix(in srgb, var(--marca-color) 22%, #fff); transition: background-color .8s var(--suave); }
.np-heroe b { font-family: var(--titulos); font-size: 2em; line-height: 1.05; letter-spacing: -.02em; }
.np-buscador { display: flex; gap: .5em; padding: .5em; border-radius: 999px; background: #fff; box-shadow: 0 .8em 1.6em -1em rgba(31, 35, 40, .35); font-size: .95em; }
.np-buscador i { flex: 1; font-style: normal; color: var(--gris); padding: .5em 1em; border-radius: 999px; background: #F5F7F1; }
.np-buscador em { font-style: normal; font-weight: 600; padding: .5em 1.2em; border-radius: 999px; background: var(--marca-color); color: #fff; transition: background-color .8s var(--suave); }
.np-vehiculos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.np-vehiculos span { aspect-ratio: 4 / 3; border-radius: 1em; background: var(--van) center 64% / 62% auto no-repeat, linear-gradient(180deg, #E3F2FB 0 58%, #EEF3E3 58%); }
.np-colores { display: flex; gap: .5em; justify-content: flex-end; }
.np-colores i { width: 1.6em; height: 1.6em; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E3E6DD; }
.np-colores i:nth-child(1) { background: #8DC814; }
.np-colores i:nth-child(2) { background: #E4572E; }
.np-colores i:nth-child(3) { background: #0B7FD6; }
.navegador[data-tono="1"] { --marca-color: #E4572E; }
.navegador[data-tono="2"] { --marca-color: #0B7FD6; }
.navegador[data-tono="0"] .np-colores i:nth-child(1),
.navegador[data-tono="1"] .np-colores i:nth-child(2),
.navegador[data-tono="2"] .np-colores i:nth-child(3) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tinta); }
.np-buscador em { color: var(--tinta); }
.navegador[data-tono="1"] .np-buscador em, .navegador[data-tono="2"] .np-buscador em { color: #fff; }

.claves { display: grid; gap: 14px; }
.clave { display: flex; gap: 18px; padding: 22px 24px; border-radius: 26px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .3s, transform .5s var(--muelle); }
.clave:hover { background: rgba(255, 255, 255, .08); transform: translateX(4px); }
.clave-n { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--lima-claro); color: var(--tinta); font-family: var(--titulos); font-weight: 700; font-size: 1.2rem; }
.clave h3 { font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.clave p { line-height: 1.6; }

.flujo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 0; margin-top: clamp(40px, 6vw, 72px); }
.flujo-nodo { display: inline-flex; align-items: center; gap: .6em; padding: .7em 1.2em .7em .8em; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-family: var(--titulos); font-weight: 600; font-size: 1.05rem; color: #fff; white-space: nowrap; }
.flujo-nodo svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: rgba(255, 255, 255, .1); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
.flujo-destino { background: var(--lima-claro); color: var(--tinta); box-shadow: 0 10px 30px -10px rgba(166, 219, 42, .6); }
.flujo-destino svg { background: rgba(31, 35, 40, .12); stroke: var(--tinta); }
.flujo-linea { position: relative; width: clamp(28px, 6vw, 80px); height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 6px, transparent 6px 11px); }
.flujo-linea i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--lima-claro); box-shadow: 0 0 12px var(--lima-claro); opacity: 0; }
@media (max-width: 640px) {
  .flujo { flex-direction: column; }
  .flujo-linea { width: 2px; height: 26px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 5px, transparent 5px 9px); }
  .flujo-linea i { left: -4px; top: 0; }
}

/* ---------- Precio ---------- */
.precio-caja {
  position: relative; overflow: hidden;
  display: grid; gap: clamp(32px, 5vw, 56px); align-items: center;
  padding: clamp(28px, 5.5vw, 72px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(255, 255, 255, .45), transparent 60%),
    linear-gradient(140deg, #D6F28A 0%, #A6DB2A 100%);
  box-shadow: 0 40px 80px -40px rgba(77, 140, 10, .7);
}
.precio-caja { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .precio-caja { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.precio .etiqueta { background: var(--tinta); color: var(--lima-palido); }
.precio h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; }
.precio h2 .sin { display: inline-block; background: var(--tinta); color: var(--lima-claro); padding: 0 .25em .06em; border-radius: .22em; transform: rotate(-1.5deg); margin-top: .1em; }
.precio-puntos { display: grid; gap: 12px; margin: 28px 0 32px; max-width: 40em; }
.precio-puntos li { position: relative; padding-left: 34px; font-size: 1.07rem; line-height: 1.5; color: #23281E; }
.precio-puntos li::before { content: ""; position: absolute; left: 0; top: .08em; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231F2328'/%3E%3Cpath d='M5.6 10.3l2.9 2.8 5.9-6' fill='none' stroke='%23C8EC6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.precio-visual { display: grid; gap: 16px; justify-items: center; }
.flota { display: grid; gap: 10px; width: 100%; max-width: 360px; }
.flota-van { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: 22px; background: rgba(255, 255, 255, .85); box-shadow: 0 14px 30px -18px rgba(31, 35, 40, .45); }
.flota-van svg { width: 64px; height: 40px; flex: none; fill: #fff; stroke: var(--tinta); stroke-width: 2.2; stroke-linejoin: round; }
.flota-van svg .c { fill: #BFE3F6; stroke-width: 1.6; }
.flota-van svg circle { fill: var(--tinta); stroke: #fff; stroke-width: 2; }
.flota-nombre { font-family: var(--titulos); font-weight: 600; font-size: 1rem; }
.flota-van b { font-family: var(--titulos); font-weight: 600; font-size: 1.05rem; margin-left: auto; padding: .25em .8em; border-radius: 999px; background: var(--tinta); color: var(--lima-claro); }
.flota-van b { white-space: nowrap; }
.fv2 { margin-left: 18px; margin-right: -18px; }
@media (max-width: 479px) {
  .flota-van svg { width: 44px; height: 28px; }
  .flota-van { gap: 10px; padding: 10px 10px 10px 12px; }
  .flota-van b { font-size: .9rem; }
  .flota-nombre { font-size: .92rem; }
  .fv2 { margin-left: 10px; margin-right: -10px; }
}
.sin-comision { display: inline-flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-radius: 999px; background: var(--tinta); color: #fff; font-family: var(--titulos); font-weight: 600; font-size: 1.1rem; }
.tachado { position: relative; color: var(--gris-claro); }
.tachado::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: 3px; border-radius: 3px; background: #FF8A7A; transform-origin: left; transform: rotate(-6deg); }
.sin-comision b { padding: .3em .9em; border-radius: 999px; background: var(--lima-claro); color: var(--tinta); }

/* ---------- Demo ---------- */
.demo { background: linear-gradient(180deg, var(--papel) 0%, var(--papel-2) 45%, var(--papel) 100%); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.demo-chips li { padding: .35em .95em; border-radius: 999px; background: var(--papel-2); font-size: .92rem; font-weight: 600; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); }
.demo-rejilla { display: grid; gap: 16px; }
@media (min-width: 860px) { .demo-rejilla { grid-template-columns: 1fr 1fr; gap: 20px; } }
.demo-tarjeta {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(26px, 4vw, 44px); border-radius: var(--r-l);
  background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--sombra-s);
  overflow: hidden;
  transition: transform .5s var(--muelle), box-shadow .4s var(--suave);
}
.demo-tarjeta:hover { transform: translateY(-5px); box-shadow: var(--sombra-m); }
.demo-tarjeta h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.demo-tarjeta p { color: var(--gris); max-width: 32em; }
.demo-tarjeta .btn { margin-top: auto; }
.demo-tarjeta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 219, 42, .35), transparent 70%);
  pointer-events: none;
}
.demo-tipo { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--verde-texto); }
.demo-tarjeta-panel { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.demo-tarjeta-panel h3 { color: #fff; }
.demo-tarjeta-panel p { color: var(--gris-claro); }
.demo-tarjeta-panel .demo-tipo { color: var(--lima-claro); }
.demo-tarjeta-panel .btn-tinta { --btn-fondo: var(--lima); --btn-texto: var(--tinta); }
.demo-tarjeta-panel .btn-tinta:hover { --btn-fondo: var(--lima-claro); }
.acceso { display: grid; gap: 8px; width: 100%; margin: 4px 0 10px; }
.acceso > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.acceso dt { font-size: .9rem; color: var(--gris-claro); }
@media (max-width: 520px) {
  .acceso > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 8px 8px 14px; }
  .acceso code { font-size: .84rem; }
}
.acceso dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.acceso code { background: none; color: var(--lima-palido); font-size: .98rem; padding: 0; overflow-wrap: anywhere; }
.copiar { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background-color .2s, transform .3s var(--muelle); }
.copiar:hover { background: rgba(255, 255, 255, .2); }
.copiar.copiado { background: var(--lima-claro); color: var(--tinta); }
.demo-notas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 28px; color: var(--gris); font-weight: 500; font-size: .97rem; }
.demo-notas li { display: inline-flex; align-items: center; gap: .55em; }
.demo-notas li::before { content: ""; width: 20px; height: 20px; background: var(--flecha-svg) center / contain no-repeat; }

/* ---------- Preguntas ---------- */
.preguntas-in { display: grid; gap: 8px 64px; }
@media (min-width: 1000px) { .preguntas-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .preguntas .cabeza-seccion { position: sticky; top: calc(var(--alto-cabecera) + 32px); } }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 24px; background: var(--blanco); border: 1px solid var(--linea); transition: box-shadow .3s, border-color .3s, background-color .3s; }
.faq details:hover { border-color: var(--linea-2); }
.faq details[open] { box-shadow: var(--sombra-m); border-color: var(--linea-2); }
.faq summary {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--titulos); font-weight: 600; font-size: 1.15rem; line-height: 1.3;
  border-radius: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--papel-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4.5v11M4.5 10h11' fill='none' stroke='%231F2328' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .45s var(--muelle), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--lima-palido); }
.faq-respuesta { padding: 0 24px 22px; color: var(--gris); }
.faq-respuesta p { max-width: 44em; }
.faq details[open] .faq-respuesta { animation: respuesta .5s var(--suave); }

/* ---------- Llamada final ---------- */
.final { padding-bottom: clamp(56px, 8vw, 96px); }
.final-caja {
  position: relative; overflow: hidden;
  display: grid; gap: 24px;
  padding: clamp(32px, 6vw, 80px) clamp(24px, 6vw, 80px) 0;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 255, 255, .5), transparent 60%),
    linear-gradient(135deg, #C8EC6E 0%, #8DC814 100%);
}
.final h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem); letter-spacing: -0.035em; max-width: 14em; }
.final-texto p { margin: 18px 0 30px; font-size: 1.15rem; max-width: 38em; color: #23281E; }
.final-texto p a { color: var(--tinta); font-weight: 600; }
.carretera { position: relative; height: 140px; margin-inline: calc(-1 * clamp(24px, 6vw, 80px)); overflow: hidden; }
.carretera::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: var(--tinta); }
.carretera-lineas { position: absolute; left: 0; bottom: 21px; width: 200%; height: 4px; background: repeating-linear-gradient(90deg, var(--lima-claro) 0 36px, transparent 36px 72px); border-radius: 4px; }
.carretera-van { position: absolute; bottom: 34px; left: 50%; width: 170px; height: auto; margin-left: -85px; overflow: visible; }
.cv-carro { fill: #fff; stroke: var(--tinta); stroke-width: 2.4; stroke-linejoin: round; }
.cv-cristal { fill: #BFE3F6; stroke: var(--tinta); stroke-width: 2; }
.cv-franja { fill: var(--lima); }
.cv-rueda circle { fill: var(--tinta); }
.cv-rueda .cv-llanta { fill: #E3EAD2; }
.cv-rueda { transform-box: fill-box; transform-origin: center; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: var(--gris-claro); padding: clamp(48px, 7vw, 80px) 0 32px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.pie-in { display: grid; gap: 32px 48px; }
@media (min-width: 860px) { .pie-in { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); } }
.pie-marca p { margin-top: 16px; max-width: 30em; }
.pie a { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.pie a:hover { color: var(--lima-claro); }
.pie .logo img { height: 40px; }
.pie-nav h2 { font-family: var(--titulos); font-size: .95rem; letter-spacing: .04em; color: var(--lima-claro); margin-bottom: 14px; font-weight: 600; }
.pie-nav ul { display: grid; gap: 8px; }
.pie-nav a { text-decoration: none; }
.pie-nav a:hover { text-decoration: underline; }
.pie-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }

/* ---------- Diálogo del vídeo ---------- */
.dialogo { padding: 0; border: 0; background: transparent; width: min(1100px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); color: #fff; overflow: visible; }
.dialogo::backdrop { background: rgba(20, 24, 28, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialogo[open] { animation: dialogo-entra .45s var(--muelle); }
.dialogo[open]::backdrop { animation: aparece-fundido .3s ease-out; }
.dialogo-caja { background: var(--tinta); border-radius: 28px; padding: 14px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); }
.dialogo-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 4px 12px 10px; }
.dialogo-cabeza h2 { font-size: 1.2rem; color: #fff; }
.dialogo-cerrar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; transition: background-color .2s, transform .35s var(--muelle); }
.dialogo-cerrar:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.dialogo-cerrar svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.dialogo-marco { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.dialogo-marco video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.dialogo-aviso { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; background: radial-gradient(70% 70% at 50% 40%, rgba(141, 200, 20, .25), transparent 70%), var(--tinta-2); }
.dialogo-aviso[hidden] { display: none; }
.dialogo-aviso p { max-width: 30em; color: var(--gris-claro); font-size: 1.05rem; }
.dialogo-aviso b { color: #fff; }

/* ---------- Páginas interiores (legales y 404) ---------- */
.interior { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.legal-caja { max-width: 860px; margin-inline: auto; padding: clamp(22px, 5vw, 64px); border-radius: var(--r-xl); background: var(--blanco); border: 1px solid var(--linea); box-shadow: var(--sombra-s); }
.legal-caja h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); letter-spacing: -0.035em; }
.legal-caja .actualizado { margin-top: 12px; color: var(--gris); font-size: .95rem; }
.legal-caja h2 { font-size: 1.45rem; margin: 40px 0 12px; letter-spacing: -0.015em; }
.legal-caja p { margin-top: 12px; color: #33392D; }
.legal-caja ul { margin-top: 12px; display: grid; gap: 8px; }
.legal-caja ul li { position: relative; padding-left: 30px; color: #33392D; }
.legal-caja ul li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; background: var(--flecha-svg) center / contain no-repeat; }
.legal-caja dl { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: 22px; overflow: hidden; border: 1px solid var(--linea); }
@media (min-width: 640px) { .legal-caja dl { grid-template-columns: 13em minmax(0, 1fr); } }
.legal-caja dt, .legal-caja dd { padding: 12px 18px; }
.legal-caja dt { font-weight: 600; background: var(--papel); }
.legal-caja dd { border-bottom: 1px solid var(--linea); }
@media (max-width: 639px) { .legal-caja dt { padding-bottom: 2px; } .legal-caja dd { background: var(--papel); padding-top: 0; } }
@media (min-width: 640px) { .legal-caja dt { border-bottom: 1px solid var(--linea); } .legal-caja dt:last-of-type, .legal-caja dd:last-of-type { border-bottom: 0; } }
.legal-caja .pendiente { background: #FFF4D6; border-radius: 6px; padding: .05em .35em; }
.volver { margin-top: 44px; }
.legal-caja .creditos { display: grid; gap: 12px; margin-top: 28px; }
.legal-caja .creditos li { padding-left: 0; }
.legal-caja .creditos li::before { content: none; }
.legal-caja .musica { margin-top: 24px; padding: 14px 18px; border-radius: 18px; background: var(--papel-2); color: var(--tinta); }
.credito { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; border-radius: 22px; background: var(--papel); border: 1px solid var(--linea); }
.credito img { display: block; width: 132px; height: 99px; object-fit: cover; border-radius: 14px; }
.legal-caja .credito h2 { font-size: 1.12rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.legal-caja .credito p { margin-top: 2px; font-size: .95rem; }
@media (max-width: 520px) {
  .credito { grid-template-columns: minmax(0, 1fr); }
  .credito img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

.error-caja { display: grid; gap: 40px; align-items: center; justify-items: center; text-align: center; max-width: 760px; margin-inline: auto; }
.error-caja h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 4rem); letter-spacing: -0.035em; }
.error-caja p { margin-top: 14px; color: var(--gris); font-size: 1.15rem; }
.error-caja .acciones { justify-content: center; margin-top: 30px; }
.perdida { position: relative; width: min(520px, 100%); aspect-ratio: 520 / 260; }
.perdida svg { width: 100%; height: 100%; overflow: visible; }
.perdida-camino { fill: none; stroke: #DDEDB8; stroke-width: 34; stroke-linecap: round; }
.perdida-eje { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 3 12; stroke-linecap: round; }
.perdida-rastro { fill: none; stroke: var(--lima); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; }
.perdida-numero { font-family: var(--titulos); font-weight: 700; font-size: 150px; fill: var(--tinta); letter-spacing: -6px; }
.perdida-numero tspan.cero { fill: var(--lima); }
.perdida-ficha { transform-box: fill-box; transform-origin: center; }

/* ---------- Movimiento: piezas ---------- */
/* Capa de tono: se funde a tinta mientras la sección oscura ocupa el centro de la pantalla. */
.tono {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 50% at 85% 10%, rgba(141, 200, 20, .16), transparent 70%), var(--tinta);
}

/* Titulares partidos en palabras con máscara (los prepara js/movimiento.js). */
.palabra { display: inline-block; vertical-align: top; overflow: hidden; padding: .1em .05em .17em; margin: -.1em -.05em -.17em; }
.palabra-in { display: inline-block; }

/* Subrayado lima que se dibuja al aparecer el titular. */
.subraya {
  background-image: linear-gradient(var(--subraya-color, var(--lima-claro)), var(--subraya-color, var(--lima-claro)));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% var(--subraya-alto, .11em);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.final .subraya { --subraya-color: rgba(255, 255, 255, .6); --subraya-alto: .3em; }

/* Palabra que cambia en la pastilla del héroe. */
.rotador { display: none; }
.rotando .rotador-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rotando .rotador { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; color: var(--verde-texto); font-weight: 700; }
.rotador span { grid-area: 1 / 1; opacity: 0; transform: translateY(95%); transition: transform .65s var(--suave), opacity .45s var(--suave); }
.rotador span.activa { opacity: 1; transform: none; }
.rotador span.sale { opacity: 0; transform: translateY(-95%); }

/* Tarjetas que se inclinan siguiendo el ratón, con un brillo que acompaña al cursor. */
[data-inclina] { --brillo: rgba(255, 255, 255, .45); }
.t-cobros[data-inclina], .demo-tarjeta-panel[data-inclina] { --brillo: rgba(200, 236, 110, .12); }
.t-reservas[data-inclina] { --brillo: rgba(255, 255, 255, .7); }
.con-movimiento [data-inclina]::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), var(--brillo), transparent 45%);
  opacity: 0; transition: opacity .45s var(--suave);
}
.con-movimiento [data-inclina].inclinando::before { opacity: 1; }
.js [data-inclina].inclinando { transition: transform .2s ease-out, box-shadow .45s var(--suave) !important; box-shadow: var(--sombra-l) !important; }

/* Formas orgánicas lima que flotan detrás de algunas secciones. */
.forma { position: absolute; z-index: -1; pointer-events: none; width: clamp(240px, 34vw, 520px); aspect-ratio: 1; }
.forma i {
  position: absolute; inset: 0; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: radial-gradient(circle at 35% 35%, rgba(200, 236, 110, .75), rgba(166, 219, 42, .22) 55%, rgba(166, 219, 42, 0) 72%);
}
.forma-a { right: -9%; top: 2%; }
.forma-b { left: -14%; top: 14%; }
.forma-c { right: -10%; bottom: 6%; width: clamp(200px, 24vw, 380px); }
.forma-d { left: -10%; bottom: -4%; }
.forma-e { right: -7%; top: 24%; width: clamp(200px, 22vw, 340px); }
.forma-e i, .forma-c i { background: radial-gradient(circle at 40% 40%, rgba(20, 169, 230, .2), rgba(20, 169, 230, .06) 55%, rgba(20, 169, 230, 0) 72%); }

/* Segunda cinta, lima y en sentido contrario. */
.cinta-lima .cinta-pista { background: var(--lima-claro); color: var(--tinta); transform: rotate(1.1deg); box-shadow: 0 18px 40px -26px rgba(77, 140, 10, .8); }
.cinta-lima li::after { background: var(--tinta); }
.cinta-lima { margin-bottom: 8px; }

/* ---------- Fotos ---------- */
.foto { position: relative; overflow: hidden; isolation: isolate; background: var(--papel-2); border-radius: var(--r-xl); }
.foto-capa { position: absolute; inset: 0; will-change: transform; }
.foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.foto-organica { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }

/* Carrusel: diapositivas apiladas que se funden; la activa hace un zoom lento (Ken Burns). */
.carrusel { position: relative; }
.carrusel .foto-capa { position: absolute; inset: 0; }
.diapositiva { position: absolute; inset: 0; margin: 0; opacity: 0; }
.diapositiva:first-child, .diapositiva.activa { opacity: 1; }
.en-marcha .diapositiva:first-child:not(.activa) { opacity: 0; }
.diapositiva.activa { z-index: 1; }
.diapositiva img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carrusel-pausa {
  position: absolute; z-index: 3; right: 14px; top: 14px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(31, 35, 40, .55); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s, transform .35s var(--muelle);
}
.carrusel-pausa:hover { background: rgba(31, 35, 40, .8); transform: scale(1.06); }
.carrusel-pausa::before, .carrusel-pausa::after { content: ""; width: 3px; height: 12px; border-radius: 2px; background: currentColor; grid-area: 1 / 1; }
.carrusel-pausa::before { transform: translateX(-3px); }
.carrusel-pausa::after { transform: translateX(3px); }
.en-pausa .carrusel-pausa::before { width: 0; height: 0; border-radius: 0; background: none; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; transform: translateX(2px); }
.en-pausa .carrusel-pausa::after { display: none; }

/* Héroe: carrusel de fotos con la tarjeta del recorrido superpuesta. */
.escena { position: relative; width: 100%; max-width: 640px; justify-self: center; }
.escena-fotos { position: relative; aspect-ratio: 4 / 3; border-radius: clamp(26px, 4vw, 44px); box-shadow: var(--sombra-l); }
.escena-fotos::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); background: linear-gradient(180deg, rgba(31, 35, 40, 0) 55%, rgba(31, 35, 40, .28)); }
.escena .ruta { position: relative; z-index: 3; width: 94%; margin: -16% auto 0; max-width: none; }
@media (min-width: 1000px) {
  .heroe .escena { justify-self: end; padding-bottom: 14%; }
  .escena-fotos { aspect-ratio: 1 / 1; width: 92%; margin-left: auto; }
  .escena .ruta { position: absolute; left: -10%; bottom: 0; width: 66%; margin: 0; }
}

/* «Para quién»: collage de tres vehículos con formas orgánicas. */
.para-quien-in { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .para-quien-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.collage { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 460px; justify-self: center; }
.collage .foto { position: absolute; box-shadow: var(--sombra-l); }
.collage-a { inset: 0 14% 22% 0; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.collage-b { right: 0; bottom: 4%; width: 52%; aspect-ratio: 1; border-radius: 34px; border: 6px solid var(--papel); }
.collage-c { left: 6%; bottom: 0; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--papel); }
.collage-etiqueta {
  position: absolute; z-index: 3; padding: .35em .85em; border-radius: 999px; font-family: var(--titulos); font-weight: 600; font-size: .9rem;
  background: var(--tinta); color: var(--lima-claro); box-shadow: var(--sombra-m); white-space: nowrap;
}
.ce-a { left: 8%; top: 8%; }
.ce-b { right: 4%; bottom: 46%; }
.ce-c { left: 2%; bottom: 33%; }

/* Navegador de «Tu marca»: portada con foto y miniaturas de la flota. */
.np-heroe { position: relative; overflow: hidden; isolation: isolate; }
.np-heroe .np-foto { position: absolute; inset: 0; z-index: -1; }
.np-heroe .np-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-heroe.con-foto { min-height: 13em; align-content: end; background: none; }
.np-heroe.con-foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 35, 40, .05) 20%, color-mix(in srgb, var(--marca-color) 45%, rgba(31, 35, 40, .55))); transition: background .8s var(--suave); }
.np-heroe.con-foto b { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.np-vehiculos span { position: relative; overflow: hidden; }
.np-vehiculos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Llamada final: foto con forma redondeada a la derecha. */
.final-foto { border-radius: 28px; aspect-ratio: 16 / 10; width: 100%; box-shadow: 0 30px 60px -30px rgba(31, 35, 40, .55); }
.final-foto img { object-position: 50% 45%; }
@media (min-width: 1000px) {
  .final-caja { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; column-gap: 48px; }
  .final-caja .carretera { grid-column: 1 / -1; }
  .final-foto { aspect-ratio: 4 / 5; rotate: 2.5deg; border-radius: 40px; max-width: 380px; justify-self: center; }
}

/* ---------- Apariciones y movimiento ---------- */
.js .aparece { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--suave), transform .9s var(--suave); }
.js .aparece.visible { opacity: 1; transform: none; }
.js .tarjeta.aparece.visible, .js .perfil.aparece.visible, .js .demo-tarjeta.aparece.visible { transition: opacity .9s var(--suave), transform .5s var(--muelle), box-shadow .4s var(--suave); }

@keyframes entra { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes entra-escala { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes subraya { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes flota-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4vw, 3vw); } }
@keyframes flota-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5vw, -3vw); } }
@keyframes cinta { to { transform: translateX(-50%); } }
@keyframes latido { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes panel-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes respuesta { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes dialogo-entra { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes aparece-fundido { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .entra { animation: entra .9s var(--suave) both; }
  .e1 { animation-delay: .05s; } .e2 { animation-delay: .14s; } .e3 { animation-delay: .26s; }
  .e4 { animation-delay: .36s; } .e5 { animation-delay: .46s; }
  .e6 { animation: entra-escala 1.1s var(--suave) .3s both, revela-carga 1.4s var(--suave) .3s backwards; }
  .resalta { animation: subraya 1.1s var(--suave) .8s both; }

  .b1 { animation: flota-a 18s ease-in-out infinite; }
  .b2 { animation: flota-b 22s ease-in-out infinite; }
  .b3 { animation: flota-a 26s ease-in-out infinite reverse; }

  .cinta-tira { animation: cinta 52s linear infinite; }
  .cinta:hover .cinta-tira { animation-play-state: paused; }

  /* Recorrido del héroe: 16 s, el coche llega a la meta al 75 %. */
  .ruta.en-marcha .ruta-progreso { animation: progreso 16s linear infinite; }
  .ruta.en-marcha .ruta-ficha { animation: ficha 16s linear infinite; }
  .ruta.en-marcha .ficha-halo { animation: halo 2s ease-out infinite; }
  .ruta.en-marcha .p1 .parada-punto { animation: p1 16s linear infinite; }
  .ruta.en-marcha .p2 .parada-punto { animation: p2 16s linear infinite; }
  .ruta.en-marcha .p3 .parada-punto { animation: p3 16s linear infinite; }
  .ruta.en-marcha .p4 .parada-punto { animation: p4 16s linear infinite; }
  .ruta.en-marcha .p5 .parada-punto { animation: p5 16s linear infinite; }
  .ruta.en-marcha .p6 .parada-punto { animation: p6 16s linear infinite; }
  .ruta.en-marcha .p7 .parada-punto { animation: p7 16s linear infinite; }
  .ruta.en-marcha .a1 { animation: a1 16s linear infinite; }
  .ruta.en-marcha .a2 { animation: a2 16s linear infinite; }
  .ruta.en-marcha .a3 { animation: a3 16s linear infinite; }
  .ruta.en-marcha .a4 { animation: a4 16s linear infinite; }
  .ruta.pausada * { animation-play-state: paused !important; }

  /* Ilustraciones de los marcos: se animan al mostrarse su capítulo. */
  .tour.visible .activo .ilu-chip { animation: chip 4.5s var(--suave) infinite; }
  .tour.visible .activo .reserva-boton { animation: pulsa 4.5s var(--suave) infinite; }
  .tour.visible .activo .movil-lista li { animation: entra .6s var(--suave) both; }
  .tour.visible .activo .movil-lista li:nth-child(2) { animation-delay: .25s; }
  .tour.visible .activo .movil-lista li:nth-child(3) { animation-delay: .5s; }
  .tour.visible .activo .movil-firma path { animation: firma 2.2s var(--suave) .7s both; }
  .tour.visible .activo .pago { animation: entra .6s var(--suave) both; }
  .tour.visible .activo .pago:nth-child(1) { animation-delay: .9s; }
  .tour.visible .activo .pago:nth-child(2) { animation-delay: 1.15s; }
  .tour.visible .activo .pago:nth-child(3) { animation-delay: 1.4s; }
  .tour.visible .activo .fotos span { animation: foto .55s var(--muelle) both; }
  .tour.visible .activo .fotos span:nth-child(2) { animation-delay: .12s; } .tour.visible .activo .fotos span:nth-child(3) { animation-delay: .24s; }
  .tour.visible .activo .fotos span:nth-child(4) { animation-delay: .36s; } .tour.visible .activo .fotos span:nth-child(5) { animation-delay: .48s; }
  .tour.visible .activo .fotos span:nth-child(6) { animation-delay: .6s; } .tour.visible .activo .fotos span:nth-child(7) { animation-delay: .72s; }
  .tour.visible .activo .fotos span:nth-child(8) { animation-delay: .84s; }
  .tour.visible .activo .entrega-datos div { animation: entra .6s var(--suave) both; }
  .tour.visible .activo .entrega-datos div:nth-child(1) { animation-delay: 1s; } .tour.visible .activo .entrega-datos div:nth-child(2) { animation-delay: 1.15s; }
  .tour.visible .activo .entrega-datos div:nth-child(3) { animation-delay: 1.3s; } .tour.visible .activo .entrega-datos div:nth-child(4) { animation-delay: 1.45s; }
  .tour.visible .activo .liquida li { animation: entra .55s var(--suave) both; }
  .tour.visible .activo .liquida li:nth-child(2) { animation-delay: .2s; } .tour.visible .activo .liquida li:nth-child(3) { animation-delay: .4s; } .tour.visible .activo .liquida li:nth-child(4) { animation-delay: .6s; }
  .tour.visible .activo .sello { animation: sello .7s var(--muelle) 1.1s both; }
  .marco.en-pantalla .barra { animation: barra .8s var(--suave) both; }
  .marco.en-pantalla .cal-fila:nth-of-type(2) .barra { animation-delay: .15s; }
  .marco.en-pantalla .cal-fila:nth-of-type(3) .barra { animation-delay: .3s; }
  .marco.en-pantalla .cal-fila:nth-of-type(4) .barra { animation-delay: .45s; }
  .marco.en-pantalla .cal-hoy { animation: entra .6s var(--suave) .9s both; }

  .navegador.en-pantalla .cursor { animation: latido 1s steps(1) infinite; }
  .flujo.visible .flujo-linea i { animation: dinero 2.4s var(--suave) infinite; }
  .flujo.visible .flujo-linea + .flujo-nodo + .flujo-linea i { animation-delay: 1.2s; }
  @media (max-width: 640px) { .flujo.visible .flujo-linea i { animation-name: dinero-v; } }

  .precio-caja.visible .flota-van { animation: entra .7s var(--muelle) both; }
  .precio-caja.visible .fv2 { animation-delay: .15s; }
  .precio-caja.visible .fv3 { animation-delay: .3s; }
  .precio-caja.visible .tachado::after { animation: tacha .6s var(--suave) .8s both; }

  .final-caja.visible .carretera-lineas { animation: carretera 1.1s linear infinite; }
  .final-caja.visible .carretera-van { animation: bache .55s ease-in-out infinite alternate; }
  .final-caja.visible .cv-rueda { animation: gira .5s linear infinite; }
  .final-caja.pausada .carretera-lineas, .final-caja.pausada .carretera-van, .final-caja.pausada .cv-rueda { animation-play-state: paused; }

  .perdida-ficha { animation: perdida 3.6s ease-in-out infinite; }

  /* Titulares: las palabras suben desde su máscara, una tras otra. */
  .js .partido.aparece, .js .partido.aparece.visible { opacity: 1; transform: none; }
  .js .partido.entra { animation: none; }
  .js .partido .palabra-in { opacity: 0; transform: translateY(108%) rotate(3deg); transform-origin: 0 100%; transition: transform .9s var(--suave), opacity .7s var(--suave); transition-delay: calc(var(--n) * 42ms + 60ms); }
  .js .partido.visible .palabra-in { opacity: 1; transform: none; }
  .js .partido .subraya { background-size: 0% var(--subraya-alto, .11em); transition: background-size 1s var(--suave); transition-delay: calc(var(--palabras, 6) * 42ms + 250ms); }
  .js .partido.visible .subraya { background-size: 100% var(--subraya-alto, .11em); }

  /* Imágenes y marcos: se abren con una máscara redondeada. */
  .js .revela { clip-path: inset(12% 9% 12% 9% round 80px); transition: clip-path 1.15s var(--suave); }
  .js .revela.visible { clip-path: inset(-120px round 170px); }

  /* Pestañas del recorrido: el capítulo que entra llega desde un lado y el que sale se va por el otro. */
  .js .tour-panel { transition: opacity .55s var(--suave) .08s, transform .75s var(--suave) .05s, visibility 0s linear 0s; }
  .js .tour-panel:not(.activo) { transform: translateX(var(--desde, 48px)); transition: opacity .35s var(--suave), transform .6s var(--suave), visibility 0s linear .6s; }

  /* Etiquetas, chips y números: entran con un muelle suave. */
  :is(.datos, .idiomas, .demo-chips, .demo-notas, .ciclo) > li:nth-child(2) { --i: 1; }
  :is(.datos, .idiomas, .demo-chips, .demo-notas, .ciclo) > li:nth-child(3) { --i: 2; }
  :is(.datos, .idiomas, .demo-chips, .demo-notas, .ciclo) > li:nth-child(4) { --i: 3; }
  :is(.datos, .idiomas, .demo-chips, .demo-notas, .ciclo) > li:nth-child(5) { --i: 4; }
  :is(.datos, .idiomas, .demo-chips, .demo-notas, .ciclo) > li:nth-child(6) { --i: 5; }
  :is(.datos, .idiomas, .demo-chips, .demo-notas, .ciclo) > li:nth-child(7) { --i: 6; }
  .datos > li { animation: chip-entra .7s var(--muelle) backwards; animation-delay: calc(.6s + var(--i, 0) * 90ms); }
  .js .aparece:not(.visible) :is(.idiomas, .demo-chips) > li, .js :is(.demo-notas, .ciclo).aparece:not(.visible) > li { opacity: 0; }
  .js .aparece.visible :is(.idiomas, .demo-chips) > li, .js :is(.demo-notas, .ciclo).aparece.visible > li { animation: chip-entra .7s var(--muelle) backwards; animation-delay: calc(.3s + var(--i, 0) * 70ms); }
  .js .etiqueta.aparece:not(.visible) { transform: translateY(14px) scale(.84); }
  .js .etiqueta.aparece.visible { transition: opacity .6s var(--suave), transform .85s var(--muelle); }
  .js .clave.aparece.visible .clave-n { animation: numero-entra .8s var(--muelle) .25s backwards; }
  .js .tour.visible .tour-panel.activo .paso-n { animation: numero-entra .7s var(--muelle) .3s backwards; }
  .js .tour.visible .tour-panel.activo .tour-pasos li:nth-child(2) .paso-n { animation-delay: .45s; }
  .precio-caja.visible h2 .sin { animation: sello-sin .9s var(--muelle) .9s backwards; }
  .js .collage.aparece:not(.visible) .collage-etiqueta { opacity: 0; }
  .js .collage.visible .collage-etiqueta { animation: chip-entra .8s var(--muelle) backwards; }
  .js .collage.visible .ce-a { animation-delay: .7s; }
  .js .collage.visible .ce-b { animation-delay: .9s; }
  .js .collage.visible .ce-c { animation-delay: 1.1s; }

  /* Formas que flotan y tono de fondo de la sección oscura. */
  .forma i { animation: deriva 30s ease-in-out infinite alternate; }
  .forma-b i { animation-duration: 36s; animation-direction: alternate-reverse; }
  .forma-d i { animation-duration: 26s; }
  .tono { transition: opacity .9s var(--suave); }
  .tono-oscuro .tono { opacity: 1; }
  .cinta-lima .cinta-tira { animation-direction: reverse; animation-duration: 60s; }
  .foto-zoom img { animation: zoom-lento 24s ease-in-out infinite alternate; }
  .diapositiva { transition: opacity 1.3s var(--suave); }
  .diapositiva.activa img { animation: ken-burns 8s ease-out both; }
  .diapositiva:nth-child(2n).activa img { animation-name: ken-burns-b; }
  .diapositiva.saliendo img { animation: ken-burns-salida 1.4s linear both; }
  .en-pausa .diapositiva img { animation-play-state: paused; }
}

@keyframes revela-carga { from { clip-path: inset(10% 12% 10% 12% round 90px); } to { clip-path: inset(-120px round 170px); } }
@keyframes chip-entra { from { opacity: 0; transform: translateY(12px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes numero-entra { from { opacity: 0; transform: scale(.3) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes sello-sin { from { opacity: 0; transform: rotate(-14deg) scale(.6); } to { opacity: 1; transform: rotate(-1.5deg); } }
@keyframes deriva { 0% { transform: translate(0, 0) rotate(0deg) scale(1); } 50% { transform: translate(5%, -7%) rotate(55deg) scale(1.07); } 100% { transform: translate(-6%, 5%) rotate(115deg) scale(.95); } }
@keyframes progreso { 0% { stroke-dashoffset: 1; opacity: 1; } 75% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 95% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes ficha { 0% { opacity: 0; } 2%, 90% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes halo { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes p1 { 0%, 1.5% { transform: scale(0); animation-timing-function: var(--muelle); } 4.5%, 90% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
@keyframes p2 { 0%, 12.7% { transform: scale(0); animation-timing-function: var(--muelle); } 15.7%, 90% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
@keyframes p3 { 0%, 32.6% { transform: scale(0); animation-timing-function: var(--muelle); } 35.6%, 90% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
@keyframes p4 { 0%, 42.4% { transform: scale(0); animation-timing-function: var(--muelle); } 45.4%, 90% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
@keyframes p5 { 0%, 59.3% { transform: scale(0); animation-timing-function: var(--muelle); } 62.3%, 90% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
@keyframes p6 { 0%, 67.2% { transform: scale(0); animation-timing-function: var(--muelle); } 70.2%, 90% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
@keyframes p7 { 0%, 73% { transform: scale(0); animation-timing-function: var(--muelle); } 76%, 90% { transform: scale(1); } 95%, 100% { transform: scale(0); } }
@keyframes a1 { 0%, 12.7% { opacity: 0; transform: translateY(14px) scale(.9); animation-timing-function: var(--muelle); } 15.7%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes a2 { 0%, 32.6% { opacity: 0; transform: translateY(14px) scale(.9); animation-timing-function: var(--muelle); } 35.6%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes a3 { 0%, 59.3% { opacity: 0; transform: translateY(14px) scale(.9); animation-timing-function: var(--muelle); } 62.3%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes a4 { 0%, 73% { opacity: 0; transform: translateY(14px) scale(.9); animation-timing-function: var(--muelle); } 76%, 90% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes chip { 0%, 30% { opacity: 0; transform: translateY(14px) scale(.9); } 40%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes pulsa { 0%, 22% { transform: none; } 27% { transform: scale(.92); } 33%, 100% { transform: none; } }
@keyframes firma { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
@keyframes foto { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes sello { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes barra { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dinero { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes dinero-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@keyframes tacha { from { transform: rotate(-6deg) scaleX(0); } to { transform: rotate(-6deg) scaleX(1); } }
@keyframes carretera { to { transform: translateX(-72px); } }
@keyframes bache { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes ken-burns { from { transform: scale(1.14) translate(2%, 1.5%); } to { transform: scale(1.02); } }
@keyframes ken-burns-b { from { transform: scale(1.14) translate(-2%, -1%); } to { transform: scale(1.02); } }
@keyframes ken-burns-salida { from { transform: scale(1.02); } to { transform: scale(1); } }
@keyframes zoom-lento { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes perdida { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(6px, -8px) rotate(8deg); } 60% { transform: translate(-4px, -2px) rotate(-6deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .aparece { opacity: 1; transform: none; }
  .js .frase.aparece:not(.visible) mark { background-size: 100% 100%; }
  .cinta-tira { animation: none !important; }
}

/* Soporte de altura animada en los <details> donde exista. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    .faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--suave), content-visibility .45s allow-discrete; }
    .faq details[open]::details-content { height: auto; }
  }
}
