/* ══════════════════════════════════════════════════
   lideres.css — Página Líderes · IBG
   Scope: .page-template-page-lideres .lid-page
   ══════════════════════════════════════════════════ */

* { box-sizing: border-box; }

/* ── Override tipografía ── */
.page-template-page-lideres .lid-page h1,
.page-template-page-lideres .lid-page h2,
.page-template-page-lideres .lid-page h3 {
  text-transform: none !important;
  letter-spacing: normal;
}

/* ── Inner ── */
.lid-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Secciones ── */
.lid-section {
  background: #fff;
  padding: 4.5rem 0;
  border-bottom: 0.5px solid #e8e0d8;
}
.lid-section--gray {
  background: #F5F4F0;
  border-top: 0.5px solid #e8e0d8;
}
.lid-section:last-of-type { border-bottom: none; }

/* ── Título de sección ── */
.page-template-page-lideres .lid-page .lid-section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #3E3838;
  margin: 0.4rem 0 0.5rem;
  text-transform: none !important;
}

.lid-section-desc {
  font-size: 16px;
  color: #777;
  line-height: 1.7;
  margin: 0 0 2.5rem;
}

/* ── Hero ── */
.lid-hero {
  position: relative;
  height: 580px;
  background-color: #024555;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.lid-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem 3.5rem;
}
.page-template-page-lideres .lid-page .lid-hero-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.9rem;
  text-transform: none !important;
}
.lid-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
}

/* ── Tarjeta pastor ── */
.lid-pastor-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
  background: #fff;
  border: 0.5px solid #e8e0d8;
  border-radius: 22px;
  padding: 2.5rem;
  transition: box-shadow 0.25s ease;
}
.lid-pastor-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

/* Foto pastor */
.lid-pastor-photo-wrap { flex-shrink: 0; }
.lid-pastor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background-size: cover;
  background-position: center top;
  background-color: #024555;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lid-pastor-photo--placeholder {
  background-color: #024555;
}

/* Bio pastor */
.lid-pastor-bio {
  display: flex;
  flex-direction: column;
  gap: 0;
  word-break: auto-phrase;
}

.lid-pastor-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF0EB;
  color: #FF5C1B;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.page-template-page-lideres .lid-page .lid-pastor-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #3E3838;
  margin: 0 0 1.4rem;
  text-transform: none !important;
}

.lid-pastor-text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.lid-pastor-text p {
  font-size: 16px;
  color: #555;
  line-height: 1.75;
  margin: 0;
  word-break: auto-phrase;
}

.lid-pastor-familia {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #777;
  margin-bottom: 1.4rem;
  font-style: italic;
}
.lid-pastor-familia svg { flex-shrink: 0; }

.lid-pastor-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #3E3838;
  text-decoration: none;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
  align-self: flex-start;
}
.lid-pastor-blog:hover {
  border-color: #FF5C1B;
  color: #FF5C1B;
}

/* ── Residentes pastorales ── */
.lid-res-wrap {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 0.5px solid #e8e0d8;
}

.lid-res-header {
  margin-bottom: 2rem;
}

.page-template-page-lideres .lid-page .lid-res-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #3E3838;
  margin: 0.4rem 0 0.4rem;
  text-transform: none !important;
}

.lid-res-intro {
  font-size: 15px;
  color: #777;
  line-height: 1.65;
  margin: 0;
}

.lid-res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.lid-res-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: start;
  background: #F5F4F0;
  border: 0.5px solid #e8e0d8;
  border-radius: 18px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.lid-res-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  border-color: #FFCDB8;
  transform: translateY(-2px);
}

/* Foto residente */
.lid-res-photo-wrap { flex-shrink: 0; }
.lid-res-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background-size: cover;
  background-position: center top;
  background-color: #024555;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lid-res-photo--placeholder {
  background-color: #024555;
}

/* Bio residente */
.lid-res-bio {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lid-res-badge {
  display: inline-flex;
  align-self: flex-start;
  background: #fff;
  color: #FF5C1B;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 0.5px solid #FFCDB8;
  margin-bottom: 0.75rem;
}

.page-template-page-lideres .lid-page .lid-res-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #3E3838;
  margin: 0 0 0.9rem;
  text-transform: none !important;
}

.lid-res-text {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lid-res-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin: 0;
  word-break: auto-phrase;
}

/* ── Grid ministerios ── */
.lid-min-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 1rem;
  margin-top: 2.5rem;
}

.lid-min-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 1.5rem 0.75rem 1.25rem;
  border-radius: 18px;
  background: #fff;
  border: 0.5px solid #ece8e3;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
}
.lid-min-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
  border-color: #FFCDB8;
}

.lid-min-photo-wrap { flex-shrink: 0; }

.lid-min-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #024555;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.lid-min-photo--placeholder {
  background-color: #FFF0EB;
}
.lid-min-photo--placeholder span {
  font-size: 28px;
  font-weight: 700;
  color: #FF5C1B;
  line-height: 1;
}

.page-template-page-lideres .lid-page .lid-min-name {
  font-size: 14px;
  font-weight: 700;
  color: #3E3838;
  line-height: 1.3;
  margin: 0;
  text-transform: none !important;
  word-break: auto-phrase;
}
.lid-min-rol {
  font-size: 12px;
  font-weight: 600;
  color: #FF5C1B;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

/* ── Fade-up ── */
.lid-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lid-fade-up.lid-visible {
  opacity: 1;
  transform: translateY(0);
}
.lid-min-card.lid-fade-up:nth-child(2)  { transition-delay: 0.04s; }
.lid-min-card.lid-fade-up:nth-child(3)  { transition-delay: 0.08s; }
.lid-min-card.lid-fade-up:nth-child(4)  { transition-delay: 0.12s; }
.lid-min-card.lid-fade-up:nth-child(5)  { transition-delay: 0.16s; }
.lid-min-card.lid-fade-up:nth-child(6)  { transition-delay: 0.20s; }
.lid-min-card.lid-fade-up:nth-child(7)  { transition-delay: 0.24s; }
.lid-min-card.lid-fade-up:nth-child(8)  { transition-delay: 0.28s; }
.lid-min-card.lid-fade-up:nth-child(9)  { transition-delay: 0.32s; }
.lid-min-card.lid-fade-up:nth-child(10) { transition-delay: 0.36s; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .lid-min-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .lid-inner { padding: 0; }
  .lid-section { padding: 3rem 1.25rem; }
  .lid-section--gray { padding: 3rem 1.25rem; }

  .lid-hero { height: 520px; }
  .lid-hero-content { padding: 0 1.25rem 2.5rem; }
  .page-template-page-lideres .lid-page .lid-hero-title { font-size: 34px; }
  .lid-hero-sub { font-size: 16px; }

  .page-template-page-lideres .lid-page .lid-section-title { font-size: 28px; }

  .lid-pastor-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
    border-radius: 16px;
  }
  .lid-pastor-photo {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .page-template-page-lideres .lid-page .lid-pastor-name { font-size: 24px; }

  .lid-min-photo { width: 90px; height: 90px; }
  .page-template-page-lideres .lid-page .lid-min-name { font-size: 13px; }
  .lid-min-rol { font-size: 11px; }

  .lid-res-grid { grid-template-columns: 1fr; }
  .lid-res-card {
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .page-template-page-lideres .lid-page .lid-res-name { font-size: 16px; }
}
