/* =========================================================
RESET VISUAL GENERAL
========================================================= */
.pe{
  --pe-yellow:#ffd200;
  --pe-dark:#171717;
  --pe-ink:#111111;
  color:var(--pe-ink);
  font-family:'Montserrat',sans-serif;
  background:#ffffff;
}
.pe *, .pe *::before, .pe *::after{ box-sizing:border-box; }
.pe__container{ max-width:1400px; margin:0 auto; padding:0 30px; }
.pe img{ display:block; max-width:100%; }
.pe-placeholder{
  display:flex; align-items:center; justify-content:center;
  min-height:220px; background:#e9e9e9; color:#777;
  font-size:14px; text-align:center; padding:20px;
}

/* =========================================================
BOTONES
========================================================= */
.pe-btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none !important;
  line-height:1; border:0; cursor:pointer;
  transition:all .18s ease;
  border-radius:2px; font-weight:700; letter-spacing:.2px;
}
.pe-btn--primary{
  background:var(--pe-yellow);
  color:#111 !important;
  padding:16px 32px;
  font-size:15px; font-weight:700;
  border:none; box-shadow:none;
}
.pe-btn--primary:hover{ background:#e6bd00; transform:translateY(-1px); }

/* =========================================================
HERO
========================================================= */
.pe-hero{
  position:relative; min-height:680px;
  display:flex; align-items:center; justify-content:center;
  text-align:center; overflow:hidden;
  background:#111 center center / cover no-repeat;
}
.pe-hero__overlay{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.60) 100%);
}
.pe-hero__inner{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:46px;
  max-width:1372px; margin:0 auto; padding:100px 24px 40px;
}
.pe-hero__title{
  margin:0 auto; width:100%;
  font-size:clamp(40px, 7.4vw, 100px) !important;
  line-height:1.08; font-weight:600 !important;
  color:#ffffff; letter-spacing:-0.02em;
}
.pe-hero__subtitle{
  margin:0 auto; max-width:1372px;
  font-size:35px; line-height:1.5;
  font-weight:500; color:rgba(255,255,255,.95);
}
.pe-hero__ctas{ display:flex; justify-content:center; }
.pe-hero__ctas .pe-btn--primary{ font-size:18px; }
.pe-hero.pe-hero--flipped{
  position:relative;
  background-image:none !important;
}
.pe-hero.pe-hero--flipped::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:center 30%;
  background-repeat:no-repeat;
  transform:scaleX(-1);
  z-index:0;
}
.pe-hero.pe-hero--flipped .pe-hero__inner{
  position:relative;
  z-index:1;
}

/* =========================================================
SECCIONES (base) + BADGE
========================================================= */
.pe-section{ padding:20px 0; }
.pe-eyebrow-badge{
  display:table; margin:0 auto 40px; padding:10px 22px;
  background:var(--pe-yellow); color:#111;
  font-size:22px; font-weight:800; text-transform:uppercase;
  letter-spacing:.02em; line-height:1; border:none; border-radius:0;
}

/* =========================================================
TIPOLOGÍAS DE PROGRAMAS (6 cajas con borde amarillo)
========================================================= */
.pe-section--tipologias{ padding:70px 0 60px; }
.pe-tipos{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:26px;
}
.pe-tipo{
  border:2px solid var(--pe-yellow); background:#ffffff;
  padding:40px 28px 36px; text-align:center;
}
.pe-tipo__icon{
  display:flex; justify-content:center; align-items:center;
  color:#111; margin-bottom:20px;
}
.pe-tipo__icon svg, .pe-tipo__icon img{ width:44px; height:44px; }
.pe-tipo__title{ margin:0 0 10px; font-size:17px; line-height:1.25; font-weight:700; color:#111; }
.pe-tipo__text{ margin:0; font-size:12.5px; line-height:1.55; color:#555; }

/* =========================================================
CASOS REALES (banda oscura) + TARJETA SOLAPADA
========================================================= */
.pe-casos{ background:#1a1a1c; padding:90px 0 0; color:#fff; }
.pe-casos .pe__container{ display:flow-root; }
.pe-casos__h2{
  margin:0 0 50px; text-align:center;
  color:var(--pe-yellow);
  font-size:clamp(30px, 4.7vw, 65px) !important;
  font-weight:700 !important; text-transform:uppercase;
  letter-spacing:-0.01em;
}
.pe-casos__grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:24px;
  margin-bottom:80px;
}
.pe-caso{ background:#f7f7f7; color:#111; padding:26px 22px; }
.pe-caso__title{ margin:0 0 6px; font-size:16px; line-height:1.3; font-weight:700; color:#111; }
.pe-caso__sector{ margin:0 0 16px; font-size:14px; color:#9a9a9a; }
.pe-caso__p{ margin:0 0 12px; font-size:12.5px; line-height:1.55; font-style:italic; color:#444; }
.pe-caso__p:last-child{ margin-bottom:0; }
/* Tarjeta "Para quién es": mitad dentro de la banda oscura */
.pe-quien{
  position:relative; z-index:2; overflow:hidden;
  margin-bottom:-140px;
  min-height:280px;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  background:#333 center center / cover no-repeat;
}
.pe-quien__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.5); }
.pe-quien__inner{ position:relative; z-index:1; max-width:920px; padding:60px 30px; }
.pe-quien__title{
  margin:0 0 22px;
  font-size:clamp(28px, 3vw, 40px); font-weight:700; color:#fff;
}
.pe-quien__list{
  margin:0 0 30px; padding:0; list-style:none;
  color:#fff; font-size:15px; line-height:1.8; font-weight:500;
}
.pe-quien__list li::before{ content:"· "; }

/* =========================================================
FAQ (badge a la izquierda)
========================================================= */
.pe-section--faq{ padding:200px 0 140px; }
.pe-section:has(.pe-faq) .pe-eyebrow-badge{ margin:0 0 24px; }
.pe-faq{ max-width:1220px; margin:auto; }
.pe-faq__item{ border-bottom:1px solid #e4c42a; }
.pe-faq__q{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; width:100%; background:none; border:0;
  cursor:pointer; text-align:left; padding:24px 0;
}
.pe-faq__qtext{ font-size:17px !important; font-weight:700 !important; color:#111; margin:0; }
.pe-faq__icon{ width:22px; height:22px; flex:none; color:#111; }
.pe-faq__icon svg{ width:20px; height:20px; transition:transform .2s ease; }
.pe-faq__item.is-open .pe-faq__icon svg{ transform:rotate(180deg); }
.pe-faq__acontent{
  font-size:14px; line-height:1.8; color:#555;
  max-width:1050px; padding-bottom:26px;
}

/* =========================================================
MODAL
========================================================= */
.pe-modal{ position:fixed; inset:0; z-index:9999; display:none; }
.pe-modal.is-open{ display:block; }
.pe-modal__overlay{ position:absolute; inset:0; background:rgba(0,0,0,.6); }
.pe-modal__dialog{
  position:relative; z-index:1; background:#fff;
  max-width:560px; margin:8vh auto; padding:48px 36px 36px;
}
.pe-modal__close{
  position:absolute; top:10px; right:10px;
  background:none; border:0; cursor:pointer; color:#111;
}
.pe-modal-lock{ overflow:hidden; }

/* =========================================================
RESPONSIVE
========================================================= */
@media (max-width:1100px){
  .pe-tipos{ grid-template-columns:repeat(2, 1fr); }
  .pe-casos__grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:768px){
  .pe-section{ padding:40px 0; }
  .pe-hero{ min-height:500px; }
  .pe-hero__inner{ padding:80px 24px 64px; }
  .pe-hero__title{ font-size:36px !important; }
  .pe-hero__subtitle{ font-size:16px; }
  .pe-eyebrow-badge{ font-size:16px; padding:8px 16px; }
  .pe-tipos{ grid-template-columns:1fr; }
  .pe-casos__grid{ grid-template-columns:1fr; }
  .pe-quien{ margin-bottom:-60px; }
  .pe-section--faq{ padding:120px 0 70px; }
  .pe-faq__q{ padding:20px 0; }
  .pe-faq__qtext{ font-size:15px !important; }
}