/* ============================================================
   HIMPULSA — paginas.css
   Estilos compartidos por: quienes-somos · que-podemos-hacer
   Usa los tokens de global.css (--morado, --bg, etc.)
   ============================================================ */

/* ─── HERO INTERIOR (despeja el nav fijo) ─── */
.pg-hero {
  position: relative;
  padding: 180px 24px 90px;
  text-align: center;
  overflow: hidden;
}
.pg-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(129,69,255,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.pg-hero > * { position: relative; z-index: 1; }

.pg-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lima);
  margin-bottom: 20px;
}
.pg-hero h1 {
  font-family: var(--font-titulo);
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 24px;
}
.pg-hero h1 span { color: var(--lima); }
.pg-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: var(--gris);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.pg-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── SECCIÓN GENÉRICA ─── */
.pg-section { padding: var(--section-pad); position: relative; }
.pg-section.alt { background: var(--bg2); }

.pg-titulo {
  font-family: var(--font-titulo);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 16px;
}
.pg-titulo span { color: var(--lima); }
.pg-sub {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--gris);
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ─── MANIFIESTO / CITA ─── */
.pg-manifiesto {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(196,251,54,0.2);
  border-radius: var(--radio-md);
  background: linear-gradient(180deg, rgba(196,251,54,0.04), transparent);
  padding: 56px 40px;
}
.pg-manifiesto p {
  font-family: var(--font-titulo);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.35;
}
.pg-manifiesto p span { color: var(--lima); }
.pg-manifiesto small {
  display: block;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--gris);
}

/* ─── GRID DE PILARES / CAPAS ─── */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.pg-card {
  background: var(--bg2);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-md);
  padding: 32px 28px;
  transition: border-color .3s ease, transform .3s ease;
}
.pg-section.alt .pg-card { background: var(--bg); }
.pg-card:hover { border-color: rgba(196,251,54,0.4); transform: translateY(-4px); }
.pg-card-icon {
  font-size: 28px;
  margin-bottom: 18px;
  display: inline-block;
}
.pg-card h3 {
  font-family: var(--font-titulo);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}
.pg-card p {
  font-size: 14px;
  font-weight: 400;
  color: var(--gris);
  line-height: 1.7;
}
.pg-card .pg-promesa {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lima);
}

/* ─── TIMELINE EVOLUTIVO ─── */
.pg-timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.pg-timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 30px; bottom: 30px;
  width: 1px;
  background: linear-gradient(to bottom, var(--lima), transparent);
}
.pg-etapa {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}
.pg-etapa-num {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid rgba(196,251,54,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titulo);
  font-size: 18px; font-weight: 800;
  color: var(--lima);
  position: relative; z-index: 2;
}
.pg-section.alt .pg-etapa-num { background: var(--bg); }
.pg-etapa-txt { padding-top: 6px; }
.pg-etapa-txt h3 {
  font-family: var(--font-titulo);
  font-size: 19px; font-weight: 800;
  margin-bottom: 6px;
}
.pg-etapa-txt p {
  font-size: 14px; font-weight: 400;
  color: var(--gris); line-height: 1.7;
}

/* ─── FIGURA: espacio para una imagen ─── */
.pg-figura {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid rgba(196,251,54,0.15);
  background: linear-gradient(135deg, rgba(129,69,255,0.12), rgba(9,9,14,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
}
.pg-figura.ancha { aspect-ratio: 21 / 9; }
.pg-figura img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pg-figura-hint {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--lima);
  letter-spacing: .03em;
  text-align: center;
  padding: 0 16px;
}
.pg-figura-wrap { max-width: var(--max-width); margin: 0 auto; }

/* ─── SPLIT: texto + imagen lado a lado ─── */
.pg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.pg-split.invertido .pg-split-media { order: -1; }
.pg-split-txt h2 {
  font-family: var(--font-titulo);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}
.pg-split-txt h2 span { color: var(--lima); }
.pg-split-txt p {
  font-size: 16px;
  font-weight: 400;
  color: var(--gris);
  line-height: 1.8;
  margin-bottom: 16px;
}
@media (max-width: 860px) {
  .pg-split { grid-template-columns: 1fr; gap: 32px; }
  .pg-split.invertido .pg-split-media { order: 0; }
}

/* ─── VIDEO DE YOUTUBE (16:9 responsive) ─── */
.pg-video {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid rgba(129,69,255,0.3);
  box-shadow: 0 20px 60px rgba(129,69,255,0.25);
}
.pg-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── CTA FINAL ─── */
.pg-cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.pg-cta h2 {
  font-family: var(--font-titulo);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
}
.pg-cta h2 span { color: var(--lima); }
.pg-cta p {
  font-size: 16px; font-weight: 400;
  color: var(--gris);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ============================================================
   FADE-IN AL HACER SCROLL
   Los bloques con  data-fade  entran suaves al aparecer en pantalla.
   El JS (al final de cada página) les pone la clase .is-visible.
   ============================================================ */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Accesibilidad: si el usuario pidió menos movimiento, sin animación */
@media (prefers-reduced-motion: reduce) {
  [data-fade] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 600px) {
  .pg-hero { padding: 140px 20px 64px; }
  .pg-timeline::before { left: 23px; }
  .pg-etapa-num { width: 48px; height: 48px; min-width: 48px; font-size: 16px; }
}