/* Corellano — sistema visual «editorial sobria».
   Papel cálido, tinta casi negra y el rojo del logo como único acento.
   La portada usa el gris de fondo del propio retrato, como un telón de estudio.
   Diseño primero para móvil; puntos de corte: 40em (640 px), 60em (960 px). */

/* ---------- Tipografías (alojadas en la web) ---------- */
@font-face {
  font-family: "Karla";
  src: url("/fuentes/karla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fuentes/karla-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fuentes/karla-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --papel: #f3eee5;
  --papel-hondo: #e9e2d6;
  --papel-campo: #fbf8f3;
  --tinta: #1c1917;
  --tinta-suave: #57504a;
  --linea: #d6ccbd;
  --linea-fuerte: #8a8178;
  --rojo: #e4022d;          /* muestreado del logo: solo en tamaños grandes y fondos de botón */
  --rojo-texto: #b0001e;    /* el mismo rojo oscurecido para texto pequeño (AA sobre papel) */
  --estudio: #5e5e5e;       /* gris del fondo del retrato (arriba) */
  --estudio-hondo: #484848;
  --sobre-oscuro: #f6f2eb;
  --sobre-oscuro-suave: #e6e0d7;

  /* Tipo */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-pequeno: 0.875rem;
  --t-base: 1.0625rem;
  --t-entradilla: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  --t-h3: 1.3125rem;
  --t-h2: clamp(1.625rem, 1.6vw + 1.1rem, 2.375rem);
  --t-h1: clamp(2.25rem, 3.2vw + 1.3rem, 3.75rem);
  --t-portada: clamp(2.5rem, 4.2vw + 1.4rem, 4.5rem);

  /* Espacio y medida */
  --margen: 1rem;
  --ancho: 75rem;
  --medida: 38rem;
  --bloque: clamp(3.5rem, 6vw + 1.5rem, 6.5rem);
  /* El logo nunca deja sin sitio al idioma y al botón de menú (reflow a 320 px). */
  --logo: min(11.5rem, calc(100vw - 8.5rem));
}
@media (min-width: 40em) {
  :root { --margen: 2rem; --logo: 13.5rem; }
}
@media (min-width: 60em) {
  :root { --margen: 3rem; --logo: 15rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--rojo-texto); }
:focus-visible { outline: 2px solid var(--rojo-texto); outline-offset: 3px; }
::selection { background: var(--rojo); color: #fff; }

.envoltura {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}
.solo-lector {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.saltar {
  position: absolute;
  left: var(--margen);
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  background: var(--tinta);
  color: var(--sobre-oscuro);
  font-weight: 700;
}
.saltar:focus { top: 0.5rem; color: var(--sobre-oscuro); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 700 1rem/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.boton-grande { min-height: 3.25rem; padding-inline: 1.6rem; font-size: 1.0625rem; }
.boton-rojo { background: var(--rojo); color: #fff; }
.boton-rojo:hover { background: var(--rojo-texto); color: #fff; }
.boton-claro { background: var(--sobre-oscuro); color: var(--tinta); }
.boton-claro:hover { background: #fff; color: var(--tinta); }
.boton-contorno { border-color: currentColor; color: inherit; background: transparent; }
.boton-contorno:hover { color: inherit; background: rgb(255 255 255 / 0.08); }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}
.cabecera-interior {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
@media (min-width: 60em) {
  .cabecera-interior { min-height: 5rem; gap: 1.75rem; }
}

/* Logo recortado (monograma + palabra) y la línea «Abogados/Advocats» en el hueco
   que dejaba la antigua línea inferior. Todo escala con --logo. */
.marca {
  position: relative;
  display: block;
  flex: none;
  width: var(--logo);
  margin-right: auto;
  padding-bottom: calc(var(--logo) * 0.022);
  color: var(--tinta);
  text-decoration: none;
}
.marca-logo { width: 100%; }
.marca-linea {
  position: absolute;
  left: 21%;
  bottom: 0;
  font-size: calc(var(--logo) * 0.05);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.marca:hover { color: var(--tinta); }

.idioma { font-weight: 500; text-decoration-color: var(--linea-fuerte); }
.boton-cabecera { display: none; }
.idioma-corto { display: none; }
@media (max-width: 29.99em) {
  .idioma-cabecera .idioma-corto { display: inline; }
  .idioma-cabecera .idioma-largo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Navegación de escritorio */
.nav-escritorio { display: none; }
.nav-lista { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-lista a, .desplegable summary {
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.5rem;
}
.nav-lista > li > a[aria-current="page"], .desplegable summary.activo {
  box-shadow: inset 0 -2px 0 var(--rojo);
}
.desplegable { position: relative; }
.desplegable summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
}
.desplegable summary::-webkit-details-marker { display: none; }
.desplegable summary::after {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
}
.desplegable[open] summary::after { transform: translateY(0.1rem) rotate(225deg); }
.desplegable summary:hover { color: var(--rojo-texto); }
.desplegable-lista {
  position: absolute;
  top: calc(100% + 1.1rem);
  left: -1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  gap: 0 1.5rem;
  padding: 1rem 1.5rem;
  list-style: none;
  background: var(--papel);
  border: 1px solid var(--linea);
  box-shadow: 0 12px 32px -12px rgb(28 25 23 / 0.25);
}
.desplegable-lista a {
  display: block;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--linea);
  font-weight: 400;
}
.desplegable-lista a[aria-current="page"] { color: var(--rojo-texto); }

/* Menú móvil: <details> funciona sin JavaScript */
.menu-movil > summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  justify-content: center;
  padding: 0 0.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.menu-movil > summary::-webkit-details-marker { display: none; }
/* En pantallas muy estrechas el botón muestra solo el icono; el texto sigue para lectores. */
@media (max-width: 22.49em) {
  .cabecera-interior { gap: 0.75rem; }
  .menu-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.menu-icono, .menu-icono::before, .menu-icono::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}
.menu-icono { position: relative; }
.menu-icono::before, .menu-icono::after { content: ""; position: absolute; left: 0; }
.menu-icono::before { top: -6px; }
.menu-icono::after { top: 6px; }
.menu-movil[open] .menu-icono { background: transparent; }
.menu-movil[open] .menu-icono::before { top: 0; transform: rotate(45deg); }
.menu-movil[open] .menu-icono::after { top: 0; transform: rotate(-45deg); }
.menu-movil-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem var(--margen) 1.5rem;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
  box-shadow: 0 18px 30px -18px rgb(28 25 23 / 0.35);
}
.menu-movil-lista { list-style: none; }
.menu-movil-lista a {
  display: block;
  padding-block: 0.7rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--linea);
}
.menu-movil-lista a[aria-current="page"] { color: var(--rojo-texto); }
.menu-movil-grupo {
  padding-top: 1rem;
  color: var(--tinta-suave);
  font-size: var(--t-pequeno);
  font-weight: 700;
}
.menu-movil-grupo ul { list-style: none; color: var(--tinta); font-weight: 400; }
.menu-movil-grupo a { font-size: 1.0625rem; font-family: var(--sans); padding-left: 0.75rem; }
.menu-movil-pie { padding-top: 1.25rem; }

@media (min-width: 60em) {
  .nav-escritorio { display: block; }
  .boton-cabecera { display: inline-flex; }
  .menu-movil { display: none; }
}

/* ---------- Portada (inicio) ---------- */
.portada {
  background: linear-gradient(180deg, var(--estudio) 0%, var(--estudio-hondo) 100%);
  color: var(--sobre-oscuro);
  overflow: hidden;
}
.portada-interior {
  display: flex;
  flex-direction: column-reverse;
  padding-inline: 0;
}
.portada-texto { padding: 2rem var(--margen) 2.75rem; }
.portada-titulo {
  font-size: var(--t-portada);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 11ch;
}
.portada-entradilla {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: var(--t-entradilla);
  line-height: 1.5;
  color: var(--sobre-oscuro-suave);
}
.portada .acciones { margin-top: 2rem; }
.portada .boton-contorno:hover { color: #fff; }
.portada-retrato img {
  width: 100%;
  max-width: 800px;   /* nunca más grande que su tamaño real */
  margin-inline: auto;
  /* En móvil el retrato se funde por abajo con el telón gris. */
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}
/* Entre 800 y 960 px el retrato queda centrado con telón a los lados: se funden también los laterales. */
@media (min-width: 50em) and (max-width: 59.99em) {
  .portada-retrato img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 82%, transparent);
    mask-composite: intersect;
  }
}
@media (min-width: 60em) {
  .portada-interior {
    display: grid;
    grid-template-columns: minmax(22rem, 1fr) minmax(0, 46rem);
    align-items: center;
    padding-inline: var(--margen) 0;
  }
  .portada-texto { padding: 3rem 0 3rem; }
  .portada-retrato { align-self: end; }
  /* En escritorio se funde por los lados y por arriba; nunca pasa de su tamaño real (800 px). */
  .portada-retrato img {
    max-width: 800px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0, #000 9%);
    mask-composite: intersect;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .portada-retrato img { animation: aparecer 900ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .portada-texto { animation: aparecer 700ms 150ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
}
@keyframes aparecer {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Secciones genéricas ---------- */
.seccion-titulo { font-size: var(--t-h2); }
.seccion-cabecera { max-width: var(--medida); margin-bottom: 2.25rem; }
.seccion-cabecera p { margin-top: 0.75rem; color: var(--tinta-suave); font-size: var(--t-entradilla); }

/* ---------- Rejilla de áreas ---------- */
.areas { padding-block: var(--bloque); }
.areas-rejilla {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--tinta);
}
.areas-rejilla li { border-bottom: 1px solid var(--linea); }
.area {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  height: 100%;
  padding: 1.25rem 0 1.4rem;
  text-decoration: none;
}
.area-nombre {
  font-family: var(--serif);
  font-size: var(--t-h3);
  line-height: 1.2;
}
.area-resumen { color: var(--tinta-suave); font-size: 0.96875rem; line-height: 1.5; }
.area:hover .area-nombre, .relacionadas a:hover .area-nombre { color: var(--rojo-texto); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.area:hover { color: inherit; }
@media (min-width: 40em) {
  .areas-rejilla { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
}
@media (min-width: 60em) {
  .areas-rejilla { grid-template-columns: repeat(3, 1fr); column-gap: 3rem; }
  .area { padding-block: 1.6rem 1.8rem; }
}

/* ---------- Aval: cifra 95 % y valoración de Google ---------- */
.aval { background: var(--papel-hondo); padding-block: var(--bloque); }
.aval-interior { display: grid; gap: 3rem; }
.cifra { display: grid; gap: 1rem; align-items: end; }
.cifra-valor {
  font-family: var(--serif);
  font-size: clamp(5.5rem, 14vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--rojo);
  white-space: nowrap;
}
.cifra-titulo { font-size: var(--t-h2); max-width: 18ch; }
.cifra-texto p { margin-top: 1rem; max-width: var(--medida); color: var(--tinta-suave); }
.valoracion { padding-top: 2rem; border-top: 1px solid var(--linea-fuerte); }
.valoracion-nota { display: flex; align-items: baseline; gap: 0.5rem; }
.valoracion-cifra { font-family: var(--serif); font-size: 3.5rem; line-height: 1; }
.valoracion-escala { color: var(--tinta-suave); font-weight: 500; }
.estrellas {
  margin-block: 0.4rem 1rem;
  font-size: 1.375rem;
  letter-spacing: 0.15em;
  line-height: 1;
  width: max-content;
  /* Relleno proporcional a la nota (4,8 de 5). */
  background: linear-gradient(90deg, var(--rojo) calc(var(--nota, 5) / 5 * 100%), var(--linea-fuerte) 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.valoracion p + p { margin-top: 0.75rem; }
.enlace-externo { font-weight: 700; color: var(--rojo-texto); }
@media (min-width: 60em) {
  .aval-interior { grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 5rem; align-items: end; }
  .cifra { grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .cifra-texto { padding-top: 0.6rem; }
  .valoracion { padding-top: 0; padding-left: 2.5rem; border-top: 0; border-left: 1px solid var(--linea-fuerte); }
}

/* ---------- Ventajas ---------- */
.ventajas { padding-block: var(--bloque); }
.ventajas-lista { display: grid; gap: 2rem; margin-top: 2.25rem; }
.ventaja { padding-top: 1.1rem; border-top: 1px solid var(--tinta); }
.ventaja dt { font-family: var(--serif); font-size: var(--t-h3); line-height: 1.2; }
.ventaja dd { margin-top: 0.6rem; color: var(--tinta-suave); }
@media (min-width: 40em) { .ventajas-lista { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
@media (min-width: 60em) { .ventajas-lista { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Llamada a contacto ---------- */
.llamada { background: var(--tinta); color: var(--sobre-oscuro); padding-block: var(--bloque); }
.llamada :focus-visible { outline-color: var(--sobre-oscuro); }
.llamada-interior { display: grid; gap: 2rem; }
.llamada-titulo { font-size: var(--t-h1); }
.llamada-texto p { margin-top: 1rem; max-width: 34rem; color: var(--sobre-oscuro-suave); font-size: var(--t-entradilla); }
.llamada .boton-contorno:hover { color: #fff; }
@media (min-width: 60em) {
  .llamada-interior { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4rem; }
}
.portada :focus-visible { outline-color: var(--sobre-oscuro); }

/* ---------- Páginas interiores ---------- */
.pagina-cabecera {
  padding-block: clamp(2.5rem, 5vw + 1rem, 5rem) clamp(2rem, 3vw + 1rem, 3.5rem);
  border-bottom: 1px solid var(--linea);
}
.pagina-titulo { font-size: var(--t-h1); max-width: 20ch; }
.pagina-entradilla {
  margin-top: 1.1rem;
  max-width: 40rem;
  font-size: var(--t-entradilla);
  line-height: 1.5;
  color: var(--tinta-suave);
}
.miga { margin-bottom: 1rem; font-size: var(--t-pequeno); font-weight: 500; }
.miga a { color: var(--rojo-texto); }

.disposicion { display: grid; gap: 3rem; padding-block: clamp(2.5rem, 4vw + 1rem, 4.5rem) var(--bloque); }
@media (min-width: 60em) {
  .disposicion { grid-template-columns: minmax(0, var(--medida)) minmax(16rem, 22rem); justify-content: space-between; gap: 5rem; }
  .disposicion > :last-child { align-self: start; position: sticky; top: 7rem; }
}

/* Cuerpo de texto largo */
.texto { max-width: var(--medida); }
.tipo-legal .texto { padding-block: clamp(2.5rem, 4vw + 1rem, 4.5rem) var(--bloque); }
.texto section + section { margin-top: 2.75rem; }
.texto h2 { font-size: clamp(1.5rem, 1vw + 1.15rem, 1.875rem); margin-bottom: 1rem; }
.texto h3 { font-size: var(--t-h3); margin: 1.75rem 0 0.75rem; }
.texto p + p, .texto p + ul, .texto ul + p, .texto p + ol, .texto ol + p { margin-top: 1em; }
.texto ul, .texto ol { padding-left: 1.4rem; }
.texto ul { list-style: none; padding-left: 1.4rem; }
.texto li { position: relative; }
.texto li + li { margin-top: 0.45em; }
.texto ul > li::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 0.8em;
  width: 0.7rem;
  height: 1px;
  background: var(--rojo);
}
.texto ol > li::marker { color: var(--rojo-texto); font-weight: 700; }
.texto a { color: var(--rojo-texto); }
.texto strong { font-weight: 700; }

.retrato-lateral img { width: 100%; max-width: 480px; }

/* Áreas relacionadas */
.relacionadas { padding-top: 1.25rem; border-top: 1px solid var(--tinta); }
.relacionadas-titulo { font-family: var(--sans); font-size: var(--t-pequeno); font-weight: 700; line-height: 1.4; }
.relacionadas ul { list-style: none; margin-top: 0.5rem; }
.relacionadas li { border-bottom: 1px solid var(--linea); }
.relacionadas a { display: grid; gap: 0.2rem; padding-block: 1rem; text-decoration: none; }
.relacionadas a:hover { color: inherit; }

/* ---------- Contacto ---------- */
.contacto { display: grid; gap: 3.5rem; padding-block: clamp(2.5rem, 4vw + 1rem, 4.5rem) var(--bloque); }
.contacto .seccion-titulo { margin-bottom: 1.5rem; }
@media (min-width: 60em) {
  .contacto { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6rem; }
}
.datos { display: grid; gap: 1.5rem; }
.datos div { padding-top: 1rem; border-top: 1px solid var(--linea); }
.datos dt { font-size: var(--t-pequeno); font-weight: 700; color: var(--tinta-suave); }
.datos dd { margin-top: 0.25rem; }
.dato-grande { font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; text-decoration: none; }
.enlace-secundario { display: inline-block; margin-top: 0.4rem; color: var(--rojo-texto); font-weight: 500; }

/* Formulario */
.formulario { display: grid; gap: 1.35rem; max-width: 40rem; }
.campo label { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.campo-nota { font-weight: 400; color: var(--tinta-suave); }
.campo input:not([type="checkbox"]), .campo textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: 2px;
  background: var(--papel-campo);
  color: var(--tinta);
  font: 400 1rem/1.5 var(--sans);   /* 16 px: evita el zoom de iOS al enfocar */
}
.campo textarea { min-height: 9rem; resize: vertical; }
.campo input:not([type="checkbox"]):focus-visible, .campo textarea:focus-visible {
  outline: 2px solid var(--rojo-texto);
  outline-offset: 0;
  border-color: var(--rojo-texto);
}
.campo-casilla { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.campo-casilla input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--rojo-texto); }
.campo-casilla label { margin: 0; font-weight: 400; font-size: 0.96875rem; line-height: 1.5; }
.campo-casilla a { color: var(--rojo-texto); }
.campo-informacion { margin: -0.5rem 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--tinta-suave); }
.campo-informacion a { color: var(--rojo-texto); }
.formulario .boton { justify-self: start; }

/* ---------- Pie ---------- */
.pie {
  background: var(--papel-hondo);
  border-top: 1px solid var(--linea);
  font-size: 0.96875rem;
}
.pie-rejilla { display: grid; gap: 2.25rem; padding-block: 3.5rem 2.5rem; }
.pie-nombre { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; margin-bottom: 0.6rem; }
.pie-marca p:not(.pie-nombre) { color: var(--tinta-suave); max-width: 22rem; }
.pie-titulo { font-family: var(--sans); font-size: var(--t-pequeno); font-weight: 700; margin-bottom: 0.75rem; }
.pie-areas { list-style: none; columns: 2; column-gap: 1.5rem; }
.pie-areas li { padding-block: 0.15rem; break-inside: avoid; }
.pie a { text-decoration-color: var(--linea-fuerte); }
.pie a[aria-current="page"] { color: var(--rojo-texto); }
.pie-final {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem 2rem;
  border-top: 1px solid var(--linea);
  color: var(--tinta-suave);
  font-size: var(--t-pequeno);
}
.pie-final p:last-child { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
@media (min-width: 60em) {
  .pie-rejilla { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; }
}

/* ---------- Movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  a, .boton, .desplegable summary { transition: color 150ms ease, background-color 150ms ease; }
  .menu-icono, .menu-icono::before, .menu-icono::after, .desplegable summary::after { transition: transform 200ms ease, top 200ms ease, background-color 200ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Impresión ---------- */
@media print {
  .cabecera, .llamada, .menu-movil, .saltar { display: none; }
  body { background: #fff; }
}

/* Campo trampa del formulario: fuera de pantalla, sin ocupar sitio y sin ser accesible. */
.campo-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Páginas de resultado del envío (enviado / error). */
.resultado > * { max-width: 40rem; }
.resultado section { display: grid; gap: 1rem; }
.resultado { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 4vw + 1rem, 4.5rem) var(--bloque); }
