/* =========================================================
   Programa page — purple theme + hero
   Theme is scoped to body.theme-purple; footer is reset to
   the gold brand palette so the global footer stays consistent.
   ========================================================= */

body.theme-purple {
  --gold:        #6f6da8; /* header bar */
  --gold-bar-2:  #615f9b;
  --gold-deep:   #6f6db2; /* buttons / accents */
  --gold-deep-2: #5b599d;
  --gold-text:   #7b79c0; /* "Libertad" accent */
  --gold-soft:   #cfcce8;

  --cream:       #f2f0f9; /* page background */
  --cream-2:     #e1def0;
  --cream-3:     #ebe9f5;
  background: var(--cream);
}

/* keep the global footer in the gold brand palette */
body.theme-purple .site-footer {
  --gold-deep: #a98f4d;
  --gold-text: #b3974c;
  --gold-soft: #d8cba6;
  --cream-3:   #efe7d8;
}

/* ---------- HERO ---------- */
.programa-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 78px 0 130px;
  background: linear-gradient(180deg, #edebf6 0%, #e6e3f1 60%, #e3e0ef 100%);
}
.programa-hero .big-circle {
  position: absolute;
  z-index: -1;
  right: -110px;
  top: 30px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: rgba(118,114,180,0.16);
}
.programa-hero .small-circle {
  position: absolute;
  z-index: -1;
  left: -90px;
  bottom: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(118,114,180,0.10);
}
.programa-hero .wrap { position: relative; z-index: 1; }

.programa-icon {
  width: 116px;
  height: 116px;
  margin: 0 auto 26px;
  display: grid;
  place-items: center;
}
.programa-icon img { width: 100%; height: 100%; object-fit: contain; }
.programa-icon .ph { background: transparent !important; }

.programa-hero h1 {
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -.015em;
}
.programa-hero h1 .accent {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  text-decoration-color: rgba(123,121,192,.55);
}
.programa-hero .lead {
  max-width: 840px;
  margin: 24px auto 0;
  font-size: clamp(18px, 1.55vw, 23px);
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .programa-hero { padding: 54px 0 90px; }
  .programa-hero .big-circle { width: 360px; height: 360px; right: -120px; }
}

/* ---------- ¿QUÉ INCLUYE? ---------- */
.incluye {
  position: relative;
  padding: 96px 0 110px;
  background: linear-gradient(180deg, #e3e0ef 0%, #efedf6 22%, #f3f1f9 100%);
}
.incluye-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 70px;
  align-items: center;
}
.incluye-copy { position: relative; z-index: 2; }
.incluye-copy h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.06;
  margin-bottom: 38px;
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
}
.check-list .check {
  flex: none;
  width: 30px; height: 30px;
  color: var(--gold-text);
}
.check-list .check svg { width: 100%; height: 100%; display: block; }

/* ---------- TESTIMONIOS ---------- */
.testi {
  padding: 20px 0 96px;
  background: linear-gradient(180deg, #e3e0ef 0%, #efedf6 55%, #f1eff8 100%);
}
.testi-card {
  position: relative;
  display: flex;
  min-height: 470px;
  border-radius: 30px;
  overflow: hidden;
  background: #fbfaff;
  box-shadow: 0 44px 90px -38px rgba(60,55,110,.45);
}
.testi-photo { position: absolute; inset: 0; }
.testi-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 22% center;
  -webkit-mask: linear-gradient(90deg, #000 36%, rgba(0,0,0,0) 70%);
          mask: linear-gradient(90deg, #000 36%, transparent 70%);
}
.testi-quotes {
  position: relative;
  margin-left: auto;
  width: 44%;
  min-height: 470px;
  padding: 48px 54px;
}
.tq {
  position: absolute;
  inset: 44px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s ease, transform .8s ease;
  pointer-events: none;
}
.tq.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tq p {
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 18px;
}
.tq cite {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-text);
  font-size: 16px;
}
.testi-dots { position: absolute; left: 54px; bottom: 34px; display: flex; gap: 8px; }
.testi-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0;
  background: #d3cfe6; cursor: pointer; padding: 0;
  transition: width .3s ease, background .3s ease;
}
.testi-dots button.active { width: 28px; background: var(--gold-text); }

@media (max-width: 860px) {
  .testi { padding: 10px 0 64px; }
  .testi-card { flex-direction: column; min-height: 0; }
  .testi-photo { position: relative; height: 240px; }
  .testi-photo img {
    object-position: center;
    -webkit-mask: linear-gradient(180deg, #000 62%, transparent 99%);
            mask: linear-gradient(180deg, #000 62%, transparent 99%);
  }
  .testi-quotes { width: 100%; min-height: 230px; padding: 26px 28px 46px; }
  .tq { inset: 26px 28px 46px; }
  .testi-dots { left: 28px; bottom: 18px; }
}

/* ---------- CUERPO · ALMA · ESPÍRITU (capas parallax + tarjetas) ---------- */
.cae {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
  background: linear-gradient(180deg, #e3e0ef 0%, #efedf6 42%, #f3f1f9 100%);
}
.cae-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 1080px;
}
.capas-stage {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 720px;
  height: 880px;
  z-index: 1;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.capa { grid-area: 1 / 1; }
.capa img {
  display: block;
  height: auto;
  filter: drop-shadow(0 26px 46px rgba(70,60,120,.32));
  will-change: transform;
}
.capa-cuerpo   { z-index: 1; }
.capa-alma     { z-index: 2; }
.capa-espiritu { z-index: 3; }
.capa-cuerpo   img { width: 632px; }
.capa-alma     img { width: 604px; }
.capa-espiritu img { width: 604px; }

.cae-card {
  position: absolute;
  width: 376px;
  max-width: 38%;
  padding: 24px 28px 25px;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 28px 56px -26px rgba(40,35,60,.45);
  z-index: 3;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.cae-card h3 {
  color: #fff;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  margin-bottom: 11px;
}
.cae-card p {
  color: #fff;
  font-size: clamp(13px, .95vw, 14px);
  line-height: 1.48;
  margin: 0 0 11px;
  text-align: justify;
  opacity: .97;
}
.cae-card p:last-child { margin-bottom: 0; }
.card-cuerpo   { top: 6px;   left: 0;       background: #a3905c; transition-duration: .55s; }
.card-alma     { top: 150px; right: 0;      background: #e9b008; transition-duration: .75s; }
.card-espiritu { bottom: 6px; right: 70px;  background: #6f6db2; transition-duration: .4s; }

@media (max-width: 980px) {
  .cae { padding: 50px 0 60px; }
  .cae-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
  .capas-stage {
    position: relative;
    left: auto; top: auto;
    transform: scale(.82);
    width: 560px; height: 600px;
    margin: -36px 0;
  }
  .cae-card {
    position: static;
    inset: auto;
    width: 100%;
    max-width: 560px;
  }
}
@media (max-width: 600px) {
  .capas-stage { transform: scale(.56); height: 560px; }
  .cae-card { padding: 24px 24px 26px; }
}

/* ---------- ¿QUÉ INCLUYE? — imagen ---------- */
.incluye-photo {
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  aspect-ratio: .96 / 1;
  border-radius: 30px;
  box-shadow: 0 40px 80px -30px rgba(60,55,110,.45);
  background: #d9d6ea;
}

/* ---------- CAROUSEL ---------- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 40px 80px -30px rgba(60,55,110,.45);
  aspect-ratio: .96 / 1;
  background: #d9d6ea;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.5,.1,.2,1);
}
.carousel-track .slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}
.carousel-track .slide .ph { width: 100%; height: 100%; }
.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 2;
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
  transition: width .3s ease, background .3s ease;
}
.carousel-dots button.active { width: 30px; background: #fff; }

@media (max-width: 860px) {
  .incluye { padding: 64px 0 80px; }
  .incluye-grid { grid-template-columns: 1fr; gap: 44px; }
  .carousel { margin: 0 auto; }
  .incluye-photo { margin: 0 auto; }
}
body.theme-purple::before {
  content: '' !important;
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
 background: url('https://shigra.app/FundacionEsperanza/trazo-rey2.png') center center / 100% auto no-repeat !important;
opacity: 0.2

 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
body.theme-purple .programa-hero,
body.theme-purple .testi,
body.theme-purple .cae,
body.theme-purple .incluye {
  background: transparent !important;
}