/* QA3DS — landing page
   Paleta: azul UTN profundo, hielo austral, rojo ruibarbo, verde huerta. */

:root {
  --paper: #fbfaf7;
  --paper-2: #f1efe9;
  --ice: #e6eff3;
  --ink: #15212c;
  --ink-soft: #4a5866;
  --line: #dcd8cf;
  --navy: #0d3656;
  --navy-2: #134a72;
  --rhubarb: #b3304a;
  --rhubarb-soft: #f6e3e6;
  --leaf: #37704a;
  --amber: #b86b12;

  --radius: 14px;
  --maxw: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--rhubarb); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rhubarb);
  margin-bottom: 0.6rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

section { padding: 88px 0; }
section.alt { background: var(--paper-2); }
section.ice { background: var(--ice); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand sup { font-size: 0.6em; }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 80px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(19, 74, 114, 0.12), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, rgba(179, 48, 74, 0.08), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  margin-bottom: 0.35em;
}
.hero h1 em { font-style: italic; color: var(--rhubarb); font-weight: 500; }
.hero .group-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.hero-logo {
  justify-self: center;
  width: min(420px, 100%);
  filter: drop-shadow(0 18px 40px rgba(13, 54, 86, 0.18));
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-meta span::before { content: "◆"; color: var(--rhubarb); font-size: 0.6em; margin-right: 8px; vertical-align: 2px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--ice); color: var(--navy); }

/* ---------- Grupo ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.pillar .tag {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.pillar:nth-child(1) .tag { color: var(--leaf); }
.pillar:nth-child(2) .tag { color: var(--rhubarb); }
.pillar:nth-child(3) .tag { color: var(--navy-2); }
.pillar p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.values {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: v;
}
.values li {
  counter-increment: v;
  padding: 10px 0 10px 44px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.values li::before {
  content: counter(v, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--rhubarb);
}

.mv { display: grid; gap: 22px; }
.mv-card {
  border-left: 3px solid var(--navy);
  padding: 4px 0 4px 20px;
}
.mv-card h3 { margin-bottom: 0.3em; }
.mv-card p { color: var(--ink-soft); margin: 0; }

.figure-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.figure-card figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Proyecto ---------- */
.project-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.facts {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 22px;
}
.facts dl { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); font-weight: 500; }
.facts dd { margin: 0; font-weight: 500; }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--ice);
  color: var(--navy);
}
.badge.red { background: var(--rhubarb-soft); color: var(--rhubarb); }
.badge.muted { background: var(--paper-2); color: var(--ink-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.step .n {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.step p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.media-row figure { margin: 0; }
.media-row.process { margin-top: 48px; }
.steps.stacked { grid-template-columns: 1fr; margin: 0; align-content: center; }
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.photo img { width: 100%; flex: 1; object-fit: cover; min-height: 0; }
.photo figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.photo.tall img { aspect-ratio: 3 / 4; }
.photo.square img { aspect-ratio: 1 / 1; object-fit: contain; background: #fbf3e4; }

.matrices {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
  margin-top: 40px;
}
.matrix {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.matrix.active { border-color: var(--rhubarb); box-shadow: 0 0 0 3px var(--rhubarb-soft); }
.matrix h3 { margin-bottom: 0.15em; }
.matrix .sci { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 10px; }
.matrix p { font-size: 0.93rem; color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- Animación del proceso ---------- */
.lio {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.lio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.lio-play {
  flex: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}
.lio-play:hover { background: var(--ice); }
.lio-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lio-tab {
  position: relative;
  overflow: hidden;
  text-align: left;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px 12px;
  cursor: pointer;
}
.lio-tab b { display: block; font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.lio-tab .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: calc(var(--p, 0) * 100%);
  background: var(--rhubarb);
}
.lio-tab[aria-current="step"] { background: var(--ice); border-color: var(--navy-2); }
.lio-tab:focus-visible, .lio-play:focus-visible { outline: 3px solid var(--rhubarb-soft); outline-offset: 2px; }

.lio-body {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}
.lio-scene, .lio-phase { width: 100%; height: auto; display: block; }
.lio text { font-family: var(--sans); font-size: 12px; fill: var(--ink-soft); }
.lio .lio-region { font-family: var(--serif); font-size: 14px; font-weight: 600; fill: var(--navy); }
.lio .lio-small { font-size: 10px; }
.lio-curve { fill: none; stroke: var(--navy-2); stroke-width: 2; }
.lio-route { fill: none; stroke: var(--rhubarb); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: 0.45; }
.lio-drop { fill: #3f93cc; }
.lio-ice { fill: #eef8ff; stroke: #6fb0dc; stroke-width: 1.4; }
.lio-pore { fill: #6e1f2e; }
.lio-vapor { fill: #8fc6ea; }
.lio-frost { fill: #fff; stroke: #6fb0dc; stroke-width: 1.2; }
.lio-air { fill: #9aa5b1; }
.lio-wave { animation: lio-rise 1.4s ease-in-out infinite; }
.lio-wave:nth-child(2) { animation-delay: 0.3s; }
.lio-wave:nth-child(3) { animation-delay: 0.6s; }
@keyframes lio-rise {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.lio-readouts { margin: 14px 0 0; }
.lio-readouts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.lio-readouts dt { color: var(--ink-soft); }
.lio-readouts dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.lio-caption {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 3px solid var(--rhubarb);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
  min-height: 6.2em;
}
.lio-caption p { margin: 0; font-size: 1.02rem; }
.lio-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-soft); }

.matrices-row { grid-template-columns: 1fr 1.25fr; }
.matrices.stacked { grid-template-columns: 1fr; margin-top: 0; }

/* ---------- Resultados ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.kpi .v {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.05;
}
.kpi .v small { font-size: 0.5em; font-weight: 500; color: var(--ink-soft); }
.kpi .l { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }

.findings { max-width: 860px; }
.findings .chart { margin: 40px 0 0; }
.findings ul { padding-left: 1.1em; margin: 0; }
.findings li { margin-bottom: 0.8em; color: var(--ink); }
.findings li strong { color: var(--navy); }

.note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--rhubarb-soft);
  color: #5a1c28;
  font-size: 0.9rem;
}

/* ---------- Línea de tiempo ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 0 0 26px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 112px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--navy);
}
.timeline li.hl::before { border-color: var(--rhubarb); background: var(--rhubarb); }
.timeline .when {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  font-size: 0.95rem;
}
.timeline .what strong { display: block; }
.timeline .what span { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Equipo ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.person {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  color: #fff;
  background: var(--navy);
}
.person:nth-child(3n+2) .avatar { background: var(--rhubarb); }
.person:nth-child(3n) .avatar { background: var(--leaf); }
.person .name { font-weight: 600; line-height: 1.3; }
.person .role { font-size: 0.87rem; color: var(--ink-soft); }

.students {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.students li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.students li span { display: block; font-size: 0.85rem; color: var(--ink-soft); }

.subhead { margin-top: 56px; }

/* ---------- Alianzas ---------- */
.allies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.ally {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.ally h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.ally p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Publicaciones ---------- */
.pubs { list-style: none; padding: 0; margin: 32px 0 0; }
.pubs li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pubs .yr { font-family: var(--serif); font-weight: 600; color: var(--navy); }
.pubs .t { font-weight: 500; }
.pubs .t span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Contacto / footer ---------- */
.contact {
  background: var(--navy);
  color: #e9f0f5;
}
.contact h2 { color: #fff; }
.contact .lead { color: #c3d3df; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.contact-links a {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.contact-links a span { display: block; font-weight: 400; font-size: 0.85rem; color: #b8cad8; margin-top: 2px; }
.contact-links a:hover { background: rgba(255, 255, 255, 0.14); }

.site-footer {
  background: #0a2a43;
  color: #9fb4c4;
  font-size: 0.85rem;
  padding: 28px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.site-footer a { color: #cfe0ec; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap,
  .two-col,
  .project-head { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo { width: min(300px, 80%); order: -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .people, .allies { grid-template-columns: repeat(2, 1fr); }
  .matrices { grid-template-columns: 1fr; }
  .lio-body { grid-template-columns: 1fr; }
  .lio-side { max-width: 460px; }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .lio { padding: 16px; }
  .lio-tabs { grid-template-columns: 1fr 1fr; }
  .lio-caption { min-height: 9.5em; }
  .lio .lio-scene text { font-size: 17px; }
  .pillars, .steps, .media-row, .matrices-row, .people, .allies, .contact-links { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 16px 14px; }
  .kpi .v { font-size: 1.8rem; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 32px; }
  .timeline li::before { left: 0; }
  .timeline .when { text-align: left; }
  .pubs li { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .lio-wave { animation: none; }
}
