/* Marvel Invest — sistema visual de la web (prototipo, oct-2026).
   Colores medidos en su marca (logo, folletos de 2026, web actual). Contrastes comprobados:
   - #00AAC8 (teal de marca) da 2,77:1 con blanco: sólo superficies y elementos grandes, nunca texto.
   - #007F96 da 4,69:1 con blanco (texto, enlaces, botones); sobre crema baja a 4,07:1, por eso
     el texto en teal sobre crema usa #006F84 (5,05:1).
   - #D80B8C con texto blanco da 4,83:1: es el color de la acción (botón «Book», círculo del precio).
   Nada de este fichero lo tocan las páginas: lo propio de cada una va en css/pages/<id>.css. */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fuentes/Montserrat-VF-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal: #00AAC8;
  --teal-600: #007F96;
  --teal-700: #006F84;
  --teal-900: #063F4A;
  --teal-950: #042F37;
  --teal-claro: #3FD0E8;      /* acentos sobre fondo profundo (6,27:1) */
  --teal-velo: #E3F5F8;
  --magenta: #D80B8C;
  --magenta-700: #B5096F;
  --magenta-velo: #FBE7F2;
  --crema: #F2EEEB;
  --crema-2: #F8F5F2;
  --tinta: #3C3B39;
  --tinta-suave: #5A5856;
  --titulo: #10282E;
  --linea: #E4DFDA;
  --blanco: #FFFFFF;
  --nota-fondo: #FFF4C2;
  --nota-borde: #D9A300;

  --fuente: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radio-s: 10px;
  --radio: 18px;
  --radio-l: 28px;
  --sombra: 0 1px 2px rgba(16, 40, 46, .06), 0 8px 24px rgba(16, 40, 46, .08);
  --sombra-l: 0 2px 6px rgba(16, 40, 46, .06), 0 24px 60px rgba(16, 40, 46, .14);
  --ancho: 1200px;
  --gutter: 24px;
  --cab-alto: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cab-alto) + 16px); }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--teal-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-700); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
/* sobre teal o teal profundo el magenta apenas contrasta (1,03:1 sobre #007F96): ahí el anillo es blanco */
:is(.llamada, .seccion--profunda, .seccion--teal, .pie) :focus-visible { outline-color: #fff; }
/* el atributo hidden gana siempre: .boton, .formulario… fijan display y lo anulaban */
[hidden] { display: none !important; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--titulo); line-height: 1.15; letter-spacing: -0.01em; }
ul, ol { padding-left: 1.2em; }
.sr { 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: -60px; z-index: 100; background: var(--titulo); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.saltar:focus { top: 12px; color: #fff; }

/* ---------- tipografía ---------- */
.titulo-1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
.titulo-2 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
.titulo-3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 700; }
.titulo-1 em, .titulo-2 em { font-style: normal; color: var(--teal-600); }
.antetitulo {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-700); margin: 0 0 1rem;
}
.antetitulo::before { content: ''; width: 28px; height: 2px; background: var(--magenta); border-radius: 2px; }
.entradilla { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--tinta-suave); max-width: 46rem; }
.centrado { text-align: center; }
.centrado .entradilla { margin-left: auto; margin-right: auto; }
.centrado .antetitulo { justify-content: center; }
.letra-pequena { font-size: .85rem; color: var(--tinta-suave); line-height: 1.55; }

/* ---------- estructura ---------- */
.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.contenedor--estrecho { max-width: calc(820px + 2 * var(--gutter)); }
.seccion { padding: clamp(64px, 5vw + 32px, 112px) 0; position: relative; }
.seccion--crema { background: var(--crema); }
.seccion--crema-2 { background: var(--crema-2); }
.seccion--teal { background: var(--teal-600); color: #fff; }
.seccion--profunda { background: var(--teal-900); color: rgba(255, 255, 255, .86); }
.seccion--corta { padding: clamp(40px, 4vw, 64px) 0; }
.seccion--teal :is(h1, h2, h3, h4), .seccion--profunda :is(h1, h2, h3, h4) { color: #fff; }
.seccion--teal .entradilla, .seccion--profunda .entradilla { color: rgba(255, 255, 255, .82); }
.seccion--teal .antetitulo, .seccion--profunda .antetitulo { color: var(--teal-claro); }
.seccion--profunda .titulo-2 em, .seccion--profunda .titulo-1 em { color: var(--teal-claro); }
.seccion--teal .titulo-2 em { color: #fff; text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.seccion--crema .antetitulo, .seccion--crema a:not(.boton) { color: var(--teal-700); }
.cabeza-seccion { margin-bottom: clamp(32px, 3vw, 56px); }
.cabeza-seccion--fila { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* cabecera de página: la primera sección de las seis páginas (antes, seis copias con medidas distintas).
   La portada lleva el h1 grande; las interiores, uno algo menor */
.cabecera-pagina { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 80px) 0 clamp(56px, 6vw, 96px); background: linear-gradient(180deg, var(--crema-2) 0%, #fff 100%); }
.cabecera-pagina::before { content: ''; position: absolute; width: 740px; height: 740px; right: -250px; top: -310px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 170, 200, .14), rgba(0, 170, 200, 0) 70%); pointer-events: none; }
.cabecera-pagina > .contenedor { position: relative; z-index: 1; }
.cabecera-pagina .titulo-1 { margin-bottom: .45em; }
.cabecera-pagina:not(.portada) .titulo-1 { font-size: clamp(2.2rem, 1.3rem + 2.9vw, 3.6rem); }
.cabecera-pagina .entradilla { margin-bottom: 28px; }
@media (max-width: 520px) { .cabecera-pagina .botones .boton { width: 100%; } }

.rejilla { display: grid; gap: clamp(16px, 2vw, 28px); }
.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)); }
.dividida { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dividida--invertida > :first-child { order: 2; }
@media (max-width: 960px) {
  .rejilla--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejilla--3 { grid-template-columns: minmax(0, 1fr); }
  .dividida { grid-template-columns: minmax(0, 1fr); }
  .dividida--invertida > :first-child { order: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --cab-alto: 64px; }
  body { font-size: 16px; }
  .rejilla--2, .rejilla--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s, box-shadow .18s, border-color .18s;
}
.boton:hover { transform: translateY(-1px); }
.boton:active { transform: translateY(0); }
.boton--cta { background: var(--magenta); color: #fff; box-shadow: 0 6px 18px rgba(216, 11, 140, .28); }
.boton--cta:hover { background: var(--magenta-700); color: #fff; }
.boton--primario { background: var(--teal-600); color: #fff; }
.boton--primario:hover { background: var(--teal-700); color: #fff; }
.boton--secundario { background: transparent; color: var(--teal-700); border-color: currentColor; }
.boton--secundario:hover { background: var(--teal-velo); color: var(--teal-700); }
.boton--claro { background: #fff; color: var(--teal-900); }
.boton--claro:hover { background: var(--crema); color: var(--teal-900); }
.boton--fantasma-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.boton--fantasma-claro:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.boton--grande { min-height: 56px; padding: 14px 32px; font-size: 1.05rem; }
.boton .flecha { transition: transform .18s var(--ease); }
.boton:hover .flecha { transform: translateX(3px); }
.botones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.enlace-flecha { font-weight: 700; text-decoration: none; } /* en línea: si el texto se parte, la flecha lo sigue */
.enlace-flecha:hover { text-decoration: underline; }

/* ---------- barra del prototipo ---------- */
.proto { background: #1B2A2E; color: #E8EEF0; font-size: .8rem; }
.proto__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.proto__boton { background: var(--nota-fondo); color: #3B2E00; border: 0; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.proto__boton[aria-pressed="true"] { background: #fff; }
@media (max-width: 640px) { .proto__in > span { font-size: .72rem; line-height: 1.3; } }

/* ---------- notas de revisión (sólo con el botón) ---------- */
.nota { display: none; }
html.notas .nota {
  display: block; position: relative; margin: 12px 0; padding: 10px 14px 10px 14px;
  background: var(--nota-fondo); border-left: 4px solid var(--nota-borde); border-radius: 8px;
  color: #3B2E00; font-size: .82rem; line-height: 1.45; font-weight: 500; text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
html.notas .nota::before { content: 'Review note'; display: block; font-weight: 800; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
html[lang="es"].notas .nota::before { content: 'Nota de revisión'; }
.seccion--teal .nota, .seccion--profunda .nota { color: #3B2E00; }

/* ---------- cabecera ---------- */
.cab { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.cab.con-sombra { border-bottom-color: var(--linea); box-shadow: 0 6px 20px rgba(16, 40, 46, .06); }
.cab__in { display: flex; align-items: center; gap: 20px; min-height: var(--cab-alto); }
.cab__logo { flex: none; display: block; }
.cab__logo img { width: 168px; height: auto; }
.cab__nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.cab__nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.cab__nav ul a { color: var(--titulo); font-weight: 600; font-size: .95rem; text-decoration: none; padding: 6px 0; position: relative; }
.cab__nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.cab__nav ul a:hover::after, .cab__nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.cab__idioma { font-weight: 700; font-size: .88rem; color: var(--teal-700); text-decoration: none; padding: 6px 12px; border: 1.5px solid var(--linea); border-radius: 999px; white-space: nowrap; }
.cab__idioma:hover { border-color: var(--teal-600); }
.cab__idioma--movil, .cab__menu, .cab__cta-movil { display: none; }
.cab__cta { min-height: 44px; padding: 10px 20px; font-size: .92rem; }
.cab__nav ul a, .cab__cta, .cab__idioma { white-space: nowrap; }
@media (max-width: 1180px) {
  /* .cab lleva backdrop-filter: es el bloque contenedor del position:fixed, así que el menú se coloca
     respecto a la cabecera (top: 100% = justo debajo), no respecto a la ventana */
  .cab__nav { position: fixed; inset: 100% 0 auto 0; max-height: calc(100dvh - var(--cab-alto)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 12px var(--gutter) 24px; box-shadow: 0 20px 40px rgba(16, 40, 46, .14); border-top: 1px solid var(--linea); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .cab.abierta .cab__nav { transform: none; opacity: 1; visibility: visible; }
  .cab__nav ul { flex-direction: column; gap: 0; }
  .cab__nav ul a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--linea); }
  .cab__nav ul a::after { display: none; }
  .cab__nav .cab__idioma { display: none; }
  .cab__cta { margin-top: 16px; min-height: 52px; }
  .cab__idioma--movil { display: inline-flex; margin-left: auto; }
  /* la única acción de la web, siempre a mano: el menú plegado se la llevaba en cuanto pasabas el hero */
  .cab__cta-movil { display: inline-flex; min-height: 40px; padding: 8px 14px; font-size: .84rem; box-shadow: none; white-space: nowrap; }
  .cab__menu { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
  .cab__menu-barras, .cab__menu-barras::before, .cab__menu-barras::after { display: block; width: 22px; height: 2px; background: var(--titulo); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .cab__menu-barras::before, .cab__menu-barras::after { content: ''; position: absolute; left: 0; }
  .cab__menu-barras::before { top: -7px; }
  .cab__menu-barras::after { top: 7px; }
  .cab.abierta .cab__menu-barras { background: transparent; }
  .cab.abierta .cab__menu-barras::before { transform: translateY(7px) rotate(45deg); }
  .cab.abierta .cab__menu-barras::after { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .cab__in { gap: 8px; }
  .cab__logo img { width: 124px; }
  .cab__idioma--movil { padding: 6px 10px; }
}
@media (max-width: 359px) { .cab__cta-movil { display: none; } }

/* ---------- piezas comunes ---------- */
.tarjeta { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: clamp(20px, 2vw, 32px); border: 1px solid rgba(16, 40, 46, .05); }
.tarjeta--plana { box-shadow: none; border: 1px solid var(--linea); }
.seccion--crema .tarjeta--plana { border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--teal-velo); color: var(--teal-700); white-space: nowrap; }
.chip--magenta { background: var(--magenta-velo); color: var(--magenta-700); }
.chip--blanco { background: #fff; color: var(--teal-700); }
.en-vivo { display: inline-flex; align-items: center; gap: .55em; font-size: .78rem; font-weight: 700; color: var(--teal-700); }
.en-vivo::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #18B26B; box-shadow: 0 0 0 0 rgba(24, 178, 107, .5); animation: latido 2s infinite; }
.seccion--profunda .en-vivo, .seccion--teal .en-vivo { color: var(--teal-claro); }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(24, 178, 107, .55); } 70% { box-shadow: 0 0 0 9px rgba(24, 178, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 178, 107, 0); } }

.cifra { display: flex; flex-direction: column; gap: 4px; }
.cifra__valor { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--teal-600); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cifra__etiqueta { font-size: .92rem; font-weight: 600; color: var(--tinta); line-height: 1.35; }
.cifra__pie { font-size: .76rem; color: var(--tinta-suave); line-height: 1.4; }
.seccion--profunda .cifra__valor { color: #fff; }
/* «nearly 1 in 4» / «casi 1 de cada 4»: el matiz va pequeño encima, para que la cifra no parta en dos líneas */
.cifra__valor { position: relative; }
.cifra__matiz { position: absolute; left: 0; bottom: 100%; margin-bottom: .15em; font-size: .3em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.seccion--profunda .cifra__etiqueta { color: rgba(255, 255, 255, .9); }
.seccion--profunda .cifra__pie { color: rgba(255, 255, 255, .62); }

.circulo-cifra { width: 112px; height: 112px; border-radius: 50%; background: var(--magenta); color: #fff; display: grid; place-content: center; text-align: center; font-weight: 800; line-height: 1.05; box-shadow: 0 10px 30px rgba(216, 11, 140, .3); }
.circulo-cifra small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.circulo-cifra strong { font-size: 1.7rem; }

.foto { border-radius: var(--radio-l); overflow: hidden; background: var(--crema); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto--marco { border: 6px solid #fff; box-shadow: var(--sombra-l); }
.circulo-foto { border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--sombra-l); background: var(--crema); }
.circulo-foto img { width: 100%; height: 100%; object-fit: cover; }

.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lista-check li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.lista-check li::before { content: ''; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--teal-velo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007F96' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.seccion--profunda .lista-check li::before { background-color: rgba(63, 208, 232, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FD0E8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* acordeón (preguntas frecuentes y pasos) */
.acordeon { display: grid; gap: 12px; }
.acordeon details { background: #fff; border-radius: var(--radio); border: 1px solid var(--linea); transition: box-shadow .2s, border-color .2s; }
.acordeon details[open] { box-shadow: var(--sombra); border-color: transparent; }
.acordeon summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--titulo); position: relative; font-size: 1.02rem; line-height: 1.4; }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--teal-velo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007F96' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.acordeon details[open] summary::after { transform: rotate(45deg); }
.acordeon .acordeon__cuerpo { padding: 0 24px 22px; color: var(--tinta-suave); }
.acordeon .acordeon__cuerpo > :last-child { margin-bottom: 0; }

/* testimonio */
.testimonio { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.testimonio blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--tinta); position: relative; padding-top: 34px; }
.testimonio blockquote::before { content: '“'; position: absolute; top: -18px; left: -4px; font-size: 4.4rem; line-height: 1; font-weight: 800; color: var(--magenta); }
.testimonio figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--titulo); font-size: .95rem; }
.testimonio figcaption span:not(.inicial) { display: block; font-weight: 500; color: var(--tinta-suave); font-size: .8rem; }
.inicial { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--teal-velo); color: var(--teal-700); display: grid; place-content: center; font-weight: 800; font-size: .95rem; }

/* vídeo ligero de YouTube: no carga nada de YouTube hasta que se pulsa */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: #0d1d21 center / cover no-repeat; border: 0; padding: 0; cursor: pointer; color: #fff; text-align: left; }
.video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(4, 24, 29, .78)); }
.video__boton { position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--magenta); display: grid; place-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.video__boton::before { content: ''; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.video:hover .video__boton { transform: scale(1.07); }
.video__texto { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px; font-weight: 700; line-height: 1.3; font-size: .98rem; }
.video__texto small { display: block; font-weight: 500; opacity: .85; font-size: .8rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* tarjeta de liquidación (en vivo) */
.liquidacion { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: #fff; border-radius: var(--radio); padding: 18px 20px; box-shadow: var(--sombra); border: 1px solid rgba(16, 40, 46, .05); }
.liquidacion__n { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-velo); color: var(--teal-700); display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 1.25rem; line-height: 1; }
.liquidacion__n small { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.liquidacion__barrio { font-weight: 800; color: var(--titulo); font-size: 1.05rem; line-height: 1.25; }
.liquidacion__det { font-size: .86rem; color: var(--tinta-suave); line-height: 1.4; }
.liquidacion__det b { color: var(--teal-700); font-weight: 700; }
.liquidacion__det span { white-space: nowrap; }
html[lang="es"] .liquidacion__n small { letter-spacing: 0; font-size: .6rem; }
.esqueleto { background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%); background-size: 200% 100%; animation: brillo 1.4s infinite; border-radius: 8px; min-height: 1em; }
@keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* barras mensuales (SVG generado por live.js) */
.barras { width: 100%; height: auto; overflow: visible; }
.barras text { font-family: var(--fuente); font-size: 11px; fill: var(--tinta-suave); }
.barras .barra { fill: var(--teal); transition: fill .15s; }
.barras .barra--ultima { fill: var(--magenta); }
.barras .barra:hover { fill: var(--teal-600); }
.barras .valor { font-weight: 700; fill: var(--titulo); }
.seccion--profunda .barras text { fill: rgba(255, 255, 255, .7); }
.seccion--profunda .barras .valor { fill: #fff; }
@media (max-width: 640px) { .barras text { font-size: 19px; } }

/* llamada final */
.llamada { position: relative; overflow: hidden; border-radius: var(--radio-l); background: var(--teal-700); color: #fff; padding: clamp(36px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center; }
.llamada::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.llamada::after { content: ''; position: absolute; width: 280px; height: 280px; right: 120px; bottom: -200px; border-radius: 50%; background: var(--magenta); } /* el círculo magenta de los folletos */
/* en una columna los botones bajan hasta el borde: el círculo se encoge a la esquina para no pasar por debajo */
@media (max-width: 980px) { .llamada::after { width: 180px; height: 180px; right: -70px; bottom: -150px; } }
.llamada > * { position: relative; z-index: 1; }
.llamada h2 { color: #fff; }
.llamada p { color: #fff; margin: 0; max-width: 34rem; } /* blanco sobre #006F84: 5,8:1 (4,96:1 sobre el círculo claro) */
/* entre 761 y ~1000 px la columna de los botones se comía el texto (en ES hasta ~1100) */
@media (max-width: 980px) { .llamada { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { html[lang="es"] .llamada { grid-template-columns: minmax(0, 1fr); } }
/* en ES a escritorio el titular partía en cuatro líneas junto a dos botones en fila: apilados, el texto respira */
@media (min-width: 1101px) { html[lang="es"] .llamada .botones { flex-direction: column; align-items: stretch; } }
@media (max-width: 520px) {
  .llamada { padding-left: 22px; padding-right: 22px; }
  .llamada .botones .boton { width: 100%; padding-left: 16px; padding-right: 16px; }
}

/* bloque «Hablamos español» */
.espanol { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: #fff; border-radius: var(--radio-l); padding: clamp(24px, 3vw, 40px); box-shadow: var(--sombra); }
.espanol__texto { margin: 0 0 6px; }
.espanol__texto:last-child { margin-bottom: 0; }
.espanol__ingles { margin: 0; }
.espanol__ingles a { font-weight: 700; }
.espanol__icono { width: 64px; height: 64px; border-radius: 50%; background: var(--magenta-velo); color: var(--magenta-700); display: grid; place-content: center; font-weight: 800; font-size: 1.2rem; }
@media (max-width: 760px) { .espanol { grid-template-columns: 1fr; text-align: left; } }

/* formularios */
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; font-size: .9rem; color: var(--titulo); }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--tinta); background: #fff; border: 1.5px solid #948D87; border-radius: 12px; padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
/* el foco de teclado es el mismo anillo magenta del resto del sitio; el cambio de borde solo no se veía (1,4:1) */
.campo :is(input, select, textarea):focus { outline: none; border-color: var(--teal-600); }
.campo :is(input, select, textarea):focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
.campo__ayuda { font-size: .78rem; color: var(--tinta-suave); }

/* aparición suave al hacer scroll: sólo si corre JS (layout.html pone .js en <html>); sin él, todo visible */
.js .aparece { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .aparece.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .aparece { opacity: 1; transform: none; transition: none; }
  .en-vivo::before, .esqueleto { animation: none; }
}

/* ---------- pie ---------- */
.pie { background: var(--teal-950); color: rgba(255, 255, 255, .78); padding: 72px 0 0; font-size: .93rem; }
.pie a { color: #fff; text-decoration: none; }
.pie a:hover { text-decoration: underline; color: #fff; }
.pie__rejilla { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.pie__marca img { width: 180px; }
.pie__lema { margin-top: 16px; color: rgba(255, 255, 255, .72); font-weight: 500; }
.pie__titulo { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.pie__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pie__etiqueta { display: inline-block; min-width: 5.8em; color: var(--teal-claro); font-weight: 700; font-size: .8rem; }
.pie__legal { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; padding-bottom: 32px; font-size: .78rem; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.pie__legal p { max-width: 70rem; }
@media (max-width: 860px) { .pie__rejilla { grid-template-columns: 1fr; gap: 32px; } }
/* en el móvil el pie medía más de una pantalla: menos aire y el menú a dos columnas */
@media (max-width: 640px) {
  .pie { padding-top: 48px; }
  .pie__rejilla { gap: 24px; padding-bottom: 28px; }
  .pie nav .pie__lista { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .pie__lista { gap: 8px; }
  .pie__titulo { margin-bottom: 10px; }
}
