/* ═══════════════════════════════════════════
   POPCORN THERAPEUTICS — Shared Stylesheet
   Paleta: Navy #153C5F | Steel #6E8DA4 | Sand #EACFA9 | BG #F3F3F3
   Fuente: PopcornTherapeutics_DeckColumbusVC.pptx
═══════════════════════════════════════════ */

:root {
  --navy:       #153C5F;
  --navy-mid:   #5D788E;
  --navy-dark:  #0C2340;
  --steel:      #6E8DA4;
  --sand:       #EACFA9;
  --sand-dark:  #D2BA98;
  --bg:         #F3F3F3;
  --white:      #FFFFFF;
  --text:       #153C5F;
  --muted:      #5D788E;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;
  --nav-h:      88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utilities ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-label.sand  { color: var(--sand); }
.section-label.steel { color: var(--steel); }
.section-label.navy  { color: var(--navy); opacity: 0.55; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; }
h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
}
h2.white { color: var(--white); }
h2.navy  { color: var(--navy); }
h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary:hover { background: var(--steel); border-color: var(--steel); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.45);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--sand); }

/* Section backgrounds */
.section-dark  { background: var(--navy);      color: var(--white); padding: 96px 0; }
.section-light { background: var(--white);                          padding: 96px 0; }
.section-off   { background: var(--bg);                             padding: 96px 0; }
.section-darker { background: var(--navy-dark); color: var(--white); padding: 96px 0; }

/* Reveal animations — initial state (GSAP drives to visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(21,60,95,0.08);
  height: var(--nav-h);
  will-change: transform;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 44px; width: auto; display: block; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--steel); }
.nav-links a.is-active { color: var(--steel); border-bottom: 2px solid var(--steel); padding-bottom: 2px; }
.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 9px 22px;
}
.nav-links a.nav-cta:hover { background: var(--steel); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  background: var(--navy);
  padding: 48px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 0 48px;
  flex: 1;
  min-width: 180px;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--sand);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(110,141,164,0.35);
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-dark { background: var(--navy); color: var(--white); }
.card-sand { background: var(--sand); color: var(--navy); }
.card-off  { background: var(--bg);   color: var(--navy); border: 1px solid rgba(21,60,95,0.08); }

.card-icon { font-size: 1.8rem; opacity: 0.7; }
.card h3   { font-size: 1rem; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(234,207,169,0.2); }
.card p    { font-size: 1rem; line-height: 1.65; opacity: 0.85; }
.card-tag {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  border-bottom: 1px solid rgba(234,207,169,0.3);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.card-tag.navy-tag { color: var(--navy); border-color: rgba(21,60,95,0.15); }

/* ═══════════════════════════════════════════
   PIPELINE TABLE
═══════════════════════════════════════════ */
.pipeline-table-wrap { overflow-x: auto; margin-top: 40px; }
.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.pipeline-table thead tr { border-bottom: 2px solid var(--navy); }
.pipeline-table th {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21,60,95,0.5);
  padding: 12px 16px;
  text-align: center;
}
.pipeline-table th:nth-child(1),
.pipeline-table th:nth-child(2) { text-align: left; }
.pipeline-table tbody tr {
  border-bottom: 1px solid rgba(21,60,95,0.08);
  transition: background 0.2s;
}
.pipeline-table tbody tr:hover { background: rgba(21,60,95,0.03); }
.pipeline-table td {
  padding: 32px 16px;
  vertical-align: middle;
  text-align: center;
}
.pipeline-table td:nth-child(1),
.pipeline-table td:nth-child(2) { text-align: left; }
.asset-cell strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
}
.asset-cell span { font-size: 13px; color: var(--muted); }
.pipeline-table td small { font-size: 13px; color: var(--muted); }

.badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-navy { background: var(--navy); color: var(--white); }
.badge-sand { background: var(--sand); color: var(--navy); }

.stage {
  width: 100%;
  max-width: 100px;
  height: 9px;
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(21,60,95,0.1);
}
.stage-fill {
  height: 100%;
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0); /* GSAP animará esto */
}
.stage-done   .stage-fill { background: var(--navy); }
.stage-active .stage-fill { background: linear-gradient(90deg, var(--navy), var(--steel)); }
.stage-half   .stage-fill { background: linear-gradient(90deg, var(--navy), var(--steel)); width: 50%; }

/* ═══════════════════════════════════════════
   TEAM
═══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.team-group-photo {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
}
.team-group-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--sand);
}
.team-avatar img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  object-position: center;
}
.team-card strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.3;
}
.team-card span { font-size: 14px; color: var(--steel); }

.sab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sab-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px 28px;
  border: 1px solid rgba(21,60,95,0.08);
  background: #fff;
  gap: 0;
}
.sab-avatar {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.sab-avatar img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}
.sab-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sab-card strong { font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.35; display: block; }
.sab-role        { font-size: 13px; color: var(--steel); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.sab-inst        { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 4px; }

/* ═══════════════════════════════════════════
   PARTNER LOGO CAROUSEL
═══════════════════════════════════════════ */
.partner-strip {
  background: #f8f8f6;
  border-top: 1px solid rgba(21,60,95,0.07);
  border-bottom: 1px solid rgba(21,60,95,0.07);
  padding: 28px 0;
  overflow: hidden;
}

.partner-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  will-change: transform;
}

.partner-strip:hover .partner-track {
  /* pause controlado por GSAP en home.js */
}

.partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

.partner-item img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease;
}

.partner-strip:hover .partner-item img,
.partner-item:hover img {
  filter: grayscale(0) opacity(1);
}


/* ═══════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(21,60,95,0.18);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  background: var(--white);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--steel); }
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { width: 100%; text-align: center; border: none; }

/* ═══════════════════════════════════════════
   ADVANTAGES / HIGHLIGHTS LIST
═══════════════════════════════════════════ */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.adv {
  display: flex;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.12);
}
.adv-icon {
  font-size: 1.3rem;
  color: var(--sand);
  flex-shrink: 0;
  padding-top: 2px;
}
.adv strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}
.adv p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.6; }

.invest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.invest-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.5;
}
.invest-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-size: 11px;
  top: 4px;
}

/* ═══════════════════════════════════════════
   MARKET CARDS
═══════════════════════════════════════════ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 48px;
}
.market-card {
  background: var(--sand);
  padding: 32px 24px;
}
.market-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 8px;
}
.market-num .arrow { font-size: 1rem; opacity: 0.45; }
.market-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 8px;
}
.market-desc { font-size: 15px; color: rgba(21,60,95,0.7); line-height: 1.6; }

/* ═══════════════════════════════════════════
   PUBLICATIONS
═══════════════════════════════════════════ */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.pub-card {
  padding: 28px;
  border-left: 3px solid var(--sand);
  background: rgba(21,60,95,0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pub-year {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
}
.pub-journal {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
}
.pub-topic { font-size: 15px; color: var(--muted); line-height: 1.4; }
.pub-author { font-size: 13px; color: var(--steel); font-style: italic; }

/* ═══════════════════════════════════════════
   SCIENCE PAGE — Problem / Barriers / Backbone / Results
═══════════════════════════════════════════ */

/* Problem 2-col */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}
.problem-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 16px;
}
.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pstat {
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,0.1);
}
.pstat .stat-num {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.pstat-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}
.pstat-highlight {
  background: var(--sand);
  border-color: var(--sand);
}
.pstat-highlight .stat-num,
.pstat-highlight .pstat-desc {
  color: var(--navy) !important;
}
.pstat-sand { color: var(--sand) !important; }

/* Barriers grid */
.barriers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.barrier-card {
  padding: 24px 20px;
  border: 1px solid rgba(21,60,95,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
}
.barrier-icon {
  font-size: 1.2rem;
  color: var(--steel);
}
.barrier-card strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}
.barrier-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Backbone */
.backbone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.backbone-mod {
  padding: 32px;
  border: 1px solid rgba(21,60,95,0.1);
}
.backbone-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.backbone-mod h3 { margin-bottom: 10px; }
.backbone-mod p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Validation columns */
.validation-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid rgba(21,60,95,0.1);
  padding-top: 32px;
}
.val-col {
  padding: 32px 28px;
  border-left: 4px solid var(--steel);
}
.val-type {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.val-ref {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.val-journal {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.val-year {
  font-size: 13px;
  color: var(--steel);
  font-weight: 700;
  margin-bottom: 12px;
}
.val-col p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.result-card {
  padding: 32px 28px;
  background: var(--white);
  border-top: 3px solid var(--steel);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.result-model {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  color: var(--navy);
  text-transform: uppercase;
}
.result-marker {
  font-size: 13px;
  color: var(--steel);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.result-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.results-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--sand);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
}

/* CTA section */
.cta-section {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive — science specific */
@media (max-width: 1024px) {
  .barriers-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .problem-grid     { grid-template-columns: 1fr; gap: 36px; }
  .backbone-grid    { grid-template-columns: 1fr; }
  .validation-cols  { grid-template-columns: 1fr; }
  .results-grid     { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .barriers-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--navy);
  border-top: 3px solid var(--sand);
  padding: 48px 0;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo-img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); margin-bottom: 10px; }
.footer-brand p  { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.5; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sand); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════════
   PAGE HERO (páginas interiores)
═══════════════════════════════════════════ */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero.has-bg {
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.72);
}
.page-hero.has-bg .container { position: relative; z-index: 1; }

/* ─ Shared image utilities ─ */
.section-img-wrap {
  overflow: hidden;
  border-radius: 6px;
  line-height: 0;
}
.section-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.section-split .split-img {
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.section-split .split-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .section-split { grid-template-columns: 1fr; gap: 32px; }
  .section-split .split-img { order: -1; }
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-3    { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .advantages  { grid-template-columns: 1fr; }
  .team-grid   { grid-template-columns: repeat(2, 1fr); }
  .sab-grid    { grid-template-columns: 1fr 1fr; }
  .publications-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section-dark, .section-light, .section-off, .section-darker { padding: 64px 0; }
  .page-hero { padding: 120px 0 60px; }
}

/* ── Tablet (768px) ── */
@media (max-width: 768px) {
  /* Navbar → hamburger en tablet */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(21,60,95,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 14px; padding: 6px 0; }
  .nav-links a.nav-cta { text-align: center; margin-top: 4px; }
  .nav-toggle { display: flex; }

  /* Grids → 1 col en tablet */
  .sab-grid          { grid-template-columns: 1fr 1fr; }
  .publications-grid { grid-template-columns: 1fr; }

  /* SAB avatar más pequeño */
  .sab-avatar, .sab-avatar img { width: 88px; height: 88px; }

  /* Partner carousel gap */
  .partner-track { gap: 48px; }

  /* Page hero padding */
  .page-hero { padding: 100px 0 56px; }
  .page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
}

/* ── Mobile (640px) ── */
@media (max-width: 640px) {
  .nav-links a { font-size: 13px; }

  .stats-bar  { flex-direction: column; gap: 28px; padding: 40px 20px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .stat-num { font-size: clamp(1.6rem, 7vw, 2.4rem); }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .sab-grid  { grid-template-columns: 1fr 1fr; }
  .publications-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .advantages  { grid-template-columns: 1fr; }

  /* SAB mobile */
  .sab-card  { padding: 20px 16px; }
  .sab-avatar, .sab-avatar img { width: 72px; height: 72px; margin-bottom: 14px; }
  .sab-card strong { font-size: 14px; }
  .sab-inst  { font-size: 13px; }

  /* Partner carousel */
  .partner-track { gap: 32px; }
  .partner-item { height: 40px; }
  .partner-item img { height: 40px; max-width: 130px; }

  /* Pipeline table */
  .pipeline-table-wrap { border: 1px solid rgba(21,60,95,0.08); }
  .pipeline-table { min-width: 480px; font-size: 0.76rem; }
  .pipeline-table th, .pipeline-table td { padding: 10px 8px; }

  /* Cards padding */
  .card { padding: 28px 20px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 16px; }
  .footer-logo-img { margin: 0 auto 10px; }

  /* Page hero */
  .page-hero { padding: 88px 0 48px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .page-hero p  { font-size: 0.95rem; }
}

/* ── Small phones (375px) ── */
@media (max-width: 400px) {
  .sab-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .pipeline-table { min-width: 420px; font-size: 0.72rem; }
  .pipeline-table th, .pipeline-table td { padding: 8px 6px; }

  .partner-track { gap: 24px; }
  .partner-item { height: 34px; }
  .partner-item img { height: 34px; max-width: 110px; }

  .card { padding: 20px 16px; }

  .footer-links { gap: 10px; }
}

/* ═══════════════════════════════════════════
   LEGAL PAGES (privacy, legal notice)
   Long-form text: short measure, generous leading.
═══════════════════════════════════════════ */
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 48px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(12, 35, 64, 0.12);
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 { font-size: 1rem; font-weight: 700; margin: 26px 0 8px; }
.legal-body p, .legal-body li { font-size: 0.97rem; line-height: 1.8; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 18px 22px; }
.legal-body li { margin-bottom: 7px; }
.legal-body a { text-decoration: underline; }
.legal-updated {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal-facts {
  background: rgba(12, 35, 64, 0.04);
  border: 1px solid rgba(12, 35, 64, 0.1);
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 18px;
}
.legal-facts ul { list-style: none; margin: 0; }
.legal-facts li { margin-bottom: 5px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: 0.9rem; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(12, 35, 64, 0.12);
  vertical-align: top;
}
.legal-table th { font-weight: 700; background: rgba(12, 35, 64, 0.04); }
.legal-scroll { overflow-x: auto; }

/* Footer legal links */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.65;
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
