/* Encendi2 - Estilos modernos y efectos avanzados */

/* Importar variables de colores */
@import url('styles.css');

/* Efectos de botones modernos */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Cards con animaciones mejoradas */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 148, 29, 0.1), transparent);
    transition: top 0.5s;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
    top: 100%;
}

/* Iconos con animaciones */
.card .fas, .card .fab {
    transition: all 0.4s ease;
}

.card:hover .fas, .card:hover .fab {
    transform: scale(1.2) rotate(5deg);
    color: var(--naranja-fuerte);
}

/* Countdown con efectos */
.countdown-timer {
    background: linear-gradient(135deg, var(--naranja-fuerte), var(--rojo-oxido));
    color: white;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.countdown-timer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.countdown-timer div {
    transition: all 0.3s ease;
}

.countdown-timer div:hover {
    transform: scale(1.1);
}

/* Event cards con efectos especiales */
.event-card {
    border-left: 4px solid #ff6b35;
    position: relative;
}

.event-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 0%;
    width: 4px;
    background: linear-gradient(to bottom, #ff6b35, #ff8c00);
    transition: height 0.4s ease;
}

.event-card:hover::after {
    height: 100%;
}

/* WhatsApp button mejorado */
.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    color: white;
    animation: pulse 2s infinite;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    background: linear-gradient(45deg, #128C7E, #25D366);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Títulos de sección con animación */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.section-title:hover {
    transform: scale(1.02);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b35;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #e55a2b, #ff6b35);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

/* Animación de pulso para el botón */
.back-to-top.pulse {
    animation: backToTopPulse 2s infinite;
}

@keyframes backToTopPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6), 0 0 0 10px rgba(255, 107, 53, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
}

/* Responsive para el botón */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

.countdown-timer div:hover {
    transform: scale(1.1);
}

/* Event cards con efectos especiales */
.event-card {
    border-left: 4px solid #ff6b35;
    position: relative;
}

.event-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 0%;
    width: 4px;
    background: linear-gradient(to bottom, #ff6b35, #ff8c00);
    transition: height 0.4s ease;
}

.event-card:hover::after {
    height: 100%;
}

/* WhatsApp button mejorado */
.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    color: white;
    animation: pulse 2s infinite;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    background: linear-gradient(45deg, #128C7E, #25D366);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Títulos de sección con animación */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.section-title:hover {
    transform: scale(1.02);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b35;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* Iconos con animaciones */
.card .fas, .card .fab {
    transition: all 0.4s ease;
}

.card:hover .fas, .card:hover .fab {
    transform: scale(1.2) rotate(5deg);
    color: var(--naranja-fuerte);
}

/* Logo con rotación sutil */
.navbar-brand img {
    transition: all 0.4s ease;
}

.navbar-brand:hover img {
    transform: rotate(10deg) scale(1.1);
}

/* Versículo con efectos */
blockquote {
    transition: all 0.3s ease;
}

blockquote:hover {
    transform: scale(1.02);
}

/* Efectos para imágenes */
img {
    transition: all 0.4s ease;
}

.hero-section img:hover {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.1);
}

/* Footer con efectos sutiles */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
    animation: borderMove 4s linear infinite;
}

@keyframes borderMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animación de pulso para el botón */
.back-to-top.pulse {
    animation: backToTopPulse 2s infinite;
}

@keyframes backToTopPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.6), 0 0 0 10px rgba(255, 107, 53, 0.1);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
}
