.ibcd-nosotros {
  background: var(--bg);
  color: var(--text);
}

body.ibcd-nosotros-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body.ibcd-nosotros-body *,
body.ibcd-nosotros-body *::before,
body.ibcd-nosotros-body *::after {
  box-sizing: border-box;
}

body.ibcd-nosotros-body #page,
body.ibcd-nosotros-body .site,
body.ibcd-nosotros-body .site-content,
body.ibcd-nosotros-body .container {
  margin: 0;
  max-width: none;
  width: auto;
  padding: 0;
}

.ibcd-nosotros .section-label {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ibcd-nosotros .section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--teal);
}

.ibcd-nosotros .section-label.centered {
  justify-content: center;
}

.ibcd-nosotros .section-label.centered::before {
  display: none;
}

.ibcd-nosotros .section-label.light {
  color: var(--teal-light);
}

.ibcd-nosotros .section-label.light::before {
  background: var(--teal-light);
}

.ibcd-nosotros .page-hero {
  background: var(--navy);
  padding: 9rem 5rem 7rem;
  position: relative;
  overflow: hidden;
}

.ibcd-nosotros .page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(86, 195, 184, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 20%, rgba(86, 195, 184, 0.05) 0%, transparent 50%);
}

.ibcd-nosotros .page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.ibcd-nosotros .page-hero .section-label {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.1s ease both;
}

.ibcd-nosotros .page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
  animation: fadeUp 0.8s 0.25s ease both;
}

.ibcd-nosotros .page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}

.ibcd-nosotros .page-hero p {
  margin: 0;
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.85;
  max-width: 560px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.ibcd-nosotros .pastores,
.ibcd-nosotros .lideres,
.ibcd-nosotros .equipo {
  padding: 7rem 5rem;
}

.ibcd-nosotros .pastores {
  background: var(--bg);
}

.ibcd-nosotros .pastores-header,
.ibcd-nosotros .lideres-header,
.ibcd-nosotros .equipo-header {
  margin-bottom: 4rem;
  animation: fadeUp 0.8s 0.15s ease both;
}

.ibcd-nosotros .pastores-header .section-label {
  margin-bottom: 1.25rem;
}

.ibcd-nosotros .pastores-header h2,
.ibcd-nosotros .lideres-header h2,
.ibcd-nosotros .equipo-header h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ibcd-nosotros .pastores-header h2,
.ibcd-nosotros .equipo-header h2 {
  color: var(--navy);
}

.ibcd-nosotros .pastores-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ibcd-nosotros .pastor-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: start;
  height: auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 4px 40px rgba(47, 55, 70, 0.06);
  transition: box-shadow 0.3s;
  animation: fadeUp 0.8s ease both;
}

.ibcd-nosotros .pastor-card:nth-child(1) { animation-delay: 0.2s; }
.ibcd-nosotros .pastor-card:nth-child(2) { animation-delay: 0.35s; }
.ibcd-nosotros .pastor-card:nth-child(3) { animation-delay: 0.5s; }
.ibcd-nosotros .pastor-card:nth-child(4) { animation-delay: 0.65s; }

.ibcd-nosotros .pastor-card:hover {
  box-shadow: 0 12px 60px rgba(47, 55, 70, 0.12);
}

.ibcd-nosotros .pastor-card.reverse {
  grid-template-columns: 1fr 420px;
}

.ibcd-nosotros .pastor-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy-mid);
  height: 420px;
}

.ibcd-nosotros .pastor-photo-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.ibcd-nosotros .pastor-card.reverse .pastor-photo {
  order: 2;
}

.ibcd-nosotros .pastor-card:hover .pastor-photo-img {
  transform: scale(1.03);
}

.ibcd-nosotros .pastor-photo-placeholder {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ibcd-nosotros .pastor-photo-placeholder svg {
  opacity: 0.15;
}

.ibcd-nosotros .pastor-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(47, 55, 70, 0.5), transparent);
}

.ibcd-nosotros .pastor-info {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

.ibcd-nosotros .pastor-info::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2.5rem;
  bottom: 2.5rem;
  width: 3px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  border-radius: 3px;
}

.ibcd-nosotros .pastor-card.reverse .pastor-info::before {
  left: auto;
  right: 0;
}

.ibcd-nosotros .pastor-role,
.ibcd-nosotros .lider-role,
.ibcd-nosotros .miembro-role {
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.ibcd-nosotros .pastor-role {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}

.ibcd-nosotros .pastor-info h3 {
  margin: 0 0 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ibcd-nosotros .pastor-bio {
  font-family: 'Lora', serif;
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.ibcd-nosotros .pastor-bio p {
  margin: 0;
}

.ibcd-nosotros .pastor-bio p + p {
  margin-top: 0.85rem;
}

.ibcd-nosotros .pastor-bio-full {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  will-change: max-height, opacity, transform;
  transition: max-height 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, transform 0.45s ease, margin 0.45s ease;
  margin-top: 0;
}

.ibcd-nosotros .pastor-card.expanded .pastor-bio-full {
  max-height: none;
  opacity: 1;
  margin-top: 0.85rem;
  transform: translateY(0);
}

.ibcd-nosotros .pastor-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  background: transparent;
  border: 0;
  color: var(--teal);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(86, 195, 184, 0.3);
  padding: 0 0 2px;
  cursor: pointer;
  transition: border-color 0.2s, gap 0.2s;
}

.ibcd-nosotros .pastor-link:hover {
  border-color: var(--teal);
  gap: 0.75rem;
}

.ibcd-nosotros .pastor-link .link-text-less {
  display: none;
}

.ibcd-nosotros .pastor-card.expanded .pastor-link .link-text-more {
  display: none;
}

.ibcd-nosotros .pastor-card.expanded .pastor-link .link-text-less {
  display: inline;
}

.ibcd-nosotros .pastor-link .link-arrow {
  transition: transform 0.3s ease;
  display: inline-flex;
}

.ibcd-nosotros .pastor-card.expanded .pastor-link .link-arrow {
  transform: rotate(90deg);
}

.ibcd-nosotros .lideres {
  background: var(--navy);
}

.ibcd-nosotros .lideres-header {
  text-align: center;
}

.ibcd-nosotros .lideres-header .section-label {
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal-light);
}

.ibcd-nosotros .lideres-header .section-label::before {
  display: none;
}

.ibcd-nosotros .lideres-header h2 {
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.ibcd-nosotros .lideres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ibcd-nosotros .lider-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(86, 195, 184, 0.1);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  cursor: default;
  animation: fadeUp 0.8s ease both;
}

.ibcd-nosotros .lider-card:nth-child(1) { animation-delay: 0.2s; }
.ibcd-nosotros .lider-card:nth-child(2) { animation-delay: 0.3s; }
.ibcd-nosotros .lider-card:nth-child(3) { animation-delay: 0.4s; }
.ibcd-nosotros .lider-card:nth-child(4) { animation-delay: 0.5s; }
.ibcd-nosotros .lider-card:nth-child(5) { animation-delay: 0.6s; }
.ibcd-nosotros .lider-card:nth-child(6) { animation-delay: 0.7s; }

.ibcd-nosotros .lider-card:hover {
  border-color: rgba(86, 195, 184, 0.35);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.ibcd-nosotros .lider-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--navy-mid) 0%, #253040 100%);
  position: relative;
  overflow: hidden;
}

.ibcd-nosotros .lider-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.ibcd-nosotros .lider-card:hover .lider-photo-img {
  transform: scale(1.04);
}

.ibcd-nosotros .lider-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ibcd-nosotros .lider-photo-placeholder svg {
  opacity: 0.1;
}

.ibcd-nosotros .lider-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(47, 55, 70, 0.7), transparent);
}

.ibcd-nosotros .lider-info {
  padding: 1.5rem;
}

.ibcd-nosotros .lider-role {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
}

.ibcd-nosotros .lider-info h4 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ibcd-nosotros .equipo {
  background: var(--bg-soft);
}

.ibcd-nosotros .equipo-header {
  text-align: center;
}

.ibcd-nosotros .equipo-header .section-label {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ibcd-nosotros .equipo-header .section-label::before {
  display: none;
}

.ibcd-nosotros .equipo-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.ibcd-nosotros .equipo-header p {
  margin: 0 auto;
  max-width: 520px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.ibcd-nosotros .equipo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 3rem;
}

.ibcd-nosotros .miembro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 0 0 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  animation: fadeUp 0.8s ease both;
}

.ibcd-nosotros .miembro-card:nth-child(1) { animation-delay: 0.16s; }
.ibcd-nosotros .miembro-card:nth-child(2) { animation-delay: 0.22s; }
.ibcd-nosotros .miembro-card:nth-child(3) { animation-delay: 0.28s; }
.ibcd-nosotros .miembro-card:nth-child(4) { animation-delay: 0.34s; }
.ibcd-nosotros .miembro-card:nth-child(5) { animation-delay: 0.4s; }
.ibcd-nosotros .miembro-card:nth-child(6) { animation-delay: 0.46s; }
.ibcd-nosotros .miembro-card:nth-child(7) { animation-delay: 0.52s; }
.ibcd-nosotros .miembro-card:nth-child(8) { animation-delay: 0.58s; }
.ibcd-nosotros .miembro-card:nth-child(9) { animation-delay: 0.64s; }
.ibcd-nosotros .miembro-card:nth-child(10) { animation-delay: 0.7s; }
.ibcd-nosotros .miembro-card:nth-child(11) { animation-delay: 0.76s; }
.ibcd-nosotros .miembro-card:nth-child(12) { animation-delay: 0.82s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ibcd-nosotros .miembro-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(86, 195, 184, 0.1);
  transform: translateY(-3px);
}

.ibcd-nosotros .miembro-photo {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-mid) 0%, #253040 100%);
}

.ibcd-nosotros .miembro-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.ibcd-nosotros .miembro-card:hover .miembro-photo-img {
  transform: scale(1.04);
}

.ibcd-nosotros .miembro-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-teal), #d1e8e6);
}

.ibcd-nosotros .miembro-photo-placeholder svg {
  opacity: 0.35;
}

.ibcd-nosotros .miembro-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  padding: 0 1rem;
  margin-top: 0.65rem;
}

.ibcd-nosotros .miembro-role {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  line-height: 1.3;
  color: var(--teal);
  padding: 0 1rem;
}

@media (max-width: 1024px) {
  .ibcd-nosotros .pastor-card,
  .ibcd-nosotros .pastor-card.reverse {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ibcd-nosotros .pastor-card.reverse .pastor-photo {
    order: 0;
  }

  .ibcd-nosotros .pastor-photo-placeholder {
    height: 100%;
  }

  .ibcd-nosotros .pastor-photo-img {
    height: 100%;
  }

  .ibcd-nosotros .pastor-photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .ibcd-nosotros .pastor-info {
    min-height: 300px;
  }

  .ibcd-nosotros .pastor-info {
    padding: 2.5rem;
  }

  .ibcd-nosotros .pastor-info::before {
    top: 0;
    bottom: auto;
    left: 2.5rem;
    right: auto;
    width: 60px;
    height: 3px;
  }

  .ibcd-nosotros .pastor-card.reverse .pastor-info::before {
    right: auto;
    left: 2.5rem;
  }

  .ibcd-nosotros .lideres-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ibcd-nosotros .equipo-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
  }
}

@media (max-width: 768px) {
  .ibcd-nosotros .page-hero {
    padding: 7rem 2rem 5rem;
  }

  .ibcd-nosotros .pastores,
  .ibcd-nosotros .lideres,
  .ibcd-nosotros .equipo {
    padding: 5rem 1.5rem;
  }

  .ibcd-nosotros .equipo-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }
}

@media (max-width: 480px) {
  .ibcd-nosotros .lideres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .ibcd-nosotros .equipo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .ibcd-nosotros .miembro-card {
    padding-bottom: 1.25rem;
  }

  .ibcd-nosotros .miembro-photo {
    height: 160px;
  }

  .ibcd-nosotros .miembro-name {
    font-size: 0.88rem;
  }

  .ibcd-nosotros .miembro-role {
    font-size: 0.58rem;
  }
}
