/* ==========================================================================
   HOJA DE ESTILOS · Junta de Vecinos Lomas de San Sebastián
   --------------------------------------------------------------------------
   Orden del archivo:
   01. Ajustes generales y variables
   02. Tipografía y textos
   03. Utilidades y botones
   04. Cabecera y menú
   05. Portada
   06. Marcos de fotografía (placeholders)
   07. Secciones de la portada
   08. Encabezado de páginas interiores
   09. Bloques de contenido
   10. Noticias, documentos y galería
   11. Contacto y mapa
   12. Pie de página y botón flotante
   13. Movimiento, foco y adaptaciones
   ========================================================================== */

/* ==========================================================================
   01. AJUSTES GENERALES Y VARIABLES
   ========================================================================== */

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

:root {
  /* Paleta: papel hueso, tinta azul, lacre y ocre */
  --papel: oklch(96.6% 0.012 88);
  --papel-alto: oklch(98.4% 0.008 88);
  --papel-hondo: oklch(93.5% 0.016 88);
  --tinta: oklch(27% 0.045 258);
  --tinta-suave: oklch(46% 0.035 258);
  --navy: oklch(21% 0.045 260);
  --lacre: oklch(50% 0.15 30);
  --lacre-hondo: oklch(42% 0.14 30);
  --ocre: oklch(76% 0.11 78);
  --wa: oklch(47% 0.11 152);
  --wa-hondo: oklch(41% 0.1 152);

  --linea: color-mix(in oklab, var(--tinta) 16%, transparent);
  --linea-fuerte: color-mix(in oklab, var(--tinta) 30%, transparent);
  --velo: color-mix(in oklab, var(--tinta) 4%, transparent);

  /* Tipografías */
  --fuente-titulo: "Petrona", Georgia, "Times New Roman", serif;
  --fuente-texto: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fuente-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Radios: pocos, casi rectos, como un documento impreso */
  --r-sm: 2px;
  --r-md: 4px;

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Ancho de lectura y márgenes */
  --ancho: 1180px;
  --lectura: 66ch;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);

  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

::selection {
  background: color-mix(in oklab, var(--ocre) 55%, var(--papel));
  color: var(--tinta);
}

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

/* ==========================================================================
   02. TIPOGRAFÍA Y TEXTOS
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--tinta);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 1.6rem + 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.85rem);
  line-height: 1.04;
}

h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.55rem);
  line-height: 1.2;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

a {
  color: var(--lacre-hondo);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--lacre);
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

small {
  font-size: 0.82rem;
}

address {
  font-style: normal;
}

/* Entradilla de sección */
.entradilla {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--tinta-suave);
  max-width: 58ch;
  text-wrap: pretty;
}

/* Etiqueta pequeña sobre los títulos */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lacre);
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.prosa {
  max-width: var(--lectura);
}

.prosa p {
  text-wrap: pretty;
}

.prosa h2,
.prosa h3 {
  margin-top: 2.4rem;
  margin-bottom: 0.9rem;
}

.prosa h2 {
  font-size: clamp(1.32rem, 1.12rem + 0.75vw, 1.72rem);
  line-height: 1.15;
}

.prosa ul,
.prosa ol {
  padding-left: 1.2rem;
  margin: 1rem 0;
}

.prosa li + li {
  margin-top: 0.45rem;
}

/* ==========================================================================
   03. UTILIDADES Y BOTONES
   ========================================================================== */

/* El atributo hidden siempre oculta (los filtros lo usan) */
[hidden] {
  display: none !important;
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.seccion {
  padding-block: clamp(3.4rem, 7vw, 6.4rem);
}

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

.seccion--alto {
  background: var(--papel-alto);
  border-block: 1px solid var(--linea);
}

.seccion--hondo {
  background: var(--papel-hondo);
}

.saltar {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: transform 0.2s var(--ease);
}

.saltar:focus-visible {
  transform: translateY(0);
  color: var(--papel);
}

.visualmente-oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Nota breve bajo un dato o una imagen */
.nota {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--tinta-suave);
}

/* --- Botones ------------------------------------------------------------ */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  font-family: var(--fuente-texto);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.boton svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.boton:hover {
  transform: translateY(-1px);
}

.boton:active {
  transform: translateY(0);
}

.boton--primario {
  background: var(--tinta);
  color: var(--papel);
  border-color: var(--tinta);
}

.boton--primario:hover {
  background: var(--lacre-hondo);
  border-color: var(--lacre-hondo);
  color: var(--papel);
}

.boton--contorno {
  border-color: var(--linea-fuerte);
  color: var(--tinta);
}

.boton--contorno:hover {
  border-color: var(--tinta);
  background: color-mix(in oklab, var(--tinta) 6%, transparent);
  color: var(--tinta);
}

.boton--wa {
  background: var(--wa);
  border-color: var(--wa);
  color: oklch(99% 0 0);
}

.boton--wa:hover {
  background: var(--wa-hondo);
  border-color: var(--wa-hondo);
  color: oklch(99% 0 0);
}

.boton--claro {
  background: var(--papel);
  border-color: var(--papel);
  color: var(--tinta);
}

.boton--claro:hover {
  background: var(--ocre);
  border-color: var(--ocre);
  color: var(--tinta);
}

.boton--fantasma {
  border-color: color-mix(in oklab, var(--papel) 40%, transparent);
  color: var(--papel);
}

.boton--fantasma:hover {
  border-color: var(--papel);
  background: color-mix(in oklab, var(--papel) 10%, transparent);
  color: var(--papel);
}

.boton--chico {
  padding: 0.6rem 0.95rem;
  font-size: 0.86rem;
}

.boton--grande {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}

/* Enlace con flecha */
.enlace-flecha {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 1px solid var(--linea-fuerte);
  padding-bottom: 0.15rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.enlace-flecha svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s var(--ease);
}

.enlace-flecha:hover {
  color: var(--lacre-hondo);
  border-color: var(--lacre);
}

.enlace-flecha:hover svg {
  transform: translateX(4px);
}

/* Grupo de acciones */
.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* Etiqueta de categoría */
.etiqueta {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  line-height: 1.5;
}

.etiqueta--lacre {
  color: var(--lacre);
  border-color: color-mix(in oklab, var(--lacre) 40%, transparent);
}

/* Aviso / nota informativa */
.aviso {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: var(--papel-alto);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--tinta-suave);
}

.aviso svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  color: var(--lacre);
}

.aviso strong {
  color: var(--tinta);
}

.aviso--lacre {
  background: color-mix(in oklab, var(--lacre) 7%, var(--papel));
  border-color: color-mix(in oklab, var(--lacre) 25%, transparent);
}

.aviso code {
  padding: 0.05rem 0.3rem;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  font-family: var(--fuente-mono);
  font-size: 0.85em;
  color: var(--tinta);
}

/* ==========================================================================
   04. CABECERA Y MENÚ
   ========================================================================== */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--papel);
  border-bottom: 1px solid var(--linea);
}

.cabecera__interior {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 76px;
}

/* Marca */
.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--tinta);
}

.marca__icono {
  width: 42px;
  height: 42px;
  flex: none;
  clip-path: circle(50%);
}

.marca__disco {
  fill: var(--tinta);
}

.marca__loma {
  fill: var(--papel);
}

.marca__sol {
  fill: var(--ocre);
}

.marca__rio {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.marca__texto {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.marca__chico {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  line-height: 1.2;
}

.marca__grande {
  font-family: var(--fuente-titulo);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

/* Navegación */
.menu__lista {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__enlace {
  display: block;
  color: var(--tinta);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.menu__enlace:hover {
  color: var(--lacre-hondo);
  border-bottom-color: color-mix(in oklab, var(--lacre) 50%, transparent);
}

.menu__enlace[aria-current="page"] {
  border-bottom-color: var(--lacre);
  color: var(--tinta);
  font-weight: 600;
}

/* Acciones de la cabecera */
.cabecera__acciones {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icono-enlace {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  color: var(--tinta);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.icono-enlace svg {
  width: 1.15rem;
  height: 1.15rem;
}

.icono-enlace:hover {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--papel);
}

/* Botón del menú (móvil) */
.menu-boton {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
}

.menu-boton__lineas {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}

.menu-boton__lineas::before,
.menu-boton__lineas::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease);
}

.menu-boton__lineas::before {
  top: -6px;
}

.menu-boton__lineas::after {
  top: 6px;
}

.menu-boton[aria-expanded="true"] .menu-boton__lineas {
  background: transparent;
}

.menu-boton[aria-expanded="true"] .menu-boton__lineas::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-boton[aria-expanded="true"] .menu-boton__lineas::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Menú desplegable en celular */
@media (max-width: 1099px) {
  .menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 55;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    padding: 0.5rem var(--gutter) 2rem;
    background: var(--papel);
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 24px 40px -28px oklch(21% 0.045 260 / 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .menu[data-abierto="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .menu__lista {
    display: flex;
    flex-direction: column;
  }

  .menu__enlace {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--linea);
    font-size: 1.08rem;
  }

  .menu__enlace[aria-current="page"] {
    border-bottom-color: var(--linea);
    box-shadow: none;
    color: var(--lacre-hondo);
  }

  .menu__enlace[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--lacre);
    vertical-align: middle;
  }

  .menu__pie {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.4rem;
  }

  .menu-boton {
    display: inline-flex;
  }

  .cabecera__acciones .boton--wa,
  .cabecera__acciones .icono-enlace {
    display: none;
  }
}

@media (min-width: 1100px) {
  .menu__lista {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .menu__enlace {
    padding: 0.35rem 0;
    font-size: 0.89rem;
  }

  .menu__pie {
    display: none;
  }
}

/* Entre 1100 y 1299 px se oculta el botón de WhatsApp de la cabecera
   (el botón flotante sigue disponible) para que el menú respire. */
@media (min-width: 1100px) and (max-width: 1299px) {
  .cabecera__acciones .boton--wa {
    display: none;
  }
}

/* ==========================================================================
   05. PORTADA
   ========================================================================== */

.portada {
  position: relative;
  padding-block: clamp(2.4rem, 5vw, 4.4rem) clamp(2.2rem, 4vw, 3.6rem);
  overflow: clip;
}

.portada__interior {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.6rem);
  align-items: center;
}

.portada__texto {
  display: grid;
  gap: 1.3rem;
}

.portada__titulo {
  max-width: 19ch;
}

.portada__titulo em {
  font-style: italic;
  color: var(--lacre);
}

.portada__bajada {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  line-height: 1.62;
  color: var(--tinta-suave);
  max-width: 44ch;
  text-wrap: pretty;
}

.portada__datos {
  display: grid;
  gap: 0;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linea);
  max-width: 46ch;
}

.portada__datos li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--linea);
  font-size: 0.9rem;
  color: var(--tinta-suave);
}

.portada__datos svg {
  width: 1rem;
  height: 1rem;
  color: var(--lacre);
  transform: translateY(0.15rem);
}

.portada__datos strong {
  color: var(--tinta);
  font-weight: 600;
}

/* Columna visual de la portada */
.portada__media {
  display: grid;
  gap: 1.6rem;
}

.portada__foto-caja {
  position: relative;
}

.portada__foto .foto__marco {
  aspect-ratio: 4 / 5;
  border-radius: 120px 120px var(--r-md) var(--r-md);
}

.portada__foto .foto__marco::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.25);
  pointer-events: none;
}

/* Ficha que se superpone a la foto */
.ficha {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(19rem, 100%);
  padding: 1rem 1.15rem 1.1rem;
  background: var(--papel);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-md);
  box-shadow: 0 18px 34px -26px oklch(21% 0.045 260 / 0.55);
}

.ficha__etiqueta {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lacre);
}

.ficha__titulo {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25;
}

.ficha__dato {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--tinta-suave);
  line-height: 1.45;
}

/* Sello circular dibujado a mano (SVG propio) */
.sello {
  position: absolute;
  bottom: 1.4rem;
  left: -0.6rem;
  width: clamp(96px, 11vw, 132px);
  height: auto;
  color: var(--lacre);
  transform: rotate(-9deg);
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(246, 241, 228, 0.55))
    drop-shadow(0 2px 6px rgba(16, 27, 48, 0.18));
  pointer-events: none;
  z-index: 2;
}

.sello__texto {
  fill: currentColor;
  font-family: var(--fuente-texto);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.sello__pie {
  fill: currentColor;
  font-family: var(--fuente-texto);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

@media (min-width: 960px) {
  .portada__interior {
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .portada__media {
    gap: 0;
  }

  .portada__foto-caja {
    margin-right: 0.6rem;
  }

  /* La foto se limita en alto para que la ficha no quede bajo el botón
     flotante de WhatsApp en pantallas bajas */
  .portada__foto.foto--retrato .foto__marco {
    aspect-ratio: auto;
    height: min(62vh, 640px);
    min-height: 420px;
  }

  .sello {
    left: -1.6rem;
    bottom: 1.8rem;
  }

  .ficha {
    margin-top: -2.4rem;
    margin-right: 0.6rem;
  }
}

@media (min-width: 1200px) {
  .sello {
    left: -3rem;
  }
}

@media (max-width: 420px) {
  .sello {
    left: -0.35rem;
    width: 86px;
  }
}

/* ==========================================================================
   06. MARCOS DE FOTOGRAFÍA (PLACEHOLDERS)
   --------------------------------------------------------------------------
   Cada foto se muestra en un marco con el nombre del archivo. Cuando la
   junta sube la foto a /img con ese mismo nombre, la imagen aparece encima
   y el marco desaparece.
   ========================================================================== */

.foto {
  margin: 0;
}

.foto__marco {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: color-mix(in oklab, var(--tinta) 5.5%, var(--papel));
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-md);
  isolation: isolate;
}

.foto--retrato .foto__marco {
  aspect-ratio: 4 / 5;
}

.foto--panorama .foto__marco {
  aspect-ratio: 16 / 9;
}

.foto--ancha .foto__marco {
  aspect-ratio: auto;
  height: clamp(240px, 38vw, 460px);
}

.foto--cuadrada .foto__marco {
  aspect-ratio: 1 / 1;
}

.foto__img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s var(--ease);
}

.foto--cargada .foto__img {
  opacity: 1;
}

.foto__pendiente {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem;
  text-align: center;
  color: var(--tinta-suave);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 9px,
    color-mix(in oklab, var(--tinta) 7%, transparent) 9px 10px
  );
}

.foto__icono {
  width: 26px;
  height: 26px;
  color: color-mix(in oklab, var(--tinta) 45%, transparent);
  margin-bottom: 0.15rem;
}

.foto__nombre {
  max-width: 90%;
  padding: 0.18rem 0.45rem;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  font-family: var(--fuente-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--tinta);
  overflow-wrap: anywhere;
}

.foto__nota {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}

.foto__pie {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--tinta-suave);
  max-width: 46ch;
}

.foto--error .foto__pendiente {
  background-color: color-mix(in oklab, var(--lacre) 6%, var(--papel));
}

/* ==========================================================================
   07. SECCIONES DE LA PORTADA
   ========================================================================== */

/* Título de sección */
.titular {
  display: grid;
  gap: 0.85rem;
  max-width: 60ch;
}

.titular--centrado {
  justify-items: center;
  text-align: center;
  margin-inline: auto;
}

.titular--centrado .kicker::before {
  display: none;
}

/* Dos columnas */
.duo {
  display: grid;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .duo--invertido {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

/* Cita destacada */
.cita {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea);
  max-width: 44ch;
}

.cita p {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--tinta);
}

/* Lista de principios */
.principios {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linea-fuerte);
}

.principios > li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--linea);
}

.principios__num {
  font-family: var(--fuente-titulo);
  font-size: 0.9rem;
  color: var(--lacre);
  padding-top: 0.2rem;
}

.principios h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.principios p {
  font-size: 0.93rem;
  color: var(--tinta-suave);
  line-height: 1.55;
}

/* En pantallas grandes, los tres principios se leen como una tabla */
@media (min-width: 860px) {
  .principios--columnas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.8rem, 3vw, 3rem);
    border-top: 0;
  }

  .principios--columnas > li {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1.05rem 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--linea-fuerte);
  }

  .principios--columnas .principios__num {
    display: block;
    margin-bottom: 0.5rem;
  }
}

/* Agenda de actividades */
.agenda {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linea-fuerte);
}

.agenda > li {
  display: grid;
  gap: 0.55rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linea);
}

.agenda__cuando {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lacre);
}

.agenda__lugar {
  display: block;
  margin-top: 0.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--tinta-suave);
  font-size: 0.82rem;
}

.agenda__cuerpo h3 {
  margin-top: 0.4rem;
  font-size: 1.18rem;
}

.agenda__cuerpo p {
  margin-top: 0.35rem;
  font-size: 0.94rem;
  color: var(--tinta-suave);
  max-width: 56ch;
}

@media (min-width: 860px) {
  .agenda > li {
    grid-template-columns: 10.5rem 1fr;
    gap: 2.2rem;
    padding: 1.7rem 0;
  }
}

/* Panel oscuro de llamada a la acción */
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.2rem);
  background: var(--navy);
  color: var(--papel);
  border-radius: var(--r-md);
}

.panel__trazo {
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: min(560px, 72%);
  color: var(--papel);
  opacity: 0.13;
  pointer-events: none;
}

.panel__interior {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.6rem);
}

.panel h2 {
  color: var(--papel);
  max-width: 22ch;
}

.panel p {
  color: color-mix(in oklab, var(--papel) 78%, var(--navy));
  max-width: 52ch;
}

.panel .kicker {
  color: var(--ocre);
}

.panel__pasos {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel__pasos li {
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in oklab, var(--papel) 22%, transparent);
}

.panel__pasos span {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 0.9rem;
  color: var(--ocre);
  margin-bottom: 0.3rem;
}

.panel__pasos strong {
  display: block;
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--papel);
  line-height: 1.3;
}

.panel__pasos p {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .panel__pasos {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

/* Bloque de Instagram */
.instagram {
  display: grid;
  gap: 1.8rem;
  align-items: end;
  border-top: 1px solid var(--linea-fuerte);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}

.instagram__texto {
  display: grid;
  gap: 0.7rem;
  max-width: 46ch;
}

.instagram__usuario {
  font-family: var(--fuente-titulo);
  font-size: clamp(1.5rem, 1rem + 2.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--tinta);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.instagram__usuario:hover {
  color: var(--lacre);
}

.instagram__usuario svg {
  width: clamp(1.1rem, 2.4vw, 1.7rem);
  height: auto;
  color: var(--lacre);
}

@media (min-width: 820px) {
  .instagram {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
  }

  .instagram__usuario {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   08. ENCABEZADO DE PÁGINAS INTERIORES
   ========================================================================== */

.pagina {
  padding-block: clamp(1.6rem, 3vw, 2.4rem) clamp(2.2rem, 4vw, 3.4rem);
  background: var(--papel-alto);
  border-bottom: 1px solid var(--linea);
}

.migas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  font-size: 0.78rem;
  color: var(--tinta-suave);
}

.migas a {
  color: var(--tinta-suave);
  text-decoration: none;
}

.migas a:hover {
  color: var(--lacre-hondo);
  text-decoration: underline;
}

.migas span[aria-hidden] {
  opacity: 0.45;
}

.migas [aria-current="page"] {
  color: var(--tinta);
  font-weight: 500;
}

.pagina h1 {
  font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.6rem);
  max-width: 20ch;
}

.pagina__bajada {
  margin-top: 1rem;
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--tinta-suave);
  max-width: 60ch;
  text-wrap: pretty;
}

.pagina__acciones {
  margin-top: 1.6rem;
}

/* La primera sección después de la cabecera de página respira menos */
.pagina + .seccion {
  padding-top: clamp(2rem, 4vw, 3.4rem);
}

/* ==========================================================================
   09. BLOQUES DE CONTENIDO
   ========================================================================== */

/* Ficha de datos de la organización */
.ficha-datos {
  margin: 0;
  border-top: 1px solid var(--linea-fuerte);
}

.ficha-datos > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--linea);
  font-size: 0.92rem;
}

.ficha-datos dt {
  color: var(--tinta-suave);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.ficha-datos dd {
  margin: 0;
  color: var(--tinta);
}

/* Línea de tiempo */
.linea-tiempo {
  margin: 0;
  padding: 0 0 0 1.4rem;
  list-style: none;
  border-left: 1px solid var(--linea-fuerte);
}

.linea-tiempo > li {
  position: relative;
  padding-bottom: 1.8rem;
}

.linea-tiempo > li:last-child {
  padding-bottom: 0;
}

.linea-tiempo > li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: calc(-1.4rem - 4.5px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--papel);
  border: 1.5px solid var(--lacre);
}

.linea-tiempo__anio {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--fuente-titulo);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lacre);
}

.linea-tiempo h3 {
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}

.linea-tiempo p {
  font-size: 0.94rem;
  color: var(--tinta-suave);
  max-width: 52ch;
}

/* Directiva */
.directiva {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--linea-fuerte);
}

.directiva > li {
  display: grid;
  gap: 0.12rem;
  align-content: start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--linea);
}

.directiva__rol {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lacre);
  flex: 0 0 100%;
}

.directiva__nombre {
  font-family: var(--fuente-titulo);
  font-size: 1.12rem;
  color: var(--tinta);
}

.directiva__nota {
  font-size: 0.8rem;
  color: var(--tinta-suave);
}

@media (min-width: 700px) {
  .directiva {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }

  .directiva > li:nth-child(odd) {
    border-right: 1px solid var(--linea);
    padding-right: 2.5rem;
  }
}

/* Pasos numerados */
.pasos {
  counter-reset: paso;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linea-fuerte);
}

.pasos > li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linea);
}

.pasos > li::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  font-family: var(--fuente-titulo);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--lacre);
  padding-top: 0.1rem;
}

.pasos h3 {
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
}

.pasos p {
  font-size: 0.95rem;
  color: var(--tinta-suave);
  max-width: 54ch;
}

/* Lista con checks */
.lista-check {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.lista-check li {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.97rem;
  color: var(--tinta-suave);
}

.lista-check svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  color: var(--wa);
}

.lista-check strong {
  color: var(--tinta);
}

/* Preguntas frecuentes */
.faq {
  margin: 0;
  border-top: 1px solid var(--linea-fuerte);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--fuente-titulo);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--fuente-texto);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--lacre);
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding-bottom: 1.2rem;
  font-size: 0.96rem;
  color: var(--tinta-suave);
  max-width: 62ch;
}

/* ==========================================================================
   10. NOTICIAS, DOCUMENTOS Y GALERÍA
   ========================================================================== */

/* Filtros */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filtro {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: 999px;
  background: transparent;
  font-family: var(--fuente-texto);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--tinta-suave);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.filtro:hover {
  border-color: var(--tinta);
  color: var(--tinta);
}

.filtro[aria-pressed="true"] {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--papel);
}

.filtros__cuenta {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--tinta-suave);
}

/* Noticia destacada */
.destacada {
  display: grid;
  gap: 1.5rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--linea-fuerte);
}

.destacada__texto {
  display: grid;
  gap: 0.8rem;
  align-content: center;
}

.destacada h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.3rem);
  max-width: 24ch;
}

@media (min-width: 880px) {
  .destacada {
    grid-template-columns: 1fr 1fr;
    gap: 2.8rem;
  }

  .destacada .foto__marco {
    aspect-ratio: 5 / 4;
  }
}

/* Noticias en fila */
.noticias {
  margin: 0;
  padding: 0;
  list-style: none;
}

.noticia {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linea);
}

.noticia__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--tinta-suave);
}

.noticia h3 {
  font-size: 1.22rem;
  max-width: 34ch;
}

.noticia p {
  font-size: 0.95rem;
  color: var(--tinta-suave);
  max-width: 64ch;
}

.noticia__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.compartir {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--tinta-suave);
  text-decoration: none;
  background: transparent;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.compartir:hover {
  border-color: var(--tinta);
  color: var(--tinta);
}

.compartir svg {
  width: 0.9rem;
  height: 0.9rem;
}

html:not(.js) .compartir {
  display: none;
}

@media (min-width: 820px) {
  .noticia {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.8rem 0;
  }

  /* La fecha y la categoría se apilan solo en la lista, no en la destacada */
  .noticia .noticia__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.25rem;
  }
}

/* Documentos */
.documentos {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.grupo-docs h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem);
  margin-bottom: 0.35rem;
}

.grupo-docs > p {
  font-size: 0.92rem;
  color: var(--tinta-suave);
  max-width: 60ch;
  margin-bottom: 0.9rem;
}

.doc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 0;
  border-top: 1px solid var(--linea);
  text-decoration: none;
  color: var(--tinta);
}

.doc:last-of-type {
  border-bottom: 1px solid var(--linea);
}

.doc__tipo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--r-sm);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lacre);
}

.doc__cuerpo {
  display: grid;
  gap: 0.1rem;
}

.doc__nombre {
  font-family: var(--fuente-titulo);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.doc__meta {
  font-size: 0.79rem;
  color: var(--tinta-suave);
}

.doc__accion {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lacre-hondo);
  white-space: nowrap;
}

.doc__accion svg {
  width: 0.95rem;
  height: 0.95rem;
}

.doc:hover .doc__nombre {
  color: var(--lacre-hondo);
}

.doc:hover .doc__accion {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 560px) {
  .doc {
    grid-template-columns: auto 1fr;
  }

  .doc__accion {
    grid-column: 2;
    margin-top: 0.15rem;
  }
}

/* Galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.galeria .foto__marco {
  aspect-ratio: 4 / 5;
  transition: border-color 0.2s var(--ease);
}

.galeria .foto:hover .foto__marco {
  border-color: var(--linea-fuerte);
}

.galeria__nota {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--linea);
  font-size: 0.88rem;
  color: var(--tinta-suave);
}

/* ==========================================================================
   11. CONTACTO Y MAPA
   ========================================================================== */

.contacto {
  display: grid;
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contacto {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.datos-contacto {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linea-fuerte);
}

.datos-contacto > li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--linea);
}

.datos-contacto svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  color: var(--lacre);
}

.datos-contacto .dato__rotulo {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  margin-bottom: 0.15rem;
}

.datos-contacto .dato__valor {
  font-size: 1rem;
  color: var(--tinta);
  line-height: 1.5;
}

.datos-contacto div > p {
  margin: 0;
}

.datos-contacto .nota {
  margin-top: 0.35rem;
}

.datos-contacto .dato__valor a {
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 1px solid var(--linea-fuerte);
}

.datos-contacto .dato__valor a:hover {
  color: var(--lacre-hondo);
  border-color: var(--lacre);
}

.mapa {
  position: relative;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--papel-hondo);
}

.mapa iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  border: 0;
}

.mapa__pie {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--linea);
  font-size: 0.82rem;
  color: var(--tinta-suave);
  background: var(--papel-alto);
}

/* Horarios */
.horarios {
  margin: 0;
  border-top: 1px solid var(--linea);
}

.horarios > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--linea);
  font-size: 0.93rem;
}

.horarios dt {
  color: var(--tinta-suave);
}

.horarios dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

/* ==========================================================================
   12. PIE DE PÁGINA Y BOTÓN FLOTANTE
   ========================================================================== */

.pie {
  margin-top: clamp(1.2rem, 2.5vw, 2rem);
  padding-block: clamp(2.6rem, 5vw, 4.2rem) 1.6rem;
  background: var(--navy);
  color: color-mix(in oklab, var(--papel) 80%, var(--navy));
  font-size: 0.92rem;
}

.pie a {
  color: color-mix(in oklab, var(--papel) 88%, var(--navy));
  text-decoration: none;
}

.pie :focus-visible,
.panel :focus-visible {
  outline-color: var(--ocre);
}

.pie a:hover {
  color: var(--papel);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pie__interior {
  display: grid;
  gap: 2.4rem;
}

.pie__marca .marca {
  color: var(--papel);
}

.pie__marca .marca__disco {
  fill: var(--papel);
}

.pie__marca .marca__loma {
  fill: var(--navy);
}

.pie__marca .marca__rio {
  stroke: var(--papel);
}

.pie__marca .marca__chico {
  color: color-mix(in oklab, var(--papel) 65%, var(--navy));
}

.pie__marca .marca__grande {
  color: var(--papel);
}

.pie__desc {
  margin-top: 1rem;
  max-width: 34ch;
  line-height: 1.6;
  color: color-mix(in oklab, var(--papel) 72%, var(--navy));
}

.pie__titulo {
  font-family: var(--fuente-texto);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--papel) 55%, var(--navy));
  margin-bottom: 0.9rem;
}

.pie__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.pie__col address {
  line-height: 1.6;
  font-size: 0.9rem;
}

.pie__col p + p {
  margin-top: 0.5rem;
}

.pie__nota {
  color: color-mix(in oklab, var(--papel) 62%, var(--navy));
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 30ch;
}

.redes {
  display: flex;
  gap: 0.5rem;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.redes li[hidden] {
  display: none;
}

.red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in oklab, var(--papel) 25%, transparent);
  border-radius: 50%;
  color: var(--papel);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.red svg {
  width: 1.15rem;
  height: 1.15rem;
}

.red:hover {
  background: var(--papel);
  border-color: var(--papel);
  color: var(--navy);
}

.pie__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(2.4rem, 4vw, 3.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in oklab, var(--papel) 18%, transparent);
  font-size: 0.78rem;
  color: color-mix(in oklab, var(--papel) 60%, var(--navy));
}

.pie__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pie__credito {
  color: color-mix(in oklab, var(--papel) 58%, var(--navy));
}

@media (min-width: 780px) {
  .pie__interior {
    grid-template-columns: 1.5fr 0.9fr 1fr;
    gap: 2.6rem;
  }

  .pie__marca {
    grid-row: span 2;
  }
}

@media (min-width: 1040px) {
  .pie__interior {
    grid-template-columns: 1.6fr 0.8fr 0.9fr 1fr;
  }

  .pie__marca {
    grid-row: auto;
  }
}

/* Botón flotante de WhatsApp */
.wa-flotante {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.6rem);
  bottom: clamp(0.9rem, 2vw, 1.6rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem 0.7rem 0.75rem;
  border-radius: 999px;
  background: var(--wa);
  color: oklch(99% 0 0);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px oklch(21% 0.045 260 / 0.6);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.wa-flotante svg {
  width: 1.5rem;
  height: 1.5rem;
}

.wa-flotante:focus-visible {
  outline: 3px solid var(--papel);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--tinta);
}

.wa-flotante:hover {
  background: var(--wa-hondo);
  color: oklch(99% 0 0);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .wa-flotante {
    padding: 0.85rem;
  }

  .wa-flotante span {
    display: none;
  }
}

/* Espacio para que el botón flotante no tape el pie */
.pie {
  padding-bottom: 4.6rem;
}

/* ==========================================================================
   13. MOVIMIENTO, FOCO Y ADAPTACIONES
   ========================================================================== */

/* Aparición al hacer scroll (solo con JavaScript activo) */
.js .revelar {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .revelar.visible {
  opacity: 1;
  transform: none;
}

/* Menú abierto en celular: bloquear el desplazamiento del fondo */
html.menu-abierto,
html.menu-abierto body {
  overflow: hidden;
}

/* Impresión: sin menús ni botones */
@media print {
  .cabecera,
  .wa-flotante,
  .pie,
  .saltar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .revelar {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .revelar {
    opacity: 1;
    transform: none;
  }
}

/* Ajustes finos para pantallas muy pequeñas */
@media (max-width: 380px) {
  .marca__chico {
    display: none;
  }

  .boton {
    width: 100%;
  }

  .acciones .boton {
    width: 100%;
  }
}

/* Tablet: las fotos verticales no deben dominar la pantalla */
@media (min-width: 600px) and (max-width: 959px) {
  .portada__foto .foto__marco {
    aspect-ratio: 16 / 10;
    border-radius: 90px 90px var(--r-md) var(--r-md);
  }
}

@media (max-width: 899px) {
  .duo .foto--retrato .foto__marco {
    aspect-ratio: 4 / 3;
  }

  /* En celular la foto va después del texto que la presenta */
  .duo--invertido > .foto {
    order: 2;
  }
}


/* El contenido principal recibe el foco del enlace "Saltar al contenido" */
main:focus {
  outline: none;
}
