/* =================================
   ESTILOS GLOBALES OPTIMIZADOS
   ================================= */

:root {
    --color-primary: #8C1D2C;
    --color-secondary: #D4AF37;
    --color-dark: #1F3D3A;
    --color-light: #F5E6C8;
    --color-text-dark: #3B2A1A;
    --color-text-light: #F5E6C8;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(59, 42, 26, 0.3);
    --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: var(--color-light);
    color: var(--color-text-dark);
    line-height: 1.6;
}

/* =================================
   HEADER Y NAVEGACIÓN
   ================================= */

header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #A72A3A 100%);
    color: var(--color-secondary);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

header img {
    width: clamp(100px, 20vw, 160px);
    height: auto;
    border-radius: 50%;
    border: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Marquee animado - alternativa moderna */
.marquee-container {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 0.75rem;
    overflow: hidden;
    font-weight: 500;
}

.marquee-text {
    animation: scroll-left 20s linear infinite;
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Navegación */
nav {
    background: linear-gradient(135deg, var(--color-primary) 0%, #A72A3A 100%);
    color: var(--color-light);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

nav a {
    color: var(--color-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    display: inline-block;
}

nav a:hover {
    background-color: #A72A3A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hamburger Menu (móvil) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-primary);
        gap: 0;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }
}

/* =================================
   SECCIONES PRINCIPALES
   ================================= */

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

section h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: #8C1D2C;
}

.section-title {
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), transparent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* =================================
   HERO SECTION
   ================================= */

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('cor.jpg');
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
}

.hero h2 {
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #A72A3A;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* =================================
   PROGRAMACIÓN - TIMELINE/CARDS
   ================================= */

.programming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.day-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--color-primary);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--color-secondary);
}

.day-card h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.day-card .location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.day-card ul {
    list-style: none;
}

.day-card li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.day-card .bullet {
    color: var(--color-primary);
    font-weight: bold;
    flex-shrink: 0;
}

.day-card .time {
    font-weight: bold;
    color: var(--color-primary);
}

.day-card .event {
    color: #555;
}

/* =================================
   GRAN DOMINGO PATRONAL
   ================================= */

.special-day {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE9CC 100%);
    border: 2px solid var(--color-secondary);
    text-align: center;
}

.special-day h2 {
    color: #8C1D2C;
    font-size: 2rem;
}

.special-day ul {
    list-style: none;
    max-width: 700px;
    margin: 2rem auto;
}

.special-day li {
    background: white;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid var(--color-secondary);
    text-align: left;
    transition: all var(--transition-speed) ease;
}

.special-day li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* =================================
   GALERÍA CON LIGHTBOX
   ================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay::before {
    content: '🔍';
    font-size: 2rem;
    color: white;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.lightbox-close:hover {
    color: var(--color-secondary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    z-index: 1001;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =================================
   CATEQUESIS - ACORDEONES
   ================================= */

.accordion {
    margin-bottom: 1rem;
}

.accordion-header {
    background: var(--color-light);
    padding: 1rem;
    cursor: pointer;
    border: 2px solid var(--color-secondary);
    border-radius: 6px;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.accordion-header:hover {
    background: #F0DFB8;
    transform: translateX(5px);
}

.accordion-header.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.accordion-header::after {
    content: '▼';
    transition: transform var(--transition-speed) ease;
    font-size: 0.8rem;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 1.5rem;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    animation: slideDown 0.3s ease;
}

.accordion-content.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* =================================
   REDES SOCIALES Y CONTACTO
   ================================= */

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================================
   WHATSAPP FLOTANTE
   ================================= */

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-speed) ease;
    z-index: 50;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #20BA5A;
    transform: scale(1.15);
    bottom: 2.5rem;
}

.whatsapp-btn img {
    width: 70%;
    height: 70%;
}

/* =================================
   FOOTER
   ================================= */

footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* =================================
   BOTÓN IR ARRIBA
   ================================= */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 40;
    font-size: 1.5rem;
    font-weight: bold;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #A72A3A;
    transform: translateY(-5px);
}

/* =================================
   RESPONSIVIDAD
   ================================= */

@media (max-width: 768px) {
    section {
        padding: 1.5rem;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    nav ul {
        gap: 0 !important;
    }
    
    .programming-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        left: 10px;
        right: auto;
    }
    
    .lightbox-next {
        left: auto;
        right: 10px;
    }
    
    .whatsapp-btn,
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .scroll-to-top {
        right: auto;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
