/* Apo Energy · estilos del sitio.
   Los colores de marca vienen de tokens.css (manual de marca) y se asignan a roles (--p-*).
   La paleta "oscura" es una variante en evaluación: se activa con data-paleta="oscura" en <html>. */

:root {
  --p-fondo: var(--apo-blanco);
  --p-tinta: var(--apo-azul);
  --p-texto: #2B3E5C;
  --p-tinta-2: var(--apo-acero);
  --p-alt: var(--apo-niebla);
  --p-linea: var(--apo-linea);
  --p-destacado: var(--apo-brote);
  --p-destacado-acento: var(--apo-verde-hoja);
  --p-palabra-apagada: rgb(13 38 78 / 0.16);
  --p-profundo: var(--apo-azul);
  --p-profundo-texto: #C7D3E4;
  --p-noche: var(--apo-noche);
  --p-acento: var(--apo-verde);
  --p-acento-tinta: var(--apo-azul);
  --p-acento-hover: #55BF0B;
  --p-enlace: var(--apo-verde-hoja);
  --p-enlace-oscuro: var(--apo-verde);
  --p-encabezado: rgb(255 255 255 / 0.92);
  --p-form: var(--apo-blanco);
  --p-form-tinta: var(--apo-azul);
  --p-campo: var(--apo-blanco);
  --p-campo-borde: #AEB9C8;
  --p-foco: var(--apo-azul);

  --marco: 78rem;
  --margen: clamp(1.25rem, 4vw, 3.5rem);
  --sep: clamp(5rem, 11vw, 9rem);
  --diag-grados: 22.3deg; /* la diagonal: inclinación de la pierna de la A */
  --salida: cubic-bezier(0.16, 1, 0.3, 1);
  --display: clamp(3rem, 6.4vw, 6rem);
  color-scheme: light;
}

:root[data-paleta="oscura"] {
  --p-fondo: #060E1C;
  --p-tinta: #F1F5FB;
  --p-texto: #C3CFDF;
  --p-tinta-2: #93A4BD;
  --p-alt: #0A1628;
  --p-linea: rgb(255 255 255 / 0.11);
  --p-destacado: #0B1A31;
  --p-destacado-acento: #7BE03A;
  --p-palabra-apagada: rgb(241 245 251 / 0.14);
  --p-profundo: #030812;
  --p-profundo-texto: #A9B8CD;
  --p-noche: #02060D;
  --p-acento: #6BD81F;
  --p-acento-tinta: #04101F;
  --p-acento-hover: #86E847;
  --p-enlace: #7BE03A;
  --p-enlace-oscuro: #7BE03A;
  --p-encabezado: rgb(6 14 28 / 0.78);
  --p-form: #0C1A30;
  --p-form-tinta: #F1F5FB;
  --p-campo: #071223;
  --p-campo-borde: #2A3D5A;
  --p-foco: #7BE03A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--p-fondo);
  color: var(--p-tinta);
  font: 400 var(--apo-text-body) / var(--apo-leading-texto) var(--apo-font-texto);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--apo-azul);
  caret-color: var(--p-enlace);
  transition: background-color 0.4s, color 0.4s;
}
::selection { background: var(--apo-verde); color: var(--apo-azul); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--apo-font-titulos);
  font-weight: 600;
  line-height: var(--apo-leading-titulos);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 3.4vw + 0.6rem, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: var(--apo-text-h4); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--p-enlace); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--p-foco); outline-offset: 3px; border-radius: 4px; }
.portada :focus-visible, .noche-acto :focus-visible, .evaluacion-texto :focus-visible, .pie :focus-visible { outline-color: var(--apo-verde); }

.ic {
  width: 1.5rem; height: 1.5rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.marco {
  width: 100%;
  max-width: calc(var(--marco) + 2 * var(--margen));
  margin-inline: auto;
  padding-inline: var(--margen);
}

.saltar {
  position: absolute; left: 1rem; top: -5rem; z-index: 50;
  padding: 0.75rem 1.25rem; border-radius: var(--apo-radius-pill);
  background: var(--apo-azul); color: var(--apo-blanco); font-weight: 600;
}
.saltar:focus { top: 1rem; }

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.5rem 1.6rem;
  border: 1.5px solid transparent; border-radius: var(--apo-radius-pill);
  font: 600 1.0625rem/1.2 var(--apo-font-texto);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: color 0.35s var(--salida), border-color 0.35s, transform 0.2s var(--salida);
}
/* Relleno que sube desde abajo al pasar el mouse */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--salida);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.97); }
.btn-grande { min-height: 3.75rem; padding-inline: 2.1rem; font-size: 1.125rem; }
.btn-primario { background: var(--p-acento); color: var(--p-acento-tinta); }
.btn-primario::before { background: var(--p-acento-hover); }
.encabezado .btn-primario { background: var(--apo-azul); color: var(--apo-blanco); }
.encabezado .btn-primario::before { background: var(--apo-verde); }
.encabezado .btn-primario:hover { color: var(--apo-azul); }
[data-paleta="oscura"] .encabezado .btn-primario { background: var(--p-acento); color: var(--p-acento-tinta); }
[data-paleta="oscura"] .encabezado .btn-primario::before { background: var(--apo-blanco); }
.btn-borde { border-color: rgb(255 255 255 / 0.55); color: var(--apo-blanco); background: transparent; }
.btn-borde::before { background: var(--apo-blanco); }
.btn-borde:hover { color: var(--apo-azul); border-color: var(--apo-blanco); }

.enlace {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--p-enlace); font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent;
  transition: text-decoration-color 0.25s;
}
.enlace .ic { width: 1.25rem; height: 1.25rem; transition: translate 0.35s var(--salida); }
.enlace-claro { color: var(--p-enlace-oscuro); }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 40;
  background: var(--p-encabezado);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--salida), border-color 0.3s, background-color 0.4s;
}
.encabezado.con-borde { border-bottom-color: var(--p-linea); }
.encabezado.oculto { transform: translateY(-100%); }
.encabezado-fila { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 5.25rem; }
.logo { display: block; flex: none; }
.logo img { width: clamp(148px, 13vw, 180px); height: auto; }
.logo-negativo { display: none; }
[data-paleta="oscura"] .logo-color { display: none; }
[data-paleta="oscura"] .logo-negativo { display: block; }

.nav-boton {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.4rem 1.1rem;
  border: 1.5px solid currentColor; border-radius: var(--apo-radius-pill);
  background: none; color: var(--p-tinta);
  font: 600 1.0625rem var(--apo-font-texto); cursor: pointer;
}
.nav-menu {
  position: fixed; inset: 5.25rem 1rem auto auto;
  width: min(22rem, calc(100vw - 2rem)); height: auto; margin: 0;
  padding: 0.75rem; border: 1px solid var(--p-linea); border-radius: var(--apo-radius-md);
  background: var(--p-fondo); color: var(--p-tinta); box-shadow: var(--apo-sombra);
}
.nav-menu ul { display: flex; flex-direction: column; margin-bottom: 0.75rem; }
.nav-menu ul a {
  display: flex; align-items: center; min-height: 3.25rem; padding: 0 1rem;
  border-radius: var(--apo-radius-sm);
  color: var(--p-tinta); font-size: 1.1875rem; font-weight: 500; text-decoration: none;
}
.nav-menu ul a:hover { background: var(--p-alt); }
.nav-menu .btn { width: 100%; }
@media (min-width: 64rem) {
  .nav-boton { display: none; }
  .nav-menu {
    position: static; display: flex; align-items: center; gap: 1.75rem;
    width: auto; padding: 0; border: 0; background: none; box-shadow: none; overflow: visible;
  }
  .nav-menu ul { flex-direction: row; gap: 0.25rem; margin: 0; }
  .nav-menu ul a { position: relative; min-height: 2.75rem; padding: 0 0.85rem; font-size: 1.0625rem; }
  .nav-menu ul a:hover { background: none; }
  /* Subrayado que crece desde el centro */
  .nav-menu ul a::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.45rem; height: 2px;
    background: var(--apo-verde); transform: scaleX(0); transition: transform 0.4s var(--salida);
  }
  .nav-menu ul a:hover::after, .nav-menu ul a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-menu .btn { width: auto; min-height: 3rem; }
}

/* ---------- Portada ---------- */
.portada {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr);
  min-height: max(38rem, calc(100svh - 5.25rem));
  background: var(--p-profundo); color: var(--apo-blanco);
}
/* La foto se corta con la diagonal (22,3°: avanza 0,41 por cada unidad de alto).
   El borde izquierdo sube hacia la derecha, como la pierna de la A.
   --izq: dónde arranca la foto · --d: cuánto se inclina el corte · --e: corrimiento de la entrada */
.portada-foto {
  grid-row: 1; grid-column: 1; position: relative; z-index: -1;
  container-type: size;
}
.portada-foto-img {
  --izq: 48%; --d: 41cqh; --e: 0%;
  position: absolute; inset-block: 0; right: 0; left: var(--izq);
  overflow: hidden;
  clip-path: polygon(
    calc(var(--d) + var(--e)) 0, calc(100% + var(--d)) 0,
    calc(100% + var(--d)) 100%, var(--e) 100%);
}
@media (min-width: 60rem) and (max-width: 80rem) {
  .portada-foto-img { --izq: 56%; }
}
.portada-foto-img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; transform-origin: 70% 70%; }

.portada-texto { grid-row: 1; grid-column: 1; align-self: center; padding-block: clamp(3rem, 7vw, 6rem) 2rem; }
.portada h1 { max-width: 9ch; font-size: var(--display); line-height: 0.98; letter-spacing: -0.04em; }
.portada h1 .linea { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.portada h1 .linea > span { display: block; }
.portada-bajada { margin-top: 1.75rem; max-width: 27rem; color: var(--p-profundo-texto); font-size: 1.25rem; line-height: 1.55; }
.acciones { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.5rem; }

.cifras {
  display: grid; grid-template-columns: repeat(3, max-content); gap: 2.75rem;
  margin: 0; padding-block: 1.5rem clamp(2.5rem, 4vw, 3.5rem);
}
.cifras div { position: relative; padding-top: 1rem; max-width: 11.5rem; }
.cifras div::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--apo-verde); transform-origin: left; transform: scaleX(var(--linea, 1));
}
.cifras dt {
  font: 600 clamp(1.875rem, 2.6vw, 2.6rem)/1 var(--apo-font-titulos);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cifras dd { margin: 0.45rem 0 0; color: var(--p-profundo-texto); font-size: 1rem; line-height: 1.4; }

@media (max-width: 59.99rem) {
  .portada { grid-template-rows: auto auto auto; min-height: 0; }
  .portada-texto { grid-row: 1; padding-bottom: 2.25rem; }
  .portada-foto { grid-row: 2; z-index: auto; height: clamp(15rem, 60vw, 26rem); }
  .portada-foto-img { --izq: 0%; }
  .portada-cifras { grid-row: 3; }
  .cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding-top: 1.75rem; }
  .cifras div { max-width: none; }
}
@media (max-width: 34rem) {
  .portada h1 { font-size: clamp(2.9rem, 14vw, 3.6rem); }
  .portada-bajada { font-size: 1.1875rem; }
  .acciones .btn { width: 100%; }
  .cifras { grid-template-columns: 1fr; gap: 1.25rem; }
  .cifras div { display: grid; grid-template-columns: 8.75rem 1fr; align-items: baseline; gap: 1rem; }
  .cifras dd { margin: 0; }
}

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--sep); }
.seccion-alt { background: var(--p-alt); }

/* Casos: una pista que se desliza de costado */
.casos-acto { padding-block: var(--sep) 0; overflow: hidden; }
.casos-cabeza { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.casos-cabeza p { max-width: 26rem; color: var(--p-tinta-2); font-size: 1.25rem; }
.casos-pista {
  display: flex; gap: clamp(1rem, 2.2vw, 2rem);
  padding-inline: var(--margen); padding-bottom: var(--sep);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margen);
  scrollbar-width: none;
}
.casos-pista::-webkit-scrollbar { display: none; }
.caso { flex: 0 0 min(86vw, 58rem); scroll-snap-align: start; }
.caso a { display: grid; gap: 1.5rem; color: inherit; text-decoration: none; }
.caso-foto { position: relative; overflow: hidden; border-radius: var(--apo-radius-md); aspect-ratio: 16 / 10; background: var(--p-alt); }
.caso-foto img { position: absolute; inset: -4% -8%; width: 116%; height: 108%; max-width: none; object-fit: cover; transition: scale 0.9s var(--salida); }
.caso-texto { display: grid; gap: 0.75rem; max-width: 36rem; }
.caso h3 { display: flex; align-items: center; gap: 0.7rem; font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -0.025em; }
.caso h3 .ic { width: 1.9rem; height: 1.9rem; color: var(--p-enlace); }
.caso p { color: var(--p-texto); font-size: 1.1875rem; }
.caso .enlace { margin-top: 0.25rem; }
.caso a:hover .caso-foto img { scale: 1.04; }
.caso a:hover .enlace { text-decoration-color: currentColor; }
.caso a:hover .enlace .ic, .enlace:hover .ic { translate: 5px 0; }
/* Con movimiento en pantallas anchas la sección queda fija y la pista avanza de costado */
.casos-acto.es-pin { padding-top: 0; }
/* La sección sube por encima de la portada fijada, como una hoja */
.casos-acto.sobre {
  position: relative; z-index: 2; background: var(--p-fondo);
  border-radius: 2rem 2rem 0 0; box-shadow: 0 -1.5rem 4rem rgb(3 8 18 / 0.3);
}
.portada::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--p-noche, #02060D); opacity: var(--sombra, 0);
}
.es-pin .casos-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6.5rem 3rem; }
.es-pin .casos-pista { overflow: visible; scroll-snap-type: none; padding-bottom: 0; width: max-content; }
.es-pin .caso { flex-basis: calc(min(52svh, 34rem) * 1.6); }
.es-pin .caso-foto { aspect-ratio: auto; height: min(52svh, 34rem); }
.es-pin .casos-cabeza { margin-bottom: clamp(1.5rem, 4svh, 3rem); }

/* Lo justo: la frase se enciende palabra por palabra y los paneles que sobran se caen */
.justo-acto { padding-block: calc(var(--sep) * 1.2); background: var(--p-destacado); overflow: clip; }
.justo { display: grid; gap: 3.5rem 5rem; align-items: center; }
.justo-frase { max-width: 18ch; font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.justo-remate { color: var(--p-destacado-acento); }
.justo-remate .palabra { display: inline-block; }
.justo-texto { display: grid; gap: 1.15rem; max-width: 34rem; margin-top: 2.25rem; font-size: 1.1875rem; color: var(--p-texto); }

.justo-paneles { margin: 0; display: grid; gap: 1.5rem; justify-items: center; }
.paneles {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(4px, 0.6vw, 8px);
  width: min(100%, 26rem);
  transform: perspective(1100px) rotateX(16deg);
}
/* Cada panel: un contorno punteado (el lugar) y el panel lleno encima (--lleno de 0 a 1) */
.panel {
  --lleno: 1; --brillo: 130%;
  position: relative; aspect-ratio: 2 / 3; border-radius: 3px;
  border: 1.5px dashed color-mix(in srgb, var(--p-tinta) 32%, transparent);
}
.panel::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit;
  opacity: var(--lleno);
  background-color: var(--apo-azul);
  background-image:
    linear-gradient(115deg, transparent 38%, rgb(255 255 255 / 0.38) 50%, transparent 62%),
    linear-gradient(90deg, rgb(255 255 255 / 0.16) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / 0.16) 1px, transparent 1px),
    linear-gradient(160deg, rgb(255 255 255 / 0.16), transparent 50%);
  background-size: 300% 100%, 33.4% 100%, 100% 16.7%, 100% 100%;
  background-position: var(--brillo) 0, 0 0, 0 0, 0 0;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.4);
}
.panel.sobra { --lleno: 0; }
.justo-paneles figcaption { display: grid; font: 600 1.125rem/1.2 var(--apo-font-titulos); letter-spacing: -0.01em; color: var(--p-tinta); }
.justo-paneles figcaption > span { grid-area: 1 / 1; text-align: center; }
.pc-mas { visibility: hidden; }

@media (min-width: 60rem) {
  .justo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* Fijada: la sección ocupa la pantalla mientras corre su animación */
.justo-acto.es-pin { min-height: 100svh; display: grid; align-items: center; padding-block: 6rem 3rem; }

/* Del día a la noche */
.noche-acto { position: relative; background: var(--p-noche); color: var(--apo-blanco); }
.noche-escena { position: relative; display: grid; }
.noche-capa { grid-area: 1 / 1; overflow: hidden; }
.noche-capa img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.noche-dia, .noche-apagada { display: none; }
.noche-encendida { aspect-ratio: 3 / 2; max-height: 80svh; width: 100%; }
.noche-textos { display: grid; gap: 2rem; padding-block: 3rem var(--sep); }
.noche-texto > * + * { margin-top: 1rem; }
.noche-t1 { display: none; }
.noche-texto p { color: #C7D3E4; font-size: 1.25rem; max-width: 30rem; }
.noche-texto h2 { max-width: 14ch; }
.noche-remate { color: var(--apo-blanco) !important; font: 600 clamp(2rem, 3.6vw, 3.25rem)/1.05 var(--apo-font-titulos) !important; letter-spacing: -0.03em; max-width: 16ch !important; }

/* Con movimiento: la escena queda fija mientras el scroll cambia la hora */
.mov .noche-escena { height: 100svh; overflow: hidden; }
.mov .noche-capa { position: absolute; inset: 0; }
.mov .noche-dia, .mov .noche-apagada { display: block; }
.mov .noche-encendida { aspect-ratio: auto; max-height: none; }
/* La noche entra con la diagonal: un borde que sube hacia la derecha, 22,3° (0,41 de desplazamiento por alto) */
.mov .noche-apagada, .mov .noche-encendida {
  --p: 0; /* 0: todavía es de día · 1: la noche cubre la escena */
  clip-path: polygon(
    calc(100% + 41svh - var(--p) * (100% + 41svh)) 0, calc(100% + 41svh) 0,
    calc(100% + 41svh) 100%, calc(100% - var(--p) * (100% + 41svh)) 100%);
}
.mov .noche-encendida { opacity: 0; }
.mov .noche-escena::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(3 8 18 / 0.78) 0%, rgb(3 8 18 / 0.45) 34%, rgb(3 8 18 / 0) 60%);
  opacity: var(--velo, 1);
}
.mov .noche-textos { position: absolute; inset: 0; z-index: 2; display: block; padding: 0; margin-inline: auto; left: 0; right: 0; }
.mov .noche-texto { position: absolute; left: var(--margen); bottom: clamp(3rem, 12svh, 7rem); width: min(32rem, calc(100% - 2 * var(--margen))); }
.mov .noche-t1 { display: block; font: 600 clamp(2rem, 3.6vw, 3.25rem)/1.05 var(--apo-font-titulos); color: var(--apo-azul); letter-spacing: -0.03em; max-width: 14ch; }
/* De día el texto va arriba, sobre el cielo: abajo compite con el cerco y la fachada */
@media (min-width: 48rem) { .mov .noche-t1 { bottom: auto; top: clamp(6.5rem, 15svh, 9rem); } }
.mov .noche-t2, .mov .noche-t3 { opacity: 0; visibility: hidden; }
@media (max-width: 47.99rem) {
  .mov .noche-escena::after { background: linear-gradient(0deg, rgb(3 8 18 / 0.85) 0%, rgb(3 8 18 / 0.5) 40%, rgb(3 8 18 / 0) 65%); }
  .mov .noche-capa img { object-position: 64% 60%; }
  .mov .noche-t1 { color: var(--apo-blanco); }
}

/* Cómo trabajamos */
.como { display: grid; gap: 3rem 6rem; align-items: start; }
/* Una foto por paso, apiladas: cada una entra con la diagonal (--p de 0 a 1) */
.como-fotos {
  position: relative; overflow: hidden; border-radius: var(--apo-radius-md);
  aspect-ratio: 1; container-type: size;
}
.como-foto { position: absolute; inset: 0; }
.como-foto img { width: 100%; height: 100%; object-fit: cover; }
.como-foto:not(:first-child) { display: none; }
@media (min-width: 60rem) { .mov .como-foto:not(:first-child) { display: block; } }
.mov .como-foto:not(:first-child) {
  --p: 0;
  clip-path: polygon(
    calc((1 - var(--p)) * (100% + 41cqh)) 0, calc(100% + 41cqh) 0,
    calc(100% + 41cqh) 100%, calc((1 - var(--p)) * (100% + 41cqh) - 41cqh) 100%);
}
.como-foto:nth-child(1) img { object-position: 50% 40%; }
.como-foto:nth-child(3) img { object-position: 30% 50%; }

.pasos { position: relative; counter-reset: paso; margin-top: 2.75rem; }
.pasos::before, .pasos::after {
  content: ""; position: absolute; left: 1.05rem; top: 0.5rem; bottom: 0.5rem; width: 2px;
  background: var(--p-linea);
}
.pasos::after { background: var(--apo-verde); transform-origin: top; transform: scaleY(var(--avance, 1)); }
/* --on: 1 paso activo, 0 en espera (solo cambia cuando la sección está fijada) */
.pasos li {
  --on: 1;
  position: relative; counter-increment: paso;
  display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 1.75rem;
  padding-block: 0 2.5rem;
}
.pasos li:last-child { padding-bottom: 0; }
.pasos li::before {
  content: counter(paso);
  position: relative; z-index: 1; grid-row: span 2;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--p-fondo); border: 2px solid var(--apo-verde);
  font: 600 1rem/1 var(--apo-font-titulos); color: var(--p-tinta);
  font-variant-numeric: tabular-nums;
}
.pasos h3 { font-size: var(--apo-text-h4); padding-top: 0.2rem; }
.pasos p { margin-top: 0.5rem; max-width: 50ch; color: var(--p-texto); }
@media (min-width: 60rem) {
  .como { grid-template-columns: 5fr 6fr; }
  .como-fotos { position: sticky; top: 7rem; aspect-ratio: 4 / 5; }
}
.como-acto.es-pin { min-height: 100svh; display: grid; align-items: center; padding-block: 5.5rem 2.5rem; }
.como-acto.es-pin .como { align-items: center; }
.como-acto.es-pin .como-fotos { position: relative; top: 0; aspect-ratio: auto; height: min(78svh, 40rem); }
.como-acto.es-pin .pasos li::before {
  background: color-mix(in srgb, var(--apo-verde) calc(var(--on) * 100%), var(--p-fondo));
  color: color-mix(in srgb, var(--apo-azul) calc(var(--on) * 100%), var(--p-tinta));
  scale: calc(1 + var(--on) * 0.14);
}
.como-acto.es-pin .pasos h3, .como-acto.es-pin .pasos p { opacity: calc(0.3 + var(--on) * 0.7); }

/* Preguntas frecuentes */
.preguntas { display: grid; gap: 2rem 4rem; }
.preguntas-lista { border-top: 1px solid var(--p-linea); }
.preguntas details { border-bottom: 1px solid var(--p-linea); }
.preguntas summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4.75rem; padding-block: 1rem;
  font: 500 1.3125rem/1.3 var(--apo-font-titulos);
  cursor: pointer; list-style: none; transition: color 0.2s;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem;
  background:
    linear-gradient(var(--p-enlace) 0 0) center / 100% 2px no-repeat,
    linear-gradient(var(--p-enlace) 0 0) center / 2px 100% no-repeat;
  transition: rotate 0.4s var(--salida);
}
.preguntas details[open] summary::after { rotate: 45deg; }
.preguntas summary:hover { color: var(--p-enlace); }
.preguntas details p { max-width: 60ch; padding-bottom: 1.6rem; color: var(--p-texto); }
@media (min-width: 60rem) { .preguntas { grid-template-columns: 4fr 8fr; } }
/* Abrir y cerrar con movimiento: la caja crece y la respuesta entra deslizándose.
   Va con el resto del movimiento del sitio (no depende de la configuración del sistema). */
.mov .preguntas details { interpolate-size: allow-keywords; }
.mov .preguntas details::details-content {
  height: 0; overflow: clip;
  transition: height 0.5s var(--salida), content-visibility 0.5s allow-discrete;
}
.mov .preguntas details[open]::details-content { height: auto; }
.mov:not(.mov-suave) .preguntas details[open] p { animation: respuesta 0.55s var(--salida) both; }
.mov-suave .preguntas details[open] p { animation: respuesta-suave 0.4s ease both; }
@keyframes respuesta { from { opacity: 0; translate: 0 -0.6rem; } }
@keyframes respuesta-suave { from { opacity: 0; } }
.mov .preguntas details[open] summary { color: var(--p-enlace); }

/* ---------- Pedir evaluación ---------- */
.evaluacion { background: var(--p-profundo); color: var(--apo-blanco); padding-block: var(--sep); }
.evaluacion-grilla { display: grid; gap: 2.5rem 5rem; align-items: start; }
.evaluacion-texto h2 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); max-width: 11ch; }
.evaluacion-texto p { margin-top: 1.5rem; max-width: 30rem; color: var(--p-profundo-texto); font-size: 1.1875rem; }
.evaluacion-texto .evaluacion-alt { margin-top: 2rem; font-size: 1.0625rem; }
.evaluacion-alt a { color: var(--apo-blanco); font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 60rem) { .evaluacion-grilla { grid-template-columns: 5fr 6fr; } .evaluacion-texto { position: sticky; top: 8rem; } }

.form {
  position: relative; overflow: hidden;
  display: grid; gap: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--apo-radius-md);
  background: var(--p-form); color: var(--p-form-tinta);
}
/* Fijadas: menos aire arriba y abajo para que entren enteras en pantalla */
.evaluacion.es-pin, .seccion.es-pin { min-height: 100svh; display: grid; align-content: center; padding-block: 4.5rem 2rem; }
.evaluacion.es-pin .evaluacion-texto { position: static; }
/* Franja de avance: se llena a medida que el formulario se arma (--completo de 0 a 1) */
.form::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px;
  background: var(--apo-verde); transform-origin: left; transform: scaleX(var(--completo, 1));
}
.campo { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.campo > label, .campo legend { padding: 0; font-weight: 600; font-size: 1.0625rem; }
.campo legend { margin-bottom: 0.5rem; }
.ayuda { color: var(--p-tinta-2); font-weight: 400; }
.form input:not([type="radio"]), .form select {
  width: 100%; min-height: 3.5rem; padding: 0.6rem 1rem;
  border: 1.5px solid var(--p-campo-borde); border-radius: var(--apo-radius-sm);
  background-color: var(--p-campo); color: var(--p-form-tinta);
  font: 400 1.125rem var(--apo-font-texto);
  transition: border-color 0.2s;
}
.form select {
  appearance: none; padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A4BD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 1rem center; background-size: 1.25rem; background-repeat: no-repeat;
}
.form input::placeholder { color: var(--p-tinta-2); }
.form input:hover, .form select:hover { border-color: var(--p-form-tinta); }
.form input:focus-visible, .form select:focus-visible { border-color: var(--p-form-tinta); outline: 3px solid var(--apo-verde); outline-offset: 1px; }
.form [aria-invalid="true"] { border-color: var(--apo-error); }
.campo-error { color: var(--apo-error); font-size: 1rem; font-weight: 500; }
[data-paleta="oscura"] .campo-error { color: #FF8A80; }

.tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.tipo { position: relative; }
.tipo input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tipo span {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0.5rem; border: 1.5px solid var(--p-campo-borde); border-radius: var(--apo-radius-sm);
  font-weight: 600; text-align: center; line-height: 1.2;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.tipo:hover span { border-color: var(--p-form-tinta); }
.tipo input:checked + span { background: var(--apo-azul); border-color: var(--apo-azul); color: var(--apo-blanco); }
[data-paleta="oscura"] .tipo input:checked + span { background: var(--p-acento); border-color: var(--p-acento); color: var(--p-acento-tinta); }
.tipo input:focus-visible + span { outline: 3px solid var(--apo-verde); outline-offset: 2px; }
.tipos.invalido .tipo span { border-color: var(--apo-error); }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-enviar { width: 100%; margin-top: 0.4rem; }
.form-enviar[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.form-nota { color: var(--p-tinta-2); font-size: 1rem; }
.form-nota a { color: inherit; }
.form-estado:empty { display: none; }
.form-estado { padding: 1rem 1.25rem; border-radius: var(--apo-radius-sm); font-weight: 500; }
.form-estado.ok { background: var(--apo-brote); color: var(--apo-azul); }
.form-estado.error { background: #FBEDEC; color: #8C1D17; }
.form-estado a { color: inherit; font-weight: 600; }

/* ---------- Pie ---------- */
.pie { background: var(--p-noche); color: #B9C6DA; font-size: 1rem; overflow: hidden; }
.pie-lema {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  font: 600 clamp(2.6rem, 8.2vw, 8.5rem)/0.95 var(--apo-font-titulos);
  letter-spacing: -0.045em; color: var(--apo-blanco);
  text-wrap: balance;
}
.pie-grilla { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 5rem) 3rem; }
.pie-marca img { width: 190px; }
.pie-marca p { margin-top: 1rem; max-width: 22rem; }
.pie ul { display: grid; gap: 0.25rem; }
.pie a { color: var(--apo-blanco); text-decoration-color: rgb(255 255 255 / 0.35); }
.pie ul a { display: inline-flex; min-height: 2.5rem; align-items: center; text-decoration: none; font-size: 1.0625rem; transition: color 0.2s; }
.pie ul a:hover { color: var(--apo-verde); }
.pie-contacto p { margin-bottom: 0.4rem; }
.pie-contacto a { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.pie-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem; border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.9375rem;
}
@media (min-width: 48rem) { .pie-grilla { grid-template-columns: 2fr 1fr 1.4fr; } }

/* ---------- Selector de paleta (solo en el sitio de prueba) ---------- */
.paletas {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60;
  display: flex; padding: 0.3rem; gap: 0.25rem;
  border-radius: var(--apo-radius-pill);
  background: rgb(7 22 49 / 0.88); box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.paletas button {
  min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: var(--apo-radius-pill);
  background: none; color: #C7D3E4; font: 600 0.9375rem var(--apo-font-texto); cursor: pointer;
}
.paletas button[aria-pressed="true"] { background: var(--apo-verde); color: var(--apo-azul); }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
@media (forced-colors: active) {
  .btn, .tipo span { border: 2px solid; }
  .cifras div::before, .pasos::after { background: CanvasText; }
}
