/* ============================================================
   FUENTES LOCALES
============================================================ */

/* — BARLOW — */
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-Regular.woff2') format('woff2'),
       url('../recursos/BARLOW/Barlow-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-Medium.woff2') format('woff2'),
       url('../recursos/BARLOW/Barlow-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-SemiBold.woff2') format('woff2'),
       url('../recursos/BARLOW/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-Bold.woff2') format('woff2'),
       url('../recursos/BARLOW/Barlow-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-Black.woff2') format('woff2'),
       url('../recursos/BARLOW/Barlow-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../recursos/BARLOW/Barlow-BlackItalic.ttf') format('truetype');
  font-weight: 900; font-style: italic; font-display: swap;
}

/* — BIG CASLON CC — */
@font-face {
  font-family: 'Big Caslon CC';
  src: url('../recursos/BIG CASLON/Big_Caslon_CC.woff2') format('woff2'),
       url('../recursos/BIG CASLON/fonnts.com-Big_Caslon_CC.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('../recursos/BIG CASLON/Big_Caslon_CC_Italic.woff2') format('woff2'),
       url('../recursos/BIG CASLON/fonnts.com-Big_Caslon_CC_Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('../recursos/BIG CASLON/Big_Caslon_CC_Bold.woff2') format('woff2'),
       url('../recursos/BIG CASLON/fonnts.com-Big_Caslon_CC_Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('../recursos/BIG CASLON/Big_Caslon_CC_Bold_Italic.woff2') format('woff2'),
       url('../recursos/BIG CASLON/fonnts.com-Big_Caslon_CC_Bold_Italic.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('../recursos/BIG CASLON/fonnts.com-Big_Caslon_CC_Black.otf') format('opentype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Big Caslon CC';
  src: url('../recursos/BIG CASLON/fonnts.com-Big_Caslon_CC_Black_Italic.otf') format('opentype');
  font-weight: 900; font-style: italic; font-display: swap;
}

/* ============================================================
   PRELOADER
============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy, #1b203e);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.preloader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__logo {
  width: min(260px, 55vw);
  height: auto;
  animation: preloader-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes preloader-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   VARIABLES
============================================================ */
:root {
  --navy:  #1b203e;
  --red:   #a91a16;
  --cream: #F0EAE0;
  --white: #FFFFFF;

  --f-display: 'Barlow', sans-serif;
  --f-body:    'Barlow', sans-serif;
  --f-serif:   'Big Caslon CC', serif;

  --nav-h:  56px;
  --pad-x:  clamp(24px, 6vw, 80px);
  --pad-y:  clamp(32px, 4vw, 52px);
  --max-w:  1280px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--navy);
  color: var(--navy);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 700; }
p { line-height: 1.7; }

/* ============================================================
   UTILITIES
============================================================ */
.c-red   { color: var(--red); }
.c-navy  { color: var(--navy); }
.c-white { color: var(--white); }
.serif   { font-family: var(--f-serif); font-style: italic; }

.label-xs {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}

.overline {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  display: block;
}

.divider {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.15;
  margin: 28px 0 36px;
}

.two-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  max-width: 720px;
}

.three-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 15px;
  max-width: 720px;
}

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: var(--navy);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__logo {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.nav__logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  padding: 0 8px;
  overflow: hidden;
}
.nav__links a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  padding: 0 12px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }


/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--navy);
  color: var(--white);
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Escudo de fondo — detrás de todo el contenido */
.hero__escudo {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 80vw);
  height: auto;
  display: block;
  pointer-events: none;
  opacity: 0.08;
  filter: grayscale(1) brightness(2);
  z-index: 0;
}

/* Contenido del hero siempre encima del escudo */
.hero__subnav,
.hero__main { position: relative; z-index: 1; }

.hero__subnav {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  text-align: center;
  padding: 12px var(--pad-x);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
  overflow: hidden;
}

.hero__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px var(--pad-x) 40px;
  text-align: center;
  gap: 32px;
  position: relative;
  isolation: isolate;
}


.hero__logo {
  max-width: min(500px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto;
  animation: hero-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.hero__taglines {
  animation: hero-in 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__tagline-1 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(22px, 4.5vw, 56px);
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}
.hero__tagline-2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(22px, 4.5vw, 56px);
  line-height: 1;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 20px;
}

/* Claim principal: Barlow + Big Caslon CC combo como en el folleto */
.hero__claim {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 3.5vw, 44px);
  line-height: 1.15;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
}
.hero__claim em {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(34px, 6.5vw, 84px);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-top: 4px;
}

/* ============================================================
   TICKER
============================================================ */
.ticker {
  background: var(--red);
  overflow: hidden;
  padding: 11px 0;
}
.ticker__track {
  display: flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}
.ticker__track span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  flex-shrink: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION BASE (color helpers)
============================================================ */
.section--navy  { background: var(--navy); color: var(--white); }
.section--cream { background: var(--cream); color: var(--navy); }
.section--red   { background: var(--red);  color: var(--white); }

/* ============================================================
   ACCORDION SECTIONS
============================================================ */
.acc-section {
  border-bottom: 1px solid rgba(128,128,128,0.15);
}

/* --- Trigger (clickable header) --- */
.acc-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  padding: var(--pad-y) var(--pad-x);
  gap: 24px;
  transition: opacity 0.2s;
}
.acc-trigger:hover { opacity: 0.85; }
.acc-trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

/* Header grid inside trigger: [label] [title] */
.acc-header {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Section label (num + tag) */
.section__label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.section__num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--red);
}

/* Boxed num — cuadrado para todas las secciones */
.section__num--boxed {
  background: var(--navy);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  line-height: 1;
  flex-shrink: 0;
}

/* En fondo navy el box necesita borde para distinguirse */
.section--navy .section__num--boxed {
  border: 1.5px solid rgba(255,255,255,0.18);
}

.section__tag {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* Section title in the trigger */
.section__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 60px);
  line-height: 0.93;
  text-transform: uppercase;
  color: var(--navy);
}

@media (min-width: 769px) {
  .section__title { white-space: nowrap; }
}

/* Títulos blancos en fondos oscuros */
.section--navy .section__title,
.section--navy .section__tag,
.section--red .section__title,
.section--red .section__tag { color: var(--white); }

/* +/− icon */
.acc-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.35;
  position: relative;
  transition: opacity 0.3s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-icon::before,
.acc-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
}
.acc-icon::before {
  width: 12px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.acc-icon::after {
  width: 1.5px; height: 12px;
  transform: translate(-50%, -50%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity  0.35s;
}

.acc-trigger[aria-expanded="true"] .acc-icon {
  opacity: 0.75;
  transform: rotate(45deg); /* + rotates to × */
}

/* --- Collapsible body --- */
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.acc-body.open {
  grid-template-rows: 1fr;
}

.acc-inner {
  overflow: hidden;
}

/* Content wrapper (for sections 01-05) — max-width + indent */
.acc-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--pad-y);
  /* Indent to align with the title column (skip the label column) */
  padding-left: calc(var(--pad-x) + 200px + 48px);
}


/* ============================================================
   SECTION CONTENT COMPONENTS
============================================================ */
.section__lead {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.4;
  margin-bottom: 24px;
  max-width: 800px;
}
.section--navy .section__lead { color: rgba(255,255,255,0.8); }
.section--red  .section__lead { color: rgba(255,255,255,0.9); }

/* Texto justificado en todo el contenido editorial */
.two-col p,
.three-col p,
.candidate__bio p,
.eje__desc,
.timeline__desc p {
  text-align: justify;
  hyphens: auto;
}

/* ============================================================
   TIMELINE
============================================================ */
.timeline { display: flex; flex-direction: column; margin-top: 8px; margin-left: -140px; }

.timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}
.timeline__year {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--red);
  padding-top: 2px;
}
.timeline__desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   CANDIDATE
============================================================ */
.candidate {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
}

.candidate__photo {
  background: var(--navy);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 12px,
    rgba(255,255,255,0.025) 12px, rgba(255,255,255,0.025) 13px
  );
}
.candidate__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.candidate__photo-name {
  position: relative;
  z-index: 1;
  padding: 20px;
  background: linear-gradient(to top, rgba(27,32,62,0.92) 0%, transparent 100%);
}
.candidate__photo-tag {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
}
.candidate__photo-name { color: var(--white); }
.candidate__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 48px;
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.candidate__role {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
}

.candidate__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 28px;
}
.candidate__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0;
  border-right: 1px solid rgba(0,0,0,0.12);
  padding-right: 18px;
}
.candidate__stat:first-child { padding-left: 0; }
.candidate__stat:nth-child(2) { padding-left: 18px; }
.candidate__stat:last-child { border-right: none; padding-left: 18px; }

.stat-label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
}
.stat-val {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.candidate__bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   STATS
============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 36px;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 24px 0;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stats__item:first-child { padding-left: 0; }
.stats__item:not(:first-child) { padding-left: 24px; }
.stats__item:last-child { border-right: none; }

.stats__num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  color: var(--red);
}
.stats__num--dash { font-size: 40px; line-height: 1.5; }
.stats__label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   EJES — inside acc-inner, full-width
============================================================ */
.ejes {
  padding: 0 var(--pad-x) var(--pad-y);
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.eje {
  background: var(--navy);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eje__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.eje__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--white);
  text-transform: uppercase;
}
.eje__desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.58);
  margin-top: 4px;
}

/* ============================================================
   SUMATE
============================================================ */
.sumate {
  padding: clamp(72px, 10vw, 140px) var(--pad-x);
}
.sumate__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.sumate__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 150px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 52px;
}
.sumate__details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.sumate__detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 22px 0;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.sumate__detail:first-child { padding-left: 0; }
.sumate__detail:not(:first-child) { padding-left: 24px; }
.sumate__detail:last-child { border-right: none; }
.sumate__detail strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(16px, 2.8vw, 28px);
  color: var(--white);
  text-transform: uppercase;
}

/* ============================================================
   CARRUSEL (sumate / galería)
============================================================ */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 36px;
  border-radius: 4px;
}
.carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.carousel__slide img {
  max-width: min(260px, 60vw);
  height: auto;
  opacity: 0.85;
}

/* Carousel con fotos reales (galería en sumate) */
.sumate .carousel__slide {
  padding: 0;
  background: #0d0f1e;
  border: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.sumate .carousel__slide img {
  width: 100%; height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 1;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.carousel__dot--active { background: var(--white); }

/* Link de lectura extendida / galería */
.section__read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
  margin-top: 24px;
}
.section--navy .section__read-more,
.section--red  .section__read-more { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.3); }
.section__read-more:hover { opacity: 0.7; }
.section__read-more::after { content: ' →'; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--navy);
  padding: 56px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Columna de páginas en el footer */
.footer__pages { align-self: end; }
.footer__pages .label-xs { margin-bottom: 18px; display: block; }
.footer__pages nav { display: flex; flex-direction: column; gap: 2px; }
.footer__pages nav a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.footer__pages nav a::before { content: '↗'; color: var(--red); font-size: 11px; flex-shrink: 0; }
.footer__pages nav a:hover { color: var(--white); }
.footer__brand { align-self: end; }
.footer__logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}
.footer__claim {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.4;
}
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__handle {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-top: 6px;
  margin-bottom: 16px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
}

.footer__links a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  padding: 7px 24px 7px 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer__links a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--red);
  transition: fill 0.2s;
}
.footer__links a:hover svg { fill: var(--white); }

.footer__links a:hover { color: var(--white); }

/* ============================================================
   ACCORDION NEXT-SECTION ROW
============================================================ */
.acc-next-row {
  padding: 28px var(--pad-x) 48px;
  border-top: 1px solid rgba(27,32,62,0.1);
}
.acc-next-row__btn {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.acc-next-row__btn:hover { opacity: 1; }
.section--navy .acc-next-row { border-top-color: rgba(255,255,255,0.1); }
.section--navy .acc-next-row__btn { color: rgba(255,255,255,0.75); opacity: 1; }
.section--navy .acc-next-row__btn:hover { color: var(--white); }
.section--red .acc-next-row { border-top-color: rgba(27,32,62,0.15); }
.section--red .acc-next-row__btn { color: var(--navy); opacity: 0.55; }
.section--red .acc-next-row__btn:hover { opacity: 1; }

/* ============================================================
   FLOATING SUMATE BUTTON
============================================================ */
.float-sumate {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s, background 0.2s;
  pointer-events: none;
}
.float-sumate.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.float-sumate:hover { background: #8c1412; }

/* ============================================================
   CROW FLIGHT ANIMATIONS
   Easing expo-out: arranca rápido, frena natural como ala
============================================================ */
.reveal {
  opacity: 0;
  transition:
    opacity  0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.reveal.from-left  { transform: translateX(-56px) translateY(18px); }
.reveal.from-right { transform: translateX(56px)  translateY(18px); }
.reveal.from-up    { transform: translateY(40px); }

.reveal.is-visible { opacity: 1; transform: none; }

/* Dentro del acordeón el overflow:hidden del acc-inner recorta el translateX.
   Usamos solo translateY para el contenido interno. */
.acc-inner .reveal.from-left,
.acc-inner .reveal.from-right { transform: translateY(20px); }

/* Stagger: cada item hijo demora un poco más */
.acc-inner .reveal:nth-child(2),
.ejes .reveal:nth-child(2),
.timeline .reveal:nth-child(2) { transition-delay: 0.08s; }

.acc-inner .reveal:nth-child(3),
.ejes .reveal:nth-child(3),
.timeline .reveal:nth-child(3) { transition-delay: 0.16s; }

.acc-inner .reveal:nth-child(4),
.ejes .reveal:nth-child(4),
.timeline .reveal:nth-child(4) { transition-delay: 0.24s; }

.acc-inner .reveal:nth-child(5),
.ejes .reveal:nth-child(5) { transition-delay: 0.32s; }

.acc-inner .reveal:nth-child(6),
.ejes .reveal:nth-child(6) { transition-delay: 0.40s; }

/* Sumate section (fuera del acordeón) */
.sumate .reveal:nth-child(2) { transition-delay: 0.1s; }
.sumate .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   SECTION-SPECIFIC COLOR OVERRIDES
   (needed when a component has hardcoded colors)
============================================================ */

/* 03 POR QUÉ — ahora cream, texto era blanco */
#porque .three-col { color: var(--navy); }

/* 04 CANDIDATOS — ahora red, componente diseñado para fondo claro */
#candidatos .candidate__stats,
#candidatos .candidate__stat    { border-color: rgba(255,255,255,0.2); }
#candidatos .stat-label         { color: rgba(255,255,255,0.5); }
#candidatos .stat-val           { color: var(--white); }
#candidatos .candidate__bio     { color: rgba(255,255,255,0.85); }

/* 05 LISTA — ahora cream, stats con texto blanco */
#lista .stats                   { border-color: rgba(0,0,0,0.12); }
#lista .stats__item             { border-color: rgba(0,0,0,0.12); }
#lista .stats__label            { color: rgba(0,0,0,0.45); }
#lista .stats__num              { color: var(--red); }
#lista .section__lead           { color: var(--navy); }

#compromisos .section__lead     { color: var(--navy); }

/* 08 COMPROMISOS — fondo rojo, ejes como cards blancas con acento navy */
#compromisos .ejes              { background: transparent; border: none; gap: 12px; }
#compromisos .eje               { background: var(--white); border-left: 4px solid var(--navy); padding: 28px 32px; }
#compromisos .eje__num          { color: rgba(27,32,62,0.4); }
#compromisos .eje__title        { color: var(--navy); }
#compromisos .eje__desc         { color: rgba(27,32,62,0.6); }

/* 09 PROPUESTAS — fondo cream, ejes como cards blancas con acento rojo */
#propuestas .ejes               { background: transparent; border: none; gap: 12px; }
#propuestas .eje                { background: var(--white); border-left: 4px solid var(--red); padding: 28px 32px; }
#propuestas .eje__title         { color: var(--navy); }
#propuestas .eje__desc          { color: rgba(27,32,62,0.6); }

/* ============================================================
   RESPONSIVE — TABLET
============================================================ */
@media (max-width: 1024px) {
  .acc-header {
    grid-template-columns: 160px 1fr;
    gap: 28px;
  }
  .acc-content {
    padding-left: calc(var(--pad-x) + 160px + 28px);
  }
  .candidate {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-h: 52px;
    --pad-x: 20px;
    --pad-y: 40px;
  }

  /* Nav */
  .nav__links { display: none; }

  /* Hero — dejar el ticker visible sin scrollear */
  .hero { min-height: calc(100svh - 48px); }
  .hero__main { padding: 28px var(--pad-x) 24px; gap: 16px; }

  /* Escudo — bajar para que quede a la misma altura visual que en desktop */
  .hero__escudo { top: 15%; }

  /* Accordion header */
  .acc-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section__label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .section__num { font-size: 40px; }
  .section__title { font-size: clamp(28px, 8vw, 48px); }

  /* Accordion content — no indentation on mobile */
  .acc-content {
    padding-left: var(--pad-x);
  }

  /* Timeline */
  .timeline__item { grid-template-columns: 72px 1fr; gap: 12px; padding: 16px 0; }
  .timeline__year { font-size: 22px; }

  /* Candidate */
  .candidate { grid-template-columns: 1fr; gap: 24px; }
  .candidate__photo { max-height: 300px; }
  .candidate__stats { grid-template-columns: 1fr; }
  .candidate__stat {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 12px 0;
  }
  .candidate__stat:last-child { border-bottom: none; padding-left: 0; }
  .candidate__stat:nth-child(2) { padding-left: 0; }

  /* Stats */
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__item:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-left: 0; padding-right: 24px;
  }
  .stats__item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-left: 24px; border-right: none;
  }
  .stats__num { font-size: 48px; }

  /* Ejes */
  .ejes { grid-template-columns: 1fr; }
  .eje  { padding: 24px 20px; }
  .eje__title { font-size: 26px; }

  /* Sumate */
  .sumate__details { grid-template-columns: 1fr 1fr; }
  .sumate__detail:nth-child(2) { border-right: none; }
  .sumate__detail:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-left: 0;
  }
  .sumate__detail:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.3);
  }

  /* Footer — mobile: redes → links → brand */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__social { order: 1; }
  .footer__pages  { order: 2; }
  .footer__brand  { order: 3; align-self: auto; }
  .footer__pages nav a { font-size: 14px; }
  .hero__logo { max-width: min(280px, 78vw); }

  /* Countdown mobile */
  .hero__countdown-label,
  .hero__countdown-event { display: none; }
  .hero__countdown { gap: 12px; padding: 12px var(--pad-x); }
  .hero__countdown-item { min-width: 44px; padding: 6px 4px 4px; }
  .hero__countdown-item span { font-size: 20px; }

  /* Número boxed mobile */
  .section__num--boxed { width: 56px; height: 56px; }

  /* Reduce animation distance */
  .reveal.from-left  { transform: translateX(-32px) translateY(14px); }
  .reveal.from-right { transform: translateX(32px)  translateY(14px); }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .acc-body { transition: none; }
  .ticker__track { animation: none; }
  .hero__taglines { animation: none; }

}
