/* ============================================================
   LogiRed — Congreso Internacional de Logística Portuaria 2026
   Paleta y tipografía oficiales (Lineamientos de marca)
   ============================================================ */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: 'Barlow';
  src: url('../assets/fonts/Barlow-Regular.woff2') format('woff2'),
       url('../assets/fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../assets/fonts/Barlow-Medium.woff2') format('woff2'),
       url('../assets/fonts/Barlow-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../assets/fonts/Barlow-SemiBold.woff2') format('woff2'),
       url('../assets/fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../assets/fonts/Barlow-ExtraBold.woff2') format('woff2'),
       url('../assets/fonts/Barlow-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Paleta oficial */
  --navy: #042c53;
  --blue: #185fa5;
  --sky: #378add;
  --pale-blue: #b5d4f4;
  --orange-dark: #ba7517;
  --orange: #ef9f27;
  --orange-light: #fac775;
  --green-dark: #406e58;
  --green: #5c9c76;
  --cream: #f1efe8;
  --gray: #888780;

  /* Derivados */
  --pale-blue-soft: #dcebfa;
  --green-soft: #ddeee4;
  --white: #ffffff;
  --ink: #0b2540;

  /* Tipografía */
  --font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  /* Espaciado (escala 8px) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  /* Otros */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(4, 44, 83, .08);
  --shadow-md: 0 10px 30px rgba(4, 44, 83, .12);
  --shadow-lg: 0 24px 48px rgba(4, 44, 83, .18);
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--blue); text-decoration: none; }

ul { list-style: none; }

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

::selection { background: var(--orange-light); color: var(--navy); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .01em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.99); }

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(239, 159, 39, .35);
}
.btn--primary:hover { background: var(--orange-light); box-shadow: 0 10px 24px rgba(239, 159, 39, .45); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--blue); }

.btn--sm { min-height: 44px; padding: 8px 22px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 16px 40px; font-size: 18px; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav__logo img { width: 140px; height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__links > a:not(.btn) {
  color: var(--navy);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 4px;
  position: relative;
}
.nav__links > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 3px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (composición del flyer) ---------- */
.hero {
  position: relative;
  background: var(--cream);
  padding-top: calc(var(--nav-h) + var(--space-6));
  padding-bottom: var(--space-8);
  overflow: hidden;
}
.hero__trama {
  position: absolute;
  inset: 0;
  background: url('../assets/img/trama.webp') right center / cover no-repeat;
  opacity: .9;
  pointer-events: none;
}
/* Trama animada: el canvas reemplaza a la imagen estática cuando hay motion */
.net-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
html.gsap-motion .net-canvas { display: block; }
html.gsap-motion .hero__trama { display: none; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 175px minmax(240px, 330px) 1fr;
  gap: var(--space-6) var(--space-8);
  align-items: center;
}

/* Riel izquierdo: logos institucionales + conectores tipo nodo */
.hero__rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  align-self: stretch;
  justify-content: center;
}
.hero__rail-logo { width: 100%; max-width: 175px; height: auto; }
.hero__rail-logo--corfo { max-width: 160px; }
.hero__code {
  color: var(--sky);
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 15px;
}
.rail-connector {
  position: relative;
  width: 3px;
  flex: 1;
  min-height: 34px;
  border-radius: 2px;
  margin-left: 12px;
}
.rail-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid;
  background: var(--cream);
}
.rail-connector--orange { background: var(--orange); }
.rail-connector--orange::after { border-color: var(--orange); bottom: -18px; }
.rail-connector--green { background: var(--green); }
.rail-connector--green::after { border-color: var(--green); top: -18px; }

/* Arco central con foto dual */
.hero__arch img {
  width: 100%;
  max-width: 330px;
  filter: drop-shadow(0 22px 34px rgba(4, 44, 83, .22));
}

/* Lockup LogiRed */
.hero__lockup {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.hero__lockup-emblem { width: 86px; height: auto; flex-shrink: 0; }
.hero__lockup-logo { width: 230px; height: auto; margin-bottom: 6px; }
.hero__lockup-text p {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: .02em;
}

.hero__title {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

/* Lockups de nodos */
.hero__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
}
.hero__node {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__node img { width: 46px; height: auto; flex-shrink: 0; }
.hero__node p {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: .03em;
  max-width: 21ch;
}
.hero__node--sea p { color: var(--blue); }
.hero__node--land p { color: var(--green); }
.hero__node-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gray);
}
.hero__node-date {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Countdown */
.countdown { margin-top: var(--space-6); }
.countdown__label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  margin-bottom: var(--space-1);
}
.countdown__grid {
  display: flex;
  gap: var(--space-2);
}
.countdown__item {
  background: var(--white);
  border: 1px solid rgba(4, 44, 83, .1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 78px;
  padding: 10px 12px 12px;
  text-align: center;
}
.countdown__num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.countdown__unit {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray);
}

/* ---------- Banda de fechas ---------- */
.dateband {
  background: var(--navy);
  color: var(--white);
  padding: 18px 0;
}
.dateband__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  font-size: 18px;
  letter-spacing: .02em;
}
.dateband__item strong { font-weight: 800; color: var(--orange-light); }
.dateband__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Secciones genéricas ---------- */
.section { padding: var(--space-12) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); }

.section__kicker {
  color: var(--orange-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 14px;
  margin-bottom: var(--space-1);
}
.section__kicker--center { text-align: center; }
.section__kicker--light { color: rgba(4, 44, 83, .75); }
.section__kicker--oncream { color: var(--orange-light); }

.section__title {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  max-width: 24ch;
}
.section__title--center { text-align: center; margin-inline: auto; }
.section__title--light { color: var(--navy); }
.section__title--onnavy { color: var(--white); }

.logi { color: var(--orange); }
.red { color: var(--navy); }
.logi--onnavy { color: var(--orange); }
.red--onnavy { color: var(--white); }

/* ---------- El Congreso ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: var(--space-8);
  align-items: center;
}
.about__media img {
  border-radius: 0 0 200px 200px;
  box-shadow: var(--shadow-lg);
}
.about__content p + p { margin-top: var(--space-2); }
.about__content { color: #3c5166; }
.about__content strong { color: var(--navy); }

/* Intro destacada del resumen ejecutivo */
.about__intro {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
}

/* Hitos: los dos encuentros del congreso */
.milestones {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.milestone {
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-sm);
}
.milestone--sea { background: var(--pale-blue-soft); }
.milestone--land { background: var(--green-soft); }
.milestone__date {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 16px;
  margin-bottom: 4px;
}
.milestone--sea .milestone__date { color: var(--blue); }
.milestone--land .milestone__date { color: var(--green-dark); }
.milestone p:not(.milestone__date) { font-size: 15.5px; color: #33475c; }

/* Sección temáticas y alcance */
.about.section { padding-bottom: var(--space-6); }
.scope.section { padding-top: var(--space-6); }
.scope__inner { text-align: center; }
.scope .section__title { max-width: 26ch; }
.scope__text {
  max-width: 74ch;
  margin: 0 auto var(--space-4);
  color: #3c5166;
  font-size: 18px;
}
.scope__quote {
  max-width: 66ch;
  margin: var(--space-6) auto 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-2);
}
.topics--center { justify-content: center; }
.topics li {
  background: var(--pale-blue-soft);
  color: var(--navy);
  border: 1px solid var(--pale-blue);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.topics li:hover { background: var(--pale-blue); transform: translateY(-2px); }

/* ---------- Nodos ---------- */
.nodes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.node {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 2px solid;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.node:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.node--sea { border-color: var(--blue); background: var(--pale-blue-soft); }
.node--land { border-color: var(--green); background: var(--green-soft); }

.node__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.node__icon { width: 64px; height: auto; flex-shrink: 0; }
.node__name { font-size: 24px; font-weight: 800; }
.node--sea .node__name { color: var(--blue); }
.node--land .node__name { color: var(--green-dark); }
.node__date { font-weight: 600; color: var(--navy); }
.node__desc { color: #33475c; }
.node__desc strong { color: var(--navy); }
.node__place {
  margin-top: var(--space-3);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
}

/* ---------- Audiencias (banda naranja) ---------- */
.audience { background: var(--orange); }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(4, 44, 83, .15);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(4, 44, 83, .22); }
.card__title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: var(--space-2);
}
.card__text { color: #43566a; flex: 1; margin-bottom: var(--space-3); }

/* ---------- Programa ---------- */
.program__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.schedule {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.schedule--sea { border-color: var(--blue); }
.schedule--land { border-color: var(--green); }
.schedule__head {
  padding: 16px 24px;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.schedule--sea .schedule__head { background: var(--pale-blue-soft); color: var(--blue); }
.schedule--land .schedule__head { background: var(--green-soft); color: var(--green-dark); }
.schedule__list { padding: var(--space-2) var(--space-3) var(--space-3); }
.schedule__list li {
  padding: 12px 4px;
  border-bottom: 1px dashed rgba(4, 44, 83, .15);
  color: #33475c;
}
.schedule__list li:last-child { border-bottom: 0; }
.schedule__list strong {
  color: var(--navy);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}
.program__note {
  margin-top: var(--space-3);
  text-align: center;
  color: var(--gray);
  font-size: 15px;
}

/* ---------- Transmisión ---------- */
.stream__row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: var(--space-8);
  align-items: center;
}
.stream__row + .stream__row { margin-top: var(--space-12); }
.stream__row--reverse { grid-template-columns: 1fr minmax(220px, 320px); }
.stream__row--reverse .stream__media { order: 2; }
.stream__row--reverse .stream__content { order: 1; }

.stream__media img {
  border-radius: 0 0 180px 180px;
  box-shadow: var(--shadow-lg);
}
.stream__heading {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.stream__live { width: 48px; height: 48px; flex-shrink: 0; }
.stream__heading h3 {
  color: var(--navy);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}
.stream__tag {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--orange-dark);
  margin-top: 4px;
}
.stream__embed {
  aspect-ratio: 16 / 9;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)),
    url('../assets/img/trama.webp') center / cover;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  padding: var(--space-3);
}

/* ---------- Speakers ---------- */
.speakers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.speaker {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.speaker:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, .35); }
.speaker__photo {
  width: 120px; height: 120px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: #dcd9cf;
  color: #a09d93;
  display: grid;
  place-items: center;
}
.speaker__name {
  color: var(--orange-dark);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}
.speaker__role {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--space-2);
}
.speaker__bio { color: #55534b; font-size: 14px; line-height: 1.55; }

/* ---------- Organizan ---------- */
.partners { padding-bottom: var(--space-8); }
.partners__logos {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
}
.partners__logos img { max-width: 900px; width: 100%; }

/* ---------- CTA final ---------- */
.finalcta {
  position: relative;
  background: var(--cream);
  padding: var(--space-12) 0;
  overflow: hidden;
  text-align: center;
}
.hero__trama--cta { transform: scaleX(-1); opacity: .7; }
.finalcta__inner { position: relative; }
.finalcta__title {
  color: var(--navy);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.finalcta__text {
  color: #3c5166;
  max-width: 52ch;
  margin: 0 auto var(--space-4);
  font-size: 18px;
}

/* ---------- Página interior (Noticias) ---------- */
.pagehero {
  position: relative;
  background: var(--cream);
  padding: calc(var(--nav-h) + var(--space-6)) 0 var(--space-6);
  overflow: hidden;
}
.pagehero__inner { position: relative; }
.pagehero .section__title { margin-bottom: var(--space-1); }
.pagehero__lead { color: #3c5166; max-width: 60ch; font-size: 18px; }

/* Tarjetas de noticias */
.news { padding: var(--space-8) 0 var(--space-12); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(4, 44, 83, .1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 4px solid var(--orange);
}
.news-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-3);
}
.news-card__meta {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange-dark);
  margin-bottom: var(--space-1);
}
.news-card__title {
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}
.news-card__excerpt { color: #43566a; font-size: 15px; flex: 1; margin-bottom: var(--space-2); }
.news-card__more {
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
}
.news-card:hover .news-card__more { text-decoration: underline; }

/* Artículo */
.article { padding: var(--space-8) 0 var(--space-12); }
.article__wrap { max-width: 760px; margin-inline: auto; }
.article__meta {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange-dark);
  margin-bottom: var(--space-1);
}
.article__title {
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.article__cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
}
.article__body p { color: #33475c; margin-bottom: var(--space-2); }
.article__body strong { color: var(--navy); }
.article__body h2 {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  margin: var(--space-4) 0 var(--space-2);
}
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-4);
  font-weight: 600;
}
.article__back:hover { text-decoration: underline; }
.nav__links a.is-active { color: var(--orange-dark); font-weight: 600; }

/* ---------- Modal de inscripción ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-3);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 44, 83, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal__card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(4, 44, 83, .35);
  padding: var(--space-6) var(--space-4) var(--space-4);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__card { opacity: 1; transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.modal__close:hover { background: var(--orange-light); transform: rotate(90deg); }

.modal__kicker { text-align: center; }
.modal__title {
  color: var(--navy);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.modal__text {
  color: #43566a;
  max-width: 46ch;
  margin: 0 auto var(--space-4);
  font-size: 16px;
}
.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.modal__event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-3);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.modal__event:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.modal__event--sea { background: var(--pale-blue-soft); }
.modal__event--sea:hover { border-color: var(--blue); }
.modal__event--land { background: var(--green-soft); }
.modal__event--land:hover { border-color: var(--green); }
.modal__event img { width: 56px; height: auto; margin-bottom: 6px; }
.modal__event-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
}
.modal__event-name {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1.25;
}
.modal__event--sea .modal__event-name { color: var(--blue); }
.modal__event--land .modal__event-name { color: var(--green-dark); }
.modal__event-date {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: var(--space-1);
}
.modal__event-btn { margin-top: auto; }

@media (max-width: 640px) {
  .modal__grid { grid-template-columns: 1fr; }
  .modal__card { padding: var(--space-6) var(--space-3) var(--space-3); }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .85); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0 var(--space-6);
}
.footer__logo {
  width: 160px;
  margin-bottom: var(--space-2);
  filter: brightness(0) invert(1);
}
.footer__brand p { font-size: 15px; max-width: 40ch; }
.footer__col h3 {
  color: var(--orange-light);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-2);
}
.footer__col li { padding: 5px 0; font-size: 15px; }
.footer__col a { color: rgba(255, 255, 255, .85); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--orange-light); }
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: var(--space-2) 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Estado inicial de animaciones (solo con JS + motion OK) ---------- */
html.gsap-motion [data-reveal],
html.gsap-motion [data-hero] {
  opacity: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .speakers__grid { grid-template-columns: repeat(2, 1fr); }
  .audience__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .news__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(220px, 300px) 1fr; }
  .hero__rail {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
  .hero__rail-logo { width: auto; max-height: 64px; max-width: 160px; }
  .rail-connector { display: none; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-4); }
  .hero__content { order: 1; }
  .hero__arch { order: 2; }
  .hero__rail { order: 3; grid-row: auto; }
  .hero__arch { margin-inline: auto; }
  .hero__arch img { max-width: 230px; }
  .hero__lockup { justify-content: center; }
  .hero__lockup-text { text-align: left; }
  .hero__nodes { justify-content: center; }
  .hero__node { text-align: left; }
  .hero__rail { justify-content: center; flex-wrap: wrap; gap: var(--space-3); }
  .hero__actions, .countdown__grid { justify-content: center; }
  .hero__trama { opacity: .45; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; margin-inline: auto; }

  .nodes__grid, .program__grid { grid-template-columns: 1fr; }

  .stream__row, .stream__row--reverse { grid-template-columns: 1fr; gap: var(--space-4); }
  .stream__row--reverse .stream__media { order: 0; }
  .stream__media { max-width: 300px; margin-inline: auto; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-4); }

  /* Menú móvil */
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) var(--space-3) var(--space-3);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__links > a:not(.btn) {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(4, 44, 83, .08);
  }
  .nav__cta { margin-top: var(--space-2); }
  .nav { background: rgba(255, 255, 255, .92); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .container { width: min(1160px, 100% - 32px); }
  .speakers__grid { grid-template-columns: 1fr; }
  .countdown__item { min-width: 64px; padding: 8px 8px 10px; }
  .countdown__num { font-size: 24px; }
  .section { padding: var(--space-8) 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
