/* ============================================================
   PODER — Partido de Oportunidades y Desarrollo
   Design tokens
   ============================================================ */
:root {
  /* Colores oficiales del Manual de Marca PODER (pág. 7): Azul #003144,
     Rojo #F80202, Blanco #FFFFFF. --red se ajustó a #EE0202 (10 unidades
     menos en el canal rojo, imperceptible) porque el rojo exacto del
     manual con texto blanco encima no llega al mínimo de contraste de
     accesibilidad (4.2:1 de 4.5:1 requerido); el resto de tonos son
     variantes de luz derivadas de estos dos colores para fondos,
     degradados y texto secundario. */
  --navy: #003144;
  --navy-rgb: 0, 49, 68;
  --navy-2: #005170;
  --blue: #006e99;
  --red: #ee0202;
  --red-2: #d40202;
  --red-light: #fb5e5e;
  --paper: #f6f8f8;
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --ink: #002c3d;
  --ink-soft: #476b78;
  --ink-faint: #527380;

  /* Tipografías del Manual de Marca (pág. 8): Bookman Old Style para
     títulos, Calibri para texto. Ninguna de las dos está en Google
     Fonts; se declaran como fuentes del sistema con alternativas de
     métrica compatible para quien no las tenga instaladas. */
  --font-display: "Bookman Old Style", "URW Bookman", Georgia, "Times New Roman", serif;
  --font-body: Calibri, Carlito, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 20px 60px -25px rgba(var(--navy-rgb), 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding: el header fijo (franja de redes + menú, ~110px) no debe tapar
   el título de la sección al saltar desde el menú. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.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: 1rem; top: -3rem;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 8px;
  z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

@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;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   Type scale
   ============================================================ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.02; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.on-dark { color: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 0.85rem;
}
.eyebrow-light { color: var(--red-light); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--white-rgb), 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(var(--navy-rgb), 0.08);
  box-shadow: 0 8px 30px -20px rgba(var(--navy-rgb), 0.4);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
/* Franja de redes sociales: vive dentro del header fijo, así que se ve siempre,
   también en celular (no se esconde en el menú hamburguesa). */
.topbar { background: var(--navy); }
.topbar-inner { display: flex; justify-content: flex-end; }
.topbar-social { display: flex; gap: 0.35rem; }
.topbar-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: var(--white); border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.topbar-social a:hover, .topbar-social a:focus-visible { background: rgba(var(--white-rgb), 0.12); color: var(--red-light); }
.topbar-social svg { width: 17px; height: 17px; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark { flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: 0.02em; color: var(--navy);
}

/* El encabezado es algo más ancho que el contenido (1300 vs 1180px) para que
   el menú, con sus nombres largos, quepa en una sola línea. */
.topbar-inner, .header-inner { max-width: 1300px; }
.site-nav { display: flex; align-items: center; gap: 1.3rem; }
.site-nav a {
  font-family: var(--font-display); font-weight: 700; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.8rem;
  color: var(--navy); padding-block: 0.4rem; position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

.site-nav .nav-cta {
  background: var(--red); color: var(--white);
  padding: 0.6rem 1.2rem; border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover { background: var(--red-2); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 24px; margin-inline: auto;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(238, 2, 2, 0.6);
}
.btn-primary:hover { background: var(--red-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 2px solid rgba(var(--navy-rgb), 0.25);
}
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.section-accent .btn-ghost, .section-dark .btn-ghost { color: var(--white); border-color: rgba(var(--white-rgb), 0.35); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.hero-copy { padding-block: 2.5rem; }
.hero-slogan {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--blue);
  margin-top: 0.4rem;
}
.hero-body {
  margin-top: 1.5rem; max-width: 46ch;
  color: var(--ink-soft); font-size: 1.08rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-media { position: relative; align-self: center; justify-self: center; max-width: 500px; }
.hero-media img { width: 100%; filter: drop-shadow(0 30px 40px rgba(var(--navy-rgb), 0.25)); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-dark { background: var(--navy); }
/* Tono suave para separar dos secciones claras seguidas (Propuesta → Coordinador). */
.section-soft {
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(var(--navy-rgb), 0.07), transparent 70%),
    linear-gradient(180deg, #e9f0f3 0%, var(--paper) 100%);
}
.section-accent { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 130%); }
.on-dark-soft { color: rgba(var(--white-rgb), 0.78); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2, .section-head h2.on-dark { line-height: 1.05; }
.lede { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.1rem; }

/* Las dos columnas arrancan y terminan a la misma altura: el título vive
   dentro de la columna de texto, y cada columna reparte el sobrante entre
   sus bloques. Así da igual cuál de las dos sea la más alta — el borde de
   arriba y el de abajo siempre coinciden. */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: stretch; }
.split .section-head { margin-bottom: 2rem; }
.split-copy { display: flex; flex-direction: column; justify-content: space-between; }
/* Solo hijos directos: el .section-head que vive dentro de esta columna
   lleva su propio color de eyebrow y no debe heredar este. */
.split-copy > p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 62ch; }
.split-copy > p.on-dark-soft { color: rgba(var(--white-rgb), 0.78); }
.split-copy > p:last-child { margin-bottom: 0; }

#nosotros .split { grid-template-columns: minmax(0, 560px) 1fr; }

.countdown-stack { display: flex; flex-direction: column; gap: 1.5rem; align-self: stretch; }
.countdown-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem 1.8rem; text-align: center;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.countdown-label {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.15rem; color: var(--red); margin-bottom: 1.6rem;
}
.countdown-timer { display: flex; justify-content: center; gap: 1.3rem; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(3rem, 4vw, 4.6rem); }
.countdown-number {
  /* Tope a 3.6rem: las 4 unidades suman 404px de los 466px útiles de la tarjeta
     (62px de holgura). Más grande y no queda margen para las métricas de la
     fuente de reemplazo cuando Bookman Old Style no está instalada. */
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums;
}
.countdown-caption {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.55rem;
}

/* Principios (manual de imagen): tres tarjetas sobre el fondo oscuro. */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
.principle-card {
  background: rgba(var(--white-rgb), 0.07);
  border: 1px solid rgba(var(--white-rgb), 0.16);
  border-radius: var(--radius); padding: 1.9rem 1.7rem;
}
.principle-card h3 {
  color: var(--white); font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.75rem;
}
.principle-card p { color: rgba(var(--white-rgb), 0.78); }

.social-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.chip {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.03em;
  font-size: 0.9rem; color: var(--white);
  border: 1.5px solid rgba(var(--white-rgb), 0.3); border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
a.chip { transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
a.chip:hover { border-color: var(--red); background: rgba(238,2,2,0.15); }

/* Pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.pillar-card {
  background: var(--paper); border-radius: var(--radius);
  padding: 2.4rem 2rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-label {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1.3rem; color: var(--red); margin-bottom: 0.9rem;
}
/* Excluye el título por clase: con :last-child, un pilar sin cuerpo de texto
   dejaba al título como único <p> y se lo teñía de gris. */
.pillar-card p:not(.pillar-label) { color: var(--ink-soft); }
/* Pilares aún sin texto de cuerpo: solo el título, centrado en la tarjeta. */
.pillar-card-solo {
  display: flex; align-items: center; justify-content: center;
  text-align: center; min-height: 170px;
}
.pillar-card-solo .pillar-label { margin-bottom: 0; font-size: 1.6rem; }

/* Differentiation list */
/* Título a la izquierda (centrado en vertical) y los puntos como tarjetas 2x2
   a la derecha, para que no se lean como texto suelto. */
.diff-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: center; }
.diff-layout .section-head { margin-bottom: 0; }

/* grid-auto-rows:1fr iguala las dos filas: si no, la fila con el texto más
   largo queda más alta y vuelve a verse desparejo. */
.diff-list { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 1.4rem; }
.diff-card {
  display: flex; align-items: center;
  background: rgba(var(--white-rgb), 0.08);
  border: 1px solid rgba(var(--white-rgb), 0.18);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--white); line-height: 1.35;
}

/* Candidate */
.candidate-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
.candidate-media {
  /* La foto llena el ancho de su columna y conserva su proporción (height:auto),
     así que crece sin recortarse. El max-width solo evita que se dispare en
     pantallas muy anchas. */
  width: 100%; max-width: 640px; margin-inline: auto;
  overflow: hidden; border-radius: var(--radius);
}
.candidate-media img { width: 100%; height: auto; display: block; }
.candidate-role { font-family: var(--font-display); font-weight: 700; color: var(--blue); margin: 0.6rem 0 1.4rem; font-size: 1.1rem; }
.candidate-copy .copy { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 62ch; }

/* Perfil ampliado: va a ancho completo bajo la foto, porque ya no cabe en la
   columna de al lado sin estirar la sección a lo alto. */
.profile-block { margin-top: 3.5rem; }
.profile-block h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); margin-bottom: 1.6rem; }

.profile-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.profile-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.9rem 1.7rem;
}
.profile-card h4 {
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-size: 1.15rem; line-height: 1.25; margin-bottom: 0.7rem;
}
.profile-card p { color: var(--ink-soft); }

.timeline { border-top: 1px solid rgba(var(--navy-rgb), 0.12); }
.timeline li {
  display: grid; grid-template-columns: 6rem 1fr; gap: 1.6rem;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(var(--navy-rgb), 0.12);
}
.timeline-year {
  font-family: var(--font-display); font-weight: 700; color: var(--red);
  font-size: 1.4rem; line-height: 1.2;
}
.timeline-body h4 {
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.35rem;
}
.timeline-body p { color: var(--ink-soft); max-width: 80ch; }

/* Row list: lo usa el calendario electoral (la línea de tiempo del perfil
   tiene su propio patrón, con año + título + descripción). */
.row-list { margin-top: 1.8rem; border-top: 1px solid rgba(var(--navy-rgb), 0.12); }
.row-list li {
  display: flex; align-items: baseline; gap: 1.2rem; padding: 0.9rem 0;
  border-bottom: 1px solid rgba(var(--navy-rgb), 0.12);
  color: var(--ink); font-size: 0.98rem;
}
.row-label { font-family: var(--font-display); font-weight: 700; color: var(--red); flex-shrink: 0; }
.cal-date { width: 9ch; font-size: 1.05rem; }

/* Gallery */
/* Galería: banner de extremo a extremo. La tira vive FUERA de .wrap, así que
   ocupa el ancho completo sin recurrir a trucos con vw (100vw incluye la barra
   de scroll y genera scroll horizontal). El carrusel es scroll nativo con
   scroll-snap; el JS solo empuja el scroll, no reimplementa el desplazamiento. */
.gallery-strip { position: relative; }
.gallery-track {
  --visibles: 3;
  --hueco: 0.9rem;
  display: flex; gap: var(--hueco);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > li {
  flex: 0 0 calc((100% - (var(--visibles) - 1) * var(--hueco)) / var(--visibles));
  scroll-snap-align: start;
}
.gallery-item {
  display: block; width: 100%; padding: 0; border-radius: 10px;
  overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }

.strip-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(var(--white-rgb), 0.92); color: var(--navy);
  box-shadow: var(--shadow); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.strip-nav:hover { background: var(--white); }
.strip-prev { left: 1rem; }
.strip-next { right: 1rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 15, 30, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: min(90vw, 1100px); max-height: 85vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(var(--white-rgb), 0.1); color: var(--white); font-size: 1.6rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(var(--white-rgb), 0.2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(var(--white-rgb), 0.1); color: var(--white); font-size: 1.1rem;
}
.lightbox-nav:hover { background: rgba(var(--white-rgb), 0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* Mission / Vision / Values */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3.5rem; }
.mv-block .copy { font-size: 1.15rem; max-width: 46ch; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.75rem; }
.value-card {
  border: 1.5px solid rgba(var(--white-rgb), 0.16); border-radius: var(--radius);
  padding: 2rem; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.value-card:hover { border-color: var(--red); transform: translateY(-4px); }
.value-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  color: var(--white); margin-bottom: 0.5rem;
}

/* Calendar */
.calendar { max-width: 760px; margin-top: 0; border-top: 0; }
.calendar li { display: block; }
.calendar .cal-date { display: block; width: auto; font-size: 0.95rem; margin-bottom: 0.3rem; }
.calendar .cal-event { display: block; }
.calendar-note { margin-top: 1.3rem; color: var(--ink-faint); font-size: 0.9rem; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.contact-wrap h2 { margin-bottom: 1rem; }
.contact-copy .copy { max-width: 50ch; margin-bottom: 1.8rem; }

.slogan-line {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem); color: var(--white);
  line-height: 1.3; margin-bottom: 1.3rem; max-width: 34ch;
}
.slogan-line .accent { color: var(--red-light); }

.affiliate-card {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  max-width: 380px; margin-inline: auto; align-self: center;
}
.affiliate-card img { width: 100%; display: block; border-radius: var(--radius); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-bottom: 3rem; }
.form-card {
  background: rgba(var(--white-rgb), 0.06); border: 1px solid rgba(var(--white-rgb), 0.14);
  border-radius: var(--radius); padding: 2rem;
}
.form-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--white); }
.form-hint { color: rgba(var(--white-rgb), 0.65); font-size: 0.92rem; margin-top: 0.4rem; margin-bottom: 1.4rem; }

.field { display: block; margin-bottom: 1rem; }
.field span {
  display: block; font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.02em; font-size: 0.88rem; color: rgba(var(--white-rgb), 0.85);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--white); border: 1.5px solid transparent; border-radius: 8px;
  padding: 0.7rem 0.85rem; transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input[type="file"] { padding: 0.55rem 0.7rem; cursor: pointer; }
.field-hint-small { display: block; color: rgba(var(--white-rgb), 0.55); font-size: 0.82rem; margin-top: 0.4rem; }


.form-card .btn { width: 100%; margin-top: 0.3rem; }
.form-card .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin-top: 0.9rem; font-size: 0.92rem; min-height: 1.3em; }
.form-status.is-ok { color: #7de89a; }
.form-status.is-error { color: var(--red-light); }

.contact-info {
  background: rgba(var(--white-rgb), 0.06); border: 1px solid rgba(var(--white-rgb), 0.14);
  border-radius: var(--radius); padding: 2rem; max-width: 480px;
}
.contact-label { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 1.15rem; margin-bottom: 0.3rem; }

/* Footer */
.site-footer { background: var(--ink); padding-block: 3rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.9rem; }
.site-footer .brand-name { color: var(--white); }
.footer-slogan { font-family: var(--font-display); font-weight: 700; color: rgba(var(--white-rgb), 0.7); letter-spacing: 0.02em; }
.footer-legal { color: rgba(var(--white-rgb), 0.4); font-size: 0.85rem; max-width: 60ch; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 340px; margin-inline: auto; order: -1; }
  .hero-copy { text-align: left; }
  .split, .candidate-grid, .contact-wrap, .mv-grid, .form-grid { grid-template-columns: 1fr; }
  #nosotros .split { grid-template-columns: 1fr; }
  .candidate-media { max-width: 340px; margin-inline: auto; }
  .profile-cards { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  /* Apilado: el título arriba y las tarjetas debajo, que siguen cabiendo de 2 en 2. */
  .diff-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .countdown-stack { justify-self: start; width: 100%; align-self: start; }
  .split .section-head { margin-bottom: 1.5rem; }
  .principles-grid { grid-template-columns: 1fr; }
}

/* Menú hamburguesa: con «Coordinador Nacional de Formación Política» el menú
   completo necesita ~1215px en una línea, así que por debajo de 1280px pasa a
   hamburguesa en vez de partir cada enlace en dos renglones. */
@media (max-width: 1280px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 0.5rem 1.5rem 1.5rem; border-bottom: 1px solid rgba(var(--navy-rgb), 0.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .site-nav a { padding-block: 0.7rem; width: 100%; white-space: normal; font-size: 0.9rem; }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 0.5rem; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 2.5rem; }
  .pillar-card, .countdown-card, .value-card { padding: 1.8rem 1.5rem; }
  .countdown-number { font-size: 1.6rem; }
  .countdown-unit { min-width: 2.5rem; }
  .diff-list { grid-template-columns: 1fr; }
  .diff-card { padding: 1.3rem 1.2rem; }
  /* El año pasa arriba del texto: a 6rem de columna no queda ancho útil. */
  .timeline li { grid-template-columns: 1fr; gap: 0.4rem; }
  .profile-card { padding: 1.5rem 1.3rem; }
  /* A 3 por pantalla en un teléfono las caras quedan ilegibles; 2 es el mínimo útil. */
  .gallery-track { --visibles: 2; --hueco: 0.6rem; }
  .strip-nav { width: 38px; height: 38px; }
  .strip-prev { left: 0.5rem; }
  .strip-next { right: 0.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }
  .lightbox-close { top: 0.8rem; right: 0.8rem; }
}
