/* =====================================================================
   Roadmap v2 — Acuerdo de Convivencia Digital · Kínder C
   Full-viewport sections con scroll-snap. Más oxígeno.
   ===================================================================== */

:root {
  --navy: #1B2A5E;
  --navy-700: #16224d;
  --red: #CE4638;
  --yellow: #E8B32C;
  --ink: #23282F;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --tint: #ECEFF6;
  --tint-line: #d9dfec;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  font-size: clamp(16px, 2.5vw, 20px);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* ---- Slides full-viewport ---- */
.slide {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.5rem, 8vw, 6rem);
  position: relative;
}

.slide__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

/* ---- Tipografía ---- */
h1, h2 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 0.3em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5em; }

p { margin-bottom: 0.8em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--navy); }
em { color: var(--muted); font-style: italic; }

.lead {
  font-size: 1.15em;
  color: var(--ink);
  margin-bottom: 1.8em;
  max-width: 580px;
}

.note {
  margin-top: 1.6rem;
  font-size: 0.85em;
  color: var(--muted);
  background: var(--tint);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 520px;
}

/* ---- Portada ---- */
.slide--cover {
  justify-content: space-between;
  background: var(--bg);
}

.cover { display: flex; flex-direction: column; height: 100%; }
.cover__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4em;
}
.eyebrow img { width: 28px; height: 28px; }

.cover__title { font-size: clamp(2.8rem, 7vw, 4.4rem); }

.cover__sub {
  font-size: 1.3em;
  color: var(--red);
  font-weight: 600;
  margin-top: 0.2em;
  margin-bottom: 2em;
}

.cover__foot {
  padding-top: 1.6em;
  border-top: 1px solid var(--tint-line);
  color: var(--muted);
  font-size: 0.72em;
}

/* Horizonte 2026 -> 2038 */
.horizon { margin: 0 0 2em; }
.horizon__line {
  position: relative;
  height: 3px;
  background: var(--tint-line);
  margin: 0 8px;
}
.horizon__line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 58%;
  background: linear-gradient(90deg, var(--navy), var(--yellow));
}
.horizon__dot {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 5px rgba(232, 179, 44, 0.2);
}
.horizon__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.62em;
  color: var(--muted);
}
.horizon__labels b {
  display: block;
  color: var(--navy);
  font-size: 1.3em;
  margin-bottom: 1px;
}

/* ---- Tarjetas ---- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 2rem;
}

.card {
  background: var(--tint);
  border-radius: 14px;
  padding: 20px 22px;
}

.card__k {
  display: block;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.card p { font-size: 1em; margin: 0; }

/* ---- Highlight ---- */
.highlight {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.highlight strong { color: var(--yellow); }
.highlight p { font-size: 1.05em; margin: 0; overflow-wrap: break-word; }

/* ---- Pasos numerados ---- */
.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 1.05em;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.82em;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.steps b { color: var(--navy); }

/* ---- Timeline ---- */
.timeline {
  list-style: none;
  border-left: 3px solid var(--tint-line);
  margin-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.timeline li {
  position: relative;
  padding-left: 24px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
}
.timeline b { color: var(--navy); font-size: 1em; }
.timeline p { margin: 4px 0 0; font-size: 0.9em; color: var(--ink); }

.flow {
  margin-top: 1.6rem;
  font-size: 0.85em;
  color: var(--muted);
  background: var(--tint);
  border-radius: 10px;
  padding: 12px 16px;
}

/* ---- asks ---- */
.asks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.asks li {
  padding: 20px 0;
  border-bottom: 1px solid var(--tint-line);
  font-size: 1.05em;
}
.asks li:last-child { border-bottom: none; }
.asks b { color: var(--navy); }

/* ---- CTA ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  margin-bottom: 1.4rem;
  padding: 18px 32px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05em;
  box-shadow: 0 8px 28px rgba(27, 42, 94, 0.22);
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--navy-700); }

.close {
  color: var(--muted);
  font-size: 0.88em;
}
.close b { color: var(--navy); }

/* ---- Skip ---- */
.skip {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 100;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  padding: 7px 15px;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
}
.skip:hover { background: var(--tint); }

/* ---- Reducido ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
