/* ---------------------------------------------------------------
   Lorena Riveira — Language Instructor
   Paleta cálida inspirada en la ilustración del estudio.
   --------------------------------------------------------------- */

/* Tipografías ------------------------------------------------------
   Alojadas aquí a propósito, no en fonts.googleapis.com: servidas
   desde Google, el navegador de cada visitante le entrega su IP antes
   de que la página cargue y sin consentimiento. Ver CLAUDE.md.

   Las tres son fuentes variables, así que un solo archivo cubre todo
   el rango de grosores de cada una; por eso hay ocho archivos y no
   veintitantos. Los `unicode-range` son los de Google sin tocar: si el
   texto solo usa latín básico, el navegador ni descarga el `latin-ext`.
   Caveat solo la usa la viñeta de la portada.
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fuentes/fraunces-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fuentes/fraunces-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fuentes/fraunces-cursiva-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(../fuentes/fraunces-cursiva-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fuentes/inter-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fuentes/inter-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fuentes/caveat-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(../fuentes/caveat-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --manuscrita: "Caveat", "Segoe Script", cursive;
  --crema:      #fbf6f0;
  --crema-alt:  #f4e9dd;
  --tinta:      #2f2723;
  --tinta-suave:#6b5d54;
  --terracota:  #b85c38;
  --terracota-o:#9c4a2b;
  --salvia:     #7c8f74;
  --borde:      #e6d8c9;

  --ancho: 68rem;
  --radio: 14px;
  --sombra: 0 1px 2px rgb(47 39 35 / .04), 0 8px 24px rgb(47 39 35 / .06);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracota-o); }
a:hover { color: var(--terracota); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

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

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

.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion--alt { background: var(--crema-alt); }

/* Accesibilidad: salto al contenido -------------------------------- */
.saltar {
  position: absolute;
  left: -9999px;
  background: var(--tinta);
  color: var(--crema);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radio) 0;
  z-index: 100;
}
.saltar:focus { left: 0; top: 0; }

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

/* Cabecera --------------------------------------------------------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(251 246 240 / .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}

.cabecera__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem 0;
  flex-wrap: wrap;
}

.marca {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tinta);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.marca span { display: block; font-family: var(--texto); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave); }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.5vw, 1.75rem); flex-wrap: wrap; }

.nav a {
  color: var(--tinta);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--terracota); }
.nav a[aria-current="page"] { border-bottom-color: var(--terracota); color: var(--terracota-o); }

/* Botones ---------------------------------------------------------- */
.boton {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--terracota);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--terracota);
  transition: background .18s ease, transform .18s ease;
}
.boton:hover { background: var(--terracota-o); border-color: var(--terracota-o); color: #fff; transform: translateY(-1px); }

.boton--fantasma { background: transparent; color: var(--terracota-o); }
.boton--fantasma:hover { background: var(--terracota); color: #fff; }

.boton svg { width: 1.05em; height: 1.05em; fill: currentColor; }

/* Portada ---------------------------------------------------------- */
.portada { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.portada__grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* La columna de texto se declara contenedor para poder medirla: así el
   titular se dimensiona según su ancho real y no se desborda en pantallas
   estrechas. Las medidas en cqi de aquí abajo se calculan sobre esta
   columna, no sobre la ventana. */
.portada__texto { container-type: inline-size; }

.portada h1 { font-size: min(7.4cqi, 3.1rem); line-height: 1.15; }

/* El saludo se ancla a la foto, no a la celda de la rejilla: por eso el
   contenedor lleva el max-width y la imagen ocupa el 100% de él. Si el
   max-width volviera a la imagen, en móvil la celda seguiría siendo ancha y
   la viñeta se iría al borde de la pantalla, lejos de la cara. */
.portada__retrato {
  position: relative;
  container-type: inline-size;   /* para que los cqi del saludo midan la foto */
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}

/* Flota sobre la foto y va algo torcida, para que parezca puesta a mano y no
   un elemento más de la maqueta. La inclinación es del globo entero, cola
   incluida, porque va en el mismo elemento. */
.portada__saludo {
  position: absolute;
  top: 1%;
  left: 2%;
  z-index: 2;
  margin: 0;
  padding: .6rem 1.5rem .7rem;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 999px;
  box-shadow: var(--sombra);
  font-family: var(--manuscrita);
  font-weight: 600;
  /* La manuscrita tiene la equis mucho más baja que la Fraunces, así que a
     igual tamaño se lee más pequeña: de ahí que vaya bastante por encima. */
  font-size: clamp(1.45rem, 7cqi, 1.9rem);
  line-height: 1.25;
  color: var(--terracota-o);
  white-space: nowrap;
  rotate: -4deg;
}

/* La cola: un cuadrado girado 45°, con solo dos bordes, para que parezca que
   sale de la viñeta y no una figura pegada encima. */
.portada__saludo::after {
  content: "";
  position: absolute;
  bottom: -.5rem;
  left: 2rem;
  width: .95rem;
  height: .95rem;
  background: #fff;
  border-right: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
  rotate: 45deg;
}

/* Portada sin imagen: una sola columna centrada. */
.portada--simple .portada__texto { max-width: 42rem; margin-inline: auto; text-align: center; }
.portada--simple .portada__entradilla { max-width: 38ch; margin-inline: auto; }

.portada__entradilla {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--tinta-suave);
  max-width: 44ch;
}

.portada__acciones { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* El retrato es solo imagen, sin enlace: es lo primero que se ve y sacar de la
   página desde ahí sería trabajar en contra. LinkedIn se enlaza desde el pie. */
.retrato {
  display: block;
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--sombra);
  border: 6px solid #fff;
}

/* Bloque "sobre mí" ------------------------------------------------ */
.sobre__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.sobre__imagen { border-radius: var(--radio); box-shadow: var(--sombra); }

/* Cita destacada --------------------------------------------------- */
/* Más estrecha que el carrusel de testimonios (52rem) para que se lea como
   una frase suelta y no como otro bloque más de la página. */
.destacado {
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  background: #f8ece4;              /* terracota muy diluido sobre la crema */
  border-radius: 28px;
  padding: clamp(4rem, 8vw, 5.25rem) clamp(2rem, 6vw, 4rem) clamp(3rem, 6vw, 4.25rem);
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.7vw, 1.75rem);
  line-height: 1.5;
  color: var(--tinta);
  text-wrap: balance;
  transition: opacity .6s ease, translate .6s ease;
}

/* Comilla de apertura, decorativa. */
.destacado::before {
  content: "\201C";
  position: absolute;
  top: clamp(1rem, 3vw, 1.5rem);
  left: 50%;
  translate: -50% 0;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--terracota);
  opacity: .3;
}

/* Tarjetas --------------------------------------------------------- */
.tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tarjeta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.75rem;
  box-shadow: var(--sombra);
  /* "translate" es una propiedad aparte de "transform": la aparición al hacer
     scroll usa la primera y el hover la segunda, así no se pisan entre ellas. */
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease,
              opacity .5s ease, translate .5s ease;
}

.tarjeta:hover {
  transform: translateY(-6px);
  border-color: #d9c4ad;
  box-shadow: 0 3px 6px rgb(47 39 35 / .06), 0 20px 44px rgb(47 39 35 / .13);
}

.tarjeta h3 { color: var(--terracota-o); margin-bottom: .55rem; text-align: center; }
.tarjeta p { color: var(--tinta-suave); font-size: 1rem; }

.tarjeta__icono {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--crema-alt);
  color: var(--terracota);
}
.tarjeta__icono svg { width: 1.7rem; height: 1.7rem; }

/* Franja de datos rápidos ------------------------------------------ */
.datos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.9rem;
  list-style: none;
  padding: 0;
  margin: 1.9rem 0 0;
  font-size: .9rem;
  font-weight: 500;
  color: var(--tinta-suave);
}

/* Sin fondo ni borde: sueltos sobre el fondo, con un punto que los separa
   sin encerrarlos. Al partirse en varias líneas siguen alineados. */
.datos li { display: flex; align-items: center; gap: .55rem; }

.datos li::before {
  content: "";
  flex: none;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--terracota);
}

/* En pantallas estrechas la fila centrada se partía en escalera, con unos
   datos solos y otros emparejados. En dos columnas fijas quedan alineados. */
@media (max-width: 30rem) {
  .datos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 22rem;
    margin-inline: auto;
    gap: .65rem 1rem;
    font-size: .84rem;
    text-align: left;
  }

  .datos li { align-items: start; }
  .datos li::before { margin-top: .45em; }
}

/* Precios y clase de prueba ---------------------------------------- */
/* La clase de prueba va antes que las cifras y con el fondo diluido de la
   cita: es la oferta sin riesgo y tiene que leerse primero. */
.prueba {
  max-width: 46rem;
  margin: 0 auto 2.25rem;
  background: #f8ece4;
  border-radius: var(--radio);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

.prueba__etiqueta {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--terracota-o);
  margin-bottom: .6rem;
}

.prueba p:last-child { color: var(--tinta-suave); margin: 0; }

/* Dos tarjetas como mucho: con auto-fit y un mínimo alto no se parten en
   tres columnas raquíticas si algún día se añade una tercera. */
.precios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  max-width: 46rem;
  margin-inline: auto;
  list-style: none;
  padding: 0;
}

.precio {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.75rem;
  box-shadow: var(--sombra);
  text-align: center;
}

.precio__nombre {
  font-weight: 600;
  color: var(--tinta-suave);
  font-size: .95rem;
  margin-bottom: .5rem;
}

.precio__cifra {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--terracota-o);
  margin-bottom: .5rem;
}

/* La unidad no compite con la cifra: mismo color, tamaño de texto normal. */
.precio__cifra span {
  display: block;
  font-family: var(--texto);
  font-weight: 500;
  font-size: .9rem;
  color: var(--tinta-suave);
  margin-top: .2rem;
}

.precio__nota { color: var(--tinta-suave); font-size: .9rem; margin: 0; }

/* La letra pequeña de las tarifas: va debajo de las dos tarjetas y con su
   mismo ancho, para que se lea como nota de ambas y no de una sola. */
.precios__aclaracion {
  max-width: 46rem;
  margin: 1.25rem auto 0;
  font-size: .85rem;
  line-height: 1.55;
  color: var(--tinta-suave);
  text-align: center;
  text-wrap: pretty;
}

.datos--precios { margin-top: 2rem; }

/* El botón cierra la sección, después de las cifras: quien lo pulsa ya sabe
   lo que cuesta. Abre el correo con asunto y mensaje puestos; la salida para
   quien no use correo es la sección de contacto, que va justo debajo, y por
   eso el botón puede permitirse llevar a un solo canal. */
.precios__accion { margin-top: 2.25rem; text-align: center; }

/* Aparición al hacer scroll ---------------------------------------- */
/* La clase "con-revelado" la pone el JS: sin JavaScript nada se oculta. */
.con-revelado .tarjetas > li,
.con-revelado .destacado {
  opacity: 0;
  translate: 0 16px;
}
.con-revelado .tarjetas > li.visible,
.con-revelado .destacado.visible { opacity: 1; translate: 0 0; }

.con-revelado .tarjetas > li:nth-child(2) { transition-delay: .08s; }
.con-revelado .tarjetas > li:nth-child(3) { transition-delay: .16s; }
.con-revelado .tarjetas > li:nth-child(4) { transition-delay: .24s; }
.con-revelado .tarjetas > li:nth-child(5) { transition-delay: .32s; }
.con-revelado .tarjetas > li:nth-child(6) { transition-delay: .40s; }

/* Testimonios ------------------------------------------------------ */
.titulo-centrado { text-align: center; margin-bottom: 2rem; }

.testimonio {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.testimonio blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--tinta);
}
.testimonio blockquote::before { content: "\201C"; }
.testimonio blockquote::after  { content: "\201D"; }

.testimonio figcaption { color: var(--tinta-suave); font-size: .95rem; font-weight: 500; }

/* Carrusel --------------------------------------------------------- */
.carrusel { max-width: 52rem; margin-inline: auto; }

/* Sin JS los testimonios quedan apilados y todos legibles. */
.carrusel__pista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }

.carrusel--activo .carrusel__ventana { overflow: hidden; touch-action: pan-y; }

.carrusel--activo .carrusel__pista {
  display: flex;
  gap: 0;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.carrusel--activo .carrusel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
}

.carrusel__controles {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.carrusel--activo .carrusel__controles { display: flex; }

.carrusel__flecha {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--borde);
  border-radius: 50%;
  background: #fff;
  color: var(--tinta);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.carrusel__flecha:hover {
  background: var(--terracota);
  border-color: var(--terracota);
  color: #fff;
}
.carrusel__flecha svg { width: 1.3rem; height: 1.3rem; }

.carrusel__puntos { display: flex; gap: .25rem; }

.carrusel__punto {
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.carrusel__punto::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #cdbaa6;
  transition: background .2s ease, transform .2s ease;
}
.carrusel__punto.es-actual::before { background: var(--terracota); transform: scale(1.3); }

/* Contacto --------------------------------------------------------- */
.contacto { text-align: center; }
.contacto p { max-width: 40ch; margin-inline: auto; color: var(--tinta-suave); }
.contacto__acciones { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

/* Práctica: índice de actividades ---------------------------------- */
.actividad {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.actividad h3 { text-align: left; }

.actividad__ir {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--terracota-o);
}
.actividad__ir::after { content: " →"; }

/* Práctica: actividades de huecos ---------------------------------- */
.quiz { max-width: 44rem; margin-inline: auto; }

.preguntas {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-left: 1.6rem;
}

.pregunta {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.1rem 1.25rem;
}

.pregunta__texto { margin: 0; line-height: 2.4; }

.pregunta__pista { color: var(--tinta-suave); font-size: .92rem; font-style: italic; }

.hueco {
  width: 8.5rem;
  padding: .3rem .6rem;
  border: 0;
  border-bottom: 2px solid var(--borde);
  border-radius: 4px 4px 0 0;
  background: var(--crema);
  font: inherit;
  color: var(--tinta);
}
.hueco:focus { outline: 2px solid var(--terracota); outline-offset: 1px; }

.hueco.es-bien { border-bottom-color: var(--salvia); background: #eef2ec; }
.hueco.es-casi { border-bottom-color: #c9922f; background: #faf1de; }
.hueco.es-mal  { border-bottom-color: var(--terracota); background: #fbeae3; }

.pregunta__aviso { margin: .5rem 0 0; font-size: .88rem; font-weight: 500; }
.pregunta__aviso:empty { display: none; }
.pregunta__aviso[data-estado="bien"]  { color: #4d6146; }
.pregunta__aviso[data-estado="casi"]  { color: #8a6318; }
.pregunta__aviso[data-estado="mal"],
.pregunta__aviso[data-estado="vacio"] { color: var(--terracota-o); }

.quiz__acciones { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

.quiz__resultado {
  margin: 1.25rem 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
}
.quiz__resultado:empty { display: none; }
.quiz__resultado[data-estado="bien"] { color: var(--salvia); }

/* Pie -------------------------------------------------------------- */
.pie {
  border-top: 1px solid var(--borde);
  padding: 2.5rem 0;
  font-size: .9rem;
  color: var(--tinta-suave);
}

.pie__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pie strong { color: var(--tinta); font-weight: 600; }
.pie__sello { width: 74px; border-radius: 8px; }

.pie__marcas { display: flex; align-items: center; gap: 1.25rem; }

.pie__social {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--tinta-suave);
  transition: color .18s ease, background .18s ease;
}
.pie__social:hover { color: var(--terracota); background: var(--crema-alt); }
.pie__social svg { width: 1.5rem; height: 1.5rem; }

/* Adaptación a móvil ----------------------------------------------- */
@media (max-width: 46rem) {
  .portada__grid,
  .sobre__grid { grid-template-columns: 1fr; }

  .portada__grid > :first-child { order: 2; }
  /* El max-width va al contenedor, no a la imagen: si fuera a la imagen, la
     viñeta del saludo se anclaría a la celda ancha y no a la cara. */
  .portada__retrato { max-width: 16rem; }
  .portada__entradilla { max-width: none; }
  .cabecera__inner { justify-content: center; text-align: center; }
  .pie__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
