/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
    --morado: #4a2c6d;
    --verde: #2d6a4f;
    --verde-claro: #40916c;
    --burdeos: #8b2c2c;
    --gris-claro: #f8f9fa;
    --texto-oscuro: #212529;
}

body {
    font-family: 'Inter', sans-serif;
    padding-top: 76px;
    color: var(--texto-oscuro);
}

.playfair {
    font-family: 'Playfair Display', serif;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--verde) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.navbar.py-2 {
    background: var(--verde) !important;
}

.nav-link {
    font-weight: 600;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--burdeos) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--burdeos) !important;
    border-bottom: 2px solid var(--burdeos);
}

.btn-outline-custom {
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 30px;
    padding: 6px 20px;
    font-weight: 600;
    transition: all 0.3s;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--burdeos);
    border-color: var(--burdeos);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-toggler {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--verde);
        padding: 20px;
        border-radius: 16px;
        margin-top: 10px;
    }

    .nav-link.active {
        border-bottom: none;
        background: var(--burdeos);
        color: white !important;
        border-radius: 20px;
        padding: 8px 16px;
    }

    .btn-outline-custom {
        display: inline-block;
        margin-top: 10px;
        text-align: center;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-parallax {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background-image: url('../img/estacion2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: translateY(-10%);
}

.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.75;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title-white {
    color: #ffffff !important;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-subtitle-enhanced {
    color: #ffffff !important;
    font-weight: 500;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-content .btn-primary {
    background: var(--burdeos);
    border-color: var(--burdeos);
    font-weight: 600;
    padding: 12px 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary:hover {
    background: var(--morado);
    border-color: var(--morado);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-content .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 28px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.hero-content .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   REPRODUCTOR DE AUDIO
   ============================================ */
.audio-player-custom {
    background: rgba(45, 106, 79, 0.1);
    border-radius: 20px;
    padding: 1rem;
}

.audio-progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 1rem;
    position: relative;
}

.audio-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--verde), var(--burdeos));
    border-radius: 10px;
    position: relative;
    transition: width 0.1s linear;
}

.audio-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--burdeos);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.audio-progress-container:hover .audio-progress-bar::after {
    opacity: 1;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.audio-btn {
    background: var(--verde);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.audio-btn:hover {
    background: var(--burdeos);
    transform: translateY(-2px);
}

.audio-play-btn {
    background: var(--burdeos);
    padding: 10px 20px;
}

.audio-play-btn:hover {
    background: var(--morado);
}

.audio-time {
    font-family: 'Inter', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texto-oscuro);
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 8px;
}

.audio-time-sep {
    color: var(--verde);
    font-weight: bold;
}

.audio-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 40px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--verde);
    cursor: pointer;
}

/* ============================================
   BOTONES Y COMPONENTES COMUNES
   ============================================ */
.btn-primary {
    background: var(--burdeos);
    border-color: var(--burdeos);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--morado);
    border-color: var(--morado);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 44, 109, 0.3);
}

.badge-accent {
    background: var(--verde);
    color: white;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
}

.bg-primary,
.badge.bg-primary {
    background-color: var(--morado) !important;
}

.bg-accent {
    background-color: var(--burdeos);
}

.text-primary {
    color: var(--morado) !important;
}

.btn-link-custom {
    color: var(--burdeos);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-link-custom:hover {
    color: var(--verde);
    letter-spacing: 0.5px;
}

.hover-card {
    transition: all 0.3s ease;
    border-radius: 20px !important;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.2) !important;
}

.divider {
    width: 70px;
    height: 4px;
    background: var(--burdeos);
    margin: 20px auto;
}

.alert-accent {
    background: rgba(139, 44, 44, 0.1);
    border-left: 5px solid var(--burdeos);
    color: var(--burdeos);
}

/* ============================================
   PARALLAX INTERNO
   ============================================ */
.parallax-interno {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}

.parallax-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.parallax-interno .container {
    position: relative;
    z-index: 2;
}

.parallax-interno h3,
.parallax-interno p {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.parallax-interno .lead {
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-custom {
    background: var(--morado);
    color: #ddd;
}

.footer-custom a {
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-custom a:hover {
    color: var(--verde-claro);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: 0.2s;
}

.social-icons a:hover {
    color: var(--verde-claro) !important;
}

/* ============================================
   CALENDARIO DE CULTOS - MINIMALISTA
   ============================================ */

/* Tarjetas de culto */
.culto-card {
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.culto-card:hover {
    background: rgba(74, 44, 109, 0.02);
    border-color: rgba(74, 44, 109, 0.1);
    transform: translateX(5px);
}

/* Fechas de los cultos */
.culto-fecha {
    min-width: 60px;
}

.culto-fecha .dia {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--morado);
}

.culto-fecha .mes {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--verde);
}

/* Tarjeta de horario de misas */
.misas-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.horario-simple {
    padding: 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.horario-simple:hover {
    background: rgba(45, 106, 79, 0.05);
}

.confesiones-mini {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Responsive para mÃ³vil */
@media (max-width: 576px) {
    .culto-card {
        flex-wrap: wrap;
    }

    .culto-fecha {
        margin-bottom: 8px;
        text-align: left;
        min-width: 80px;
    }

    .culto-fecha .dia,
    .culto-fecha .mes {
        display: inline-block;
        margin-right: 5px;
    }

    .culto-info {
        margin-bottom: 8px;
    }

    .row .col-4 {
        margin-bottom: 15px;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-parallax h1 {
        font-size: 3rem;
    }

    .parallax-bg {
        background-attachment: scroll;
    }

    .hero-title-white {
        font-size: 2.8rem !important;
    }

    .hero-subtitle-enhanced {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .hero-content .btn-lg {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .hero-content .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }

    .audio-controls {
        justify-content: center;
    }

    .audio-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .volume-slider {
        width: 60px;
    }

    .culto-item {
        text-align: center;
    }

    .culto-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .horario-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .horario-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .badge-horario {
        display: inline-block;
        width: fit-content;
    }
}"/* Ajuste 20-abr: mejorar responsive del calendario */" 
"/* 21-abr: metadatos de optimizaci¢n para im genes */" 
"/* 22-abr: estilos para el reproductor de audio */" 
"/* 25-abr: correcciones textos Virgen del Amor */" 
"/* 27-abr: limpieza de codigo CSS duplicado */" 
"/* 20-abr: dise¤o minimalista calendario cultos */" 
"/* 21-abr: optimizacion imagenes */" 
"/* 22-abr: estilos reproductor audio */" 
"/* 25-abr: correccion textos Virgen */" 
"/* 27-abr: limpieza codigo CSS */" 
