/* =============================================================================
   LA GRANJA DE LOS CUENTOS — Colegios
   Misma familia visual que la web actual: base clara, azul eléctrico como acento,
   DM Sans para editorial, SUD para titulares en mayúsculas, casitas del brandbook.
   Sin scroll-reveal, sin parallax. Transiciones simples de color/opacidad.
   Neo · 2026-08-30
   ============================================================================= */

/* --- 1. TIPOGRAFÍAS ------------------------------------------------------- */

@font-face {
  font-family: "Sud";
  src: url("../fonts/Sud.woff2") format("woff2"),
       url("../fonts/Sud.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans.woff2") format("woff2-variations"),
       url("../fonts/DMSans.ttf") format("truetype-variations");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Italic.woff2") format("woff2-variations"),
       url("../fonts/DMSans-Italic.ttf") format("truetype-variations");
  font-weight: 100 1000;
  font-style: italic;
  font-display: swap;
}

/* --- 2. TOKENS ------------------------------------------------------------ */

:root {
  /* Paleta oficial Brandbook 2025 (la misma que ya usa la web) */
  --verde-digital: #d5fecd;
  --azul: #3f6bff;          /* marca: fondos, iconos, bordes, casitas */
  --azul-texto: #2f57e0;    /* mismo azul, más denso: pasa AA sobre crema, blanco, verde digital y beige */
  --azul-claro: #467ff7;
  --rojo-texto: #d93a0f;
  --verde-negruzco: #082c1c;
  --blanco-roto: #fefcf8;
  --beige: #ffebc4;
  --marron: #9f703f;
  --rojo: #fe4d19;
  --tinta-suave: #324a6d;

  --linea: rgba(8, 44, 28, 0.13);
  --linea-fuerte: rgba(8, 44, 28, 0.3);
  --linea-clara: rgba(213, 254, 205, 0.24);
  --sombra: 0 1px 2px rgba(8, 44, 28, 0.04), 0 10px 30px -14px rgba(8, 44, 28, 0.22);

  /* Escala tipográfica fluida */
  --t--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --t-0: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --t-1: clamp(1.12rem, 1.05rem + 0.36vw, 1.32rem);
  --t-2: clamp(1.38rem, 1.22rem + 0.8vw, 1.9rem);
  --t-3: clamp(1.7rem, 1.4rem + 1.55vw, 2.7rem);
  --t-4: clamp(2.1rem, 1.55rem + 2.7vw, 3.7rem);
  --t-5: clamp(2.4rem, 1.6rem + 4vw, 4.9rem);

  --ancho: 1180px;
  --seccion: clamp(3.5rem, 7vw, 6.5rem);
  --radio: 4px;
  --radio-g: 10px;
  --transicion: 180ms ease;

  --fondo: var(--blanco-roto);
  --tinta: var(--verde-negruzco);
  --cuerpo: var(--tinta-suave);
}

/* --- 3. BASE -------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--blanco-roto);
  color: var(--verde-negruzco);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--t-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; }

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

::selection { background: var(--verde-digital); color: var(--verde-negruzco); }

/* --- 4. TIPOGRAFÍA -------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0 0 0.55em; text-wrap: balance; }
h2 { font-size: var(--t-3); font-weight: 700; }

/* Titular editorial — el gesto propio de la casa: DM Sans muy bold con una
   parte de la frase en azul eléctrico. */
.titular {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: var(--t-3);
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.titular em { font-style: normal; color: var(--azul-texto); }
.f-oscuro .titular em,
.f-azul .titular em { color: var(--verde-digital); }

/* Titular display — SUD, siempre en mayúsculas */
.display {
  font-family: "Sud", "DM Sans", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.004em;
  line-height: 0.95;
}

/* SUD no tiene el glifo ¿: se construye girando 180° el ? de cierre (norma fija, ver CLAUDE.md/memoria). */
.interrogacion-abierta { display: inline-block; transform: rotate(180deg); }

h3 { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: var(--t-1); letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-family: "DM Sans", sans-serif; font-weight: 700; font-size: var(--t-0); letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--verde-negruzco); }
.f-oscuro strong, .f-azul strong, .f-marron strong { color: inherit; }
.hero strong, .franja strong { color: var(--verde-digital); }

.plomo { font-size: var(--t-1); line-height: 1.55; }
.menudo { font-size: var(--t--1); line-height: 1.55; }
.centro { text-align: center; margin-inline: auto; }

/* Etiqueta de sección: casita + versalitas */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: "Sud", sans-serif;
  font-size: var(--t--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azul-texto);
  margin: 0 0 1rem;
}

.chip::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--casita) center / contain no-repeat;
  mask: var(--casita) center / contain no-repeat;
}

.f-oscuro .chip, .f-azul .chip { color: var(--verde-digital); }

/* El chip llevaba el color del contenedor por herencia (.cabecera-seccion p,
   .duo__texto p). Se fuerza el azul de marca en todos los fondos claros. */
.cabecera-seccion .chip,
.duo__texto .chip,
.editorial__texto .chip,
.respiro .chip { color: var(--azul-texto); }

.f-oscuro .cabecera-seccion .chip,
.f-oscuro .duo__texto .chip,
.f-oscuro .editorial__texto .chip,
.f-oscuro .respiro .chip { color: var(--verde-digital); }

blockquote {
  margin: 0;
  font-size: var(--t-2);
  line-height: 1.3;
  font-weight: 300;
  font-style: italic;
  text-wrap: balance;
}

/* --- 5. LAYOUT ------------------------------------------------------------ */

.contenedor { width: min(100% - 2.4rem, var(--ancho)); margin-inline: auto; }
.contenedor--estrecho { width: min(100% - 2.4rem, 760px); margin-inline: auto; }

.seccion {
  padding-block: var(--seccion);
  background: var(--fondo);
  color: var(--tinta);
}

.seccion--corta { padding-block: clamp(2.4rem, 4.5vw, 3.8rem); }

.f-crema  { --fondo: var(--blanco-roto);   --tinta: var(--verde-negruzco); --cuerpo: var(--tinta-suave); }
.f-blanco { --fondo: #ffffff;              --tinta: var(--verde-negruzco); --cuerpo: var(--tinta-suave); }
.f-verde  { --fondo: var(--verde-digital); --tinta: var(--verde-negruzco); --cuerpo: #10402c; }
.f-beige  { --fondo: var(--beige);         --tinta: var(--verde-negruzco); --cuerpo: #4a3a1e; }
.f-oscuro { --fondo: var(--verde-negruzco);--tinta: var(--verde-digital);  --cuerpo: rgba(213,254,205,0.86); }
.f-azul   { --fondo: var(--azul);          --tinta: var(--verde-digital);  --cuerpo: var(--verde-digital); }

.rejilla { display: grid; gap: clamp(1.2rem, 2.4vw, 2rem); }
.rejilla--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.rejilla--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.rejilla--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* Programas: 4 tarjetas con texto largo, siempre 2x2 (nunca 3+1 con hueco). */
.rejilla--programas { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .rejilla--programas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Calendario de tarifas: 5 meses. 1 columna en móvil, 2 en tableta, las 5 en escritorio. */
.rejilla--tarifas { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; }

@media (min-width: 600px) {
  .rejilla--tarifas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .rejilla--tarifas { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(0.9rem, 1.4vw, 1.2rem); }
  .rejilla--tarifas .precio { padding: clamp(1.2rem, 1.9vw, 1.6rem); }
}

/* Cifras: 6 datos, siempre en filas pares (nunca 4+2 con hueco). 1 col. móvil, 2 tableta, 3 escritorio. */
.rejilla--cifras { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .rejilla--cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .rejilla--cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Bloque editorial: titular grande a la izquierda, texto a la derecha.
   Es la proporción que ya usa la web actual. */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 5vw, 4.5rem);
  align-items: start;
}

.editorial__texto { color: var(--cuerpo); max-width: 62ch; }
.editorial__texto > .plomo:first-child { color: var(--tinta); }

@media (max-width: 820px) {
  .editorial { grid-template-columns: 1fr; gap: 1.2rem; }
}

.cabecera-seccion { max-width: 58ch; margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.cabecera-seccion.centro { margin-inline: auto; }
.cabecera-seccion p { color: var(--cuerpo); }

/* --- 6. CASITA (motivo de marca) ------------------------------------------ */

:root {
  --casita: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath fill='%23000' d='M0 40 50 0l50 40v52H0z'/%3E%3C/svg%3E");
}

.casita {
  -webkit-mask: var(--casita) center / contain no-repeat;
  mask: var(--casita) center / contain no-repeat;
  overflow: hidden;
  background: var(--verde-negruzco);
}

.casita img { width: 100%; height: 100%; object-fit: cover; }

/* --- 7. BOTONES Y ENLACES ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.92em 1.65em;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: "Sud", sans-serif;
  font-size: clamp(0.95rem, 0.92rem + 0.2vw, 1.06rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transicion), color var(--transicion),
    border-color var(--transicion);
}

.btn--primario { background: var(--azul-texto); color: #ffffff; border-color: var(--azul-texto); }
.btn--primario:hover { background: var(--azul-claro); border-color: var(--azul-claro); }

.btn--secundario { background: transparent; color: var(--verde-negruzco); border-color: var(--linea-fuerte); }
.btn--secundario:hover { border-color: var(--verde-negruzco); background: rgba(8, 44, 28, 0.05); }

.f-oscuro .btn--primario,
.f-azul .btn--primario,
.hero .btn--primario { background: var(--verde-digital); color: var(--verde-negruzco); border-color: var(--verde-digital); }

.f-oscuro .btn--primario:hover,
.f-azul .btn--primario:hover,
.hero .btn--primario:hover { background: #e9ffe4; border-color: #e9ffe4; }

.f-oscuro .btn--secundario,
.f-azul .btn--secundario,
.hero .btn--secundario { color: inherit; border-color: var(--linea-clara); }

.f-oscuro .btn--secundario:hover,
.hero .btn--secundario:hover { border-color: currentColor; background: rgba(213, 254, 205, 0.1); }

.acciones { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; }
.acciones--centro { justify-content: center; }

.enlace {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  font-weight: 600;
  color: var(--azul-texto);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--transicion), border-color var(--transicion);
}

.enlace::after { content: "\2192"; font-weight: 400; }
.enlace:hover { color: var(--verde-negruzco); }
.f-oscuro .enlace { color: var(--verde-digital); }
.f-oscuro .enlace:hover { color: #ffffff; }

.pista { font-size: var(--t--1); color: var(--cuerpo); margin: 0.85rem 0 0; }

/* --- 8. CABECERA ---------------------------------------------------------- */

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--verde-negruzco);
  color: var(--verde-digital);
  padding: 0.85rem 1.2rem;
  font-weight: 600;
}

.saltar:focus { left: 0; }

.cabecera {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 248, 0.95);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--linea);
}

.cabecera__interior {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.4rem;
  padding-block: 0.6rem;
}

.cabecera__logo { display: block; flex: none; }
.cabecera__logo img { width: clamp(172px, 20vw, 232px); }

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }

.nav__lista {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.7vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__enlace {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--verde-negruzco);
  border-bottom: 2px solid transparent;
  transition: color var(--transicion), border-color var(--transicion);
}

.nav__enlace:hover { color: var(--azul-texto); border-bottom-color: var(--azul-texto); }

.nav .btn { padding: 0.7em 1.2em; font-size: 0.88rem; }

.hamburguesa {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--linea-fuerte);
  border-radius: 999px;
  background: transparent;
  color: var(--verde-negruzco);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburguesa span { display: block; position: relative; width: 17px; height: 2px; background: currentColor; }

.hamburguesa span::before,
.hamburguesa span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: currentColor;
}

.hamburguesa span::before { top: -6px; }
.hamburguesa span::after { top: 6px; }

@media (max-width: 900px) {
  .hamburguesa { display: inline-flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.2rem 1.6rem;
    background: var(--blanco-roto);
    border-bottom: 1px solid var(--linea);
    display: none;
  }

  .nav.esta-abierta { display: flex; }

  .nav__lista { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__enlace {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--linea);
    font-size: 1.02rem;
  }

  .nav__enlace:hover { border-bottom-color: var(--linea); }
  .nav .btn { margin-top: 1.1rem; width: 100%; }
}

/* --- 9. HÉROE ------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  color: var(--verde-digital);
  background: var(--verde-negruzco);
  isolation: isolate;
  overflow: hidden;
}

.hero__fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(8, 44, 28, 0.94) 0%, rgba(8, 44, 28, 0.82) 45%, rgba(8, 44, 28, 0.52) 100%);
}

.hero__contenido { max-width: 44ch; }

.hero h1 { font-size: var(--t-4); margin-bottom: 0.4em; }

.hero__entrada {
  max-width: 54ch;
  font-size: var(--t-1);
  line-height: 1.55;
  color: rgba(254, 252, 248, 0.92);
}

.hero .chip { color: var(--verde-digital); }
.hero .acciones { margin-top: clamp(1.6rem, 3vw, 2.4rem); }

.hero__pie {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.2rem;
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea-clara);
  font-family: "Sud", sans-serif;
  font-size: var(--t--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- 10. FRANJA CON FOTO -------------------------------------------------- */

.franja {
  position: relative;
  min-height: clamp(320px, 46vw, 520px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem;
  color: var(--blanco-roto);
  background: var(--verde-negruzco);
  isolation: isolate;
  overflow: hidden;
}

.franja__fondo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.franja::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 44, 28, 0.74), rgba(8, 44, 28, 0.82));
}

.franja p { max-width: 46ch; margin-inline: auto; color: rgba(254, 252, 248, 0.9); }

.franja__titulo { font-size: var(--t-4); margin-bottom: 0.45em; }
.franja__titulo span { display: block; }
.franja__titulo .resalte { color: var(--verde-digital); }

/* --- 11. TARJETAS --------------------------------------------------------- */

.tarjeta {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--linea);
  border-radius: var(--radio-g);
  overflow: hidden;
  transition: border-color var(--transicion), box-shadow var(--transicion);
}

.tarjeta:hover { border-color: var(--linea-fuerte); box-shadow: var(--sombra); }

.f-blanco .tarjeta { background: var(--blanco-roto); }
.f-oscuro .tarjeta { background: rgba(254, 252, 248, 0.05); border-color: var(--linea-clara); }

.tarjeta__cuerpo { display: flex; flex-direction: column; gap: 0.6rem; padding: clamp(1.3rem, 2.2vw, 1.8rem); flex: 1; }
.tarjeta__cuerpo h3 { margin: 0; }
.tarjeta__cuerpo p { margin: 0; color: var(--cuerpo); }
.tarjeta__cuerpo .enlace { margin-top: auto; padding-top: 0.9rem; align-self: flex-start; }

/* Tarjeta con foto: las tres puertas de la portada */
.tarjeta__foto {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--verde-negruzco);
}

.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; }

.puerta { text-decoration: none; color: inherit; }
.puerta:hover .enlace { color: var(--verde-negruzco); }
.puerta .enlace { margin-top: auto; padding-top: 0.9rem; align-self: flex-start; }

.puerta__numero {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--verde-digital);
  color: var(--verde-negruzco);
  font-family: "Sud", sans-serif;
  font-size: 0.95rem;
}

/* Tarjeta de programa: imagen recortada en casita */
.programa { text-align: left; display: flex; flex-direction: column; }
.programa .enlace { margin-top: auto; align-self: flex-start; }

.programa__casita { aspect-ratio: 100 / 92; margin-bottom: 1.2rem; }

.programa__nivel {
  display: inline-block;
  font-family: "Sud", sans-serif;
  font-size: var(--t--1);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--azul-texto);
  margin-bottom: 0.35rem;
}

.programa h3 { font-size: var(--t-2); margin-bottom: 0.6rem; }
.programa p { color: var(--cuerpo); }
.programa .enlace { margin-top: 0.9rem; }

/* Ventaja / dato con icono de casita: subgrid para que icono, título y párrafo
   queden a la misma altura entre tarjetas, sin reservar espacio de más. */
.rejilla--4 { grid-template-rows: auto auto auto; }
.ventaja { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0.55rem; }

.ventaja__marca {
  width: 2.1rem;
  height: 2.1rem;
  background: var(--azul);
  -webkit-mask: var(--casita) center / contain no-repeat;
  mask: var(--casita) center / contain no-repeat;
  margin-bottom: 0.3rem;
}

.f-oscuro .ventaja__marca, .f-azul .ventaja__marca { background: var(--verde-digital); }
.ventaja h3 { margin: 0; align-self: start; }
.ventaja p { margin: 0; color: var(--cuerpo); font-size: var(--t--1); line-height: 1.6; }

/* Cifra */
.dato { border-top: 2px solid var(--azul); padding-top: 1rem; }
.dato__cifra { display: block; font-family: "Sud", sans-serif; font-size: var(--t-3); line-height: 0.92; margin-bottom: 0.3rem; }
.dato p { margin: 0; font-size: var(--t--1); line-height: 1.5; color: var(--cuerpo); }

/* Vecinos (animales) */
.vecino__foto { aspect-ratio: 100 / 92; }
.vecino__foto img { object-position: var(--enfoque, center); }
.vecino h3 { margin: 0.9rem 0 0.1rem; font-size: var(--t-0); }
.vecino p { margin: 0; font-size: var(--t--1); color: var(--cuerpo); }
.f-oscuro .vecino p { color: rgba(213, 254, 205, 0.75); }

/* Testimonios (el Guinness granjero) */
.testimonio { border-top: 2px solid var(--azul); padding-top: 1rem; }
.testimonio__premio { font-family: "Sud", sans-serif; font-size: var(--t-0); line-height: 1.25; color: var(--azul-texto); margin: 0 0 0.9rem; }
.f-oscuro .testimonio__premio, .f-azul .testimonio__premio { color: var(--verde-digital); }
.testimonio__resena { font-style: italic; color: var(--cuerpo); margin: 0 0 0.9rem; }
.testimonio__nombre { font-weight: 700; color: var(--tinta); margin: 0; }
.testimonio__nombre span { font-weight: 400; color: var(--cuerpo); }

/* Listas */
.lista-casitas, .lista-no { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }

.lista-casitas li, .lista-no li { position: relative; padding-left: 1.75rem; line-height: 1.55; }

.lista-casitas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.75em;
  height: 0.75em;
  background: var(--azul);
  -webkit-mask: var(--casita) center / contain no-repeat;
  mask: var(--casita) center / contain no-repeat;
}

.f-oscuro .lista-casitas li::before, .f-azul .lista-casitas li::before { background: var(--verde-digital); }

.lista-no li::before {
  content: "\00d7";
  position: absolute;
  left: 0.2rem;
  top: -0.09em;
  font-size: 1.3em;
  color: var(--rojo-texto);
}

/* --- 12. DÚO TEXTO + FIGURA ----------------------------------------------- */

.duo {
  display: grid;
  gap: clamp(1.8rem, 4.5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

.duo__texto { max-width: 56ch; }
.duo__texto p { color: var(--cuerpo); }
.duo__figura { margin: 0; }
.duo__figura img { border-radius: var(--radio-g); width: 100%; }
.duo__figura figcaption { margin-top: 0.8rem; font-size: var(--t--1); color: var(--cuerpo); font-style: italic; }

/* Entonces y ahora: dos GIFs lado a lado, antiguas vs. actuales */
.entonces-ahora__titulo { font-family: "Sud", sans-serif; font-size: var(--t-0); margin: 0 0 0.9rem; color: var(--tinta); }
.entonces-ahora__titulo em { font-style: normal; color: var(--azul-texto); }
.entonces-ahora { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.entonces-ahora__casita { aspect-ratio: 100 / 92; }

@media (min-width: 821px) {
  .duo--invertido .duo__figura { order: -1; }
}

/* --- 13. LA JORNADA ------------------------------------------------------- */

.jornada { list-style: none; margin: 0; padding: 0; }

.jornada li {
  display: grid;
  grid-template-columns: minmax(5rem, 7.5rem) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.2rem, 2.4vw, 1.8rem) 0;
  border-top: 1px solid var(--linea);
  align-items: start;
}

.f-oscuro .jornada li { border-top-color: var(--linea-clara); }
.jornada li:last-child { border-bottom: 1px solid var(--linea); }
.f-oscuro .jornada li:last-child { border-bottom-color: var(--linea-clara); }

.jornada__hora { font-family: "Sud", sans-serif; font-size: var(--t-1); line-height: 1.05; color: var(--azul-texto); }
.jornada__hora small { display: block; margin-top: 0.45em; font-size: 0.6em; letter-spacing: 0.11em; color: var(--cuerpo); }
.f-oscuro .jornada__hora small { color: rgba(213, 254, 205, 0.7); }
.f-oscuro .jornada__hora { color: var(--verde-digital); }
.jornada h3 { margin-bottom: 0.35rem; }
.jornada p { margin: 0; color: var(--cuerpo); }

@media (max-width: 620px) {
  .jornada li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* --- 14. TARIFAS ---------------------------------------------------------- */

.precio {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  justify-items: center;
  text-align: center;
  padding: clamp(1.5rem, 2.8vw, 2.1rem);
  background: #ffffff;
  border: 1px solid var(--linea);
  border-radius: var(--radio-g);
}

.precio--destacado { background: var(--verde-negruzco); color: var(--verde-digital); border-color: var(--verde-negruzco); }

.precio__mes {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: "Sud", sans-serif;
  font-size: var(--t--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  color: var(--azul-texto);
}

.precio__etiqueta { color: var(--cuerpo); }
.precio--destacado .precio__etiqueta { color: var(--verde-digital); }
.precio--destacado .precio__mes { color: var(--verde-digital); }

.precio__cifra { align-self: end; font-family: "Sud", sans-serif; font-size: var(--t-4); line-height: 0.9; }
.precio__unidad { font-size: var(--t--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cuerpo); margin-top: 0.1rem; }
.precio--destacado .precio__unidad { color: rgba(213, 254, 205, 0.8); }
.precio__corta { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--linea); font-size: var(--t--1); color: var(--cuerpo); }
.precio--destacado .precio__corta { border-top-color: var(--linea-clara); color: rgba(213, 254, 205, 0.8); }

.precio__detalle { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--linea); font-size: var(--t--1); line-height: 1.6; color: var(--cuerpo); }
.precio--destacado .precio__detalle { border-top-color: var(--linea-clara); color: rgba(213, 254, 205, 0.86); }
.precio__detalle ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.precio__detalle li { padding-left: 1rem; position: relative; }
.precio__detalle li::before { content: "\2014"; position: absolute; left: 0; opacity: 0.55; }
.precio__detalle p { margin: 0 0 0.45rem; }
.precio__detalle p:last-child { margin-bottom: 0; }

.letra-pequena { margin-top: clamp(1.4rem, 3vw, 2rem); font-size: var(--t--1); line-height: 1.65; color: var(--cuerpo); }

/* --- 15. PREGUNTAS -------------------------------------------------------- */

.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: var(--t-0);
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color var(--transicion);
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--azul-texto); }

.faq summary::after {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.35rem;
  background: var(--azul);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v14h-2zM5 11h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--transicion);
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq__respuesta { padding: 0 0 1.4rem; max-width: 64ch; color: var(--cuerpo); }

/* --- 16. CONTACTO --------------------------------------------------------- */

.canales { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.canales li { display: grid; grid-template-columns: auto 1fr; gap: 0.95rem; align-items: start; }

.canales__icono {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--verde-negruzco);
  color: var(--verde-digital);
  -webkit-mask: var(--casita) center / contain no-repeat;
  mask: var(--casita) center / contain no-repeat;
  flex: none;
}

.f-oscuro .canales__icono { background: var(--verde-digital); color: var(--verde-negruzco); }

.canales__icono svg { width: 1.05rem; height: 1.05rem; margin-top: 0.25rem; fill: currentColor; }

.canales__titulo {
  display: block;
  font-family: "Sud", sans-serif;
  font-size: var(--t--1);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cuerpo);
  margin-bottom: 0.1rem;
}

.canales strong { font-size: var(--t-1); font-weight: 700; }
.canales a { text-decoration: none; border-bottom: 2px solid var(--azul); transition: color var(--transicion); }
.canales a:hover { color: var(--azul-texto); }
.canales .menudo { color: var(--cuerpo); }
.f-oscuro .canales__titulo, .f-oscuro .canales .menudo { color: rgba(213, 254, 205, 0.72); }
.f-oscuro .canales a { border-bottom-color: var(--verde-digital); }
.f-oscuro .canales a:hover { color: #ffffff; }

.formulario {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  background: #ffffff;
  color: var(--verde-negruzco);
  border: 1px solid var(--linea);
  border-radius: var(--radio-g);
}

.campo { display: grid; gap: 0.35rem; }
.campo--doble { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
.campo label { font-size: var(--t--1); font-weight: 700; }
.campo label .req { color: var(--rojo-texto); }

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  background: #fff;
  color: var(--verde-negruzco);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--transicion), box-shadow var(--transicion);
}

.campo textarea { min-height: 6.5rem; resize: vertical; }

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(63, 107, 255, 0.2);
}

.formulario__nota { font-size: var(--t--1); line-height: 1.55; color: var(--tinta-suave); margin: 0; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.campo__opciones { display: flex; gap: 0.4rem; }
.opcion {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio);
  cursor: pointer;
  font-size: var(--t--1);
  transition: border-color var(--transicion), background var(--transicion), color var(--transicion);
}
.opcion input { accent-color: var(--azul); width: 0.9em; height: 0.9em; }
.opcion:has(input:checked) { border-color: var(--azul); background: var(--azul); color: #fff; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--t--1);
  color: var(--tinta-suave);
  cursor: pointer;
}
.check input { margin-top: 0.2rem; accent-color: var(--azul); width: 1rem; height: 1rem; flex-shrink: 0; }
.check a { color: var(--azul-texto); }

.aviso {
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--azul);
  background: #f1f4ff;
  color: var(--verde-negruzco);
  border-radius: 0 var(--radio) var(--radio) 0;
  font-size: var(--t--1);
  line-height: 1.6;
}

.f-oscuro .aviso { background: #0e3d27; color: var(--verde-digital); border-left-color: var(--verde-digital); }

/* --- 17. PIE -------------------------------------------------------------- */

.pie { background: var(--verde-negruzco); color: var(--verde-digital); padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem; }

.pie__rejilla {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.2rem, 4.5vw, 3rem);
  border-bottom: 1px solid var(--linea-clara);
}

@media (min-width: 560px) {
  .pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .pie__rejilla { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
}

.pie__logo { width: clamp(200px, 24vw, 260px); margin-bottom: 1.2rem; }
.pie h2 { font-family: "Sud", sans-serif; font-weight: 400; text-transform: uppercase; font-size: var(--t--1); letter-spacing: 0.14em; margin-bottom: 1rem; color: rgba(213, 254, 205, 0.62); }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.pie a { text-decoration: none; opacity: 0.9; transition: opacity var(--transicion); }
.pie a:hover { opacity: 1; text-decoration: underline; }
.pie__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem 2rem; padding-top: 1.6rem; font-size: var(--t--1); opacity: 0.72; }
.pie__sello { width: clamp(64px, 8vw, 84px); margin-top: 1.4rem; opacity: 0.9; }

/* --- 18. UTILIDADES ------------------------------------------------------- */

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

.cinta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: clamp(0.9rem, 2vw, 1.5rem); }

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

@media print {
  .cabecera, .hero__fondo, .franja__fondo, .formulario { display: none !important; }
  body { background: #fff; color: #000; }
  .seccion { padding-block: 1.2rem; }
}

/* --- 21. AÑADIDOS v3 ------------------------------------------------------ */

/* Remate del héroe: la frase que resume el doble beneficio */
.hero__remate {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: var(--t-2);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--verde-digital);
  max-width: 22ch;
  margin: 0 0 1.1rem;
}

/* El respiro: "R E S P I R A" */
.respira { letter-spacing: 1em; text-align: center; }

.respiro { text-align: center; }
.respiro h2 { margin: 0; font-size: var(--t-3); }

/* Llamada lateral (catálogo en PDF) */
.llamada {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--radio-g);
  background: #ffffff;
}

.llamada h3 { margin: 0 0 0.3rem; }
.llamada p { margin: 0; color: var(--cuerpo); max-width: 52ch; }
.llamada .btn { flex: none; }

/* Vídeo con fachada: no carga nada de YouTube hasta que se pulsa */
.video {
  position: relative;
  max-width: 820px;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radio-g);
  overflow: hidden;
  background: var(--verde-negruzco);
}

.video__play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video__play img { width: 100%; height: 100%; object-fit: cover; }

.video__icono {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(58px, 8vw, 78px);
  height: clamp(58px, 8vw, 78px);
  border-radius: 999px;
  background: var(--verde-digital);
  transition: background-color var(--transicion), transform var(--transicion);
}

.video__icono::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--verde-negruzco);
  transform: translateX(3px);
}

.video__play:hover .video__icono { background: #ffffff; transform: scale(1.04); }

.video iframe { width: 100%; height: 100%; border: 0; display: block; }

.video__pie {
  margin: 0.8rem auto 0;
  max-width: 820px;
  font-size: var(--t--1);
  color: var(--cuerpo);
  text-align: center;
}

/* --- 22. RESEÑAS ---------------------------------------------------------- */

.resena { display: flex; flex-direction: column; gap: 0.9rem; }

.resena blockquote {
  font-size: var(--t-0);
  line-height: 1.6;
  font-style: normal;
  font-weight: 400;
  margin: 0;
  color: var(--cuerpo);
}

.resena blockquote::before { content: "\201C"; }
.resena blockquote::after { content: "\201D"; }
.resena--carta blockquote { font-style: italic; }

.resena__firma {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--linea);
  font-size: var(--t--1);
  line-height: 1.4;
}

.resena__firma strong { display: block; font-weight: 700; }
.resena__firma span { color: var(--cuerpo); }

.f-oscuro .resena__firma { border-top-color: var(--linea-clara); }
