/* =========================================================
   RIPSA & Santa Marta — Hoja de estilos principal
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --color-wine: #7D211F;
  --color-wine-dark: #5E1917;
  --color-navy: #173B70;
  --color-navy-dark: #0F2A52;
  --color-topbar: #0A1D38;
  --color-white: #FFFFFF;
  --color-grey-light: #F4F5F7;
  --color-grey-text: #343A40;
  --color-green: #6D9E48;

  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(23, 59, 112, 0.08);
  --shadow-md: 0 10px 30px rgba(23, 59, 112, 0.12);
  --shadow-lg: 0 20px 50px rgba(23, 59, 112, 0.18);

  --transition-fast: 180ms ease;
  --transition-base: 320ms cubic-bezier(.4,0,.2,1);

  --topbar-height: 40px;
  --navbar-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-main);
  color: var(--color-grey-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--color-navy); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Accesibilidad ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-wine);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-wine-dark); box-shadow: var(--shadow-md); }

.btn-light {
  background: var(--color-white);
  color: var(--color-wine);
}
.btn-light:hover { background: var(--color-grey-light); }

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.14); }

.btn-outline-dark {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: #E1E4E9;
}
.btn-outline-dark:hover { background: var(--color-grey-light); }

.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
}
.btn-whatsapp:hover { background: #1EBE5A; box-shadow: var(--shadow-md); }
.btn-whatsapp-icon { width: 20px; height: 20px; }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }


.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
}

/* ---------- Topbar (franja superior, ancho completo) ---------- */
.topbar {
  background: var(--color-topbar);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--topbar-height);
}
.topbar-info {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.topbar-info li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-info svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--color-wine); }
.topbar-info span[data-pending="true"] { font-style: italic; color: rgba(255,255,255,0.6); }
.topbar-info a { color: inherit; text-decoration: none; }
.topbar-info a:hover { text-decoration: underline; }



.navbar {
  position: relative;
  width: 80%;
  max-width: 1320px;
  margin: 14px auto 0;
  height: var(--navbar-height);
  transition: width var(--transition-base), margin var(--transition-base);
}
.navbar-shape {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  color: var(--color-white);
  filter: drop-shadow(0 2px 10px rgba(23,59,112,0.10));
  transition: filter var(--transition-base);
  pointer-events: none;
}
.navbar-shape path { fill: currentColor; }
.site-header.is-scrolled .navbar-shape {
  filter: drop-shadow(0 14px 34px rgba(23,59,112,0.18));
}


.navbar-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 clamp(28px, 5vw, 56px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}
.brand-logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
  background: var(--color-white);
  padding: 4px 8px;
  object-fit: contain;
}
.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(23,59,112,0.18);
  flex-shrink: 0;
}

.main-nav { justify-self: center; }
.nav-list {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--color-wine);
  transition: width var(--transition-fast);
}
.nav-link:hover::after,
.nav-link:focus-visible::after { width: 100%; }
.nav-link:hover { color: var(--color-wine); }


.more-menu { position: relative; justify-self: end; grid-column: 3; }
.more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-direction: column;
  gap: 5px;
  background: var(--color-grey-light);
  border: none;
  border-radius: 50%;
  padding: 8px;
  transition: background var(--transition-fast);
}
.more-toggle:hover,
.more-toggle[aria-expanded="true"] { background: #E7E9ED; }
.nav-toggle-bar {
  width: 18px; height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.more-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 600;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 32px));
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.more-dropdown[hidden] { display: none; }
.more-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.more-link:hover,
.more-link:focus-visible { background: var(--color-grey-light); color: var(--color-wine); }
.more-divider {
  display: block;
  height: 1px;
  background: #E7E9ED;
  margin: 6px 4px;
}
.more-link--mobile-only { display: none; }


.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-navy-dark);
  color: var(--color-white);
}


.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
}

.hero-panel {
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 600px;
  padding: calc(var(--topbar-height) + var(--navbar-height) + 28px) 32px 32px clamp(24px, 7vw, 96px);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 16px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-white);
  margin-bottom: 14px;
  overflow-wrap: break-word;
}
.hero-title-accent {
  color: #F2C9C8;
}

.hero-text {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-facts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-fact-circle {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-wine-dark);
}
.hero-fact-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-navy-dark);
  line-height: 1.1;
  text-align: center;
}
.hero-fact-label {
  display: block;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.72);
  max-width: 120px;
}


.hero-diagonal {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-wine);

  /* Franja más estrecha y desplazada hacia la derecha */
  clip-path: polygon(
    90% 0%,
    100% 0%,
    100% 100%,
    60% 100%
  );

  pointer-events: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;

  /* Desplaza la imagen a la derecha sin modificar el layout */
  width: auto;
  height: 100%;
  left: 40%;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
}

/* Evita que las capas visuales provoquen desbordamiento */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

html,
body {
  overflow-x: clip;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal { transition-delay: 60ms; }
.hero .hero-title.reveal { transition-delay: 120ms; }
.hero .hero-text.reveal { transition-delay: 220ms; }
.hero .hero-actions.reveal { transition-delay: 320ms; }
.hero .hero-facts.reveal { transition-delay: 420ms; }

/* ---------- Strengths strip ---------- */
/* ---------- Fortalezas: franja blanca tipo carrusel ----------
   Columnas iguales separadas por líneas verticales finas, icono +
   título + descripción centrados. .strengths-grid es el "track"
   horizontal con scroll nativo (scroll-snap); el ancho de cada
   .strength-card lo fija initStrengthsCarousel() en main.js según
   cuántos elementos caben, para no dejar columnas vacías cuando hay
   menos tarjetas que el máximo visible del breakpoint. */
.strengths {
  position: relative;
  background: var(--color-white);
  width: 100%;
}
.strengths-viewport {
  width: 100%;
  overflow: hidden;
}
.strengths-grid {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strengths-grid::-webkit-scrollbar { display: none; }

.strength-card {
  flex: 0 0 20%;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px;
  border-right: 1px solid #E3E6EB;
}
.strength-card:last-child { border-right: none; }

.strength-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--color-navy);
  margin-bottom: 18px;
}
.strength-card:nth-child(even) .strength-icon { color: var(--color-wine); }
.strength-icon svg { width: 40px; height: 40px; }
.strength-card h3 {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.strength-card p {
  color: var(--color-grey-text);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 220px;
}

/* Controles del carrusel: discretos, sobre el borde del track,
   ocultos por completo (vía JS) cuando no hay nada que desplazar. */
.strengths-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid #E3E6EB;
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 2;
}
.strengths-nav svg { width: 18px; height: 18px; }
.strengths-nav:hover { background: var(--color-wine); color: var(--color-white); box-shadow: var(--shadow-md); }
.strengths-nav[hidden] { display: none; }
.strengths-prev { left: 10px; }
.strengths-next { right: 10px; }

/* ---------- Subpáginas (p. ej. informacion-adicional.html) ----------
   Estas páginas no tienen hero, así que .subpage-main compensa el
   header fijo (topbar + navbar) para que la primera sección no quede
   tapada al cargar. */
.subpage-main {
  padding-top: calc(var(--topbar-height) + var(--navbar-height) + 24px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-navy);
  padding: 28px 0 0;
  transition: color var(--transition-fast);
}
.back-link:hover { color: var(--color-wine); }

/* ---------- Generic sections ---------- */
.section {
  padding: 96px 0;
}
.section--alt { background: var(--color-grey-light); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-wine);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  max-width: 820px;
  margin-bottom: 18px;
}
.section-lead {
  font-size: 1.05rem;
  color: #596271;
  max-width: 680px;
  margin-bottom: 44px;
}

.service-note {
  font-size: 0.85rem;
  color: #767f8c;
  margin-top: 28px;
  font-style: italic;
}

/* ---------- Timeline: línea de tiempo horizontal interactiva ----------
   .timeline-item sigue siendo la fuente de datos (año, foto, título,
   descripción) que lee initTimelineInteractive() en main.js. El
   círculo grande con la fotografía (.timeline-stage) permanece fijo
   y centrado dentro de .timeline-years-viewport; lo que se desplaza
   horizontalmente (vía transform: translateX calculado en JS) es la
   tira de círculos pequeños de fecha (.timeline-years), de modo que
   el año activo quede siempre alineado bajo el círculo fijo. */
.timeline-track {
  display: flex;
  align-items: center;
  gap: 12px;
}
.timeline-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E3E6EB;
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.timeline-arrow svg { width: 18px; height: 18px; }
.timeline-arrow:hover:not(:disabled) { background: var(--color-wine); color: var(--color-white); box-shadow: var(--shadow-md); }
.timeline-arrow:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

.timeline-years-viewport {
  position: relative;
  flex: 1;
  height: 232px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.timeline-years-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: #E3E6EB;
  transform: translateY(-50%);
  z-index: 0;
}
.timeline-years {
  display: flex;
  align-items: center;
  transition: transform 420ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.timeline-item {
  position: relative;
  z-index: 1;
  list-style: none;
  flex: 0 0 112px;
  display: flex;
  justify-content: center;
}
.timeline-item-title,
.timeline-item-desc,
.timeline-year-source { display: none; }

.timeline-year {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 4px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.15;
  text-align: center;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.timeline-year:hover { border-color: var(--color-wine); }
.timeline-year.is-active {
  background: var(--color-wine);
  border-color: var(--color-wine);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

/* Círculo central fijo: no pertenece a la tira que se desplaza, por
   eso su posición (centrado en el viewport) nunca cambia; solo se
   actualiza la imagen y la etiqueta cuando cambia el año activo. */
.timeline-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 180px;
  height: 180px;
  pointer-events: none;
}
.timeline-stage-media {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-grey-light);
  border: 4px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-navy), var(--shadow-lg);
}
.timeline-stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.timeline-stage-label {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  background: var(--color-wine);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.timeline-info {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
}
.timeline-info-year {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-wine);
  margin-bottom: 10px;
}
.timeline-info-title { font-size: 1.3rem; margin-bottom: 10px; min-height: 1.2em; }
.timeline-info-desc {
  color: #596271;
  line-height: 1.6;
  /* Reserva espacio para ~3 líneas: la descripción más larga de las
     tres ocupa ese alto, así cambiar de acontecimiento no hace
     "saltar" verticalmente el resto de la página. */
  min-height: calc(1.6em * 3);
}

/* ---------- Nosotros: imagen compuesta + contenido editorial ----------
   La sección se divide en dos bloques con fondo distinto: .about-intro
   (gris oscuro) envuelve solo la imagen + el texto introductorio;
   el timeline de generaciones queda en un .section normal, con el
   fondo blanco de siempre. trayectoria.png ya incluye las fotos, el
   distintivo "Desde 1954" y el sello de seguridad integrados en un
   único PNG con transparencia — por eso la columna izquierda es solo
   un contenedor que centra esa imagen, sin recrear nada de eso en
   HTML/CSS ni añadir fondo, marco o sombra que la recorte. */
.about-intro {
  background: var(--color-grey-light);
  padding: 96px 0;
}
.about-intro .section-eyebrow { color: #E8958D; }
.about-intro .section-title { color: var(--color-navy-dark); }
.about-intro .section-lead { color: rgba(0, 0, 0, 0.78); }
.about-collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.about-visual img {
  width: 100%;
  max-width: 440px;
  height: auto;
  min-width: 0;
}
.about-collage-copy .section-eyebrow { margin-bottom: 14px; }
.about-collage-copy .section-title { margin-bottom: 22px; }
.about-collage-copy .section-lead {
  max-width: 100%;
  margin-bottom: 20px;
}
.about-collage-copy .section-lead:last-of-type { margin-bottom: 0; }
.about-collage-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Mission / Vision ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Columna izquierda: imagen (recortada a un marco rectangular con
   object-fit: cover, sin deformar el origen cuadrado), título y CTA. */
.mission-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mission-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.mission-intro-title { margin-bottom: 4px; }
.mission-intro .btn { align-self: flex-start; }

/* Columna derecha: dos tarjetas apiladas (Visión / Misión) con un
   corte diagonal sutil en la esquina inferior derecha, eco del
   mismo lenguaje de ángulos que ya usa la placa de navegación
   (.navbar-shape) y el diagonal del hero. */
.mission-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mission-card {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.mission-card--vision { background: var(--color-wine); }
.mission-card--mission { background: var(--color-navy-dark); }
.mission-card-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  color: var(--color-white);
  margin-bottom: 18px;
}
.mission-card-icon svg { width: 26px; height: 26px; }
.mission-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--color-white); }
.mission-card p { color: rgba(255,255,255,0.88); line-height: 1.65; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid #E7E9ED;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card-media {
  position: relative;
  height: 180px;
}
.service-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-icon {
  position: absolute;
  bottom: -18px;
  left: 18px;
  display: inline-flex;
  width: 46px; height: 46px;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--color-wine);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card-body { padding: 32px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.service-card h3 { font-size: 1.1rem; }
.service-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-grey-light);
  color: var(--color-navy);
  font-weight: 800;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.service-chevron:hover { background: var(--color-wine); color: var(--color-white); }
.service-card-body > p { color: #596271; font-size: 0.94rem; margin-bottom: 16px; }

.service-details { margin-bottom: 16px; }
.service-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-wine);
  font-size: 0.88rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}
.service-details[open] summary::after { transform: rotate(45deg); }
.service-details ul {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
.service-details li {
  font-size: 0.86rem;
  color: #596271;
  padding-left: 14px;
  position: relative;
}
.service-details li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}
/* ---------- Marquee (cinta de texto) ---------- */
.marquee {
  background: var(--color-navy);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track span {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.marquee-dot { color: var(--color-wine) !important; font-size: 1.1rem !important; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Capacity ---------- */
.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}
.capacity-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.capacity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.capacity-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  color: var(--color-wine);
  margin-bottom: 10px;
}
.capacity-icon svg { width: 40px; height: 40px; }
.capacity-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy);
}
.capacity-unit {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-wine);
  margin-bottom: 10px;
}
.capacity-desc { font-size: 0.88rem; color: #596271; }

/* ---------- Gallery ---------- */
.gallery { margin-top: 64px; }
.gallery-title { font-size: 1.3rem; margin-bottom: 22px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- Stat banner ---------- */
.stat-banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.stat-banner-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.stat-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,42,82,0.78) 0%, rgba(15,42,82,0.35) 55%, rgba(15,42,82,0.15) 100%);
}
.stat-card {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 560px;
}
.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.82rem; color: #596271; }

/* Resalta el dato de cobertura (y lo conecta visualmente con el
   botón "Ver cobertura" justo debajo) con un pulso continuo,
   adicional a la animación de conteo que comparten los tres
   números — ver animateCounter() en main.js. */
.stat-item {
  position: relative;
  border-radius: var(--radius-sm);
}
.stat-item--highlight {
  padding: 8px 10px;
  margin: -8px -10px;
  background: rgba(125, 33, 31, 0.06);
  animation: stat-highlight-pulse 2.4s ease-in-out infinite;
}
.stat-item--highlight .stat-value { color: var(--color-wine); }
@keyframes stat-highlight-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 33, 31, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(125, 33, 31, 0); }
}
.btn-pulse { animation: btn-pulse-glow 2.4s ease-in-out infinite; }
@keyframes btn-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 33, 31, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(125, 33, 31, 0); }
}

/* ---------- Safety blocks ---------- */
.safety-blocks { display: flex; flex-direction: column; gap: 64px; }
.safety-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.safety-block--reverse .safety-copy { order: 2; }
.safety-block--reverse .safety-media { order: 1; }
.safety-icon {
  display: inline-flex;
  width: 50px; height: 50px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(109,158,72,0.12);
  color: var(--color-green);
  margin-bottom: 16px;
}
.safety-icon svg { width: 26px; height: 26px; }
.safety-copy h3 { font-size: 1.3rem; margin-bottom: 10px; }
.safety-copy p { color: #596271; }
.safety-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ---------- Certifications ---------- */
.basc-highlight {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.basc-highlight img {
  width: 76px; height: auto;
  background: var(--color-white);
  border-radius: 10px;
  padding: 6px;
  flex-shrink: 0;
}
.basc-highlight img.basc-cert-img {
  width: 120px;
  box-shadow: var(--shadow-sm);
}
.basc-highlight p { font-size: 0.98rem; color: rgba(255,255,255,0.92); }

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--color-white);
  border: 1px solid #E7E9ED;
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cert-card img { max-height: 56px; width: auto; object-fit: contain; }
.cert-card span { font-size: 0.8rem; font-weight: 700; color: var(--color-grey-text); }
.cert-text-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: rgba(125,33,31,0.08);
  color: var(--color-wine);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  padding: 4px;
}

/* ---------- Integrity ---------- */
.integrity-wrap { position: relative; }
.integrity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.integrity-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.integrity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.integrity-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-wine);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.integrity-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.integrity-card p { font-size: 0.88rem; color: #596271; }
.integrity-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
  max-width: 220px;
  height: 64px;
  border-radius: 999px;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

/* ---------- Coverage ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Mapa interactivo: geometría geográfica real (fronteras de México
   sur, Belice, Guatemala, Honduras, El Salvador, Nicaragua, Costa
   Rica y Panamá), generada una sola vez a partir de datos de Natural
   Earth (50m admin-0 countries) proyectados con d3-geo y congelada
   como paths SVG — ver scripts de build en el historial del proyecto,
   no hay dependencia en tiempo de ejecución. Cada país es a la vez
   una forma SVG hoverable/clicable y un marcador (botón HTML)
   posicionado por porcentaje sobre ese mismo lienzo; una línea
   punteada (SVG, no interactiva) sugiere la ruta entre países. Pasar
   el cursor, enfocar o tocar un país (su forma o su marcador) revela
   el tooltip con los puntos de carga — ver initCoverageMap() en
   main.js, que sincroniza el estado entre ambos. */
.coverage-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 426;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F2F6FA, #E3E9F0);
  box-shadow: var(--shadow-md);
}
.coverage-map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-country {
  fill: #D7E0EB;
  stroke: var(--color-white);
  stroke-width: 1.5;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill var(--transition-fast);
}
.map-country:hover,
.map-country.is-hover,
.map-country.is-open {
  fill: #B9C8DC;
}
.route-line {
  fill: none;
  stroke: var(--color-wine);
  stroke-width: 2;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  opacity: 0.45;
  pointer-events: none;
}
.map-node {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  font-family: inherit;
}
.map-node:hover,
.map-node:focus-visible,
.map-node.is-open,
.map-node.is-hover {
  z-index: 10;
}
.map-node--label-left { flex-direction: row-reverse; }
.map-node-dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-wine);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 4px rgba(125, 33, 31, 0.16);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.map-node:hover .map-node-dot,
.map-node:focus-visible .map-node-dot,
.map-node.is-open .map-node-dot,
.map-node.is-hover .map-node-dot {
  background: var(--color-navy);
  transform: scale(1.2);
}
.map-node-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-navy-dark);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.map-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 5;
}
.map-node:hover .map-tooltip,
.map-node:focus-visible .map-tooltip,
.map-node.is-open .map-tooltip,
.map-node.is-hover .map-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.map-node--tip-start .map-tooltip { left: 0; transform: none; }
.map-node--tip-end .map-tooltip { left: auto; right: 0; transform: none; }
.map-node--flip .map-tooltip { top: auto; bottom: calc(100% + 10px); }
.map-tooltip strong {
  display: block;
  font-size: 0.86rem;
  color: var(--color-navy-dark);
}
.map-tooltip-note {
  display: block;
  font-size: 0.74rem;
  color: #7A8290;
  margin-top: 2px;
}
.map-tooltip-sub {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--color-wine);
  margin-top: 10px;
}
.map-tooltip ul {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-tooltip li {
  font-size: 0.82rem;
  color: #596271;
}
.map-tooltip-empty {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #596271;
}

.coverage-lists {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.coverage-hint {
  font-size: 0.92rem;
  color: #596271;
}

/* ---------- Clients (marquee) ---------- */
.clients-marquee {
  background: var(--color-grey-light);
  border-radius: var(--radius-lg);
  padding: 32px 0;
  overflow: hidden;
  display: flex;
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-shrink: 0;
  padding: 0 28px;
  animation: clients-scroll 28s linear infinite;
}
.clients-track img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter var(--transition-fast), transform var(--transition-fast);
}
.clients-track img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}
@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Social responsibility ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.social-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.social-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.social-card--wide { grid-column: span 2; grid-row: span 2; }
.social-card img { width: 100%; height: 200px; object-fit: cover; }
.social-card--wide img { height: 100%; min-height: 320px; }
.social-card-copy { padding: 18px; }
.social-card-copy h3 { font-size: 1rem; margin-bottom: 6px; }
.social-card-copy p { font-size: 0.85rem; color: #596271; }

.university-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #E7E9ED;
}
.university-logos img { max-height: 64px; width: auto; object-fit: contain; }

/* ---------- Editorial grid (RRHH) ---------- */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 16px;
}
.editorial-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.editorial-grid img:nth-child(1) { grid-row: span 2; }
.editorial-tall { grid-row: span 2; }

/* ---------- Quality ---------- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quality-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.quality-card img { width: 100%; height: 190px; object-fit: cover; }
.quality-card h3 { font-size: 1.05rem; margin: 18px 20px 6px; }
.quality-card p { font-size: 0.88rem; color: #596271; margin: 0 20px 20px; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--color-wine) 0%, var(--color-wine-dark) 100%);
  padding: 90px 0;
  text-align: center;
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta h2 { color: var(--color-white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: start;
}
.process-step { text-align: center; }
.process-icon {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--color-wine);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}
.process-icon svg { width: 32px; height: 32px; }
.process-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-wine);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: #596271; max-width: 260px; margin: 0 auto; }
.process-arrow { color: #C7CDD6; padding-top: 32px; }
.process-arrow svg { width: 64px; height: 20px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.contact-channels { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.contact-channels li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--color-grey-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-navy);
}
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--color-navy); }
.contact-value { font-size: 0.92rem; color: #596271; }
.contact-value[data-pending="true"] { color: #A3542F; font-style: italic; }

/* ---------- WhatsApp panel ---------- */
.whatsapp-panel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid #E7E9ED;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.whatsapp-panel-icon {
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37,211,102,0.12);
  color: #25D366;
  margin-bottom: 18px;
}
.whatsapp-panel-icon svg { width: 32px; height: 32px; }
.whatsapp-panel h3 { font-size: 1.2rem; margin-bottom: 10px; }
.whatsapp-panel p { color: #596271; font-size: 0.92rem; margin-bottom: 24px; }
.whatsapp-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: #A3542F;
  font-style: italic;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logos { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-logos img { height: 40px; width: auto; background: var(--color-white); border-radius: 6px; padding: 4px 8px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-col h4 { color: var(--color-white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-white); }
.footer-contact li { font-size: 0.85rem; }
.footer-contact li[data-pending="true"] { font-style: italic; color: #C98B6E; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  font-size: 0.78rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  /* Tablet: la franja y la fotografía ceden algo de terreno al
     texto, desplazando hacia la derecha el punto donde empieza el
     degradado/diagonal — ambas siguen siendo capas de fondo de
     .hero, no columnas, así que solo se ajustan sus porcentajes. */
  .hero-diagonal { display: none; clip-path: polygon(60% 75%, 100% 0%, 100% 100%, 46% 100%); }
  .hero-img {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 40%, rgba(0,0,0,0.8) 58%, #000 72%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 0%, rgba(0,0,0,0.8) 14%, #000 72%);
  }
  .hero-copy { padding-right: 24px; max-width: 420px; }
  /* Tablet: valor de respaldo (3 columnas) antes de que
     initStrengthsCarousel() calcule el ancho exacto según el nº
     real de tarjetas y el ancho disponible. */
  .strength-card { flex-basis: 33.3333%; }
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Tablet: conserva las dos columnas (más juntas) en vez de
     apilarlas — el apilado a una sola columna ocurre recién en el
     breakpoint de móvil (≤640px), más abajo. */
  .about-collage-grid { gap: 40px; }
  .about-visual img { max-width: 320px; }
  /* Tablet: círculo central fijo más pequeño, misma interacción. */
  .timeline-stage { width: 136px; height: 136px; }
  .timeline-years-viewport { height: 180px; }
  .timeline-item { flex-basis: 96px; }
  .capacity-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { max-width: 100%; }
  .safety-block,
  .safety-block--reverse { grid-template-columns: 1fr; }
  .safety-block--reverse .safety-copy,
  .safety-block--reverse .safety-media { order: 0; }
  .integrity-grid { grid-template-columns: repeat(2, 1fr); }
  .coverage-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .social-card--wide { grid-column: span 2; grid-row: span 1; }
  .social-card--wide img { min-height: 220px; }
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --navbar-height: 72px; }

  /* Navbar: los 4 enlaces principales se ocultan de la fila y
     quedan disponibles dentro del menú desplegable junto con
     las secciones secundarias (ver .more-link--mobile-only). */
  .main-nav { display: none; }
  .more-link--mobile-only { display: block; }

  /* Hero en móvil: la capa de fondo completa (fotografía + franja
     corinto) se oculta de un solo golpe — el panel de texto pasa a
     ocupar todo el ancho y define la altura del hero él solo, sin
     huecos reservados para la composición visual. */
  .hero-background { display: none; }
  .hero-panel { flex: 0 0 100%; max-width: 100%; }
  .hero-copy {
    padding: calc(var(--topbar-height) + var(--navbar-height) + 24px) 24px 36px;
    max-width: 100%;
  }

  /* Tablet pequeña: el círculo central se reduce más; el viewport
     (overflow:hidden) ya limita cuántos marcadores de fecha se ven
     a la vez — JS se encarga de que el año activo quede centrado. */
  .timeline-stage { width: 114px; height: 114px; }
  .timeline-years-viewport { height: 156px; }
  .timeline-item { flex-basis: 84px; }
  .timeline-year { width: 52px; height: 52px; font-size: 0.74rem; }
  .timeline-info { margin-top: 32px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --topbar-height: 0px; --navbar-height: 64px; }

  /* En móvil la placa pierde su silueta geométrica: pasa a ser
     una barra convencional a todo el ancho (full width). */
  .navbar {
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--color-white);
    box-shadow: 0 1px 0 rgba(23,59,112,0.08);
  }
  .navbar-shape { display: none; }
  .site-header.is-scrolled .navbar { box-shadow: var(--shadow-md); }
  .navbar-inner { padding: 0 20px; }

  .brand-logo { height: 30px; }
  .hero-facts { gap: 24px; }
  /* Móvil: valor de respaldo (2 columnas); initStrengthsCarousel()
     ajusta el nº exacto según el ancho real de la pantalla. */
  .strength-card { flex-basis: 50%; padding: 36px 14px; }
  .strength-icon { width: 36px; height: 36px; margin-bottom: 14px; }
  .strength-icon svg { width: 32px; height: 32px; }
  .strength-card h3 { font-size: 0.94rem; }
  .strength-card p { font-size: 0.84rem; }
  .strengths-nav { width: 32px; height: 32px; }
  .strengths-nav svg { width: 15px; height: 15px; }
  .strengths-prev { left: 4px; }
  .strengths-next { right: 4px; }
  /* Móvil: una sola columna — imagen primero (orden natural del
     DOM), luego etiqueta, título, párrafos y botones. */
  .about-intro { padding: 64px 0; }
  /* Móvil: corte diagonal más discreto y menos relleno, para que
     las tarjetas de Visión/Misión no se vean recargadas al ser
     angostas de ancho completo. */
  .mission-card { padding: 32px 26px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
  .about-collage-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-visual img { max-width: 280px; }
  /* Móvil pequeño: círculo central más compacto; el viewport más
     bajo sigue mostrando solo los marcadores de fecha cercanos al
     activo, que es el que JS mantiene siempre centrado. */
  .timeline-arrow { width: 34px; height: 34px; }
  .timeline-arrow svg { width: 15px; height: 15px; }
  .timeline-stage { width: 96px; height: 96px; border-width: 3px; }
  .timeline-stage-media { border-width: 3px; }
  .timeline-stage-label { font-size: 0.74rem; padding: 5px 12px; bottom: -12px; }
  .timeline-years-viewport { height: 134px; }
  .timeline-item { flex-basis: 70px; }
  .timeline-year { width: 46px; height: 46px; font-size: 0.7rem; }
  .timeline-info-title { font-size: 1.12rem; }
  .capacity-grid { grid-template-columns: 1fr; }
  .stat-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .integrity-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .social-card--wide { grid-column: span 1; }
  .editorial-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .editorial-grid img:nth-child(1) { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .basc-highlight { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox-img { max-width: 92vw; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .marquee-track span { font-size: 1.1rem; }
  .map-node-dot { width: 11px; height: 11px; }
  .map-node-label { font-size: 0.68rem; }
  .map-tooltip { width: 180px; padding: 12px 14px; }
  .whatsapp-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .topbar { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
