.hero {
  width: 100%;
  height: 100vh;
  overflow: hidden; /* por si la imagen se desborda */
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* se recorta como background-size: cover */
}


/* ✅ SECCIONES */
section:not(.hero) {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* ✅ TÍTULOS */
section h2 {
  font-size: 2.5rem;
  color: var(--color-header);
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

section .subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 25px;
  font-weight: 400;
}

section .description {
  max-width: 850px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

/* ✅ LOGO SEPARADOR */
.logo-separator {
  text-align: center;
  margin: 30px auto;
}

/* ✅ CITA DESTACADA con animación typing */
.quote {
  width: 100%;
  max-width: 100%;
  padding: 50px 10%;
  background: #fff4e6;
  border-top: 3px solid var(--color-header);
  border-bottom: 3px solid var(--color-header);
  text-align: center;
  overflow: hidden;
}

.typing-text {
  display: inline-block;
  max-width: 100%;
  font-size: 1.3rem;
  font-style: italic;
  color: #333;
  white-space: normal;
  overflow: hidden;
  animation: typing 4s steps(80, end) forwards;
}

/* ✅ Animación typing */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* ✅ GRILLA GENERAL */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
}

/* 🎯 Autoridades institucionales */
.autoridades .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* flexible */
  gap: 30px;
  justify-content: center; /* centra todo el grid */
  margin-top: 40px;
}

.autoridades .card {
  width: 100%;
  max-width: 250px;
}


/* 📱 Tablets: 2 por fila */
@media (max-width: 992px) {
  .autoridades .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 Móviles: 1 por fila */
@media (max-width: 768px) {
  .autoridades .grid {
    grid-template-columns: 1fr;
  }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.card h4 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: var(--color-header);
}

.card p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* ✅ RESPONSIVE OPTIMIZADO (solo contenido de index) */

/* Tablets */
@media (max-width: 992px) {
  .hero { height: 60vh; background-position: center; }
  section h2 { font-size: 2rem; }
  section .description { font-size: 0.95rem; padding: 0 15px; }
  .grid { gap: 20px; }
  .logo-separator img { max-width: 90px; }
  .typing-text { font-size: 1.2rem; line-height: 1.5; }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .hero { height: 50vh; }
  section h2 { font-size: 1.8rem; }
  section:not(.hero) { padding: 50px 15px; }
  .logo-separator img { max-width: 70px; }
  .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .typing-text { font-size: 1rem; line-height: 1.4; }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .hero { height: 40vh; }
  section h2 { font-size: 1.5rem; }
  section .description { font-size: 0.9rem; line-height: 1.6; }
  .logo-separator img { max-width: 55px; }
  .card { padding: 15px; }
  .card h4 { font-size: 1rem; }
  .card p { font-size: 0.85rem; }
  .typing-text { font-size: 0.95rem; }
}


/* 📖 Mejor legibilidad en secciones de texto */
.encuentro-panel,
.fade-section:not(footer) {
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}


.encuentro-panel h2,
.fade-section h2 {
  margin-bottom: 2rem;
}

.bible-quote {
  margin: 2rem auto;
  font-style: italic;
  font-size: 1rem;
  max-width: 750px;
}

.encuentro-text {
  margin: 3rem auto;
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 800px;
}

.participar-texto ul {
  margin: 0 auto;
  max-width: 750px;
  padding-left: 20px;
}

.participar-texto li {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}
