/* === ESTILOS GENERALES === */
body {
  font-family: Arial, sans-serif;
  background-color: #FFFFFF;
  /* Fondo blanco general */
  margin: 0;
  padding: 0;
  color: #3E4D3C;
  /* texto principal verde oscuro */
  
}

/* === Atributo para justificar === */
.justificado {
  text-align: justify;
}

/* === Atributo para poner imagen en el centro del texto === */
.img-centro {
  display: block;
  margin: 20px auto;
  max-width: 400px;
  border-radius: 8px;
}

/* === Atributo para poner imagen al lado del texto === */
.img-lado {
  float: left;
  /* Cambiar a right si se quiere la imagen al otro lado */
  margin: 0 15px 15px 0;
  /* Espacios alrededor de la imagen */
  width: 250px;
  /* Ajustar el tamaño */
  border-radius: 10px;
  /*esquinas redondeadas */
}

/* === Atributo para poner mitad texto y mitad imagen === */
.contenedor {
  display: flex;
  gap: 20px;
  align-items: center;
  /* centra verticalmente */
}

.columna {
  flex: 1;
  text-align: justify;
}

/* cuando la sección tenga la clase "invertido" se invierte el orden */
.contenedor.invertido {
  flex-direction: row-reverse;
}

.img-columna {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
}

.columna h2 {
  margin-bottom: 15px;
}

.img-izquierda {
  float: left;
  /* Hace que la imagen se pegue a la izquierda */
  max-width: 250px;
  /* Ajusta el ancho de la imagen */
  margin: 0 20px 20px 0;
  /* Espacio a la derecha y abajo de la imagen */
  border-radius: 5px;
  /* (Opcional) bordes redondeados */
}

/* Próxima actividad */
.proxima-actividad {
  background: #3E4D3C;
  /* verde oscuro */
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

/* Contenedor de tarjetas */
.horarios {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Tarjeta individual */
.horario-card {
  background: #fdfdfd;
  border: 1px solid #b28a4a;
  /* dorado */
  border-radius: 10px;
  padding: 1rem 1.5rem;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.horario-card:hover {
  transform: translateY(-5px);
}

.horario-card h4 {
  margin: 0;
  color: #6B2E2A;
  /* granate */
}

/* === HEADER COMPACTO CON LOGO === */

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  /* sin fondo */
  z-index: 10;
  /* encima del banner */
}

.header-contenido {
  max-width: 5000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

header .logo img {
  height: 90px;
  /* logo pequeño */
}

/* === MENÚ DE NAVEGACIÓN === */
nav ul.menu {
  display: flex;
  list-style: none;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav ul.menu li {
  position: relative;
}

nav ul.menu li a {
  text-decoration: none;
  color: #ffffff;
  /* granate */
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

nav ul.menu li a:hover {
  color: #B28A4A;
  /* dorado */
  background-color: #f9f5f0d6;
  /* fondo suave */
}

/* SUBMENÚS */
nav ul.menu li .submenu {
  display: block;
  position: absolute;
  top: 120%;
  left: 0;
  background-color: #f9f5f0d6;
  /* fondo diferente al menú principal */
  min-width: 240px;
  padding: 5px 0;
  border-radius: 5px;
  border: 1px solid #B28A4A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  list-style: none;
}

nav ul.menu li:hover>.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav ul.menu li .submenu li a {
  padding: 4px 15px;
  color: #6B2E2A;
  display: block;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
}

nav ul.menu li .submenu li a:hover {
  background-color: #B28A4A;
  color: white;
}

/* Submenú lateral (para filiales) */
nav ul.menu li .submenu li .submenu {
  top: 0;
  left: 101%;
  /* abre a la derecha del item padre */
  border-radius: 5px;
}


/* Último ítem sin borde inferior */
nav ul.menu li .submenu li:last-child a {
  border-bottom: none;
}

/* === BANNER DE PÁGINA === */
.page-banner {
  position: relative;
  width: 100vw;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  /* parallax imagen */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white;
}

/* Overlay temporal de color para resaltar texto */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.234);
  /* verde con transparencia */
  z-index: 1;
}

/* Contenedor del texto */
.banner-texto {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  top: 10%;
}


/* Efecto de aparición suave para el H2 */
.banner-texto h2 {
  font-size: 3rem;
  margin: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

/* Efecto máquina de escribir para el párrafo */
.banner-texto p {
  font-size: 1.2rem;
  font-style: italic;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 4s steps(50, end) forwards;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Animación parallax del texto: empezamos en Y=0 */
.banner-texto {
  transform: translateY(0px);
  transition: transform 0.2s ease-out;
}

/*SECCIONES*/

.ancho-completo {
  flex: 0 0 100%;
  /* ocupa el 100% del ancho */
  max-width: 100%;
}

section+section {
  margin-top: -4rem;
  /* reduce el espacio cuando hay dos secciones seguidas */
}

/* Estilo del banner de próxima actividad */
.banner-actividad {
  background: #3E4D3C;
  /* Verde oscuro semitransparente sobre fondo */
  color: #fff;
  /* Texto blanco */
  padding: 15px 20px;
  text-align: center;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 600px;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.banner-actividad h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.banner-actividad p {
  font-size: 1.3rem;
  margin: 15px;
  font-weight: bold;
}

.como-llegar {
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
  border: 1px solid #b28a4a;
  /* dorado */
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.como-llegar h3 {
  color: #8b0000;
  margin-bottom: 15px;
}

.como-llegar p {
  margin-bottom: 15px;
  font-weight: bold;
}

.botones-mapas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.boton-mapa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #3E4D3C;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-mapa:hover {
  background-color: #8b0000;
  transform: scale(1.05);
}

.boton-mapa::before {
  content: "📍";
}

iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  border: none;
}

@media (max-width: 768px) {
  .iframe {
    height: 250px;
  }
}





/* === CONTENIDO PRINCIPAL === */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === BOTONES === */

/* Contenedor de los botones */
.contenedor-botones-constancias {
  display: grid !important;
  grid-template-columns: repeat(2, auto) !important;
  justify-content: center !important;
  /* centra el último si sobra */
  gap: 1rem !important;
  /* espacio entre botones */

}



.boton-constancia {
  background: #fdfdfd !important;
  border: 1px solid #b28a4a !important;
  /* dorado */
  border-radius: 10px !important;
  padding: 1rem 2rem !important;
  min-width: 220px !important;
  align-items: center !important;
  /* icono y texto alineados */
  text-align: center !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease !important;
  color: #6B2E2A !important;
  /* granate */
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.boton-constancia:hover {

  transform: translateY(-5px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;

}

/* Hace que el último botón se extienda en dos columnas y se centre */
.contenedor-botones-constancias button:last-child:nth-child(odd) {
  grid-column: span 2 !important;
  justify-self: center !important;
}

.icono-boton {
  width: 80px;
  /* tamaño del ícono */
  height: 80px;
  object-fit: contain;
  display: inline-block;
}

@media (max-width: 768px) {
  .contenedor-botones-constancias {
    display: flex !important;
    flex-direction: column !important; /* apila los botones verticalmente */
    gap: 1rem !important; /* espacio entre botones */
    align-items: center !important; /* opcional: centra los botones */
  }

  .boton-constancia {
    width: 100% !important; /* cada botón ocupa toda la fila */
    min-width: 0 !important; /* elimina el min-width que rompe la fila */
  }
}

/* === FORMULARIOS DE CONSTANCIAS === */
.formulario-constancia {
  max-width: 700px;
  margin: 20px auto;
  padding: 35px;
  background: #fdfdfd;
  /* blanco */
  border: 1px solid #b28a4a;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

.formulario-constancia h3 {
  text-align: center;
  color: #3E4D3C;
  /* verde oscuro */
  margin-bottom: 15px;
}

.formulario-constancia p {
  text-align: center;
  margin-bottom: 20px;
}

.formulario-constancia label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.formulario-constancia input,
.formulario-constancia select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Espaciado entre campos */
.formulario-constancia .fila {
  display: flex;
  gap: 25px;
  margin-bottom: 15px;
}

.formulario-constancia .fila>div {
  flex: 1;
}

/* Botón Volver */
.btn-volver {
  background-color: #3E4D3C;
  /* verde oscuro */
}

.btn-volver:hover {
  background-color: #6B2E2A;
  /* granate */
}

/*DONACIONES*/

.contenedor-donaciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.donacion-box {
  background-color: #fdfdfd;
  border: 2px solid #B28A4A;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.donacion-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.donacion-box h3 {
  color: #3E4D3C;
  font-size: 1.6em;
  margin-bottom: 1rem;
}

.donar-boton {
  background-color: #3E4D3C;
  color: white;
  font-weight: bold;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.donar-boton:hover {
  background-color: #8b0000;
}

/*OTRAS DONACIONES*/

.otras-donaciones {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.donaciones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.otra-donacion-box {
  background-color: #fdfdfd;
  border: 2px solid #B28A4A;
  border-radius: 12px;
  padding: 30px 20px;
  width: 350px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.otra-donacion-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.otra-donacion-box i {
  font-size: 2.5rem;
  color: #3E4D3C;
  margin-bottom: 15px;
}

.otra-donacion-box h3 {
  color: #8b0000;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.otra-donacion-box p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

/*NO MONETARIA*/

.donacion-no-monetaria {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('img/donaciones/ninos.jpg') center/cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  border-radius: 20px;
}

.contenedor-donacion-noMon {
  max-width: 800px;
  margin: 0 auto;
}

.donacion-noMon-texto i {
  font-size: 3rem;
  color: #3E4D3C;
  margin-bottom: 15px;
}

.donacion-noMon-texto h2 {
  color: #8b0000;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.donacion-noMon-texto p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* ----------------- WRAPPER BOTÓN FLOTANTE ----------------- */
.whatsapp-wrapper {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  font-family: 'Helvetica', sans-serif;
}

/* ----------------- BOTÓN FLOTANTE ----------------- */
.btn-whatsapp {
  background-color: #25D366;
  color: white;
  font-size: 28px;
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  display: inline-block;
  transition: all 0.3s ease, transform 0.5s ease;
  transform: translateY(50px);
  opacity: 0;
  animation: slide-in 0.6s forwards;
  position: relative;
  /* para tooltip */
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  background-color: #1ebe57;
}

/* Tooltip “Escríbenos” */
.btn-whatsapp .tooltip {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #25D366;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-whatsapp:hover .tooltip {
  opacity: 1;
}

/* ----------------- MINI CHAT DESLIZABLE ----------------- */
.mini-chat-slide {
  position: fixed;
  bottom: 80px;
  right: 25px;
  width: 310px;
  background-color: #f0f0f0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateX(300px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 999;
}

/* Cuando está activo */
.mini-chat-slide.active {
  transform: translateX(0);
  opacity: 1;
}

/* ----------------- CABECERA ----------------- */
.chat-header {
  background-color: #25D366;
  padding: 10px;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
}

.chat-logo {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chat-name {
  font-weight: bold;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.8rem;
  opacity: 0.85;
}

.chat-close {
  background: none;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

/* ----------------- CUERPO DEL CHAT ----------------- */
.chat-body {
  padding: 10px;
  background-color: #ece5dd;
}

.chat-message {
  background-color: #fff;
  padding: 8px 12px;
  border-radius: 18px;
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ----------------- TIPOS DE ANIMACIÓN "TYPING" ----------------- */
.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  background: #999;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

.typing span:nth-child(1) {
  animation-delay: 0s;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {

  0%,
  80%,
  100% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
}

/* ----------------- FOOTER DEL MINI CHAT ----------------- */
.chat-footer {
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  background-color: #ece5dd;
}

.send-btn {
  background-color: #25D366;
  color: white;
  padding: 6px 12px;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.send-btn:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
}

/* ----------------- ANIMACIÓN BOTÓN FLOTANTE ----------------- */
@keyframes slide-in {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ----------------- AJUSTES MÓVILES ----------------- */
@media (max-width: 768px) {
  .btn-whatsapp {
    font-size: 24px;
    padding: 14px;
  }

  .mini-chat-slide {
    width: 220px;
  }
}

/* === ENSEÑANZA Y REFLEXIÓN === */
/* SECCIONES ENSEÑANZA */
.enseñanza {
    font-family: 'Helvetica', sans-serif;
}

/* Cada sección con fondo y padding propio */
.enseñanza-articulos {
    background-color: #ffffff;
    padding: 60px 20px;
}

.enseñanza-lecturas {
    background-color: #ffffff;
    padding: 60px 20px;
}

.enseñanza-recursos {
    background-color: #ffffff;
    padding: 60px 20px;
}


/* GRID DE CARDS */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    justify-items: center;
}

/* CARD */
.articulo-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 340px;
}

.articulo-card.oculto {
    display: none;
}

.lectura-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 1000px;
}

.articulo-card:hover, .lectura-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.articulo-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.articulo-info, .lectura-card {
    padding: 15px;
}

/* BOTONES LEER MÁS */
.btn-leer {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: #b2282f;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-leer:hover {
    background-color: #3E4D3C;
    transform: scale(1.05);
}

#ver-mas {
    background-color: #b2282f;  /* mismo color que los botones Leer más */
    color: #fff;
    border: none;               /* eliminar borde por defecto */
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#ver-mas:hover {
    background-color: #3E4D3C;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* RECURSOS */
.enseñanza-recursos ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.enseñanza-recursos li {
    margin-bottom: 12px;
}

.enseñanza-recursos a {
    color: #b2282f;
    text-decoration: underline;
}

.enseñanza-recursos a:hover {
    color: #8a1a21;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }

    .articulo-card img {
        height: 160px;
    }
}


/* === PIE DE PÁGINA === */
footer {
  background-color: #3E4D3C;
  color: #fdfdfd;
  padding: 2rem 1rem 1rem;
  font-family: 'Poppins', sans-serif;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

/* LOGO Y CONTACTO */
.footer-col.logo-contacto {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-col.logo-contacto img {
  width: 85px;
  filter: brightness(0) invert(1);
  margin-bottom: 0.5rem;
}

.footer-col.logo-contacto a {
  color: #ddd;
  text-decoration: none;
}

.footer-col.logo-contacto a:hover {
  color: #b28a4a;
}

.footer-col.logo-contacto i {
  color: #fdfdfd;
  margin-right: 8px;
}

/* ENLACES RÁPIDOS */
.footer-col.enlaces {
  flex: 1;
  min-width: 200px;
  text-align: left;
}

.footer-col.enlaces h4 {
  color: #fdfdfd;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-col.enlaces ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col.enlaces li {
  margin: 0.5rem 0;
}

.footer-col.enlaces a {
  color: #f5f5f5;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col.enlaces a:hover {
  color: #b28a4a;
}

.footer-col.enlaces i {
  color: #fdfdfd;
  margin-right: 6px;
}

/* REDES SOCIALES */
.footer-col.redes {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.footer-col.redes h4 {
  color: #fdfdfd;
  margin-bottom: 0.8rem;
}

.iconos-redes {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #B28A4A;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social:hover {
  transform: translateY(-3px);
}

.social.facebook:hover {
  background-color: #3b5998;
}

.social.instagram:hover {
  background-color: #e4405f;
}

.social.whatsapp:hover {
  background-color: #25d366;
}

footer a {
  text-decoration: none;
}

/* LÍNEA DORADA */
.footer-linea {
  border: none;
  border-top: 1px solid #B28A4A;
  margin: 1.5rem auto;
  width: 80%;
}

/* PARTE INFERIOR */
.footer-inferior {
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-contenido {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-col.logo-contacto,
  .footer-col.enlaces,
  .footer-col.redes {
    text-align: center;
  }
}

/* === FILAS RESPONSIVE PARA FORMULARIOS === */
@media (max-width: 768px) {
  .formulario-constancia .fila {
    flex-direction: column;
  }

  nav ul.menu {
    flex-direction: column;
    gap: 10px;
  }

  .header-contenido {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* === PARA LAS FOTOS === */


.galeria {
  text-align: center;
  padding: 50px 20px;
}

.carrusel {
  position: relative;
  width: 100%;
  /* ocupa todo el contenedor padre */
  display: flex;
  align-items: center;

  overflow: hidden;
  /* evita scroll horizontal */
}


.carrusel-contenedor {
  display: flex;
  transition: transform 0.5s ease-in-out;
  justify-content: flex-start;
}

.carrusel-contenedor img {
  width: 320px;
  /* ajusta tamaño */
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.carrusel-contenedor img:hover {
  transform: scale(1.03);
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.681);
}



/* Ajuste responsive */
@media (max-width: 1200px) {
  .carrusel-contenedor img {
    width: calc((100% / 4) - 10px);
    /* 4 imágenes en pantallas medianas */
  }
}

@media (max-width: 900px) {
  .carrusel-contenedor img {
    width: calc((100% / 3) - 10px);
    /* 3 imágenes en pantallas pequeñas */
  }
}

@media (max-width: 600px) {
  .carrusel-contenedor img {
    width: calc((100% / 2) - 10px);
    /* 2 imágenes en móviles */
  }
}

.carrusel-btn {
  position: absolute !important;
  top: 45% !important;
  display: inline-block !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  /* sin fondo */
  border: none !important;
  /* sin borde */
  outline: none !important;
  /* quitar outline al hacer click */
  box-shadow: none !important;
  /* quitar brillo/recuadro */
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #ffffff !important;
  /* flecha blanca */
  font-size: 2.2rem !important;
  /* ajustar tamaño */
  cursor: pointer !important;
  z-index: 2 !important;
}


/* Posición exacta */
.carrusel-btn.prev {
  left: 10px !important;
}

.carrusel-btn.next {
  right: 10px !important;
}


/* Evitar outline/box-shadow en focus/active (accesibilidad visual anulada) */
.carrusel-btn:focus,
.carrusel-btn:active,
.lightbox-btn:focus,
.lightbox-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Lightbox: centrar el contenido con flex y colocar caption abajo */
.lightbox {
  display: none;
  /* el JS activará display:block/flex */
  position: fixed;
  z-index: 1000;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;

}

.lightbox-btn {
  position: absolute;
  /* flotan dentro del contenedor */
  top: 50%;
  transform: translateY(-50%);
  display: inline-block !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  /* sin fondo */
  border: none !important;
  /* sin borde */
  outline: none !important;
  /* quitar outline al hacer click */
  box-shadow: none !important;
  /* quitar brillo/recuadro */
  -webkit-appearance: none !important;
  appearance: none !important;
  color: #ffffff !important;
  /* flecha blanca */
  font-size: 2.6rem !important;
  /* ajustar tamaño */
  cursor: pointer !important;
  z-index: 1002 !important;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  margin: 0;
}

.lightbox-btn.prev {
  left: 30px !important;
}

.lightbox-btn.next {
  right: 30px !important;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 2.5rem;
  color: white;
  background: none !important;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  z-index: 1003;
}

/* caption centrado y visible abajo */
.caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  color: #ccc;
  font-size: 1.05rem;
  text-align: center;
  z-index: 1003;
}

/* Banner general */
.banner-seccion {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Capa oscura similar al header */
.banner-seccion::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Contenido centrado dentro del banner */
.overlay-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Texto del banner */
.overlay-banner h2 {
  font-size: 2.2rem;
  font-weight: bold;
  color: #fdfdfd;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}

/* Ícono dentro del banner */
.icono-banner {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}


.contenido-horario {
  max-width: 300px;
  margin: 1.5rem auto 3rem auto;
  background: #fdfdfd;
  border: 1px solid #b28a4a;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  color: #6B2E2A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  flex: 1 1 300px;
  text-align: center;
}


.contenido-horario p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.contenido-horario:hover {
  transform: translateY(-5px);
}



/* Contenedor de todas las filiales */
.contenedor-filiales {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}




/* Enlace dentro de la box */
.enlace-filial {
  display: inline-block;
  margin-top: 0.8rem;
  color: white;
  background-color: #3E4D3C;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.enlace-filial:hover {
  background-color: #8E0000;
}

/*CONTACTAR*/

.contacto {
  background-color: #ffffff;
  /* blanco  */
  padding: 50px 0;
  text-align: center;
}

.contenedor-contacto {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.box-contacto {
  background-color: #fdfdfd;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border: 1px solid #b28a4a;
  width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-contacto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.box-contacto img {
  width: 60px;
  margin-bottom: 15px;
}

.box-contacto h3 {
  color: #8b0000;
  font-weight: bold;
  margin-bottom: 10px;
}

.box-contacto p {
  margin: 0;
}

.box-contacto button {
  background-color: #3E4D3C;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.box-contacto button:hover {
  background-color: #8E0000;
}

/* Formulario */
.formulario-contacto {
  text-align: center;
  margin: 3rem auto;
  max-width: 600px;
  background: #fdfdfd;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #b28a4a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.formulario-contacto h3 {
  color: #6B2E2A;
  margin-bottom: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.formulario-contacto button {
  background-color: #3E4D3C;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.formulario-contacto button:hover {
  background-color: #8E0000;
}

#mensaje-enviado {
  margin-top: 15px;
  background-color: #e6ffe6;
  color: #155724;
  border: 2px solid #a3d9a5;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: bold;
  display: none;
  animation: aparecer 0.6s ease forwards;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.frase-final {
  text-align: center;
  margin: 2rem 0;
  color: #6B2E2A;
  font-style: italic;
}

/* ==============================
   SECCIÓN: SACRAMENTOS
   ============================== */

.sacramento {
  background-color: #ffffff;
  font-family: 'Poppins', sans-serif;
  color: #333;
  padding-bottom: 40px;
}

.sacramento .pasos-sacramento {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px auto;
  max-width: 950px;
}

.sacramento .box-paso {
  background-color: #fdfdfd;
  border: 1px solid #b28a4a;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sacramento .box-paso:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.sacramento .contenido {
  display: flex;
  align-items: center;
}

.sacramento .texto {
  width: 70%;
  padding: 25px;
}

.sacramento .texto h3 {
  color: #8b0000;
  margin-bottom: 10px;
}

.sacramento .texto p {
  margin: 0;
  line-height: 1.6;
}

.sacramento .imagen {
  width: 30%;
}

.sacramento .imagen img {
  display: block;
  width: 105%;
  height: 100%;
  object-fit: fill;
}

.sacramento .detalles {
  display: none;
  padding: 20px 25px;
  background-color: #fff;
  border-top: 1px solid #b28a4a;
  line-height: 1.6;
}

.sacramento .boton-rojo {
  background-color: #b71c1c;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.sacramento .boton-rojo:hover {
  background-color: #9a1717;
}

@media (max-width: 768px) {
  .sacramento .contenido {
    flex-direction: column;
  }

  .sacramento .texto,
  .sacramento .imagen {
    width: 100%;
  }

  .sacramento .imagen img {
    height: 200px;
  }
}


/* Banner general */
.banner-seccion-bautismo {
  width: 100vw;
  /* ocupa todo el ancho de la ventana */
  margin-left: calc(-50vw + 50%);
  /* compensa el centrado del contenedor */
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Capa oscura similar al header */
.banner-seccion-bautismo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/*ENLACES*/

.enlace-dorado {
  color: #b28a4a;
  /* color dorado */
  text-decoration: none;
  /* quita el subrayado si querés */
}

.enlace-dorado:hover {
  color: #8b0000;
  /* cambia a rojo oscuro al pasar el cursor */
  text-decoration: underline;
  /* opcional */
}

/*VIDEOS*/

.video-catequesis {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem auto;
  max-width: 900px;
  background: #fdfdfd;
  border: 1px solid #b28a4a;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-catequesis:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Para que el video sea responsivo */
.video-catequesis iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  border: none;
}

/* Adaptación a móviles */
@media (max-width: 768px) {
  .video-catequesis iframe {
    height: 250px;
  }
}

/* ARTICULOS EN CATEQUESIS*/
.catequesis {
  background-color: #fff;
  font-family: 'Poppins', sans-serif;
  color: #333;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.catequesis .titulo-seccion {
  text-align: center;
  color: #8b0000;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: bold;
}

.catequesis .box-catequesis {
  background-color: #fdfdfd;
  border: 1px solid #b28a4a;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catequesis .box-catequesis:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.catequesis h3 {
  color: #8b0000;
  margin-bottom: 15px;
  font-weight: 600;
}

.catequesis p {
  line-height: 1.7;
  margin-bottom: 10px;
}

.catequesis blockquote {
  border-left: 4px solid #b28a4a;
  background: #fff7e6;
  padding: 10px 20px;
  font-style: italic;
  margin: 15px 0;
  color: #555;
}

.catequesis em {
  color: #8b0000;
  font-weight: 500;
}

@media (max-width: 768px) {
  .catequesis {
    padding: 40px 15px;
  }

  .catequesis .titulo-seccion {
    font-size: 1.6rem;
  }
}

/*PATRONO*/

.historia-patrono {
  max-width: 900px;
  margin: 3rem auto;
  font-family: 'Poppins', sans-serif;
  color: #5a2a27;
}

.historia-patrono h2 {
  text-align: center;
  color: #8b0000;
  margin-bottom: 1rem;
  font-weight: 700;
}

.historia-patrono .intro {
  text-align: justify;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.acordeon .item {
  border: 1px solid #b28a4a;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.acordeon .titulo {
  background-color: #fdfdfd;
  color: #6B2E2A;
  font-weight: 600;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.acordeon .titulo:hover {
  background-color: #f4e9da;
}

.acordeon .flecha {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.acordeon .contenido {
  max-height: 0;
  overflow: hidden;
  background-color: #fff;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.acordeon .contenido p {
  margin: 1rem 0;
  line-height: 1.7;
  color: #333;
}

.acordeon .item.activo .contenido {
  max-height: 5000px;
  padding: 1rem 1.5rem;
}

.acordeon .item.activo .flecha {
  transform: rotate(180deg);
}

.imagen-seccion-pablo {
  text-align: center;
  margin: 2rem 0;
}

.imagen-seccion-pablo img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.imagen-seccion-pablo small {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ====== LÍNEA DE TIEMPO ====== */
.linea-tiempo {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem 1rem;
  position: relative;
  font-family: 'Poppins', sans-serif;
  color: #3E4D3C;
}

.linea-tiempo h2 {
  text-align: center;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 3rem;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* Línea central */
.timeline {
  position: relative;
  margin: 0 auto;
  padding-left: 40px;
  /* más espacio entre la línea y las tarjetas */
  border-left: 3px solid #b28a4a;
}

/* Ítems */
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 0.8s ease forwards;
}

/* Animación al cargar */
@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Puntos de la línea */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  /* separa más el punto de la caja */
  top: 15px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 3px solid #8b0000;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Contenido */
.timeline-content {
  background-color: #fff;
  border-left: 5px solid #b28a4a;
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover en el contenido */
.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Cuando el mouse pasa sobre la tarjeta, el punto cambia */
.timeline-item:hover::before {
  background-color: #8b0000;
  border-color: #b28a4a;
  transform: scale(1.2);
}

/* Encabezados */
.timeline-content h3 {
  margin-top: 0;
  color: #8b0000;
  font-size: 1.2rem;
  font-weight: 600;
}

/* Párrafos */
.timeline-content p {
  color: #3E4D3C;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .timeline {
    padding-left: 25px;
  }

  .timeline-item::before {
    left: -20px;
  }

  .timeline-content {
    padding: 1rem;
  }
}

/*EQUIPO SACERDOTAL*/

.equipo-sacerdotal {
  max-width: 2000px;
  margin: 3rem auto;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  color: #3E4D3C;
  padding: 0 1rem;
}

.equipo-sacerdotal h2 {
  color: #3E4D3C;
  margin-bottom: 0.5rem;
  text-align: left;
}

.equipo-sacerdotal .intro {
  margin-bottom: 2rem;
  color: #444;
  font-size: 1.05rem;
  text-align: justify;
}

.miembros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  background-color: #fdfdfd;
  border: 1px solid #b28a4a;
  border-radius: 15px;
  padding: 1.5rem;
  width: 305px;
  text-align: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #b28a4a;
}

.card h3 {
  color: #8b0000;
  margin: 0.5rem 0;
}


.card p {
  color: #3E4D3C;
  font-style: italic;
}

/* --- MODAL --- */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 0;
}

.modal-content {
  background-color: #fdfdfd;
  border-radius: 15px;
  width: 1000px;
  /* ancho fijo del box */
  max-width: 90%;
  /* adaptable a pantallas pequeñas */
  max-height: 80vh;
  /* altura máxima de la caja */
  padding: 2rem;
  position: relative;
  animation: fadeIn 0.4s ease;
  color: #333;
  overflow-y: auto;

  /* ocultar barra de scroll */
  scrollbar-width: none;
  /* Firefox */
}

.modal-content::-webkit-scrollbar {
  display: none;
  /* Chrome, Edge, Safari */
}


.modal-content h2 {
  color: #8b0000;
  margin-bottom: 1.5rem;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: #8b0000;
  cursor: pointer;
}

.bio p {
  text-align: justify;
  margin: 1.2rem 0;
  line-height: 1.7;
}

.bio img {
  width: 45%;
  border-radius: 10px;
  margin: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.img-right {
  float: right;
  margin-left: 1.5rem;
}

.img-left {
  float: left;
  margin-right: 1.5rem;
}

figure {
  margin: 1rem 0;
  text-align: center;
}

figure img {
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

figure figcaption {
  font-size: 0.9rem;
  color: #3E4D3C;
  margin-top: 0.4rem;
  font-style: italic;
  text-align: center;
}

/* Posiciones */
.img-right img {
  float: right;
  margin-left: 1.5rem;
}

.img-left img {
  float: left;
  margin-right: 1.5rem;
}

.bio::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 768px) {
  figure img {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  .bio img {
    float: none;
    display: block;
    width: 100%;
    margin: 1rem 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}




/* ==============================
   RESPONSIVE GLOBAL
   ============================== */

/* --- Tablets grandes y pantallas medias (1024px y menores) --- */
@media (max-width: 1024px) {

  /* Banners */
  .banner-texto h2 {
    font-size: 2.5rem;
  }

  .banner-texto p {
    font-size: 1.1rem;
    white-space: normal;
    animation: none;
  }

  .page-banner {
    min-height: 400px;
  }

  .banner-seccion,
  .banner-seccion-bautismo {
    height: 180px;
  }

  .contenido-horario {
    max-width: 250px;
  }

  .sacramento .texto {
    padding: 20px;
  }

  .video-catequesis iframe {
    height: 350px;
  }

  .linea-tiempo {
    padding: 1.5rem 1rem;
  }

  .timeline {
    padding-left: 30px;
  }
}

/* --- BOTÓN HAMBURGUESA --- */
.menu-toggle {
  position: absolute;
  right: 20px;
  /* antes era right */
  top: -20px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 200;
}

/* --- AJUSTES RESPONSIVE --- */
@media (max-width: 900px) {
  nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -70%; /* igual al ancho */
    width: 70%;
    height: 100vh;
    background-color: #fdfdfdf0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 80px;
    padding-left: 20px;
    transition: right 0.3s ease;
    z-index: 150;
    overflow-y: auto;
  }

  .menu.active {
    right: 0;
  }


  .menu li {
    width: 100%;
    color: #B28A4A;
  }

  /* Cuando el menú está abierto */
  .menu.active li a {
    color: #B28A4A;
    /* asegura que los links sean visibles */
  }

  .submenu {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    /* indentación */
  }

  .menu li.active>.submenu {
    display: flex;
  }

}

/* --- Tablets pequeñas y móviles (768px y menores) --- */
@media (max-width: 768px) {

  /* Header */
  .header-contenido {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header .logo {
    position: absolute;
    /* o relative si prefieres */
    top: 10px;
    /* margen superior */
    left: 20px;
    /* margen desde el borde izquierdo */
    width: auto;
    /* ancho automático según altura */
  }

  header .logo img {
    height: 60px;
    /* tamaño reducido */
    width: auto;
    /* mantener proporción */
  }

  .menu-toggle {
    position: absolute;
    top: 15px;
    left: 160px;
    font-size: 2rem;
    color: white;
  }

  /* Banners */
  .banner-texto h2 {
    font-size: 2rem;
  }

  .banner-texto p {
    font-size: 1rem;
    white-space: normal;
    animation: none;
  }

  .page-banner {
    min-height: 300px;
  }

  .banner-seccion,
  .banner-seccion-bautismo {
    height: 150px;
  }

  .banner-seccion h2 {
    font-size: 1.6rem;
  }

  /* Contenedores flex */
  .contenedor {
    flex-direction: column;
  }

  .contenedor.invertido {
    flex-direction: column;
  }

  .como-llegar {
    width: 80%;
  }


  .img-lado,
  .img-izquierda {
    float: none;
    display: block;
    margin: 15px auto;
    width: 80%;
  }

  .img-columna {
    width: 100%;
    max-width: 100%;
  }

  /* Horarios y filiales */
  .horarios,
  .contenedor-filiales,
  .contenedor-contacto,
  .botones-mapas,
  .contenedor-botones-constancias {
    flex-direction: column;
    align-items: center;
  }

 
  .contenido-horario,
  .box-contacto {
    width: 90%;
    max-width: 250px;
  }

  /* Formularios */
  .formulario-constancia .fila {
    flex-direction: column;
    width: 100%;
  }

  .formulario-contacto {
    flex-direction: column;
    width: 70%;
  }

  /* Sacramentos */
  .sacramento .contenido {
    flex-direction: column;
  }

  .sacramento .box-paso {
    width: 80%;
    /* ancho menor que en escritorio */
    margin: 10px auto;
    /* centrado horizontal con margen */
    padding: 15px;
    /* opcional, ajusta el padding */
    border-radius: 15px;
    /* un poco más pequeño */
  }

  .sacramento .texto,
  .sacramento .imagen {
    width: 100%;
  }

  .sacramento .imagen img {
    height: auto;
  }

  /* Videos */
  .video-catequesis iframe {
    height: 250px;
  }


  /* Galería */
  .carrusel-contenedor img {
    width: calc((100% / 2) - 10px);
  }
}

/* --- Móviles pequeños (480px y menores) --- */
@media (max-width: 480px) {

   .menu-toggle {
    position: absolute;
    top: 15px;
    left: 110px;
    font-size: 2rem;
    color: white;
  }

  .banner-texto h2 {
    font-size: 1.6rem;
  }

  .banner-texto p {
    font-size: 0.95rem;
    white-space: normal;
    animation: none;
  }

  .page-banner {
    min-height: 250px;
  }

  .banner-seccion,
  .banner-seccion-bautismo {
    height: 120px;
  }


  .contenido-horario,
  .box-contacto {
    width: 95%;
  }

  .sacramento .texto h3,
  .catequesis .titulo-seccion,
  .historia-patrono h2 {
    font-size: 1.4rem;
  }

  .carrusel-contenedor img {
    width: calc(100% - 10px);
  }
}

