/* ============================================================
   Web TPV · hoja de estilo única
   Tipografía Satoshi (Fontshare, licencia libre) servida desde
   el propio dominio. Paleta: azul noche, azul eléctrico de la
   marca y lima como acento.
   Sin frameworks. Sin fuentes de terceros en tiempo de carga.
   ============================================================ */

@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/assets/fonts/satoshi-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* tinta */
  --tinta: #0a1224;
  --tinta-media: #101c36;
  --tinta-suave: #1b2a48;

  /* papel */
  --papel: #ffffff;
  --papel-2: #f6f8fc;
  --papel-3: #eef2f9;
  --linea: #e5eaf4;
  --linea-2: #d6dfee;

  /* marca */
  --azul: #0a6cf5;
  --azul-hondo: #0052c9;
  --azul-tinte: #ecf3ff;
  --azul-borde: #d6e4ff;

  --lima: #b9f04a;
  --lima-hondo: #9ada2c;
  --verde: #6ac71b;
  --teal: #0d9488;
  --teal-tinte: #e9fbf7;

  /* texto */
  --texto: #2a3448;
  --texto-suave: #5b6b85;
  --texto-tenue: #8794a9;

  /* efectos */
  --sombra-s: 0 1px 2px rgba(10, 18, 36, .05);
  --sombra-m: 0 6px 18px rgba(10, 18, 36, .07), 0 2px 6px rgba(10, 18, 36, .04);
  --sombra-l: 0 24px 60px rgba(10, 18, 36, .14), 0 8px 20px rgba(10, 18, 36, .06);
  --sombra-azul: 0 10px 26px rgba(10, 108, 245, .26);
  --sombra-lima: 0 10px 26px rgba(185, 240, 74, .30);
  --anillo: 0 0 0 4px rgba(10, 108, 245, .16);
  --anillo-lima: 0 0 0 4px rgba(185, 240, 74, .30);

  --radio-s: 10px;
  --radio-m: 14px;
  --radio-l: 20px;
  --radio-xl: 28px;

  --ancho: 1160px;
  --ancho-texto: 66ch;

  --fuente: 'Satoshi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fuente-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --transicion: 200ms cubic-bezier(.2, .65, .25, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body {
  margin: 0;
  font-family: var(--fuente);
  font-weight: 500;
  font-size: clamp(1rem, .97rem + .16vw, 1.06rem);
  line-height: 1.62;
  color: var(--texto);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background-color: var(--papel-2); }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.032em;
  color: var(--tinta);
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.9rem); letter-spacing: -.028em; }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.32rem); letter-spacing: -.02em; line-height: 1.2; }
h4 { font-size: 1rem; letter-spacing: -.015em; }

h1 em, h2 em {
  font-style: normal;
  color: var(--azul);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--azul-hondo); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--azul); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .38em; }

strong { color: var(--tinta); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 3px;
  border-radius: 8px;
}

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

/* ------------------------------------------------------------ utilidades */
.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.estrecho { max-width: 780px; margin-inline: auto; }
.centrado { text-align: center; }
.centrado > * { margin-inline: auto; }

.seccion { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.seccion--alt { background: var(--papel-2); }
.seccion--noche {
  background: var(--tinta);
  color: #c4cfdf;
  padding-block: clamp(2.4rem, 5vw, 4rem);
}
.seccion--noche h1, .seccion--noche h2, .seccion--noche h3, .seccion--noche strong { color: #fff; }
.seccion--noche h2 em { color: var(--lima); }

.saltar {
  position: absolute; left: -9999px;
  background: var(--azul); color: #fff; padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radio-s) 0; z-index: 999; font-weight: 700;
}
.saltar:focus { left: 0; top: 0; color: #fff; }

.solo-lectores {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* tarjeta de acceso al área de cliente */
.acceso-cuenta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem;
  background: linear-gradient(140deg, #eef5ff 0%, #e6f7f3 100%);
  border: 1px solid #d7e6ff; border-radius: var(--radio-l);
  padding: 1.5rem 1.7rem; margin-bottom: 1.7rem;
}
.acceso-cuenta h2 { margin: 0 0 .4rem; font-size: 1.25rem; }
.acceso-cuenta p { margin: 0; color: var(--texto-suave); font-size: .95rem; }
.acceso-cuenta .boton { flex: none; }
@media (max-width: 680px) {
  .acceso-cuenta { flex-direction: column; align-items: stretch; padding: 1.3rem 1.4rem; }
  .acceso-cuenta .boton { width: 100%; }
}

/* ------------------------------------------------------------ etiquetas */.sobrelinea {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--azul-hondo);
  background: var(--azul-tinte);
  border: 1px solid var(--azul-borde);
  padding: .32rem .72rem; border-radius: 999px;
  margin-bottom: 1.15rem;
}
.seccion--noche .sobrelinea {
  color: var(--lima); background: rgba(185, 240, 74, .1);
  border-color: rgba(185, 240, 74, .28);
}
.portada .sobrelinea {
  color: var(--lima); background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
}

.entradilla {
  font-size: clamp(1.05rem, 1rem + .42vw, 1.19rem);
  color: var(--texto-suave);
  max-width: var(--ancho-texto);
  line-height: 1.6;
}
.seccion--noche .entradilla { color: #a8b7cc; }

.pastilla {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .01em;
  background: var(--lima); color: #1d2b06;
}
.pastilla--azul { background: var(--azul-tinte); color: var(--azul-hondo); border: 1px solid var(--azul-borde); }
.pastilla--teal { background: var(--teal-tinte); color: #0b6d63; border: 1px solid #c4f0e6; }

/* ------------------------------------------------------------ botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .86rem 1.5rem;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  color: #fff; background: var(--azul);
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--transicion), box-shadow var(--transicion), background var(--transicion), color var(--transicion);
  box-shadow: var(--sombra-azul);
}
.boton:hover { background: var(--azul-hondo); color: #fff; transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton:focus-visible { outline: none; box-shadow: var(--anillo), var(--sombra-azul); }

.boton--verde {
  background: var(--lima); color: #1a2604;
  box-shadow: var(--sombra-lima);
}
.boton--verde:hover { background: var(--lima-hondo); color: #14200a; }
.boton--verde:focus-visible { outline: none; box-shadow: var(--anillo-lima), var(--sombra-lima); }

.boton--oscuro { background: var(--tinta); color: #fff; box-shadow: var(--sombra-m); }
.boton--oscuro:hover { background: var(--tinta-suave); color: #fff; }

.boton--fantasma {
  background: transparent; color: var(--tinta);
  border-color: var(--linea-2); box-shadow: none;
}
.boton--fantasma:hover { background: var(--azul-tinte); color: var(--azul-hondo); border-color: var(--azul-borde); }

.boton--claro {
  background: rgba(255, 255, 255, .08); color: #fff;
  border-color: rgba(255, 255, 255, .22); box-shadow: none;
  backdrop-filter: blur(8px);
}
.boton--claro:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.boton--grande { padding: 1.02rem 1.85rem; font-size: 1.04rem; }
.boton--bloque { width: 100%; }

.grupo-botones { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ------------------------------------------------------------ cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-bottom: 1px solid var(--linea);
  box-shadow: 0 6px 20px rgba(10, 18, 36, .05);
}

.cabecera__barra {
  display: flex; align-items: center; gap: .9rem;
  min-height: 62px;
}

.marca {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; flex-shrink: 0;
}
.marca img { height: 34px; width: auto; background: none; }

.navegacion { display: flex; align-items: center; gap: .05rem; margin-inline-start: auto; }
.navegacion a {
  padding: .44rem .68rem; border-radius: 999px;
  font-size: .87rem; font-weight: 700; color: #0449b3;
  text-decoration: none; white-space: nowrap;
  transition: background var(--transicion), color var(--transicion);
}
.navegacion a:hover { background: var(--lima); color: #1a2604; }
.navegacion a[aria-current="page"] { color: #033a8f; background: rgba(185, 240, 74, .5); }

.idiomas {
  display: flex; align-items: center; gap: .05rem;
  margin-inline-start: .3rem;
  background: var(--papel-3); border-radius: 999px; padding: .16rem;
}
.idiomas a, .idiomas__pronto {
  display: grid; place-items: center;
  padding: .26rem .3rem; border-radius: 999px;
  line-height: 0; text-decoration: none;
}
.idiomas img {
  display: block; border-radius: 3px;
  width: 22px; height: 15px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(10, 18, 36, .14);
}
.idiomas a:hover { background: #fff; }
.idiomas a[aria-current="true"] { background: #fff; box-shadow: 0 1px 3px rgba(10, 18, 36, .18); }
.idiomas__pronto { opacity: .4; cursor: not-allowed; }

.cabecera__acciones { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.cabecera__acciones .boton {
  padding: .52rem .98rem; font-size: .86rem;
  background: var(--lima); color: #1a2604;
  box-shadow: 0 8px 20px rgba(185, 240, 74, .32);
}
.cabecera__acciones .boton:hover { background: var(--lima-hondo); color: #14200a; }

.menu-boton {
  display: none;
  width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--papel-3); border: 1px solid var(--linea);
  border-radius: 12px; cursor: pointer; color: var(--tinta);
}
.menu-boton svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------ portada */
.portada {
  position: relative; overflow: visible;
  background: var(--tinta);
  color: #c8d3e3;
  padding-block: clamp(1.1rem, 2.2vw, 1.8rem) clamp(.6rem, 1.6vw, 1.2rem);
  isolation: isolate;
  z-index: 1;
}
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(920px 500px at 82% -12%, rgba(10, 108, 245, .46), transparent 62%),
    radial-gradient(700px 420px at 6% 8%, rgba(185, 240, 74, .16), transparent 58%),
    radial-gradient(600px 400px at 50% 110%, rgba(13, 148, 136, .18), transparent 60%);
}
.portada::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 72% 26%, #000 0%, transparent 70%);
}

.portada__centro {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.portada__centro .entradilla { margin-inline: auto; }
.portada__centro .portada__lista { justify-content: center; }
.portada__centro .grupo-botones { justify-content: center; }

.portada__escena {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: clamp(1.3rem, 3vw, 2.2rem);
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}
/* el móvil sobresale por la izquierda: desplazo el marco para que el conjunto
   quede ópticamente centrado */
@media (min-width: 761px) {
  .portada__escena .ventana { margin-inline-start: clamp(0px, 3vw, 58px); }
}

.portada h1 {
  color: #fff; margin-bottom: .5rem;
  font-size: clamp(1.95rem, 1.25rem + 2.4vw, 3.05rem);
  letter-spacing: -.035em;
  line-height: 1.04;
  max-width: 26ch;
  margin-inline: auto;
}
.portada h1 em {
  display: inline-block;
  transition: opacity 240ms ease, transform 240ms ease;
}
.portada h1 em[data-cambiando="true"] { opacity: 0; transform: translateY(7px); }
.portada__gancho {
  font-size: clamp(1.15rem, 1rem + .55vw, 1.42rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0 0 .7rem;
}
.portada h1 em {
  color: var(--lima);
  background: linear-gradient(96deg, var(--lima) 8%, #d8ff8f 52%, var(--lima-hondo) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.portada .entradilla { color: #b3c2d6; }

.portada__lista {
  display: flex; flex-wrap: wrap; gap: .5rem 1.3rem;
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  font-size: .93rem; color: #c8d3e3; font-weight: 500;
}
.portada__lista li { display: flex; align-items: center; gap: .45rem; margin: 0; }
.portada__lista svg { width: 17px; height: 17px; color: var(--lima); flex-shrink: 0; }

.portada__grupo { margin-top: 2rem; }
.portada__nota { margin-top: 1rem; font-size: .85rem; color: #8b9cb4; }

.ventana {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 920px;
  border-radius: var(--radio-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .5rem;
  box-shadow: 0 44px 100px rgba(2, 7, 18, .62);
  transition: transform 520ms cubic-bezier(.2, .65, .25, 1), box-shadow 520ms;
}
.ventana:hover { transform: translateY(-4px); box-shadow: 0 54px 120px rgba(2, 7, 18, .7); }
.ventana img { border-radius: 22px; width: 100%; height: auto; }
.ventana__barra { display: flex; gap: .4rem; padding: .45rem .6rem .8rem; }
.ventana__barra i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.ventana__barra i:first-child { background: #ff5f57; }
.ventana__barra i:nth-child(2) { background: #febc2e; }
.ventana__barra i:nth-child(3) { background: #28c840; }

.insignia-flotante {
  position: absolute; right: 16px; bottom: 16px;
  background: var(--lima); color: #1a2604;
  border-radius: 999px; padding: .6rem .95rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: .45rem;
}
.insignia-flotante svg { width: 17px; height: 17px; }

/* móvil que asoma por el borde inferior de la portada */
.movil {
  position: absolute;
  right: clamp(-28px, 1vw, 6px);
  bottom: clamp(-132px, -9vw, -64px);
  width: clamp(150px, 15vw, 212px);
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 34px 74px rgba(2, 7, 18, .72), 0 0 0 7px rgba(255, 255, 255, .07);
  rotate: -2deg;
  z-index: 3;
}
.movil img { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .movil { animation: subir 700ms cubic-bezier(.2, .65, .25, 1) both; animation-delay: 120ms; }
}

/* ------------------------------------------------------------ franja de datos */
.franja { position: relative; z-index: 0; border-block: 1px solid var(--linea); background: var(--papel); }
.franja__rejilla {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; padding-block: 2rem;
}
/* en escritorio dejo hueco a la derecha para que el móvil que rompe la portada
   no tape el último dato */
@media (min-width: 1025px) {
  .franja__rejilla { padding-inline-end: clamp(60px, 17vw, 250px); }
}
.franja__dato { text-align: center; }
.franja__dato b {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem);
  font-weight: 900; letter-spacing: -.03em; color: var(--tinta);
  line-height: 1.1; margin-bottom: .2rem;
}
.franja__dato span { font-size: .84rem; color: var(--texto-suave); }

/* ------------------------------------------------------------ tarjetas */
.rejilla { display: grid; gap: 1.1rem; }
.rejilla--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tarjeta {
  position: relative;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--radio-l); padding: 1.7rem;
  box-shadow: var(--sombra-s);
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-m);
  border-color: var(--azul-borde);
}
.tarjeta h3 { margin-bottom: .45rem; }
.tarjeta p { color: var(--texto-suave); font-size: .95rem; margin: 0; }
/* las tarjetas de una rejilla de 3 alinean su botón abajo, aunque el texto mida distinto */
.rejilla--3 > .tarjeta { display: flex; flex-direction: column; }
.rejilla--3 > .tarjeta:has(> p:last-child a.boton) > p:last-child { margin-top: auto !important; padding-top: 1rem; }

.icono {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  background: var(--azul-tinte); color: var(--azul);
  border: 1px solid var(--azul-borde);
}
.icono svg { width: 22px; height: 22px; }
.icono--verde { background: rgba(185, 240, 74, .18); color: #4d7a0d; border-color: rgba(185, 240, 74, .5); }
.icono--teal { background: var(--teal-tinte); color: var(--teal); border-color: #c4f0e6; }

.seccion--noche .tarjeta {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: none;
}
.seccion--noche .tarjeta:hover { background: rgba(255, 255, 255, .07); border-color: rgba(185, 240, 74, .3); }
.seccion--noche .tarjeta p { color: #a8b7cc; }
.seccion--noche .icono { background: rgba(185, 240, 74, .12); color: var(--lima); border-color: rgba(185, 240, 74, .3); }

/* ------------------------------------------------------------ sectores */
.sector {
  display: flex; flex-direction: column;
  background: var(--papel); border: 1px solid var(--linea);
  border-radius: var(--radio-l); padding: 0; overflow: hidden;
  box-shadow: var(--sombra-s);
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.sector:hover {
  transform: translateY(-4px); box-shadow: var(--sombra-m);
  border-color: var(--azul-borde); color: inherit;
}
.sector__cuerpo { padding: 1.2rem 1.3rem 1.4rem; }
.sector__cuerpo h3 { margin-bottom: .3rem; }
.sector__cuerpo p { color: var(--texto-suave); font-size: .92rem; margin: 0 0 .9rem; }
.sector__flecha {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .87rem; font-weight: 700; color: var(--azul-hondo);
}
.sector__flecha svg { width: 15px; height: 15px; transition: transform var(--transicion); }
.sector:hover .sector__flecha svg { transform: translateX(4px); }

/* ------------------------------------------------------------ recorrido numerado (estilo «inside a goal») */
.recorrido {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: start;
}

.lista-numerada { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; }
.lista-numerada li {
  display: grid; grid-template-columns: 58px minmax(0, 1fr);
  gap: 1rem; align-items: start;
  padding: 1.1rem 0; margin: 0;
  border-top: 1px solid var(--linea);
}
.lista-numerada li:last-child { border-bottom: 1px solid var(--linea); }
.lista-numerada b {
  font-size: 1.02rem; font-weight: 900; color: var(--azul);
  letter-spacing: -.02em; padding-top: .1rem;
}
.lista-numerada h3 { margin-bottom: .22rem; font-size: 1.06rem; }
.lista-numerada p { margin: 0; color: var(--texto-suave); font-size: .93rem; }

.recorrido__visual { position: sticky; top: 96px; }
.recorrido__visual img {
  width: 100%; border-radius: var(--radio-l);
  box-shadow: var(--sombra-l);
  border: 1px solid var(--linea);
}
.recorrido__visual figcaption {
  margin-top: .8rem; font-size: .82rem; color: var(--texto-tenue); text-align: center;
}

/* ------------------------------------------------------------ sectores con foto */
.sector__foto { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--papel-3); }
.sector__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 480ms cubic-bezier(.2, .65, .25, 1); }
.sector__foto::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(10, 108, 245, .62), rgba(13, 148, 136, .5) 55%, rgba(185, 240, 74, .55));
  opacity: 0; transition: opacity 340ms ease;
}
.sector:hover .sector__foto::after, .sector:focus-within .sector__foto::after { opacity: 1; }
.sector:hover .sector__foto img, .sector:focus-within .sector__foto img { transform: scale(1.06); }
.sector .sector__cuerpo { display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.sector .sector__cuerpo .boton {
  margin-top: auto; align-self: flex-start;
  padding: .62rem 1.15rem; font-size: .87rem;
  background: var(--lima); color: #1a2604; border-color: transparent;
  box-shadow: 0 8px 20px rgba(185, 240, 74, .3);
}
.sector .sector__cuerpo .boton:hover { background: var(--lima-hondo); color: #14200a; }

/* ------------------------------------------------------------ recorrido: progreso y fotos por paso */
.recorrido { --paso: var(--azul); --paso-suave: rgba(10, 108, 245, .13); }

.recorrido__progreso {
  height: 4px; border-radius: 999px; background: var(--linea);
  overflow: hidden; margin-bottom: .9rem;
}
.recorrido__progreso span {
  display: block; height: 100%; width: 16.6667%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--paso), var(--lima));
  transition: width 420ms cubic-bezier(.2, .65, .25, 1), background 420ms ease;
}
.recorrido__visual img { border-color: var(--paso); }
.lista-numerada li { transition: background 260ms ease, box-shadow 260ms ease; }
.lista-numerada li[data-activo="true"] b { color: var(--paso); }
.lista-numerada li[data-activo="true"] h3 { color: var(--paso); }
.lista-numerada li[data-activo="true"] {
  background: var(--paso-suave);
  box-shadow: inset 3px 0 0 var(--paso);
}
.lista-numerada li { padding-inline: .8rem; margin-inline: -.8rem; border-radius: 10px; }

/* la foto se cambia al bajar: la animación es solo un adorno, nunca la deja oculta */
@keyframes foto-entra {
  from { opacity: 0; transform: scale(.992); }
  to { opacity: 1; transform: none; }
}
.recorrido__img { opacity: 1; }
.recorrido__img.entrando { animation: foto-entra 280ms ease both; }

.paso__foto { display: none; margin: .85rem 0 0; }
.paso__foto img {
  width: 100%; border-radius: var(--radio-m);
  border: 1px solid var(--linea); box-shadow: var(--sombra-s);
}
.paso__foto figcaption { font-size: .78rem; color: var(--texto-tenue); margin-top: .4rem; }

/* ------------------------------------------------------------ planes de precios */
.planes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}
.plan {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--papel); border: 1px solid var(--linea);
  border-radius: var(--radio-xl); padding: 1.7rem;
  box-shadow: var(--sombra-s); height: 100%;
  transition: transform var(--transicion), box-shadow var(--transicion), border-color var(--transicion);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--sombra-m); }
.plan--destacado {
  border: 2px solid var(--tinta);
  background: var(--tinta);
  color: #c4cfdf;
  box-shadow: var(--sombra-l);
  position: relative; overflow: hidden;
}
.plan--destacado::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 320px at 88% -20%, rgba(10, 108, 245, .42), transparent 66%);
  pointer-events: none;
}
.plan--destacado > * { position: relative; }
.plan--destacado h3,
.plan--destacado .plan__precio { color: #fff; }
.plan--destacado .plan__precio span { color: #9aabc2; }
.plan--destacado .plan__resumen { color: #a8b7cc; }
.plan--destacado .plan__etiqueta { background: var(--lima); color: #1d2b06; }
.plan--destacado .lista-ticks li { color: #c4cfdf; }
.plan--destacado .lista-ticks li strong { color: #fff; }
.plan--destacado .lista-ticks svg { color: var(--lima); }

/* ------------------------------------------------------------ tarjetas de módulo */
.modulo {
  position: relative; overflow: hidden;
  --c: #0077ed; --c2: #38bdf8; --bg: #dbe9ff; --bg-hover: #c7ddfd;
  background: var(--bg);
  /* la tarjeta es columna para que el precio quede abajo, alineado con los demás */
  display: flex; flex-direction: column;
}
.modulo > .modulo__precio { margin-top: auto; }
.modulo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c), var(--c2));
}
.modulo:hover {
  background: var(--bg-hover);
  border-color: var(--c);
  box-shadow: 0 16px 34px rgba(10, 18, 36, .10);
}
.modulo:hover .icono,
.modulo:hover .modulo__ico { border-color: var(--c); }

/* ocho tonos distintos, uno por módulo */
.modulo--1 { --c: #0077ed; --c2: #38bdf8; --bg: #dbe9ff; --bg-hover: #c5dbfd; }
.modulo--2 { --c: #16a34a; --c2: #4ade80; --bg: #d9f2c2; --bg-hover: #c5eba4; }
.modulo--3 { --c: #7c3aed; --c2: #a78bfa; --bg: #e5dafc; --bg-hover: #d6c5fa; }
.modulo--4 { --c: #f59e0b; --c2: #fbbf24; --bg: #fdeac3; --bg-hover: #fbdfa1; }
.modulo--5 { --c: #0891b2; --c2: #22d3ee; --bg: #cdecf6; --bg-hover: #b3e2f2; }
.modulo--6 { --c: #65a30d; --c2: #a3e635; --bg: #e4f2bd; --bg-hover: #d6ec9f; }
.modulo--7 { --c: #be123c; --c2: #fb7185; --bg: #fbd5de; --bg-hover: #f8bfcd; }
.modulo--8 { --c: #ec4899; --c2: #f472b6; --bg: #fbd9e9; --bg-hover: #f8c3dd; }

.modulo__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 14px; font-size: 1.5rem; line-height: 1;
  background: #fff;
  border: 1px solid rgba(10, 18, 36, .08);
  transition: transform var(--transicion), border-color var(--transicion);
}
.modulo:hover .modulo__ico { transform: scale(1.06); }

.modulo p { color: #3f4d63; }
.modulo h3 { color: var(--tinta); }

.modulo__precio {
  display: inline-flex; align-items: baseline; gap: .3rem;
  margin-top: 1rem; padding: .3rem .75rem; border-radius: 999px;
  background: #fff; color: var(--c);
  box-shadow: 0 2px 6px rgba(10, 18, 36, .07);
  font-weight: 900; font-size: 1rem; letter-spacing: -.01em;
}
.modulo__precio span { font-size: .76rem; font-weight: 700; color: var(--texto-suave); letter-spacing: 0; }
.modulo:hover .modulo__precio { background: #fff; }
.plan__etiqueta {
  display: inline-flex; align-self: flex-start;
  padding: .28rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--lima); color: #1d2b06;
}
.plan h3 { margin: .2rem 0 .1rem; font-size: 1.22rem; }
.plan__precio {
  display: flex; align-items: baseline; gap: .35rem;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
  font-weight: 900; letter-spacing: -.03em; color: var(--tinta); line-height: 1;
  margin: .3rem 0 .1rem;
}
.plan__precio span { font-size: .88rem; font-weight: 700; color: var(--texto-suave); letter-spacing: 0; }
.plan__resumen { font-size: .92rem; color: var(--texto-suave); margin: 0 0 .4rem; }
.plan .lista-ticks { margin: .4rem 0 1.4rem; gap: .5rem; }
.plan .lista-ticks li { color: var(--texto-suave); font-size: .9rem; }
.plan .lista-ticks svg { color: var(--verde); }
.plan .boton { margin-top: auto; }

.tabla-comparar { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla-comparar th, .tabla-comparar td { padding: .8rem .9rem; border-bottom: 1px solid var(--linea); text-align: left; }
.tabla-comparar thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-tenue); }
.tabla-comparar td:not(:first-child), .tabla-comparar th:not(:first-child) { text-align: center; }
.tabla-comparar tbody tr:hover { background: var(--papel-2); }
.tabla-comparar .si { color: var(--verde); font-weight: 700; }
.tabla-comparar .no { color: var(--texto-tenue); }
.tabla-envoltura { overflow-x: auto; border: 1px solid var(--linea); border-radius: var(--radio-l); background: #fff; }

@media (max-width: 900px) {
  .planes { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ franja de cabecera de páginas interiores */
.pagina-hero {
  position: relative; overflow: hidden;
  background: var(--tinta);
  color: #c8d3e3;
  padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(2rem, 4.5vw, 3.4rem);
  isolation: isolate;
  text-align: center;
}
.pagina-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 460px at 82% -18%, rgba(10, 108, 245, .44), transparent 62%),
    radial-gradient(620px 380px at 4% 4%, rgba(185, 240, 74, .14), transparent 58%),
    radial-gradient(560px 360px at 50% 118%, rgba(13, 148, 136, .18), transparent 60%);
}
.pagina-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 72%);
}
.pagina-hero h1 {
  color: #fff;
  max-width: 26ch;
  margin-inline: auto;
  font-size: clamp(1.85rem, 1.25rem + 2.2vw, 2.9rem);
}
.pagina-hero .entradilla {
  color: #b3c2d6;
  margin-inline: auto;
  margin-top: .9rem;
  max-width: 62ch;
}
.pagina-hero + .seccion { padding-top: clamp(2.2rem, 4.5vw, 3.6rem); }

/* texto con el color en movimiento */
@keyframes desplazar-color {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}
.texto-animado {
  background-image: linear-gradient(96deg, var(--lima) 0%, #e7ff9e 22%, #66c6ff 48%, var(--lima) 72%, #d8ff8f 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: desplazar-color 9s linear infinite;
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .texto-animado {
    animation: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }
}

/* ------------------------------------------------------------ tarjetas de sector con color propio */
.sector { position: relative; --c: var(--azul); --c2: #38bdf8; --bg: var(--azul-tinte); }
.sector::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; z-index: 2;
  background: linear-gradient(90deg, var(--c), var(--c2));
}
.sector--bar { --c: #f59e0b; --c2: #fbbf24; --bg: #fffbeb; }
.sector--beaute { --c: #ec4899; --c2: #f472b6; --bg: #fdf2f8; }
.sector--super { --c: #4d9c14; --c2: #84cc16; --bg: #f7fee7; }
.sector--boutique { --c: #0077ed; --c2: #38bdf8; --bg: #eff6ff; }

.sector:hover {
  background: var(--bg);
  border-color: var(--c);
  box-shadow: 0 22px 48px rgba(11, 18, 32, .16);
}
.sector__foto::after {
  background: linear-gradient(150deg, var(--c), transparent 78%);
}
.sector:hover .sector__cuerpo .boton,
.sector:focus-within .sector__cuerpo .boton {
  background: var(--c); color: #fff; border-color: transparent;
}

/* ------------------------------------------------------------ precio */
.precio-caja {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center;
}
.precio-tarjeta {
  position: relative;
  background: var(--tinta);
  color: #c4cfdf;
  border: 1px solid var(--tinta-suave);
  border-radius: var(--radio-xl);
  padding: clamp(1.7rem, 3vw, 2.4rem);
  box-shadow: var(--sombra-l);
  overflow: hidden;
}
.precio-tarjeta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 300px at 88% -20%, rgba(10, 108, 245, .38), transparent 66%);
  pointer-events: none;
}
.precio-tarjeta > * { position: relative; }
.precio-tarjeta__importe { display: flex; align-items: baseline; gap: .45rem; margin: .9rem 0 .35rem; }
.precio-tarjeta__importe b {
  font-size: clamp(2.7rem, 2rem + 2.6vw, 3.9rem);
  font-weight: 900; letter-spacing: -.045em; color: #fff; line-height: 1;
}
.precio-tarjeta__importe span { font-size: 1rem; color: #9aabc2; font-weight: 700; }
.precio-tarjeta p { color: #a8b7cc; }
.precio-tarjeta a:not(.boton) { color: var(--lima); }

.lista-ticks { list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; display: grid; gap: .6rem; }
.lista-ticks li {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .95rem; color: var(--texto); margin: 0;
}
.lista-ticks svg { width: 18px; height: 18px; color: var(--verde); flex-shrink: 0; margin-top: .2rem; }

/* ------------------------------------------------------------ pasos */
.pasos { counter-reset: paso; display: grid; gap: 1.2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paso { position: relative; padding-top: 3.2rem; }
.paso::before {
  counter-increment: paso; content: counter(paso);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--tinta); color: var(--lima);
  font-weight: 900; font-size: 1.05rem;
}
.seccion--noche .paso::before { background: var(--lima); color: var(--tinta); }

.precio-caja .pasos { grid-template-columns: 1fr; gap: .9rem; }
.precio-caja .paso { padding-top: 0; padding-left: 3.5rem; min-height: 42px; }
.precio-caja .paso::before { top: 1px; }
.precio-caja .paso h3 { font-size: 1.02rem; margin-bottom: .12rem; }
.precio-caja .paso p { font-size: .92rem; color: var(--texto-suave); }

/* ------------------------------------------------------------ faq */
.faq { display: grid; gap: .65rem; }
.faq details {
  background: #fff6ec;
  border: 1px solid #ffdcbb;
  border-left: 4px solid #f97316;
  border-radius: var(--radio-m); padding: 1.1rem 1.25rem;
  box-shadow: var(--sombra-s);
  transition: border-color var(--transicion), box-shadow var(--transicion), background var(--transicion);
}
.faq details:hover { background: #ffeedd; }
.faq details[open] {
  background: var(--papel);
  border-color: #f97316;
  border-left-color: var(--tinta);
  box-shadow: var(--sombra-m);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--tinta);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  font-size: 1rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.35rem; line-height: 1; color: var(--azul);
  font-weight: 500; flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: .8rem 0 0; color: var(--texto-suave); font-size: .95rem; }

/* ------------------------------------------------------------ formulario */
.formulario {
  background: var(--papel); border: 1px solid var(--linea);
  border-radius: var(--radio-xl); padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--sombra-m);
}
.campos { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.campo { display: flex; flex-direction: column; gap: .35rem; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: .85rem; font-weight: 700; color: var(--tinta); }
.campo input, .campo select, .campo textarea {
  font: inherit; font-size: .96rem; color: var(--texto);
  padding: .76rem .9rem; background: var(--papel);
  border: 1px solid var(--linea-2); border-radius: var(--radio-s);
  transition: border-color var(--transicion), box-shadow var(--transicion);
  width: 100%;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: var(--anillo);
}
.campo textarea { resize: vertical; min-height: 112px; }
.campo__ayuda { font-size: .79rem; color: var(--texto-tenue); }
.legal-nota { font-size: .79rem; color: var(--texto-tenue); margin-top: .9rem; }

.aviso { border-radius: var(--radio-s); padding: .9rem 1.1rem; font-size: .92rem; margin-bottom: 1.2rem; }
.aviso--ok { background: rgba(185, 240, 74, .16); border: 1px solid rgba(185, 240, 74, .55); color: #3d6207; }
.aviso--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.aviso--error:focus { outline: none; }
.aviso--error strong { display: block; margin-bottom: .2rem; }

/* ------------------------------------------------------------ contacto */
.contacto-rejilla {
  display: grid; gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start;
}

.dato-contacto {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .95rem 0; border-bottom: 1px solid var(--linea);
}
.dato-contacto:last-child { border-bottom: 0; }
.dato-contacto__icono {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--azul-tinte); color: var(--azul);
  border: 1px solid var(--azul-borde);
}
.dato-contacto__icono svg { width: 18px; height: 18px; }
.dato-contacto b { display: block; font-size: .94rem; color: var(--tinta); }
.dato-contacto span, .dato-contacto a { font-size: .91rem; color: var(--texto-suave); }

.whatsapp-lista { display: grid; gap: .45rem; }
.whatsapp-pais {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .62rem .85rem; border-radius: 12px;
  background: rgba(185, 240, 74, .14); border: 1px solid rgba(185, 240, 74, .45);
  text-decoration: none; color: #3d6207; font-weight: 700; font-size: .89rem;
  transition: background var(--transicion), transform var(--transicion);
}
.whatsapp-pais:hover { background: rgba(185, 240, 74, .26); color: #2c4705; transform: translateX(3px); }
.whatsapp-pais svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ video */
.video-marco {
  position: relative; border-radius: var(--radio-xl); overflow: hidden;
  background: var(--tinta); aspect-ratio: 16 / 9;
  box-shadow: var(--sombra-l); cursor: pointer; border: 0; padding: 0; width: 100%;
  display: block;
}
.video-marco img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-marco__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-marco__play span {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--lima); color: var(--tinta);
  display: grid; place-items: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
  transition: transform var(--transicion);
}
.video-marco:hover .video-marco__play span { transform: scale(1.08); }
.video-marco__play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-marco iframe, .video-marco video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------ contacto sobre fondo oscuro */
.seccion--noche .dato-contacto { border-bottom-color: rgba(255, 255, 255, .12); }
.seccion--noche .dato-contacto__icono {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: var(--lima);
}
.seccion--noche .dato-contacto b { color: #fff; }
.seccion--noche .dato-contacto span,
.seccion--noche .dato-contacto a { color: #b3c2d6; }
.seccion--noche .dato-contacto p { color: #fff; }
.seccion--noche .whatsapp-pais {
  background: rgba(185, 240, 74, .12);
  border-color: rgba(185, 240, 74, .35);
  color: #d9f79a;
}
.seccion--noche .whatsapp-pais:hover { background: rgba(185, 240, 74, .22); color: #fff; }
.seccion--noche .whatsapp-pais svg { color: var(--lima); }
.seccion--noche .formulario { box-shadow: 0 30px 70px rgba(2, 7, 18, .5); }

/* ------------------------------------------------------------ migas y cierre */
.migas { font-size: .83rem; color: var(--texto-tenue); padding-block: 1.2rem 0; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.migas li { margin: 0; }
.migas li + li::before { content: "/"; margin-inline: .5rem; color: var(--linea-2); }
.migas a { color: var(--texto-suave); text-decoration: none; }
.migas a:hover { color: var(--azul); text-decoration: underline; }

.cierre {
  position: relative; overflow: hidden;
  background: var(--tinta);
  color: #c4cfdf; border-radius: var(--radio-xl);
  padding: clamp(2rem, 4.5vw, 3.6rem); text-align: center;
}
.cierre::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 20% 0%, rgba(10, 108, 245, .40), transparent 62%),
    radial-gradient(520px 300px at 88% 100%, rgba(185, 240, 74, .16), transparent 60%);
  pointer-events: none;
}
.cierre > * { position: relative; }
.cierre h2 { color: #fff; }
.cierre h2 em { color: var(--lima); }
.cierre p { color: #a8b7cc; max-width: 60ch; margin-inline: auto; }
.cierre .grupo-botones { justify-content: center; margin-top: 1.7rem; }

/* ------------------------------------------------------------ pie */
.pie { background: var(--tinta); color: #94a5bd; padding-block: 3.2rem 1.6rem; }
.pie a { color: #c3d2e4; text-decoration: none; }
.pie a:hover { color: var(--lima); }
.pie__rejilla {
  display: grid; gap: 2.2rem;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}
.pie h2, .pie h3 {
  color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .52rem; font-size: .9rem; }
.pie li { margin: 0; }
.pie__marca { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }

/* marca de texto en dos tonos, como en la web de referencia */
.marca-texto {
  font-weight: 900; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1;
  color: #fff;
}
.marca-texto .w { color: #fff; }
.marca-texto .t {
  background: linear-gradient(96deg, #38bdf8, #0077ed);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.pie__datos { font-style: normal; font-size: .9rem; line-height: 1.75; color: #93a3b8; }
.pie__datos a { color: #c3d2e4; }
.pie__datos a:hover { color: var(--lima); }
.pie p { font-size: .9rem; margin-bottom: .6rem; }
.pie__legal {
  margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; justify-content: space-between;
  font-size: .81rem;
}

/* ------------------------------------------------------------ flecha para volver arriba */
.ir-arriba {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 95;
  width: 48px; height: 48px;
  padding: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tinta);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 16px 36px rgba(10, 18, 36, .34);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(.2, .65, .25, 1),
              background 200ms ease, box-shadow 200ms ease;
}
.ir-arriba[data-visible="true"] { opacity: 1; transform: none; pointer-events: auto; }
.ir-arriba:hover { background: var(--azul); box-shadow: 0 18px 40px rgba(10, 108, 245, .38); }
.ir-arriba:focus-visible { outline: none; box-shadow: var(--anillo), 0 16px 36px rgba(10, 18, 36, .34); }
.ir-arriba svg { width: 21px; height: 21px; }

@media (max-width: 900px) {
  .ir-arriba { bottom: 78px; right: 14px; width: 44px; height: 44px; }
}

/* ------------------------------------------------------------ aviso flotante de prueba */
.aviso-prueba {
  position: fixed;
  top: 88px; left: 18px;
  z-index: 9999;
  display: flex; align-items: center; gap: .7rem;
  max-width: 320px;
  padding: .7rem .95rem .7rem .8rem;
  background: var(--papel);
  border: 1px solid rgba(10, 18, 36, .14);
  border-left: 4px solid var(--lima);
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(10, 18, 36, .28), 0 4px 12px rgba(10, 18, 36, .14),
              0 0 0 5px rgba(185, 240, 74, .16);
  transform: translateX(-130%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 420ms cubic-bezier(.2, .65, .25, 1), opacity 320ms ease;
}
.aviso-prueba[data-visible="true"] { transform: none; opacity: 1; }
.aviso-prueba__icono {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: rgba(185, 240, 74, .2); color: #4d7a0d;
}
.aviso-prueba__icono svg { width: 18px; height: 18px; }
.aviso-prueba__texto { font-size: .84rem; line-height: 1.35; color: var(--texto-suave); }
.aviso-prueba__texto b { display: block; color: var(--tinta); font-size: .89rem; }
.aviso-prueba__texto span { font-size: .78rem; color: var(--texto-tenue); }

@media (max-width: 760px) {
  .aviso-prueba { left: 12px; right: 12px; max-width: none; top: 80px; }
  .movil { z-index: 3; }
}

/* ------------------------------------------------------------ barra flotante móvil */
.barra-movil {
  display: none;
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--linea);
  gap: .5rem;
}
.barra-movil a {
  flex: 1; text-align: center; padding: .72rem .5rem;
  border-radius: 12px; font-weight: 700; font-size: .9rem; text-decoration: none;
}
.barra-movil a:first-child { background: var(--lima); color: #1a2604; }
.barra-movil a:last-child { background: var(--azul); color: #fff; }

/* ------------------------------------------------------------ animación de entrada */
@keyframes subir {
  from { transform: translateY(16px); }
  to { transform: none; }
}
/* solo se mueve, no aparece desde transparente: si la animación se congela
   en un entorno raro, el contenido sigue viéndose entero */
.aparece { animation: subir 600ms cubic-bezier(.2, .65, .25, 1) both; }

/* A propósito SIN animación ligada al scroll: si un bloque nunca alcanza el
   punto de revelado (páginas cortas o pantallas muy altas) se queda a medio
   fundir y da la impresión de estar desvaído. Con animación de entrada normal
   siempre termina visible. */
@media (prefers-reduced-motion: reduce) {
  .aparece { animation: none; opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ adaptaciones */
@media (max-width: 1024px) {
  .rejilla--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .precio-caja { grid-template-columns: 1fr; }
  .contacto-rejilla { grid-template-columns: 1fr; }
  .pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pasos { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .portada__escena { flex-direction: column; align-items: center; }
  .movil {
    position: static;
    margin-top: 1.6rem;
    width: 168px;
    flex-shrink: 0;
    rotate: 0deg;
  }
  .insignia-flotante { right: 12px; bottom: 12px; padding: .5rem .75rem; font-size: .76rem; }
}

@media (max-width: 900px) {
  .navegacion {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .12rem;
    background: var(--papel); border-bottom: 1px solid var(--linea);
    padding: .8rem 1rem 1.1rem; box-shadow: var(--sombra-m);
    display: none;
  }
  .navegacion[data-abierto="true"] { display: flex; }
  .navegacion a { padding: .82rem .9rem; border-radius: 10px; font-size: 1rem; color: var(--texto); }
  .navegacion a:hover { background: var(--papel-3); color: var(--tinta); }
  .navegacion a[aria-current="page"] { background: var(--azul-tinte); color: var(--azul-hondo); }
  .menu-boton { display: inline-flex; }
  .cabecera__acciones .boton { display: none; }
  .rejilla--2, .rejilla--3 { grid-template-columns: 1fr; }
  .franja__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
  .campos { grid-template-columns: 1fr; }
  .barra-movil { display: flex; }
  body { padding-bottom: 64px; }

  /* recorrido: sin panel fijo, cada paso con su foto */
  .recorrido { grid-template-columns: 1fr; }
  .recorrido__visual { display: none; }
  .paso__foto { display: block; }
}

@media (max-width: 560px) {
  .rejilla--4 { grid-template-columns: 1fr; }
  .franja__rejilla { grid-template-columns: 1fr; }
  .grupo-botones .boton { width: 100%; }
  .pie__rejilla { grid-template-columns: 1fr; }
  .insignia-flotante { display: none; }
  .idiomas { margin-inline-start: auto; }
}

/* ------------------------------------------------------------ impresión */
@media print {
  .cabecera, .barra-movil, .pie, .portada::before, .portada::after { display: none; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
