/* ==========================================================================
   PAGE: PROGRAMS — Immersive full-width scenes
   Each program is its own color world. No cards. No cream.
   ========================================================================== */

/* ── Scene base ── */

/* Panels stacked in normal flow — GSAP pins each one on scroll */
.cr-pscene {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 6rem);
  overflow: hidden;
  color: #fff;
}

.cr-pscene__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Category headers ── */

.cr-pscene--header-temprana {
  min-height: 100vh;
  background: linear-gradient(160deg, #E0F2F1 0%, #B2DFDB 100%);
  color: var(--cr-dark, #2D3748);
}
.cr-pscene--header-escolar {
  min-height: 100vh;
  background: linear-gradient(160deg, #F3E5F5 0%, #E1BEE7 100%);
  color: var(--cr-dark, #2D3748);
}

.cr-pscene__cat-title {
  font-family: var(--cr-font-serif, 'Chennai', Georgia, serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0.75rem 0 0;
  text-align: center;
}

/* ── Color worlds ── */

/* Color worlds — saturated, vibrant, NOT desaturated/brown.
   Contrast ratio white text ≥ 4.5:1 on darkest stop. */
.cr-pscene--teal {
  background: linear-gradient(160deg, #00897B 0%, #00695C 100%);
}
.cr-pscene--coral {
  background: linear-gradient(160deg, #E53935 0%, #C62828 100%);
}
.cr-pscene--blue {
  background: linear-gradient(160deg, #1E88E5 0%, #1565C0 100%);
}
.cr-pscene--purple {
  background: linear-gradient(160deg, #7B1FA2 0%, #6A1B9A 100%);
}
.cr-pscene--green {
  background: linear-gradient(160deg, #2E7D32 0%, #1B5E20 100%);
}
.cr-pscene--orange {
  background: linear-gradient(160deg, #EF6C00 0%, #E65100 100%);
}

/* ── Flow layout (2 col: visual + text or text + data) ── */

.cr-pscene__flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.cr-pscene__flow--reverse {
  direction: rtl;
}
.cr-pscene__flow--reverse > * {
  direction: ltr;
}

/* ── Centered layout (single column centered) ── */

.cr-pscene__centered {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

/* ── Photo blob ── */

.cr-pscene__photo-wrap {
  position: relative;
  max-width: clamp(200px, 28vw, 340px);
}

.cr-pscene__photo-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
}
.cr-pscene__photo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.cr-pscene__float-icon {
  position: absolute;
  bottom: 0;
  right: -10px;
  width: clamp(50px, 7vw, 80px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* ── Typography ── */

.cr-pscene__ages {
  display: inline-block;
  font-family: var(--cr-font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.2);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.cr-pscene__title {
  font-family: var(--cr-font-serif, 'Chennai', Georgia, serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
  opacity: 1;
}

.cr-pscene__lead {
  font-family: var(--cr-font-sans);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin: 0 0 1.5rem;
  max-width: 520px;
}

/* ── Bubbles (glass pills) ── */

.cr-pscene__bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cr-pscene__bubble {
  font-family: var(--cr-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: background 0.25s ease;
}
.cr-pscene__bubble:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Journey stations (Alimentación) ── */

.cr-pscene__journey {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.cr-pscene__station {
  text-align: center;
  flex: 1;
}

.cr-pscene__station-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.15);
}

.cr-pscene__station strong {
  display: block;
  font-family: var(--cr-font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.cr-pscene__station span {
  font-family: var(--cr-font-sans);
  font-size: 0.72rem;
  opacity: 0.75;
}

.cr-pscene__station-path {
  flex: 0 0 60px;
  padding-top: 8px;
}
.cr-pscene__station-path svg {
  width: 100%;
  height: auto;
}

/* ── Floating orbs (Playgroup) ── */

.cr-pscene__orbs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}

.cr-pscene__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(40px, 6vw, 60px);
  height: clamp(40px, 6vw, 60px);
  border-radius: 50%;
  background: var(--orb);
  opacity: 0.3;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
  box-shadow: 0 0 30px var(--orb);
}

/* ── Dialogue speech bubbles (Habilidades Sociales) ── */

.cr-pscene__dialogue {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1000px;
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.cr-pscene__speech {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 24px;
  position: relative;
}

.cr-pscene__speech--parent {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.cr-pscene__speech--parent::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 30px;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 0 0 12px 0;
  transform: skewX(-15deg);
}

.cr-pscene__speech--team {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
}
.cr-pscene__speech--team::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 30px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.15);
  border-radius: 0 0 0 12px;
  transform: skewX(15deg);
}

.cr-pscene__speech p {
  font-family: var(--cr-font-serif, 'Chennai', Georgia, serif);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  line-height: 1.5;
  margin: 0;
  opacity: 0.92;
}

/* ── Follow-up items (After School) ── */

.cr-pscene__follow-up {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cr-pscene__follow-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--cr-font-sans);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ── Ascent peaks (Vida Adulta) ── */

.cr-pscene__ascent {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cr-pscene__peak {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

.cr-pscene__peak-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}

.cr-pscene__peak strong {
  font-family: var(--cr-font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.cr-pscene__peak span {
  font-family: var(--cr-font-sans);
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ── Category header extras ── */

.cr-pscene__cat-sub {
  font-family: var(--cr-font-sans);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  opacity: 0.6;
  margin: 0.75rem 0 0;
}

.cr-pscene__scroll-hint {
  position: absolute;
  bottom: clamp(2rem, 4vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  animation: cr-bounce 2s ease-in-out infinite;
  opacity: 0.4;
}
@keyframes cr-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ── Category header layout (2-col with photo) ── */

.cr-pscene__header-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.cr-pscene__header-layout--reverse {
  direction: rtl;
}
.cr-pscene__header-layout--reverse > * {
  direction: ltr;
}

.cr-pscene__header-content {
  text-align: left;
}

.cr-pscene__header-photo {
  max-width: 300px;
  margin: 0 auto;
}
.cr-pscene__header-photo svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.12));
}

.cr-pscene__cat-hook {
  font-family: var(--cr-font-sans, 'Nunito', sans-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--cr-text-secondary, #5A6577);
  margin-top: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cr-pscene__header-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cr-pscene__header-layout--reverse {
    direction: ltr;
  }
  .cr-pscene__header-content {
    text-align: center;
    order: 1;
  }
  .cr-pscene__header-photo {
    max-width: 200px;
    order: 2;
  }
  .cr-pscene__cat-hook {
    font-size: 0.9rem;
  }
}

/* ── Stats (icon + label pairs) ── */

.cr-pscene__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.cr-pscene__stats--row {
  justify-content: center;
}

.cr-pscene__stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.cr-pscene__stat svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.cr-pscene__stat strong {
  font-family: var(--cr-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Big infographic numbers */
.cr-pscene__infographic {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.cr-pscene__stat--big {
  flex-direction: column;
  text-align: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 2.5rem;
  border-radius: 24px;
  min-width: 180px;
}

.cr-pscene__stat-number {
  font-family: var(--cr-font-serif, 'Chennai', Georgia, serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  display: block;
  opacity: 0.9;
}

.cr-pscene__stat-unit {
  font-family: var(--cr-font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-top: 0.25rem;
  display: block;
}

/* ── Benefits list ── */

.cr-pscene__benefits {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.cr-pscene__benefits li {
  font-family: var(--cr-font-sans);
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  opacity: 0.85;
}

.cr-pscene__benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

/* ── Speech labels ── */

.cr-pscene__speech-label {
  display: block;
  font-family: var(--cr-font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

/* ── Text contrast — force white on colored scenes ── */

.cr-pscene--teal,
.cr-pscene--coral,
.cr-pscene--blue,
.cr-pscene--purple,
.cr-pscene--green,
.cr-pscene--orange {
  color: #fff;
}

.cr-pscene--teal .cr-pscene__title,
.cr-pscene--coral .cr-pscene__title,
.cr-pscene--blue .cr-pscene__title,
.cr-pscene--purple .cr-pscene__title,
.cr-pscene--green .cr-pscene__title,
.cr-pscene--orange .cr-pscene__title {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.cr-pscene--teal .cr-pscene__lead,
.cr-pscene--coral .cr-pscene__lead,
.cr-pscene--blue .cr-pscene__lead,
.cr-pscene--purple .cr-pscene__lead,
.cr-pscene--green .cr-pscene__lead,
.cr-pscene--orange .cr-pscene__lead {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.12);
}

.cr-pscene__benefits li {
  color: rgba(255,255,255,0.9);
}

.cr-pscene__stat strong {
  color: #fff;
}

.cr-pscene__speech p {
  color: #fff;
}

.cr-pscene__speech-label {
  color: rgba(255,255,255,0.7);
}

/* Headers keep dark text on light bg */
.cr-pscene--header-temprana .cr-pscene__cat-title,
.cr-pscene--header-escolar .cr-pscene__cat-title {
  color: var(--cr-dark, #2D3748);
}
.cr-pscene--header-temprana .cr-pscene__cat-sub,
.cr-pscene--header-escolar .cr-pscene__cat-sub {
  color: var(--cr-text-secondary, #5A6577);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .cr-pscene {
    min-height: auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
  }
  .cr-pscene__flow {
    grid-template-columns: 1fr;
  }
  .cr-pscene__flow--reverse {
    direction: ltr;
  }
  .cr-pscene__photo-wrap {
    margin: 0 auto 2rem;
  }
  .cr-pscene__dialogue {
    grid-template-columns: 1fr;
  }
  .cr-pscene__journey {
    flex-direction: column;
    align-items: center;
  }
  .cr-pscene__station-path {
    transform: rotate(90deg);
    flex: 0 0 30px;
  }
  .cr-pscene__orbs {
    width: 200px;
    height: 200px;
  }
}


/* ══════════════════════════════════════════════════════════════
   TALLERES TEASER — colorful tag cloud + CTA
   ══════════════════════════════════════════════════════════════ */

.cr-talleres-teaser {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  background: linear-gradient(160deg, #FFF9F0 0%, #F0F7FF 50%, #FFF5F8 100%);
  color: var(--cr-dark, #2D3748);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial dot pattern */
.cr-talleres-teaser::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* ── Blob decorations ── */
.cr-talleres-teaser__blob {
  position: absolute;
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  pointer-events: none;
  z-index: 0;
}
.cr-talleres-teaser__blob--1 {
  top: -50px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: #AB47BC;
  opacity: 0.08;
}
.cr-talleres-teaser__blob--2 {
  bottom: -30px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: #EF6C00;
  opacity: 0.06;
  border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
}
.cr-talleres-teaser__blob--3 {
  top: 40%;
  right: 8%;
  width: 120px;
  height: 120px;
  background: #00ACC1;
  opacity: 0.07;
  border-radius: 40% 60% 50% 50% / 60% 40% 50% 50%;
}

.cr-talleres-teaser__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cr-talleres-teaser__title {
  font-family: var(--cr-font-serif, 'Chennai', Georgia, serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--cr-dark, #2D3748);
  margin: 0.75rem 0 0.5rem;
}

.cr-talleres-teaser__subtitle {
  font-family: var(--cr-font-sans);
  font-size: 0.95rem;
  color: var(--cr-text-secondary, #5A6577);
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
}

.cr-talleres-teaser__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.cr-talleres-teaser__tags .cr-pill {
  background: var(--pill-bg, #7B1FA2);
  color: var(--pill-text, #fff);
  border: none;
  opacity: 0.9;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.cr-talleres-teaser__tags .cr-pill:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 1;
}
