/* =========================================================
   Grupo Pelón — Hoja de estilos única
   Para cambiar colores o tipografías, edite las variables de :root.
   ========================================================= */

:root {
  /* Colores institucionales (tomados del logo) */
  --azul: #02528A;
  --verde: #74BD43;          /* Solo acentos. Nunca como texto sobre fondo claro */
  --azul-profundo: #0B2A45;
  --arena: #F6F2EA;
  --blanco: #FFFFFF;

  /* Colores de apoyo derivados */
  --texto: var(--azul-profundo);
  --texto-suave: #3E5468;
  --linea: #E2DACB;
  --foco: var(--azul);

  /* Tipografías */
  --fuente-titulos: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fuente-texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Medidas */
  --ancho: 1200px;
  --margen: clamp(1.25rem, 4vw, 2.5rem);
  --seccion: clamp(4rem, 9vw, 7.5rem);
  --alto-encabezado: 76px;
  --radio: 16px;
  --radio-sm: 10px;
  --sombra: 0 16px 36px -20px rgba(11, 42, 69, 0.38), 0 2px 6px rgba(11, 42, 69, 0.06);

  /* Hoja del logo como motivo */
  --hoja: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2374BD43' d='M3 21C3 10 10 3 21 3c0 11-7 18-18 18z'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-encabezado) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

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

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  font-family: var(--fuente-titulos);
  color: var(--azul);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.2vw + 1.2rem, 5.25rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 2.2vw + 1.1rem, 3rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 0.6vw + 1.1rem, 1.6rem); font-weight: 600; line-height: 1.25; }

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

a { color: var(--azul); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--verde); text-decoration-thickness: 2px; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.saltar {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--azul);
  color: var(--blanco);
  font-weight: 500;
  border-radius: var(--radio-sm);
}
.saltar:focus { top: 1rem; }

.contenedor {
  width: min(calc(100% - 2 * var(--margen)), var(--ancho));
  margin-inline: auto;
}

/* ---------- Secciones ---------- */
.seccion { padding-block: var(--seccion); }
.seccion--arena { background: var(--arena); }
.seccion--oscura {
  background: var(--azul-profundo);
  color: rgba(255, 255, 255, 0.9);
  --foco: var(--blanco);
}
.seccion--oscura h2, .seccion--oscura h3 { color: var(--blanco); }
.seccion--oscura a:not(.boton) { color: var(--blanco); }

.encabezado-seccion { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.encabezado-seccion--centrado { margin-inline: auto; text-align: center; }
.encabezado-seccion--centrado p { margin-inline: auto; }

/* Separador con la hoja del logo */
.titulo-hoja::after {
  content: "";
  display: block;
  width: 68px;
  height: 14px;
  margin-top: 0.9rem;
  background:
    var(--hoja) right center / 14px 14px no-repeat,
    linear-gradient(var(--verde), var(--verde)) left center / 48px 2px no-repeat;
}
.encabezado-seccion--centrado .titulo-hoja::after { margin-inline: auto; }

.intro {
  font-size: clamp(1.15rem, 0.5vw + 1.05rem, 1.375rem);
  line-height: 1.6;
  color: var(--texto-suave);
}
.seccion--oscura .intro { color: rgba(255, 255, 255, 0.85); }

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.boton:hover { text-decoration: none; }

.boton--principal { background: var(--azul); color: var(--blanco); }
.boton--principal:hover { background: var(--azul-profundo); box-shadow: inset 0 -3px 0 var(--verde); }

.boton--claro { background: var(--blanco); color: var(--azul); }
.boton--claro:hover { background: var(--arena); box-shadow: inset 0 -3px 0 var(--verde); }

.boton--borde-claro { border-color: rgba(255, 255, 255, 0.85); color: var(--blanco); }
.boton--borde-claro:hover { border-color: var(--verde); background: rgba(255, 255, 255, 0.08); }

.boton--borde { border-color: var(--azul); color: var(--azul); }
.boton--borde:hover { border-color: var(--verde); background: var(--arena); }

.enlace-mas {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  color: var(--azul);
  text-decoration: none;
  border-bottom: 2px solid var(--linea);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.enlace-mas:hover { border-color: var(--verde); }

/* ---------- Encabezado y menú ---------- */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blanco);
  transition: box-shadow 0.25s ease;
}
.encabezado.con-sombra { box-shadow: 0 8px 24px -16px rgba(11, 42, 69, 0.45); }

.encabezado__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--alto-encabezado);
}

.marca { display: inline-block; flex-shrink: 0; }
.marca img { width: 124px; height: auto; }

.nav-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-lista a {
  position: relative;
  display: block;
  padding: 0.6rem 0.7rem;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--azul);
  text-decoration: none;
  white-space: nowrap;
}
.nav-lista a::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.25rem;
  height: 2px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-lista a:hover::after,
.nav-lista a[aria-current="page"]::after { transform: scaleX(1); }
.nav-lista a[aria-current="page"] { color: var(--azul-profundo); }

.boton-menu {
  display: none;
  width: 48px; height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radio-sm);
  background: transparent;
  color: var(--azul);
  cursor: pointer;
}
.boton-menu span {
  display: block;
  width: 24px; height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.boton-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.boton-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.boton-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .js .boton-menu { display: block; }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--alto-encabezado));
    overflow-y: auto;
    background: var(--blanco);
    border-top: 1px solid var(--linea);
    box-shadow: 0 18px 30px -18px rgba(11, 42, 69, 0.45);
  }
  .js .nav.abierta { display: block; }
  .js .nav-lista {
    flex-direction: column;
    width: min(calc(100% - 2 * var(--margen)), var(--ancho));
    margin-inline: auto;
    padding-block: 0.75rem 1.25rem;
  }
  .js .nav-lista a { padding: 0.9rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--linea); }
  .js .nav-lista li:last-child a { border-bottom: 0; }
  .js .nav-lista a::after { left: 0; right: auto; width: 40px; bottom: -1px; }

  /* Sin JavaScript, el menú se muestra completo debajo del logo */
  html:not(.js) .encabezado__fila { flex-wrap: wrap; padding-block: 0.75rem; }
}

/* ---------- Imágenes y recuadros de respaldo ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  background: var(--arena);   /* Se ve si la foto no existe */
  aspect-ratio: 4 / 3;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--panoramica { aspect-ratio: 16 / 9; }
.media--alta { aspect-ratio: 4 / 5; }

.img-faltante { background: var(--arena); }

/* ---------- Portadas ---------- */
.portada {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 54vh, 540px);
  overflow: hidden;
  background: var(--arena);
  color: var(--blanco);
  isolation: isolate;
  --foco: var(--blanco);
}
.portada__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portada::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 42, 69, 0.78) 0%, rgba(11, 42, 69, 0.35) 60%, rgba(11, 42, 69, 0.15) 100%),
    linear-gradient(0deg, rgba(11, 42, 69, 0.9) 0%, rgba(11, 42, 69, 0.2) 55%, rgba(11, 42, 69, 0.35) 100%);
}
.portada__contenido { padding-block: clamp(3rem, 7vw, 5rem); }
.portada h1 { color: var(--blanco); margin-bottom: 0; max-width: 16ch; }
.portada__subtitulo {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 54ch;
}
.portada h1::after {
  content: "";
  display: block;
  width: 72px; height: 3px;
  margin-top: 1.4rem;
  background: var(--verde);
}

.portada--inicio { min-height: calc(100vh - var(--alto-encabezado)); }
@supports (height: 100svh) {
  .portada--inicio { min-height: calc(100svh - var(--alto-encabezado)); }
}
.portada--inicio .portada__contenido { padding-block: clamp(4rem, 10vh, 7rem); }
.portada--inicio h1 { font-size: clamp(2.25rem, 4.6vw + 1rem, 5.5rem); max-width: 20ch; font-weight: 700; }

/* ---------- Somos (inicio) ---------- */
.somos { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) {
  .somos { grid-template-columns: 1fr 2fr; align-items: start; }
}
.somos .intro { font-size: clamp(1.2rem, 0.7vw + 1.05rem, 1.55rem); color: var(--texto); }
.somos .intro + .intro { color: var(--texto-suave); }

/* ---------- Bloques divididos (foto + texto) ---------- */
.bloque-dividido {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.bloque-dividido + .bloque-dividido { margin-top: clamp(4rem, 8vw, 6.5rem); }
@media (min-width: 900px) {
  .bloque-dividido { grid-template-columns: 1.05fr 1fr; }
  .bloque-dividido--invertido { grid-template-columns: 1fr 1.05fr; }
  .bloque-dividido--invertido .bloque-dividido__media { order: 2; }
}
.bloque-dividido__media .media { aspect-ratio: 5 / 4; }

.par-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.par-fotos .media { aspect-ratio: 3 / 4; }
.par-fotos .media:nth-child(2) { margin-top: 2.5rem; }

/* ---------- Cifras ---------- */
.cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cifra { padding-left: 1.25rem; border-left: 2px solid rgba(116, 189, 67, 0.55); }
.cifra__pre {
  display: block;
  font-family: var(--fuente-titulos);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}
.cifra__valor {
  display: block;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: clamp(2.4rem, 2.2vw + 1.2rem, 3.25rem);
  line-height: 1.05;
  color: var(--verde);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cifra__unidad { font-size: 0.5em; font-weight: 500; margin-left: 0.2em; }
.cifra__texto { display: block; margin-top: 0.5rem; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }

/* ---------- Tarjetas ---------- */
.tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.rejilla { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.rejilla--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rejilla--2 { grid-template-columns: 1fr; }
@media (min-width: 820px) { .rejilla--2 { grid-template-columns: 1fr 1fr; } }

.tarjeta-empresa__logo {
  display: grid;
  place-items: center;
  height: 128px;
  padding: 1.5rem 2rem;
  background: var(--blanco);
  border-bottom: 1px solid var(--linea);
}
.tarjeta-empresa__logo img { width: auto; height: auto; max-height: 78px; max-width: 100%; }
.tarjeta-empresa__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.tarjeta-empresa__cuerpo h3 { margin-bottom: 0.2rem; }
.tarjeta-empresa__cuerpo p { color: var(--texto-suave); }
.tarjeta-empresa__cuerpo .enlace-mas { margin-top: auto; align-self: flex-start; }
.tarjeta-empresa__cuerpo p:last-of-type { margin-bottom: 1.5rem; }
.giro {
  margin-bottom: 1rem;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  color: var(--azul);
}
.giro::before {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  margin-right: 0.5rem;
  background: var(--hoja) center / contain no-repeat;
  vertical-align: 0.02em;
}
.tarjeta-empresa .media { border-radius: 0; aspect-ratio: 16 / 9; }
/* Toda la tarjeta es clicable a través del enlace principal */
.tarjeta-empresa .enlace-tarjeta::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.tarjeta-empresa:has(.enlace-tarjeta:hover) { box-shadow: 0 22px 40px -20px rgba(11, 42, 69, 0.5); }
.tarjeta-empresa:has(.enlace-tarjeta:hover) .enlace-mas { border-color: var(--verde); }

/* ---------- Destacados de inicio ---------- */
.destacados { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 900px) { .destacados { grid-template-columns: 1fr 1fr; } }
.destacado {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 48vw, 560px);
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--arena);
  color: var(--blanco);
  isolation: isolate;
  --foco: var(--blanco);
}
.destacado img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.destacado::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(11, 42, 69, 0.94) 0%, rgba(11, 42, 69, 0.55) 45%, rgba(11, 42, 69, 0.05) 100%);
}
.destacado__texto { padding: clamp(1.75rem, 4vw, 3rem); }
.destacado h3 { color: var(--blanco); font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.2rem); }
.destacado p { color: rgba(255, 255, 255, 0.92); font-size: 1.12rem; max-width: 42ch; }
.destacado .botones { margin-top: 1.5rem; }

/* ---------- Franja de cierre ---------- */
.cierre { text-align: center; }
.cierre h2 { margin-bottom: 0.4rem; }
.telefono-grande {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  line-height: 1.2;
  text-decoration: none;
}
.seccion--oscura .telefono-grande { color: var(--blanco); }
.telefono-grande svg { width: 0.75em; height: 0.75em; color: var(--verde); flex-shrink: 0; }
.cierre .botones { justify-content: center; }

/* ---------- Nosotros ---------- */
.mision-vision { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 900px) { .mision-vision { grid-template-columns: 1fr 1fr; } }
.mision-vision p { font-size: 1.12rem; line-height: 1.75; }

.valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 0; padding: 0;
  list-style: none;
}
.valor { padding: 2rem 1.6rem; }
.valor h3 { margin-bottom: 0.35rem; }
.valor p { color: var(--texto-suave); }
.icono-circulo {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--arena);
  color: var(--azul);
}
.icono-circulo svg { width: 28px; height: 28px; }

/* ---------- Empresas (sección ampliada) ---------- */
.empresa { scroll-margin-top: var(--alto-encabezado); }
.empresa__cabecera {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.empresa__logo {
  display: grid;
  place-items: center;
  width: 220px; height: 120px;
  padding: 1.25rem 1.5rem;
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}
.empresa__logo img { width: auto; height: auto; max-height: 76px; max-width: 100%; }
.empresa__cabecera h2 { margin-bottom: 0.25rem; }
.empresa__cabecera .giro { margin: 0; font-size: 1.1rem; }

.empresa__cuerpo { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 900px) { .empresa__cuerpo { grid-template-columns: 1fr 1fr; } }
.empresa__texto p { color: var(--texto); }
.empresa__cuerpo .media { aspect-ratio: 4 / 3; }

/* Foto principal con una segunda foto superpuesta */
.fotos-superpuestas { position: relative; padding: 0 0 22% 0; }
.fotos-superpuestas .media:first-child { width: 88%; }
.fotos-superpuestas .media:nth-child(2) {
  position: absolute;
  right: 0; bottom: 0;
  width: 50%;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--blanco);
  box-shadow: var(--sombra);
}
.seccion--arena .fotos-superpuestas .media:nth-child(2) { border-color: var(--arena); }

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.galeria .media { aspect-ratio: 4 / 3; }

.sello {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0.7rem 1.2rem 0.7rem 0.9rem;
  background: var(--blanco);
  border: 1.5px solid var(--verde);
  border-radius: 999px;
  font-family: var(--fuente-titulos);
  font-weight: 500;
  color: var(--azul);
  line-height: 1.35;
}
.sello svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--verde); }

/* ---------- Sostenibilidad ---------- */
.panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radio);
  background: var(--blanco);
  box-shadow: var(--sombra);
}
.panel--arena { background: var(--arena); box-shadow: none; }
.paneles { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(4rem, 8vw, 6.5rem); }
@media (min-width: 900px) { .paneles { grid-template-columns: 1fr 1fr; } }
.panel h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); }
.panel .titulo-hoja::after { margin-top: 0.8rem; }

.ejes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
.eje { padding: 1.75rem 1.5rem; }
.eje h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.eje p { color: var(--texto-suave); font-size: 1rem; line-height: 1.6; }

/* ---------- Comunidad ---------- */
.dato-grande {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-family: var(--fuente-titulos);
  color: var(--azul);
}
.dato-grande strong { font-size: clamp(2.6rem, 3vw + 1.3rem, 3.8rem); font-weight: 600; line-height: 1; }
.dato-grande span { font-size: 1.15rem; font-weight: 500; }

.vigilancia { max-width: 880px; }
.vigilancia p { font-size: clamp(1.15rem, 0.5vw + 1.05rem, 1.375rem); line-height: 1.65; color: rgba(255, 255, 255, 0.9); max-width: none; }

/* ---------- Contacto ---------- */
.contacto-rejilla { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 900px) { .contacto-rejilla { grid-template-columns: 1fr 1.1fr; } }
.contacto-dato { margin-bottom: 2.5rem; }
.contacto-rejilla h2 { font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); margin-bottom: 0.5rem; }
.contacto-dato .telefono-grande { color: var(--azul); }

.ubicaciones { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linea); }
.ubicaciones li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--linea);
}
.ubicaciones svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 0.15rem; color: var(--azul); }
.ubicaciones strong { display: block; font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.2rem; color: var(--azul); }
.ubicaciones span { color: var(--texto-suave); }

/* ---------- Página 404 ---------- */
.error-404 { min-height: 60vh; display: flex; align-items: center; }
.error-404 .numero { font-family: var(--fuente-titulos); font-weight: 600; font-size: clamp(4rem, 8vw, 7rem); line-height: 1; color: var(--azul); margin-bottom: 1rem; }

/* ---------- Pie de página ---------- */
.pie {
  background: var(--azul);
  color: rgba(255, 255, 255, 0.9);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
  font-size: 1rem;
  --foco: var(--blanco);
}
.pie a { color: var(--blanco); text-decoration: none; }
.pie a:hover { text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 2px; }
.pie__rejilla { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pie__logo {
  display: inline-block;
  padding: 1rem 1.25rem;
  background: var(--blanco);   /* El logo siempre sobre fondo claro */
  border-radius: var(--radio-sm);
}
.pie__logo img { width: 150px; height: auto; }
.pie h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 1rem;
}
.pie ul { margin: 0; padding: 0; list-style: none; }
.pie li + li { margin-top: 0.55rem; }
.pie__inferior {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.pie__inferior p { max-width: none; }

/* ---------- Animaciones de aparición ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .revelar {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .revelar.visible { opacity: 1; transform: none; }
}

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

/* ---------- Impresión ---------- */
@media print {
  .encabezado, .boton-menu, .botones { display: none; }
  .portada { color: var(--texto); min-height: 0; }
  .portada::after, .portada__img { display: none; }
  .portada h1 { color: var(--azul); }
}
