:root {
    --bg: #FBFDFF;
    --surface: #FFFFFF;
    --ink: #0C1E30;
    --ink-soft: #6B7C8F;
    --ink-faint: #A6B4C2;
    --accent: #1652F0;
    --accent-hover: #0F3FC7;
    --line: #E7EDF4;
    --line-strong: #D2DCE8;
    --data: #14B8B3;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { 
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
  }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
  }

  a { color: inherit; text-decoration: none; }

/* Logo contenedor */
.logo {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.85;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Imagen del logo — AUMENTADO */
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img { height: 40px; }
}

@media (max-width: 480px) {
  .logo-img { height: 34px; }
  .logo { gap: 8px; }
}


.logo-mark {
  display: none;
}


  /* ---------- NAV ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  background: rgba(251, 253, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
  
  nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 24px 64px 0 64px;
    max-width: 1360px;
    margin: 0 auto;
  }

  .nav-links {
    display: flex;
    align-items: flex-end;
    gap: 48px;
  }

  /*.nav-links a,
.nav-links button[data-tab] {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links button[data-tab]:hover { color: var(--ink); }*/


  .nav-links .tab-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 15px 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
  }

  .nav-links .tab-btn:hover,
  .nav-links .tab-btn[aria-selected="true"] {
    color: var(--ink);
  }

  .nav-links .tab-btn[aria-selected="true"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }

  @media (max-width: 720px) {
  .nav-links a:not(.nav-cta),
  .nav-links button[data-tab] { display: none; }
  nav { padding: 28px 24px 20px 24px; }
}

  /* ---------- HERO ---------- */
  .hero {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 30px 64px 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

  @media (max-width: 720px) {
    .hero { padding: 56px 24px 0; }
  }

  .hero-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

  .hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
}

  @media (max-width: 980px) {
    .hero-top { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { margin-top: -55px; }
  }

  .hero-text { min-width: 0; }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    margin-bottom: 40px;
  }

  .eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--data);
  }

  h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 3.6vw, 54px);
    line-height: 1.14;
    letter-spacing: -0.01em;
    color: var(--ink);
  }

  h1 strong {
    font-weight: 600;
    color: var(--accent);
  }

  .hero-title {
    grid-column: 1 / -1;
    margin: 0 auto 32px;
    text-align: center;
    font-weight: 300;
    color: var(--ink);
    line-height: 1.2;
    font-size: clamp(28px, 3.1vw, 46px);
  }

  .hero-title strong {
    font-size: clamp(32px, 3.6vw, 54px);
  }

  @media (max-width: 980px) {
    .hero-title { max-width: none; margin-bottom: 8px; }
  }

  .hero-title strong:first-of-type {
    color: var(--ink);
  }

  .hero-sub {
    margin-top: 28px;
    max-width: 460px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    font-weight: 300;
  }

  .hero-actions {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 30px;
    background: var(--accent);
    color: var(--surface);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.01em;
    border-radius: 100px;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }

  .btn-primary svg { transition: transform 0.25s ease; }
  .btn-primary:hover svg { transform: translateX(3px); }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-soft);
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .btn-secondary:hover {
    color: var(--ink);
    border-color: var(--ink);
  }

  /* ---------- HERO VISUAL (3D gene panel) ---------- */
  .hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
  }

  .hero-visual canvas {
    display: block;
    width: 100%;
    height: 100%;
  }

  .mol-stage {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }

  .visual-label {
    position: absolute;
    bottom: 56px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
  }

  .visual-eyebrow {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 400;
    color: var(--ink-faint);
    letter-spacing: 0.06em;
  }

  .visual-active {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.4s ease;
  }

  .visual-legend {
    position: absolute;
    bottom: 22px;
    left: 24px;
    right: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    pointer-events: none;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-faint);
    opacity: 0.45;
    transition: opacity 0.4s ease;
  }

  .legend-item.active {
    opacity: 1;
    color: var(--ink);
  }

  .legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  @media (max-width: 720px) {
    .hero-visual { aspect-ratio: 4 / 5; }
  }

  /* ---------- STAT STRIP ---------- */
  .stat-strip {
    margin-top: 40px;
    display: flex;
    gap: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .stat {
    flex: 1;
  }

  .stat-num {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
  }

  .stat-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 300;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
  }

  @media (max-width: 720px) {
    .stat-strip { flex-wrap: wrap; gap: 28px; }
    .stat { flex: 1 1 40%; }
  }

  /* ---------- GENE READOUT (signature element, minimal) ---------- */
  .ticker-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    padding: 26px 0;
    margin-top: 64px;
    border-top: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }

  .ticker-track {
    display: flex;
    width: max-content;
    animation: scroll-left 90s linear infinite;
    gap: 56px;
  }

  .ticker-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 300;
    color: var(--ink-faint);
    white-space: nowrap;
  }

  .ticker-item .gid { color: var(--ink-soft); }
  .ticker-item .gval { color: var(--data); }

  @keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
  }
/* =============================================================
   SECCIONES — añadir al final de style.css
   Usa los tokens ya definidos en :root
   ============================================================= */

.sec {
  max-width: 1360px;
  margin: 0 auto;
  padding: 120px 64px;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.sec-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
  padding-left: 0;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-right: 0;
}

.sec-alt > * {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 64px;
  padding-right: 64px;
}

/* ---------- Cabecera de sección ---------- */

.sec-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.sec-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.sec-tag.light { color: rgba(255,255,255,0.7); }

.sec h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.sec-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.sec-lead em { font-style: italic; color: var(--ink); }

.micro-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

/* ---------- 01 · Conceptos ---------- */

.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 72px;
}

.concept {
  background: var(--bg);
  padding: 36px 32px;
}

.concept-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.concept h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin: 14px 0 12px;
}

.concept p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.concept strong { color: var(--ink); font-weight: 500; }

/* ---------- Ejemplo de gen ---------- */

.gene-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 44px;
}

.gene-example h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 14px;
}

.gene-example p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.gene-example strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
}

.gene-note {
  font-size: 13px !important;
  color: var(--ink-faint) !important;
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
  margin-top: 18px;
}

.gene-bars { display: flex; flex-direction: column; gap: 14px; }

.gbar { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 14px; }

.gbar-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}

.gbar-track {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.gbar-fill {
  height: 100%;
  background: var(--line-strong);
  border-radius: 4px;
}

.gbar-fill.hi { background: var(--accent); }

.gbar-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- 02 · Tabla de cohortes ---------- */

.cohort-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg);
}

.cohort-row {
  display: grid;
  grid-template-columns: 100px 1fr 100px 100px 100px;
  padding: 15px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  align-items: center;
}

.cohort-row:last-child { border-bottom: none; }

.cohort-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.cohort-row .num { text-align: right; font-family: var(--font-mono); font-size: 14px; }

.c-code {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  font-size: 14px;
}

.cohort-total {
  background: var(--surface);
  font-weight: 500;
  border-top: 1px solid var(--line-strong);
}

.data-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.note {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--data);
  border-radius: 8px;
  padding: 26px 28px;
}

.note h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
}

.note p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.note em { font-style: italic; color: var(--ink); }

/* ---------- 03 · Cascada ---------- */

.cascade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 64px;
}

.casc-node {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 24px 30px;
  text-align: center;
  min-width: 280px;
}

.casc-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.casc-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.casc-sub { font-size: 13px; color: var(--ink-soft); }

.casc-metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.casc-metric b { color: var(--accent); font-weight: 500; }

.casc-m1 { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,82,240,0.06); }
.casc-m2 { border-color: var(--data); }
.casc-m2 .casc-metric b { color: var(--data); }
.casc-end { opacity: 0.6; }

.casc-arrow {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  position: relative;
}

.casc-arrow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--line-strong);
}

.casc-split {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
}

.casc-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: 780px;
  position: relative;
  padding-top: 24px;
}

.casc-branches::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 1px;
  background: var(--line-strong);
}

.casc-branches::after {
  content: '';
  position: absolute;
  top: 0; left: 25%;
  width: 1px; height: 24px;
  background: var(--line-strong);
  box-shadow: 50vw 0 0 -49.99vw var(--line-strong);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.mcard {
  border-top: 2px solid var(--accent);
  padding-top: 22px;
}

.mcard h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
}

.mcard p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.mcard code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink);
}

.callout {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  border-radius: 10px;
  padding: 26px 30px;
}

.callout p {
  font-size: 15px;
  line-height: 1.65;
  color: #7C2D12;
}

.callout strong { font-weight: 600; }
.callout .micro-tag { color: #C2410C; }

/* ---------- 04 · Hallazgos ---------- */

.findings { display: flex; flex-direction: column; gap: 80px; }

.finding {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
}

.finding-reverse { grid-template-columns: 1fr 380px; }
.finding-reverse .finding-figure { order: 2; }
.finding-reverse .finding-body { order: 1; }

.finding-figure {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
}

.finding-cap {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 22px;
  line-height: 1.5;
}

.finding-body h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}

.finding-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.finding-body strong { color: var(--ink); font-weight: 500; }

.finding-note {
  font-size: 13.5px !important;
  color: var(--ink-faint) !important;
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* donut */
.donut {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--line) 0);
  display: grid;
  place-items: center;
  position: relative;
}

.donut::after {
  content: '';
  position: absolute;
  inset: 16px;
  background: var(--bg);
  border-radius: 50%;
}

.donut-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.donut-num small { font-size: 15px; font-weight: 400; }

/* antes/después */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.ba-head {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.ba-head.bad { color: #B45309; }
.ba-head.good { color: #0F766E; }

.ba-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.ba-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 4px;
}

.g-noise { background: var(--line); color: var(--ink-faint); }
.g-signal { background: rgba(20,184,179,0.12); color: #0F766E; }

.ba-foot {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 12px;
}

/* firma distribuida */
.spread { padding: 12px 0; }

.spread-bar {
  height: 26px;
  background: var(--data);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.spread-top {
  height: 100%;
  background: var(--accent);
  min-width: 3px;
}

.spread-legend { display: flex; flex-direction: column; gap: 14px; text-align: left; }

.spread-legend div { display: flex; flex-direction: column; }

.spread-legend b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.spread-legend span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- 05 · Demo ---------- */

.sec-demo {
  background: var(--ink);
  max-width: none;
  padding: 110px 64px;
  text-align: center;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.demo-inner { max-width: 680px; margin: 0 auto; }

.sec-demo h2 { color: var(--surface); }

.demo-lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}

.demo-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-lg { padding: 15px 30px; font-size: 15px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 7px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  transition: border-color .2s, background .2s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.demo-disclaimer {
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(248,113,113,0.35);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  text-align: left;
}

.demo-disclaimer strong { color: #FCA5A5; font-weight: 600; }

/* ---------- 06 · Límites ---------- */

.limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.limit { border-left: 2px solid var(--line-strong); padding-left: 22px; }

.limit h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
}

.limit p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ---------- 07 · Equipo ---------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.member {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 26px;
  text-align: center;
}

.member-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--line) 0%, var(--line-strong) 100%);
}

.member h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.member-role {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.member-links { display: flex; gap: 14px; justify-content: center; }

.member-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.member-links a:hover { border-bottom-color: var(--accent); }

/* =============================================================
   EQUIPO — reemplaza el bloque .team ... .member-links del
   final de style-secciones.css por esto
   ============================================================= */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.member {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.member:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

/* Foto (o placeholder con iniciales) */
.member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--data) 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-initials {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}

.member h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 5px;
}

.member-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}

.member-bio {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 22px;
  flex-grow: 1;
}

/* Enlaces */
.member-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.member-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.member-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(22, 82, 240, 0.03);
}

.member-links svg { flex-shrink: 0; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  scroll-snap-align: start;
}

/* SECCIÓN 1 */
.foot-section-1 {
  padding: 64px;
  background: var(--bg);
}

.foot-inner-section1 {
  max-width: 1360px;
  margin: 0 auto;
  text-align: center;
}

.foot-title-center h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}

.foot-description {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-faint);
  margin-bottom: 48px;
}

.foot-nav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.foot-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 0;
}

.foot-nav-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.foot-nav-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.foot-nav-links a:hover {
  color: var(--accent);
}

.foot-divider {
  max-width: 1360px;
  margin: 0 auto;
  height: 1px;
  background: var(--line);
}

/* SECCIÓN 2 */
.foot-section-2 {
  padding: 64px;
}

.foot-title-center {
  text-align: center;
  margin-bottom: 48px;
}

/* Bloques de instituciones */
.foot-institution {
  max-width: 1360px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.inst-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inst-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.inst-logos-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inst-logos-stack .inst-logo {
  margin: 0;
}

.inst-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.inst-desc strong {
  font-weight: 500;
  color: var(--ink);
}

.inst-credits {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.inst-credits strong {
  font-weight: 500;
  color: var(--ink-soft);
}

.foot-bottom {
  max-width: 1360px;
  margin: 0 auto;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.foot-copyright {
  font-size: 12px;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .foot-section-1,
  .foot-section-2 { 
    padding: 48px 28px; 
  }

  .foot-nav-links {
    gap: 20px;
  }

  .foot-institution {
    grid-template-columns: auto 1fr;
    gap: 28px;
  }

  .inst-logo {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 600px) {
  .foot-section-1,
  .foot-section-2 { 
    padding: 36px 20px; 
  }

  .foot-title-center h3 {
    font-size: 22px;
  }

  .foot-nav-links {
    gap: 12px;
    font-size: 12px;
  }

  .foot-institution {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .inst-logo {
    width: 80px;
    height: 80px;
  }

  .inst-desc {
    font-size: 14px;
  }

  .inst-credits {
    font-size: 12px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .sec { padding: 80px 28px; }
  .sec-alt > * { padding-left: 28px; padding-right: 28px; }
  .sec-demo { padding: 80px 28px; }
  footer { padding: 44px 28px; }

  .gene-example,
  .finding,
  .finding-reverse { grid-template-columns: 1fr; gap: 32px; }

  .finding-reverse .finding-figure,
  .finding-reverse .finding-body { order: initial; }

  .casc-branches { grid-template-columns: 1fr; }
  .casc-branches::before,
  .casc-branches::after { display: none; }

  .cohort-row {
    grid-template-columns: 70px 1fr 60px 60px 60px;
    padding: 13px 16px;
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Contenedores estructurales ---------- */

.gene-example-text { min-width: 0; }
.casc-input { border-style: dashed; }
.ba-col { min-width: 0; }
.foot-brand { max-width: 340px; }

/* ---------- Botón TOUR ---------- */

.tour-cta {
  --size: 280px;
  --lens-cx: 34.35%;
  --lens-cy: 40.52%;
  --lens-d: 54.75%;
  --onco-nudge: calc(var(--size) * 0.036);
  --logo-blue: #0059EF;
  --logo-coral: #FF6B5B;

  display: flex;
  justify-content: center;
  padding: 72px 24px 88px;
  font-family: var(--font-display);
  min-width: 0;
}

.tour-cta .magnifier {
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) * -0.14);
  transition: transform 0.35s ease;
}

.hero .tour-cta {
  --size: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 0;
}

.tour-cta .tour-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.tour-cta .tour-link:hover { transform: none; }

.tour-cta .axis-row { position: relative; width: var(--size); }

.tour-cta .axis-row > * {
  position: absolute;
  left: var(--lens-cx);
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.tour-cta .row-top    { height: calc(var(--size) * 0.171); margin-bottom: calc(var(--size) * -0.05); }
.tour-cta .row-bottom {
  height: calc(var(--size) * 0.2);
  margin-top: calc(var(--size) * -0.05);
}

.tour-cta .tour-label {
  font-size: calc(var(--size) * 0.107);
  font-weight: 500;
  letter-spacing: 0.12em;
  word-spacing: -0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.tour-cta .oncolens-text {
  transform: translate(-50%, -50%);
  font-size: calc(var(--size) * 0.157);
  font-weight: 600;
  color: var(--logo-blue);
  letter-spacing: -0.015em;
  line-height: 1;
}

.tour-cta .magnifier {
  position: relative;
  width: var(--size);
  height: var(--size);
  transition: transform 0.35s ease;
  margin-left: calc(var(--size) * -0.22);
}

.tour-cta .tour-link:hover .magnifier { transform: scale(1.06); }

/*.tour-cta .magnifier-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: var(--logo-blue);
  filter: drop-shadow(0 4px 12px rgba(12, 30, 48, 0.10));
}

.tour-cta .lens {
  position: absolute;
  top: var(--lens-cy);
  left: var(--lens-cx);
  width: var(--lens-d);
  height: var(--lens-d);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tour-cta .lens-text {
  position: absolute;
  font-size: calc(var(--size) * 0.115);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  transform: rotateY(0deg) scale(1);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
*/

.tour-cta .magnifier-svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: var(--logo-blue);
  filter: drop-shadow(0 6px 16px rgba(12, 30, 48, 0.4));
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.tour-cta .lens {
  position: absolute;
  top: var(--lens-cy);
  left: var(--lens-cx);
  width: var(--lens-d);
  height: var(--lens-d);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.tour-cta .lens-media {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

.tour-cta .lens-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.20);
  transition: transform 2.2s cubic-bezier(0.22, 0.8, 0.28, 1);
}

.tour-cta .lens-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0.94;
  transition: opacity 2.2s ease;
  pointer-events: none;
}

.tour-cta .lens-text {
  position: relative;
  z-index: 2;
  font-size: calc(var(--size) * 0.115);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink);
  transition: opacity 1.1s ease;
}

.tour-cta .tour-link:hover .lens-media::after { opacity: 0; }
.tour-cta .tour-link:hover .lens-media img { transform: scale(1.5); }
.tour-cta .tour-link:hover .lens-text { opacity: 0; }


@media (max-width: 720px) {
  .tour-cta {
    --size: 220px;
    padding: 48px 20px 60px;
  }
  .hero .tour-cta { --size: 150px; }
}

.tour-cta .tour-desc {
  max-width: 34ch;
  margin-top: 10px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}

.demo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.tab-panel { scroll-margin-top: 100px; }