/* =====================
   HERO NOSOTROS
===================== */
.nosotros-hero {
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
              url('../img/nosotros-hero.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 6rem 0;
  text-align: center;
}

.nosotros-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.nosotros-hero p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* =====================
   GRID IDENTIDAD
===================== */
.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.nosotros-card {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.nosotros-card h3 {
  margin-bottom: 1rem;
  color: #2563eb;
}

.nosotros-card ul li {
  margin-bottom: .5rem;
}

/* =====================
   DOCTRINA
===================== */
.doctrine {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.doctrine blockquote {
  margin-top: 1.8rem;
  padding-left: 1rem;
  border-left: 4px solid #2563eb;
  font-style: italic;
}

/* ==========================
   CARRUSEL IGLESIA
========================== */

.carousel-text {
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.05rem;
  color: #4b5563;
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* TRACK */
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
}

/* SLIDES */
.carousel-slide {
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

/* BOTONES */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 1000;
  transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel-slide img {
    height: 260px;
  }

  .carousel-btn {
    font-size: 1.6rem;
    padding: 0.3rem 0.8rem;
  }
}

/* ===== FIX CARRUSEL ===== */
.carousel {
  overflow: hidden !important;
}

.carousel-track {
  display: flex !important;
  width: max-content !important;
  will-change: transform;
}

.carousel-slide {
  width: 100% !important;
  flex-shrink: 0 !important;
}


/* =====================
   LIDERES
===================== */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.leader-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: .3s;
}

.leader-card:hover {
  transform: translateY(-6px);
}

.leader-card img {
  width: 100%;
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.leader-card h4 {
  margin-bottom: .7rem;
  color: #2563eb;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {

  .nosotros-hero h1 {
    font-size: 2.2rem;
  }

  .nosotros-grid,
  .leaders-grid {
    grid-template-columns: 1fr;
  }
}
