/* ================================================================
   PAGE — TEMPLATE EQUIPO
   Prefijo: pe-
   Cargado DESPUÉS de new-home.css
================================================================ */

/* ── Contenedor ── */
#cw-landing-wrapper .pe-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px
}

/* ── Eyebrow ── */
#cw-landing-wrapper .pe-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #db1709;
  margin-bottom: 14px
}

/* ════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
#cw-landing-wrapper .pe-hero {
  background: #1a1a1a;
  padding: 80px 0 72px;
  text-align: center
}

#cw-landing-wrapper .pe-hero__title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px !important
}

#cw-landing-wrapper .pe-hero__highlight {
  color: #db1709
}

#cw-landing-wrapper .pe-hero__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto
}

/* ════════════════════════════════════════════════════
   SECCIONES
════════════════════════════════════════════════════ */
#cw-landing-wrapper .pe-section {
  padding: 72px 0 80px
}

#cw-landing-wrapper .pe-section--white {
  background: #fff
}

#cw-landing-wrapper .pe-section--gray {
  background: #f7f6f4
}

#cw-landing-wrapper .pe-section__title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 44px !important;
  line-height: 1.2
}

/* ════════════════════════════════════════════════════
   GRID
════════════════════════════════════════════════════ */
#cw-landing-wrapper .pe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px
}

/* ════════════════════════════════════════════════════
   CARD
════════════════════════════════════════════════════ */
#cw-landing-wrapper .pe-card {
  background: #fff;
  border: 1px solid #e8e5e2;
  border-radius: 16px;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease
}

#cw-landing-wrapper .pe-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  transform: translateY(-3px)
}

/* Photo wrap */
#cw-landing-wrapper .pe-card__photo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  flex-shrink: 0
}

#cw-landing-wrapper .pe-card__photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: #db1709;
  border-radius: 0 0 12px 0
}

#cw-landing-wrapper .pe-card__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  border: 3px solid #fff
}

#cw-landing-wrapper .pe-card__initials {
  position: absolute;
  top: 0;
  left: 0;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1
}

/* Card body */
#cw-landing-wrapper .pe-card__body {
  flex: 1
}

#cw-landing-wrapper .pe-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin-bottom: 10px !important
}

#cw-landing-wrapper .pe-card__dash {
  width: 24px;
  height: 3px;
  background: #db1709;
  margin-bottom: 10px
}

#cw-landing-wrapper .pe-card__certs {
  font-size: 13px;
  color: #6b6867;
  line-height: 1.6;
  margin-bottom: 0 !important
}

/* Ver más button */
#cw-landing-wrapper .pe-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #db1709;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 16px;
  transition: gap .18s ease
}

#cw-landing-wrapper .pe-card__btn:hover {
  gap: 8px
}

/* Contenido de presentación — oculto, solo para JS */
#cw-landing-wrapper .pe-pres-store {
  display: none
}

/* ════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════ */
#cw-landing-wrapper .pe-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease
}

#cw-landing-wrapper .pe-modal.is-open {
  opacity: 1;
  pointer-events: all
}

/* Overlay */
#cw-landing-wrapper .pe-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .22s ease
}

#cw-landing-wrapper .pe-modal.is-open .pe-modal__overlay {
  background: rgba(0, 0, 0, .55)
}

/* Box */
#cw-landing-wrapper .pe-modal__box {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  transform: translateY(18px);
  transition: transform .22s ease;
  scrollbar-width: thin;
  scrollbar-color: #e0deda transparent
}

#cw-landing-wrapper .pe-modal.is-open .pe-modal__box {
  transform: translateY(0)
}

/* Cerrar */
#cw-landing-wrapper .pe-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #e8e5e2;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: background .15s ease
}

#cw-landing-wrapper .pe-modal__close:hover {
  background: #f7f6f4
}

/* Header del modal */
#cw-landing-wrapper .pe-modal__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px
}

#cw-landing-wrapper .pe-modal__photo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0
}

#cw-landing-wrapper .pe-modal__photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: #db1709;
  border-radius: 0 0 10px 0
}

#cw-landing-wrapper .pe-modal__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  border: 3px solid #fff
}

#cw-landing-wrapper .pe-modal__initials {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1
}

#cw-landing-wrapper .pe-modal__name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px !important
}

#cw-landing-wrapper .pe-modal__certs {
  font-size: 13.5px;
  color: #6b6867;
  line-height: 1.6;
  margin-bottom: 0 !important
}

/* Separador */
#cw-landing-wrapper .pe-modal__sep {
  height: 1px;
  background: #eeece9;
  margin-bottom: 22px
}

/* Cuerpo — contenido WYSIWYG */
#cw-landing-wrapper .pe-modal__body {
  font-size: 15px;
  line-height: 1.8;
  color: #2d2c2b
}

#cw-landing-wrapper .pe-modal__body p {
  margin-bottom: 14px !important;
  margin-top: 0 !important
}

#cw-landing-wrapper .pe-modal__body h2,
#cw-landing-wrapper .pe-modal__body h3,
#cw-landing-wrapper .pe-modal__body h4 {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px !important;
  margin-top: 20px !important
}

#cw-landing-wrapper .pe-modal__body ul,
#cw-landing-wrapper .pe-modal__body ol {
  margin: 0 0 14px 20px !important;
  padding: 0 !important
}

#cw-landing-wrapper .pe-modal__body li {
  margin-bottom: 6px !important
}

#cw-landing-wrapper .pe-modal__body strong {
  font-weight: 600;
  color: #1a1a1a
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — 960px
════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  #cw-landing-wrapper .pe-hero__title { font-size: 36px }
  #cw-landing-wrapper .pe-grid { grid-template-columns: repeat(3, 1fr) }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — 600px
════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  #cw-landing-wrapper .pe-hero { padding: 56px 0 48px }
  #cw-landing-wrapper .pe-hero__title { font-size: 28px }
  #cw-landing-wrapper .pe-section { padding: 52px 0 60px }
  #cw-landing-wrapper .pe-section__title { font-size: 24px; margin-bottom: 32px !important }
  #cw-landing-wrapper .pe-grid { grid-template-columns: repeat(2, 1fr); gap: 12px }
  #cw-landing-wrapper .pe-card { padding: 18px 14px 14px }
  #cw-landing-wrapper .pe-modal__box { padding: 28px 20px 24px; max-height: 92vh }
  #cw-landing-wrapper .pe-modal__header { gap: 14px }
}
