/* ============================================================
   U18 RADAR v2 (ES) · sigue el wireframe "U18 Radar, propuesta de página (v2)"
   Ritmo: hero oscuro · origen claro · estudios+vías oscuro · inversión clara · loop gris claro
   ============================================================ */

.r2-pad  { padding: 72px 0; }
.r2-light{ background: #FAFAFC; color: #121212; }
.r2-soft { background: #F2F0F6; color: #121212; }
.r2-dark {
  position: relative; overflow: hidden;
  background: #121212; color: #FAFAFC;
}

.r2-h2 {
  margin: 0 0 12px; font-weight: 800; font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.2; letter-spacing: -0.015em;
}
.r2-lead { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: #575757; max-width: 640px; }
.r2-dark .r2-lead { color: #A6A6A6; }
.r2-head { max-width: 640px; margin-bottom: 36px; }
.r2-head .r2-lead { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-bottom: 0; }
.r2-hero-top { max-width: 720px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 16px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.hero h1 em { font-weight: 800; }
.hero .hero-sub {
  font-size: 17px; line-height: 1.55; color: #A6A6A6; max-width: 62ch; margin: 0 0 28px;
}
.hero .hero-chat { max-width: 480px; margin: 0; }
.r2-hero-top { max-width: none; }

.r2-strip {
  display: flex; flex-wrap: wrap; margin-top: 48px; padding: 8px 0 40px;
  border-top: 1px solid #282828; position: relative; z-index: 2;
}
.r2-strip__item { flex: 1 1 200px; padding: 24px 20px 0 20px; border-right: 1px solid #282828; }
.r2-strip__item:first-child { padding-left: 0; }
.r2-strip__item:last-child { border-right: 0; }
.r2-strip__item b { display: block; font-weight: 800; font-size: 28px; color: #4CCBFF; letter-spacing: -0.02em; }
.r2-strip__item span { display: block; font-size: 13px; line-height: 1.45; color: #8B8B8B; margin-top: 6px; }
@media (max-width: 720px) {
  .r2-strip__item { flex-basis: 45%; border-right: 0; padding-left: 0; }
}

/* ---------- 2 columnas ---------- */
.r2-two { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .r2-two { grid-template-columns: 1fr; } .r2-pad { padding: 56px 0; } }

.r2-pills { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; align-items: flex-start; }
.r2-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; background: #E8DEFF; color: #4A057D; font-size: 13px; font-weight: 500;
}
.r2-pill svg { flex: 0 0 auto; }
.r2-compliance { border-left: 3px solid #9414FA; padding-left: 18px; }
.r2-compliance p { margin: 0; font-size: 14px; line-height: 1.6; color: #3E3E3E; }
.r2-compliance strong { color: #121212; }

/* Timeline vertical */
.r2-video-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 16 / 9; border-radius: 14px; border: 1.5px dashed #CDB4F2; background: #F3ECFC;
  font-size: 13px; font-weight: 600; color: #8812E3;
}
.r2-video-ph video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.r2-origen-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.r2-timeline { list-style: none; margin: 0; padding: 0; }
.r2-timeline > li { position: relative; padding: 0 0 22px 28px; }
.r2-timeline > li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: #9414FA;
}
.r2-timeline > li:not(:last-child)::after {
  content: ""; position: absolute; left: 5px; top: 22px; bottom: 4px; width: 2px; background: #DFDFDF;
}
.r2-timeline h3 { margin: 0; font-size: 14px; font-weight: 600; color: #121212; letter-spacing: 0; }
.r2-timeline p { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #8B8B8B; }
.r2-substeps {
  list-style: none; margin: 10px 0 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  background: #FAFAFC; border: 1px solid #DFDFDF; border-radius: 12px;
}
.r2-substeps li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.5; color: #3E3E3E; }
.r2-substeps li::before { content: "●"; position: absolute; left: 0; top: 1px; font-size: 12px; font-weight: 700; color: #8812E3; }

/* ---------- Estudios ---------- */
.r2-studies { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .r2-studies { grid-template-columns: 1fr; } }
.r2-tabs { display: flex; flex-direction: column; gap: 6px; }
.r2-tab {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px 18px;
  border-radius: 12px; border-left: 3px solid transparent; color: #8B8B8B;
}
.r2-tab svg { flex: 0 0 auto; }
.r2-tab h3 { margin: 0; font-size: 14px; font-weight: 600; color: #D7D7DC; letter-spacing: 0; }
.r2-tab p { margin: 3px 0 0; font-size: 12px; color: #6F6F6F; }
.r2-tab.is-active { background: #1E1E1E; border-left-color: #4CCBFF; color: #4CCBFF; }
.r2-tab.is-active h3 { color: #FAFAFC; }
.r2-tab.is-active p { color: #8B8B8B; }

.r2-mock { border-radius: 14px; overflow: hidden; background: #1A1A1A; border: 1px solid #333; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.r2-mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #232323; border-bottom: 1px solid #333; }
.r2-mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #454545; }
.r2-mock__bar span { flex: 1; text-align: center; font-size: 11px; color: #8B8B8B; background: #1A1A1A; border-radius: 6px; padding: 4px 10px; margin: 0 40px; }
.r2-mock__body { padding: 22px; }
.r2-mock__q { background: #242424; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; max-width: 85%; color: #FAFAFC; font-size: 14px; line-height: 1.5; }
.r2-mock__meta { font-size: 11px; color: #6F6F6F; margin-bottom: 10px; }
.r2-mock__bars { display: flex; flex-direction: column; gap: 9px; }
.r2-mock__bars > div { display: flex; align-items: center; gap: 10px; }
.r2-mock__bars em { width: 52px; font-style: normal; font-size: 11px; color: #A6A6A6; }
.r2-mock__bars span { flex: 1; height: 8px; background: #282828; border-radius: 4px; }
.r2-mock__bars b { display: block; height: 8px; background: #4CCBFF; border-radius: 4px; }
.r2-mock__note { margin-top: 14px; font-size: 11px; color: #8B8B8B; }

/* ---------- Vías (más chicas, dentro de la misma sección) ---------- */
.r2-ways-wrap { margin-top: 40px; padding-top: 28px; border-top: 1px solid #282828; }
.r2-ways-title { margin: 0 0 20px; font-size: 16px; font-weight: 700; color: #FAFAFC; }
.r2-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.r2-way { display: flex; flex-direction: column; gap: 10px; }
.r2-way h3 { margin: 0; font-size: 13px; font-weight: 600; color: #FAFAFC; letter-spacing: 0; }
.r2-way p { margin: 0; font-size: 12px; line-height: 1.5; color: #8B8B8B; }
@media (max-width: 860px) { .r2-ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .r2-ways { grid-template-columns: 1fr; } }

/* ---------- Impacto ---------- */
.r2-impact {
  margin-top: 32px; background: #F2F0F6; border-radius: 24px; padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.r2-impact__fact { flex: 1 1 320px; }
.r2-impact__fact b { display: block; font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: #121212; }
.r2-impact__fact p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #575757; max-width: 420px; }
.r2-impact__viz { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.r2-people { display: flex; gap: 8px; }
.r2-people svg { width: 26px; height: 26px; fill: #C4C4C4; flex: 0 0 auto; }
.r2-people svg.on { fill: #8812E3; }
.r2-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #575757; }
.r2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.r2-legend i { width: 10px; height: 10px; border-radius: 50%; background: #C4C4C4; display: inline-block; }
.r2-legend i.on { background: #8812E3; }
@media (max-width: 560px) { .r2-impact { padding: 28px 24px; } }

/* ---------- Loop ---------- */
.r2-loop { list-style: none; margin: 36px 0 0; padding: 0; display: flex; align-items: flex-start; gap: 0; overflow-x: auto; }
.r2-loop > li:not(.r2-loop__arrow) { flex: 1 1 0; min-width: 140px; text-align: center; opacity: .6; }
.r2-loop > li.is-on { opacity: 1; }
.r2-loop__arrow { flex: 0 0 auto; padding-top: 8px; color: #C4C4C4; font-size: 20px; }
.r2-loop__n {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: #DFDFDF; color: #8B8B8B; font-weight: 700;
}
.r2-loop > li.is-on .r2-loop__n { background: #8812E3; color: #FAFAFC; }
.r2-loop h3 { margin: 0; font-size: 14px; font-weight: 700; color: #575757; letter-spacing: 0; }
.r2-loop > li.is-on h3 { color: #121212; }
.r2-loop em {
  display: block; font-style: normal; text-transform: uppercase; font-size: 11px; font-weight: 600;
  margin: 3px 0 8px; color: #8B8B8B;
}
.r2-loop > li.is-on em { color: #8812E3; }
.r2-loop p { margin: 0; padding: 0 6px; font-size: 12px; line-height: 1.4; color: #8B8B8B; }
.r2-loop > li.is-on p { color: #575757; }

/* ---------- Estudios: pestañas interactivas + video ---------- */
button.r2-tab {
  width: 100%; text-align: left; background: none; font: inherit; cursor: pointer;
  transition: background 200ms, border-color 200ms, color 200ms;
}
button.r2-tab:hover:not(.is-active) { background: #181818; color: #A6A6A6; }
button.r2-tab:focus-visible { outline: 2px solid #4CCBFF; outline-offset: 2px; }
.r2-mock { display: flex; flex-direction: column; }
.r2-mock__video { position: relative; flex: 1; min-height: 0; aspect-ratio: 2880 / 1432; background: #0f0f12; }
.r2-mock__video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 350ms ease; pointer-events: none;
}
.r2-mock__video video.is-active { opacity: 1; }

/* Paso 1 (Entender) destacado: es el foco de la narrativa */
.r2-loop > li.is-on { flex: 1.7 1 0; min-width: 220px; }
.r2-loop > li.is-on .r2-loop__n { width: 56px; height: 56px; font-size: 22px; margin-bottom: 14px; box-shadow: 0 0 0 6px rgba(136, 18, 227, .14); }
.r2-loop > li.is-on h3 { font-size: 22px; }
.r2-loop > li.is-on em { font-size: 13px; margin: 4px 0 10px; }
.r2-loop > li.is-on p { font-size: 15px; line-height: 1.45; padding: 0 12px; }
.r2-loop > li.is-on + .r2-loop__arrow { padding-top: 18px; }
