/* Title section */
.main-title {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.main-title h1 {
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.main-title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-radius: 2px;
}

.main-title p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
}

        :root {
            --primary-color: #3a6ea5;
            --secondary-color: #f8f9fa;
            --accent-color: #ff6b6b;
            --dark-color: #2c3e50;
            --light-color: #ffffff;
        }
        
/* ============================== */
/*  Cuenta regresiva con galería  */
/* ============================== */

.aniversario {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    color: #fff;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Títulos */
.aniversario h1 {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2;
    position: relative;
}

.aniversario p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    z-index: 2;
    position: relative;
}

/* Contenedor principal de la cuenta regresiva */
.countdown-container {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    backdrop-filter: blur(2px);
}

/* Estilo del contador */
.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    font-size: 18px;
}

/* Cada bloque de tiempo */
.countdown div {
    text-align: center;
    font-size: 18px;
    color: #fff;
}

/* Números */
.countdown span {
    display: block;
    font-weight: bold;
    font-size: 40px;
    background: rgba(255, 107, 107, 0.85);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    min-width: 80px;
}

/* Palabras debajo */
.countdown div::after {
    content: attr(data-label);
    display: block;
    font-size: 16px;
    color: #f1f1f1;
    margin-top: 5px;
    font-weight: normal;
}

/* ============================== */
/* Galería con transición         */
/* ============================== */
.gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gallery-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-slideshow img.active {
    opacity: 1;
}

/* Superposición oscura */
.gallery::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}
/* ============================== */
/*  Hero Carrusel  */
/* ============================== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 6s ease;
}

.carousel-item.active img {
  transform: scale(1.1);
}

.carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1.5s ease;
}

.carousel-caption h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.carousel-caption p {
  font-size: 1.3rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Botones de control */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  z-index: 2;
  transition: background 0.3s ease;
}

.carousel-control:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-indicators button.active {
  background: #fff;
}

/* ============================== */
/*  Campus Section  */
/* ============================== */
.campus-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
}

.campus-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
    opacity: 1;
    animation: zoomEffect 20s infinite alternate;
}

.campus-col {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.campus-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.campus-col:hover::before {
    opacity: 1;
}

.campus-col:hover {
    transform: translateY(-10px);
}

.campus-col:hover .campus-label {
    transform: translateY(-20px);
    background: rgba(0, 0, 0, 0.85);
}

.campus-col:hover .campus-icon {
    transform: scale(1.2) translateY(-10px);
    color: #ffd700;
}

.campus-col:hover .campus-info {
    opacity: 1;
    transform: translateY(0);
}

.campus-label {
    padding: 30px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: justify-content;
    overflow: hidden;
    width: 80%;
}

.campus-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.campus-col:hover .campus-label::after {
    transform: scaleX(1);
}

.campus-label p {
    font-weight: 300;
    color: #FFFFFF;
    font-size: 18px;
    margin: 0;
    letter-spacing: 2px;
}

.campus-label h2 {
    font-weight: 900;
    font-size: 32px;
    color: #FFFFFF;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.campus-icon {
    font-size: 40px;
    margin-bottom: 20px;
    transition: all 0.5s ease;
    color: #fff;
}

.campus-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-top: 20px;
}

.campus-info p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #f8f9fa;
}

.campus-link {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: #ffd700;
    text-decoration: none;
    border: 1px solid #ffd700;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.campus-link:hover {
    background: #ffd700;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Efecto de cambio de fondo al pasar el mouse */
.campus-col:hover .campus-bg {
    opacity: 0.8;
}

.campus-col:nth-child(1) {
    animation: fadeInUp 0.8s ease forwards;
}

.campus-col:nth-child(2) {
    animation: fadeInUp 1s ease forwards;
}

.campus-col:nth-child(3) {
    animation: fadeInUp 1.2s ease forwards;
}

/* Efecto de brillo en los bordes */
.campus-label {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.campus-col:hover .campus-label {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}
/* ============================== */
/*  ONLINE MEETINGS               */
/* ============================== */
.online-meetings {
            width: 100%;
            max-width: 1200px;
            padding: 40px 20px;
        }
        
        .container {
            max-width: 1140px;
            margin: 0 auto;
        }
        
        .row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
        }
        
        .col-md-6 {
            padding: 0 15px;
            flex: 0 0 50%;
            max-width: 50%;
        }
        
        .online-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            animation: fadeIn 1s ease-out;
        }
        
        .online-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            animation: shine 4s infinite;
        }
        
        .online-card h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #fff;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            position: relative;
            display: inline-block;
        }
        
        .online-card h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #4facfe, #00f2fe);
            border-radius: 2px;
        }
        
        .online-card p {
            margin-bottom: 15px;
            font-size: 1.1rem;
            line-height: 1.6;
        }
        
        .online-card strong {
            color: #4facfe;
            font-weight: 700;
        }
        
        .btn-light {
            background: linear-gradient(135deg, #4facfe, #00f2fe);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: inline-block;
            text-decoration: none;
        }
        
        .btn-light:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
            color: white;
        }
        
        .btn-light::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: all 0.5s ease;
        }
        
        .btn-light:hover::before {
            left: 100%;
        }
        
        .img-fluid {
            max-width: 100%;
            height: auto;
        }
        
        .rounded-circle {
            border-radius: 50% !important;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            border: 5px solid rgba(255, 255, 255, 0.2);
            animation: pulse 2s infinite;
            transition: all 0.5s ease;
        }
        
        .rounded-circle:hover {
            transform: scale(1.05);
            border-color: rgba(79, 172, 254, 0.5);
        }
        
        .text-center {
            text-align: center !important;
        }
        
        .mb-4 {
            margin-bottom: 1.5rem !important;
        }
        
        .mb-md-0 {
            margin-bottom: 0 !important;
        }
        
        .mt-3 {
            margin-top: 1rem !important;
        }
        
        /* MINISTRIES SECTION */
        .ministries-section {
            padding: 80px 0;
            background-color: #f8f9fa;
        }
        
        .ministry-card {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            margin-bottom: 30px;
            height: 100%;
        }
        
        .ministry-card:hover {
            transform: translateY(-10px);
        }
        
        .ministry-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        
        .ministry-content {
            padding: 20px;
        }
        
        /* PRAYER SECTION */
        .prayer-section {
            background: url('/static/img/bg-patron-.webp');
            background-size: cover;
            background-position: center;
            padding: 80px 0;
        }
        
        .prayer-card {
            border-radius: 15px;
            overflow: hidden;
            transition: transform 0.3s ease;
        }
        
        .prayer-card:hover {
            transform: scale(1.05);
        }
        

/*
 * Animación de entrada suave desde abajo (40px)
 * Ideal para elementos que necesitan aparecer flotando hacia arriba
 * Uso: Elementos de carrusel, tarjetas que entran en vista
 */
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(40px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* 
 * Animación de entrada desde abajo con mayor desplazamiento (50px)
 * Versión más pronunciada que la anterior fadeInUp
 * Uso: Secciones grandes, elementos que necesitan más énfasis
 */
@keyframes fadeInUpCampus {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 
 * Efecto de transición de degradado en movimiento
 * Desplaza la posición de fondo para crear efecto de movimiento en degradados
 * Uso: Fondos dinámicos, banners con degradados animados
 */
@keyframes pulseBanner {
  0% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
  100% { 
    background-position: 0% 50%; 
  }
}

/* 
 * Efecto de zoom suave para elementos de fondo
 * Crece gradualmente para crear sensación de profundidad
 * Uso: Imágenes de fondo, elementos que necesitan efecto de profundidad
 */
@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* 
 * Animación de aparición con desplazamiento moderado (20px)
 * Versión más sutil de fadeInUp para elementos pequeños
 * Uso: Textos, iconos, elementos de interfaz menores
 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 
 * Efecto de pulso con sombra que se expande y desvanece
 * Crea un efecto de "respiración" o destacado pulsante
 * Uso: Botones importantes, elementos que necesitan atención
 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(79, 172, 254, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
  }
}

/* 
 * Efecto de destello luminoso que se desliza a través de un elemento
 * Simula un reflejo de luz que pasa sobre la superficie
 * Uso: Botones, tarjetas, elementos que necesitan efecto de brillo
 */
@keyframes shine {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  100% {
    transform: rotate(45deg) translateX(100%);
  }
}
        /* RESPONSIVE STYLES */
        @media (max-width: 768px) {
    .aniversario {
        padding: 40px 15px;
        min-height: 80vh;
    }
    
    .aniversario h1 {
        font-size: 2.2rem;
    }
    
    .countdown {
        gap: 20px;
        font-size: 16px;
    }
    
    .countdown span {
        font-size: 28px;
        padding: 8px 14px;
        min-width: 60px;
    }

  .carousel-caption h2 {
    font-size: 2rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }

    .campus-section {
        height: auto;
        padding: 60px 0;
    }
    
    .campus-col {
        height: 350px;
        margin-bottom: 30px;
    }
    
    .campus-label {
        width: 90%;
        padding: 20px;
    }
    
    .campus-label h2 {
        font-size: 24px;
    }
    
    .campus-info {
        opacity: 1;
        transform: translateY(0);
    }
}