/* ===== Tipografía: Swis721 Cn BT ===== */
@font-face { font-family: "Swiss721Cn"; src: url("../fonts/swisscl.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Swiss721Cn"; src: url("../fonts/swissc.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Swiss721Cn"; src: url("../fonts/swisscb.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Swiss721Cn"; src: url("../fonts/swissck.ttf") format("truetype"); font-weight: 900; font-display: swap; }

/* ===== Paleta ===== */
:root {
  --cream: #FFFDF4;
  --ink: #171719;
  --ink-2: #0f0f11;               /* barra de migas */
  --ink-3: #222226;               /* superficies sobre oscuro */
  --muted: rgba(23, 23, 25, .68);
  --line: rgba(23, 23, 25, .12);
  --cream-muted: rgba(255, 253, 244, .72);
  --cream-line: rgba(255, 253, 244, .14);
  /* acentos tomados del logo (uso mínimo) */
  --red: #E4202A; --yellow: #F7C51E; --green: #1FAA4B;
  --font: "Swiss721Cn", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --maxw: 1240px;
  --header-h: 108px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; line-height: 1.05; margin: 0; letter-spacing: .005em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ===== Barra superior ===== */
.topbar { background: var(--ink); color: var(--cream); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 46px; }
.topbar-links { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.topbar-links a { text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; opacity: .92; }
.topbar-links a:hover { opacity: 1; text-decoration: underline; }
.topbar-brand { font-weight: 900; font-size: 30px; letter-spacing: .04em; line-height: 1; }

/* ===== Cabecera ===== */
.header { background: var(--cream); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1540px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; height: var(--header-h); transition: height .25s; }
.header.compact .header-inner { height: 76px; }
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 76px; width: auto; transition: height .25s; }
.header.compact .brand-logo { height: 54px; }
.brand-divider { width: 2px; align-self: stretch; margin: 18px 0; background: var(--ink); }
.header.compact .brand-divider { margin: 12px 0; }
.brand-text { display: flex; flex-direction: column; font-weight: 700; font-size: 22px; line-height: 1.15; color: rgba(23,23,25,.78); }
.brand-text small { font-size: 14px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; color: var(--muted); }

.main-nav > ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: center; gap: 4px; }
.nav-item > a, .nav-row > a { position: relative; display: block; text-decoration: none; font-weight: 700; font-size: 20px; padding: 8px 0; }
.nav-item > a::after, .nav-row > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-item:hover .nav-row > a::after, .nav-item > a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.sub-toggle { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); display: flex; }
.caret { transition: transform .2s; }
.nav-item:hover .caret, .sub-open .caret { transform: rotate(180deg); }

/* Submenú desplegable */
.submenu { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -18px; min-width: 250px; background: var(--ink); box-shadow: 0 18px 40px rgba(23,23,25,.25); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
/* Los últimos submenús se abren hacia la izquierda para no salirse de la pantalla */
.nav-item:nth-last-child(-n+2) .submenu { left: auto; right: -18px; }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.submenu a::before { content: ""; width: 0; height: 2px; background: var(--cream); transition: width .2s; }
.submenu a:hover::before, .submenu a.active::before { width: 14px; }
.submenu a:hover { background: rgba(255,253,244,.06); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
.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); }

/* ===== Migas ===== */
.crumbbar { background: var(--ink-2); color: var(--cream); }
.crumbbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; padding: 0 32px; }
.crumbs { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 20px; }
.crumbs a { display: flex; color: var(--cream); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumb-section { display: inline-flex; align-items: center; gap: 22px; color: var(--cream-muted); }
.crumb-section[hidden] { display: none; }
.crumbs .chev { opacity: .7; flex: none; }
.socials { display: flex; gap: 22px; }
.socials a { display: flex; color: var(--cream); opacity: .9; transition: opacity .2s, transform .2s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.hero-left { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; display: flex; align-items: center; }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--cream); }
.hero-content { position: relative; padding: 64px 32px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-muted); }
.flag { display: inline-flex; flex-direction: column; gap: 3px; }
.flag i { display: block; width: 22px; height: 3px; border-radius: 2px; }
.flag i:nth-child(1) { background: var(--red); }
.flag i:nth-child(2) { background: var(--yellow); }
.flag i:nth-child(3) { background: var(--green); }
.hero h1 { font-size: clamp(46px, 6vw, 76px); margin-bottom: 34px; }
.hero-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hero-links a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 23px; }
.hero-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow { flex: none; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; position: relative; transition: transform .2s; }
.arrow::before { content: ""; position: absolute; left: 4px; right: 5px; top: 8px; height: 2px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 4px; top: 5px; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.hero-links a:hover .arrow { transform: translateX(4px); }

.hero-right { position: relative; background: #2a2a2e; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.diag { position: absolute; width: 140%; height: 70%; transform: rotate(-45deg); }
.d1 { background: rgba(255,253,244,.05); left: -60%; top: 5%; }
.d2 { background: rgba(255,253,244,.07); left: 10%; top: 45%; }
.d3 { background: rgba(23,23,25,.35); left: -30%; top: 75%; }
.d4 { background: rgba(255,253,244,.04); left: 35%; top: -40%; transform: rotate(45deg); }
.hero-logo { position: relative; width: min(70%, 460px); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-right.has-photo { background: var(--ink); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.hero-right.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(23,23,25,.55), rgba(23,23,25,0) 55%); }

/* ===== Cifras ===== */
.stats { background: var(--cream); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 46px; font-weight: 900; line-height: 1; }
.stat sup { font-size: .45em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 17px; }
.stat { transition: background .45s ease, color .45s ease; }
.stat span { transition: color .45s ease; }
.stat.active { background: var(--ink); color: var(--cream); }
.stat.active span { color: var(--cream-muted); }

/* Recorrido de la ISS bajo las cifras */
.stats-track { position: relative; height: 84px; }
.orbit { position: absolute; left: 32px; right: 32px; top: 50%; z-index: 1; height: 0; border-top: 2px dashed var(--line); }
.orbit-done { position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--ink); }
.stats-track .iss { position: absolute; top: -1px; left: 0; width: clamp(70px, 7vw, 110px); transform: translate(-50%, -50%); pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.18)); }

/* ===== Secciones ===== */
.section { padding: 96px 0; }
.section-alt { background: #F5F2E6; }
.section-dark { background: var(--ink); color: var(--cream); }
.section-head { margin-bottom: 44px; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-left: 34px; position: relative; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: currentColor; }
.section-dark .eyebrow { color: var(--cream-muted); }
.section-head h2 { font-size: clamp(38px, 4.4vw, 58px); margin-top: 10px; }
.lead { font-size: 22px; line-height: 1.45; margin-top: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; text-decoration: none; margin-top: 10px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split .section-head { margin-bottom: 0; }

/* Nosotros / inicio */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--ink); z-index: -1; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-text p, .split p { color: rgba(23,23,25,.85); }
.mv-large { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--cream-line); }
.mv-large article { padding: 36px 40px 10px 0; }
.mv-large article + article { padding-left: 40px; border-left: 1px solid var(--cream-line); }
.mv-num { font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--cream-muted); }
.mv-large h3 { font-size: 40px; margin: 8px 0 12px; }
.mv-large p { font-size: 22px; line-height: 1.45; margin: 0; }

/* Alianzas */
.partner-logo { background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 18px; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-logo-full { padding: 0; overflow: hidden; }
.partner-logo-full img { width: 100%; height: 100%; object-fit: cover; }
.partner-logo-lg { padding: 40px; aspect-ratio: 4 / 3; }
.partner-main { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding-bottom: 56px; margin-bottom: 48px; border-bottom: 2px solid var(--ink); }
.partner-tag { display: inline-block; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; }
.partner-main h3 { font-size: clamp(30px, 3vw, 40px); margin: 14px 0 16px; }
.partner-main p:not(.lead) { color: rgba(23,23,25,.85); margin-bottom: 0; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.partner { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.partner h3 { font-size: 26px; margin-bottom: 8px; }
.partner p { margin: 0; color: var(--muted); }

/* Explora (inicio) */
.explore { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.explore-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 76px; text-decoration: none; border-right: 1px solid var(--line); transition: background .25s, color .25s; }
.explore-card:last-child { border-right: 0; }
.explore-num { font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.explore-card h3 { font-size: 32px; }
.explore-card p { margin: 0; color: var(--muted); }
.explore-card .arrow { position: absolute; left: 26px; bottom: 26px; width: 30px; height: 30px; }
.explore-card .arrow::before { left: 6px; right: 7px; top: 12px; }
.explore-card .arrow::after { right: 6px; top: 9px; }
.explore-card:hover { background: var(--ink); color: var(--cream); }
.explore-card:hover p, .explore-card:hover .explore-num { color: var(--cream-muted); }
.explore-card:hover .arrow { transform: translateX(6px); }

/* Actividades */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23,23,25,.14); }
.card-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 22px 26px; }
.card-date { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 26px; margin: 6px 0 8px; }
.card p { margin: 0; color: var(--muted); }
a.card { text-decoration: none; }
.card .link-arrow { font-size: 17px; margin-top: 14px; }

/* Destacado: Constelación LATAM Week */
.feature-banner { margin: 0 0 40px; border: 1px solid var(--line); }
.feature-banner img { width: 100%; height: auto; }
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.feature-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.feature-facts li { padding: 18px 16px 0 0; }
.feature-facts b { display: block; font-size: 36px; font-weight: 900; line-height: 1; }
.feature-facts span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.speakers { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.speakers li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.speakers .day { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.speakers strong { display: block; font-size: 21px; line-height: 1.2; }
.speakers small { font-size: 15px; color: var(--muted); }
.feature-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; }
.feature-photos .gallery-item { aspect-ratio: 16 / 9; }
.feature-photos .gallery-item img { opacity: 1; }
.feature-photos.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-photos.cols-2 .gallery-item { aspect-ratio: 4 / 3; }
.feature-photo { margin: 0; }
.feature-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-photo-tall img { aspect-ratio: 4 / 5; }
.event-logo { height: 84px; width: auto; }
.section-dark .feature-facts { border-top-color: var(--cream); }
.section-dark .feature-facts span { color: var(--cream-muted); }

/* NEXUS-SAT */
.mission-patch { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 24px rgba(23,23,25,.18); }
.nexus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
.module-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.module-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.module-list b { font-size: 21px; line-height: 1.2; }
.module-list span { color: rgba(23,23,25,.8); font-size: 16px; }
.split .tags { margin-top: 24px; }

/* Modelos isométricos animados con el scroll (js/iso.js) */
.iso-stage { margin: 0; display: flex; flex-direction: column; }
.iso-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.iso-stage figcaption { padding: 10px 0 0; font-size: 15px; color: var(--muted); display: flex; justify-content: center; gap: 8px; }

/* Bloque que queda fijo en pantalla mientras se recorre su sección (la animación avanza con el scroll) */
.pin-track::after { content: ""; display: block; height: 90vh; }   /* recorrido mientras el bloque queda fijo */
.pin { position: sticky; top: calc(76px + 24px); align-items: center; }
.iso-leader { stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; stroke-dasharray: 3 3; }
.iso-dot { fill: var(--ink); }
.iso-title { font-family: var(--font); font-size: 20px; font-weight: 900; fill: var(--ink); }
.iso-sub { font-family: var(--font); font-size: 14px; fill: var(--muted); }
.iso-chip { font-family: var(--font); font-weight: 700; fill: #fff; letter-spacing: .06em; }
.iso-wing { transition: opacity .2s; }

/* BAM&TW 2026 */
.bam-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding-bottom: 56px; margin-bottom: 48px; border-bottom: 2px solid var(--ink); }
.bam-logo { background: #fff; border: 1px solid var(--line); padding: 40px 32px; display: flex; align-items: center; justify-content: center; }
.bam-logo img { width: 100%; height: auto; }
.bam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.block-title { font-size: 28px; margin-bottom: 18px; }
.block-title:not(:first-child) { margin-top: 40px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1.5px solid var(--ink); padding: 6px 14px; font-weight: 700; font-size: 17px; }
.plan { list-style: none; margin: 0; padding: 0; counter-reset: p; border-top: 2px solid var(--ink); }
.plan li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; font-size: 15px; font-weight: 700; letter-spacing: .1em; color: var(--muted); padding-top: 4px; }
.plan b { font-size: 21px; line-height: 1.2; }
.plan span { color: var(--muted); font-size: 16px; }
.calls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-bottom: 56px; }
.call { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 28px; text-decoration: none; border-right: 1px solid var(--line); transition: background .25s, color .25s; }
.call:last-child { border-right: 0; }
.call-tag { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.call h4 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.1; }
.call p { margin: 0; color: rgba(23,23,25,.85); font-size: 16px; }
.call ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.call li { margin-bottom: 4px; }
.call:hover { background: var(--ink); color: var(--cream); }
.call:hover p, .call:hover ul, .call:hover .call-tag { color: var(--cream-muted); }
.plan-dates li { grid-template-columns: 48px 1fr; }
.bam-grid p { color: rgba(23,23,25,.85); }
.bam-grid .link-arrow { display: flex; width: fit-content; margin-top: 18px; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery-item { padding: 0; border: 0; background: var(--ink-3); cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .9; }
.gallery-item:hover img { transform: scale(1.05); opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,15,17,.94); display: flex; align-items: center; justify-content: center; padding: 32px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; cursor: zoom-out; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 24px; background: none; border: 0; color: var(--cream); font-size: 44px; line-height: 1; cursor: pointer; }

/* Proyectos */
.project-list { border-top: 2px solid currentColor; }
.project-list article { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.project-list h3 { font-size: 26px; }
.project-list p { margin: 0; }
.project-list p a { font-weight: 700; text-underline-offset: 3px; }

/* Únete */
.big-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: n; }
.big-list li { counter-increment: n; display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 700; line-height: 1.2; }
.big-list li::before { content: counter(n, decimal-leading-zero); font-size: 15px; letter-spacing: .14em; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.benefits article { border-top: 2px solid var(--ink); padding-top: 20px; }
.benefits h3 { font-size: 28px; margin-bottom: 10px; }
.benefits p { margin: 0; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--cream-line); padding-top: 22px; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--cream); border-radius: 50%; font-weight: 900; font-size: 22px; margin-bottom: 16px; }
.steps h3 { font-size: 28px; margin-bottom: 8px; }
.steps p { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.cta-band { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(34px, 3.8vw, 52px); margin-top: 10px; max-width: 720px; }
.cta-band .cta { margin-top: 0; }
.btn { display: inline-block; padding: 14px 28px; font-weight: 700; font-size: 19px; text-decoration: none; border: 2px solid var(--cream); transition: background .2s, color .2s; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--cream); }
.btn-outline { color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.cta-tight { margin-top: 28px; }
.btn-outline:hover { background: var(--cream); color: var(--ink); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.contact-list a { font-weight: 700; text-underline-offset: 3px; }
.social-cards { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cream-line); }
.social-card { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; text-decoration: none; border-right: 1px solid var(--cream-line); transition: background .2s, color .2s; }
.social-card:last-child { border-right: 0; }
.social-card span { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-muted); }
.social-card strong { font-size: 26px; font-weight: 900; }
.social-card:hover { background: var(--cream); color: var(--ink); }
.social-card:hover span { color: var(--muted); }
.map { border: 2px solid var(--ink); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(1) contrast(1.05); }

/* Textos sobre secciones oscuras */
.section-dark p, .section-dark .lead { color: var(--cream-muted); }
.section-dark strong { color: var(--cream); }
.section-dark .project-list article { border-color: var(--cream-line); }

/* Footer */
.footer { background: var(--ink); color: var(--cream); padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 28px; }
.footer-logo { width: 220px; }
.footer-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.footer-col-title { display: block; font-weight: 900; font-size: 20px; text-decoration: none; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; line-height: 1.3; }
.footer-col li a { text-decoration: none; color: var(--cream-muted); font-size: 16px; }
.footer-col a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--cream-line); color: var(--cream-muted); }
.to-top { text-decoration: none; font-size: 15px; }

.container, .hero-content, .hero-logo { position: relative; z-index: 2; }
.topbar, .crumbbar { position: relative; z-index: 3; }
/* ===== Página en modo oscuro (Proyectos activos) ===== */
body.theme-dark { background: var(--ink); }
.theme-dark main { background: var(--ink); color: var(--cream); }
.theme-dark main .section { background: transparent; }
.theme-dark main .section-alt { background: #1f1f23; }
.theme-dark main .eyebrow, .theme-dark main .iso-stage figcaption { color: var(--cream-muted); }
.theme-dark main p, .theme-dark main .lead { color: var(--cream-muted); }
.theme-dark main strong, .theme-dark main em { color: var(--cream); }
.theme-dark main .module-list { border-top-color: var(--cream); }
.theme-dark main .module-list li { border-bottom-color: var(--cream-line); }
.theme-dark main .module-list span { color: var(--cream-muted); }
.theme-dark main .tags li { border-color: var(--cream); }
.theme-dark .iso-leader { stroke: var(--cream); stroke-opacity: .45; }
.theme-dark .iso-dot, .theme-dark .iso-title { fill: var(--cream); }
.theme-dark .iso-sub { fill: var(--cream-muted); }
.theme-dark main .mission-patch { box-shadow: 0 0 0 2px rgba(255,253,244,.15), 0 10px 24px rgba(0,0,0,.5); }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-height: 700px) {
  .pin { position: static; }
  .pin-track::after { display: none; }
}
/* Menú con 7 entradas: más compacto en pantallas medianas y menú ☰ por debajo de 1280 px */
@media (max-width: 1600px) {
  .main-nav > ul { gap: 18px; }
  .nav-item > a, .nav-row > a { font-size: 18px; }
  .sub-toggle { padding: 2px; }
  .brand { gap: 16px; }
  .brand-logo { height: 64px; }
  .brand-text { font-size: 18px; }
  .brand-text small { font-size: 12px; }
}
@media (max-width: 1280px) {
  :root { --header-h: 84px; }
  .brand-logo { height: 56px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s; }
  .main-nav.open { max-height: calc(100vh - 80px); overflow-y: auto; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .nav-item { border-top: 1px solid var(--line); }
  .nav-row { justify-content: space-between; padding-right: 20px; }
  .nav-item > a, .nav-row > a { padding: 14px 32px; }
  .nav-item > a::after, .nav-row > a::after { display: none; }
  .main-nav a.active { text-decoration: underline; text-underline-offset: 5px; }
  .sub-toggle { padding: 10px; }
  .nav-item:hover .caret { transform: none; }
  .nav-item.sub-open .caret { transform: rotate(180deg); }
  .submenu, .nav-item:nth-last-child(-n+2) .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 4px 0 12px; }
  .sub-open .submenu { display: block; }
  .submenu a { padding: 10px 44px; font-size: 17px; }
}
@media (max-width: 1240px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 280px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .split { grid-template-columns: 1fr; gap: 32px; }
  .explore, .benefits, .social-cards { grid-template-columns: repeat(2, 1fr); }
  .explore-card:nth-child(2) { border-right: 0; }
  .explore-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .social-card:nth-child(2) { border-right: 0; }
  .social-card:nth-child(-n+2) { border-bottom: 1px solid var(--cream-line); }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .partner-main { grid-template-columns: 1fr; gap: 32px; }
  .partner-logo-lg { max-width: 420px; }
  .partners { grid-template-columns: 1fr; }
  .bam-head, .bam-grid { grid-template-columns: 1fr; gap: 32px; }
  .nexus-grid { grid-template-columns: 1fr; gap: 40px; }
  .pin { position: static; }
  .pin-track::after { display: none; }
  .calls { grid-template-columns: repeat(2, 1fr); }
  .call:nth-child(2) { border-right: 0; }
  .call:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .bam-logo { max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container, .topbar-inner, .crumbbar-inner, .header-inner { padding-left: 16px; padding-right: 16px; }
  .topbar-links { gap: 18px; }
  .topbar-links a { font-size: 13px; }
  .topbar-brand { font-size: 22px; margin-left: 12px; }
  .brand { gap: 12px; }
  .brand-logo { height: 42px; }
  .brand-divider, .header.compact .brand-divider { margin: 0; height: 40px; align-self: center; }
  .brand-text { font-size: 15px; }
  .brand-text small { display: none; }
  .nav-item > a, .nav-row > a { padding: 14px 16px; }
  .nav-row { padding-right: 6px; }
  .submenu a { padding: 10px 28px; }
  .crumbs { gap: 10px; font-size: 16px; min-width: 0; }
  .crumb-section { gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; }
  .crumbbar .socials { gap: 12px; flex: none; }
  .crumbbar .socials svg { width: 19px; height: 19px; }
  .hero-content { padding: 48px 16px; }
  .hero-links a { font-size: 19px; }
  .stat { padding: 26px 12px; }
  .stat b { font-size: 34px; }
  .section { padding: 64px 0; }
  .cards, .explore, .benefits, .social-cards, .mv-large { grid-template-columns: 1fr; }
  .explore-card, .explore-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .social-card, .social-card:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--cream-line); }
  .mv-large article, .mv-large article + article { padding: 28px 0 10px; border-left: 0; }
  .mv-large article + article { border-top: 1px solid var(--cream-line); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .feature-photos, .feature-photos.cols-2 { grid-template-columns: 1fr; }
  .module-list li { grid-template-columns: 1fr; gap: 4px; }
  .mission-patch { width: 84px; height: 84px; }
  .calls { grid-template-columns: 1fr; }
  .call, .call:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .event-logo { height: 60px; }
  .feature-photo-tall img { aspect-ratio: 4 / 3; }
  .partner { grid-template-columns: 96px 1fr; gap: 16px; }
  .partner h3 { font-size: 22px; }
  .feature-facts b { font-size: 28px; }
  .project-list article { grid-template-columns: 1fr; gap: 6px; }
  .big-list li { font-size: 24px; }
  .about-photo::after { inset: 10px -10px -10px 10px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .map iframe { height: 320px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
