/* SHIOL: tokens tomados de la presentación (Canva) */
:root {
  --navy: #20252F;
  --navy-soft: #2B313D;
  --teal: #0097B2;
  --teal-ink: #007C93;   /* teal con contraste suficiente para texto pequeño */
  --lime: #7ED957;
  --lime-deep: #6BC744;
  --amber: #F6A429;
  --paper: #FFFFFF;
  --mist: #EEF4F5;
  --ink: #20252F;
  --muted: #545B68;
  --on-navy: #D5DAE1;

  --display: "Montserrat", "Segoe UI", sans-serif;
  --body: "Open Sans", "Segoe UI", sans-serif;
  --brand: "Advent Pro", "Montserrat", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

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

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
a { color: var(--teal-ink); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* Marca */
.wordmark {
  font-family: var(--brand);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--teal);
  text-decoration: none;
}
.wordmark span, .hero-brand span { color: var(--lime); }
.wordmark--light { color: var(--teal); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 2px solid var(--lime);
  background: var(--lime);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(32, 37, 47, 0.12); }
.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--lime); }

/* Títulos-pregunta: Montserrat ExtraBold en mayúsculas con barra lima, como en el PDF */
.q {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--teal);
  text-wrap: balance;
}
.q--light { color: #fff; }

/* Portada */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 820px);
  padding-block: 120px 72px;
  overflow: hidden;
  background: var(--navy);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: brightness(0.62) saturate(0.9);
}
.hero-block {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(72px, 14vw, 230px);
  aspect-ratio: 1;
  background: var(--teal);
}
.hero-bar {
  position: absolute;
  right: 0;
  bottom: 9%;
  width: clamp(12px, 2vw, 26px);
  height: 26%;
  background: var(--lime);
  z-index: 1;
}
.hero-band {
  position: relative;
  width: 100%;
  margin-left: clamp(0px, 14vw, 230px);
  padding-block: clamp(36px, 5vw, 64px);
  background: rgba(32, 37, 47, 0.88);
  animation: band-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-inner { max-width: 880px; margin-inline: 0; }
.hero-brand {
  font-family: var(--brand);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--teal);
}
.hero h1 {
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.hero-lede {
  margin-top: 20px;
  max-width: 60ch;
  color: var(--on-navy);
  font-size: clamp(16px, 1.4vw, 19px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@keyframes band-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* Cifras */
.facts { background: var(--navy); color: var(--on-navy); }
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 36px;
}
.facts p {
  padding: 4px 24px;
  border-left: 3px solid var(--lime);
  font-size: 15px;
  line-height: 1.45;
}
.facts strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 30px);
  color: #fff;
}

/* Paneles partidos: blanco arriba con la pregunta, azul abajo con la respuesta, foto al lado */
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 620px;
}
.split-text { display: grid; grid-template-rows: auto 1fr; }
.split-head {
  position: relative;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px) clamp(32px, 4vw, 52px) clamp(40px, 6vw, 96px);
  background: var(--paper);
}
.split-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(48px, 6vw, 88px);
  bottom: clamp(32px, 4vw, 52px);
  width: clamp(12px, 1.6vw, 22px);
  background: var(--lime);
}
.split-body {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 5vw, 72px) clamp(40px, 5vw, 64px) clamp(40px, 6vw, 96px);
  background: var(--navy);
  color: var(--on-navy);
}
.split-body p + p, .split-body ul + p { margin-top: 16px; }
.split-body p, .split-body ul { max-width: 58ch; }
.split-photo { position: relative; min-height: 320px; }
.split-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.edge-bar {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: clamp(12px, 1.6vw, 22px);
  height: 24%;
  z-index: 2;
}
.edge-bar--lime { background: var(--lime); }
.edge-bar--teal { background: var(--teal); }
.edge-bar--amber { background: var(--amber); }

.points { padding: 0; list-style: none; }
.points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--lime);
}

/* Módulos */
.modules { padding-block: var(--section); }
.modules-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.modules-head p { color: var(--muted); max-width: 56ch; }

.flow { display: grid; gap: 56px; }
.flow-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
}
.flow-label {
  padding-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}
.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
  border-top: 4px solid var(--lime);
}
.flow-group + .flow-group .flow-list { border-top-color: var(--teal); }
.flow-list li {
  position: relative;
  padding: 28px 28px 0 0;
}
.flow-list li::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 20px;
  height: 20px;
  border: 4px solid var(--lime);
  border-radius: 50%;
  background: var(--paper);
}
.flow-group + .flow-group .flow-list li::before { border-color: var(--teal); }
.flow-list h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.flow-list p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Datos y seguridad */
.data { padding-block: var(--section); background: var(--navy); color: var(--on-navy); }
.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.data-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}
.data-cols h3 {
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--lime);
}
.data-cols p { font-size: 16px; }

/* Implementación: secuencia real, por eso numerada */
.implementation { padding-block: var(--section); background: var(--mist); }
.impl-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.impl-head p { margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--navy); }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--teal);
}
.steps h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.steps p { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* Nosotros */
.about { padding-block: var(--section) calc(var(--section) / 2); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
}
.about-body p + p { margin-top: 16px; }
.about-body { color: var(--muted); font-size: 18px; }

/* Equipo */
.team { padding-block: calc(var(--section) / 2) var(--section); }
.team .q { margin-bottom: 40px; font-size: clamp(24px, 2.4vw, 32px); }
.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 32px 24px;
  padding: 0;
  list-style: none;
}
.team-list img, .monogram {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--mist);
}
.monogram {
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-family: var(--brand);
  font-size: 56px;
  letter-spacing: 0.04em;
}
.team-list h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--navy);
}
.team-list p { font-size: 15px; color: var(--muted); }
.team-lead img { border-bottom: 6px solid var(--lime); }

/* Llamado final */
.cta {
  position: relative;
  padding-block: var(--section);
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}
.cta-block {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(48px, 9vw, 140px);
  aspect-ratio: 1;
  background: var(--teal);
}
.cta-inner { max-width: 900px; }
.cta h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}
.cta p { margin-top: 20px; max-width: 56ch; font-size: 18px; }

/* Pie */
.site-footer { background: var(--navy); color: var(--on-navy); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  padding-block: 28px;
  font-size: 14px;
}
.footer-row p:last-child { margin-left: auto; }

/* Responsive */
@media (max-width: 1024px) {
  .facts-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .data-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-row { justify-content: space-between; }

  .hero { padding-block: 96px 56px; }
  .hero-band { margin-left: 0; }

  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-photo { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .split-head, .split-body { padding-left: 40px; padding-right: 24px; }
  .edge-bar { top: 0; bottom: auto; height: 90px; }

  .modules-head, .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .flow-group { grid-template-columns: 1fr; gap: 8px; }
  .flow-label { padding-top: 0; }
  .flow-list {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 4px solid var(--lime);
    margin-left: 10px;
  }
  .flow-group + .flow-group .flow-list { border-left-color: var(--teal); }
  .flow-list li { padding: 0 0 28px 28px; }
  .flow-list li::before { top: 2px; left: -12px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts-row { grid-template-columns: 1fr; }
  .steps, .data-cols { grid-template-columns: 1fr; }
  .team-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { width: 100%; }
  .footer-row p:last-child { margin-left: 0; }
}

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