/* --- RESET Y BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- SEGURIDAD ANTI-SCROLL LATERAL --- */
html, body {
    max-width: 100%;
    overflow-x: hidden; 
    position: relative;
    width: 100%;
}

body {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #333;
    background-color: #e3f0cc; /* Fondo crema suave */
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- COLORES MEXICANOS EN TÍTULOS --- */
h2 {
    color: #1a472a; /* Verde Bandera Mexicano */
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2rem;
}

/* --- CABECERA --- color antiguo #bb5432  */
.main-header {
    background-color: #C2592A;
    height: 150px; 
    width: 100%; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1000px; 
    width: 100%; 
    height: 100%; 
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-banner {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    display: block; 
    margin: 0 auto; 
    padding: 15px; 
}

/* --- BARRA SLOGAN --- */
.slogan-bar {
    background-color: #f7eed7; 
    padding: 15px 0;
    border-bottom: 3px solid #800000; 
    text-align: center;
}

.slogan-bar p {
    font-family: 'Playfair Display', serif;
    color: #bb5432;
    font-size: 1.3rem;
    letter-spacing: 3px;
}

/* --- SECCIONES --- */
section {
    padding: 60px 0;
}

.intro {
    margin-bottom: 80px; 
    padding-top: 40px; 
}

.intro p {
    text-align: center;
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* --- GALERÍA --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.photo-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-bottom: 5px solid #1a472a; 
    display: flex;
    flex-direction: column;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.photo-item h3 {
    padding: 20px 25px 5px 25px; 
    text-align: center;
    color: #800000; 
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
}

.photo-desc {
    padding: 0 25px 25px 25px; 
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1a472a;
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

/* --- INFO GRID (Horario y Mapa) --- */
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.horario, .mapa {
    flex: 1 1 400px; /* Base de 400px, si no hay espacio saltan a otra línea */
    min-width: 0; 
}

.horario ul {
    list-style: none;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.horario li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.horario li span {
    font-weight: bold;
    color: #bb5432;
    flex-shrink: 0; /* Evita que el nombre del día se encoja */
}

.mapa iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px;
    border-radius: 10px;
    display: block;
    border: 0;
}

/* --- RESPONSIVE AJUSTES --- */
@media (max-width: 768px) {
    .info-grid {
        flex-direction: column;
        gap: 30px;
    }

    .horario, .mapa {
        width: 100%;
        flex: 1 1 100%;
    }

    /* Evitamos que el texto largo del horario empuje la pantalla */
    .horario li {
        flex-direction: row; 
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .intro p {
        font-size: 1.1rem;
    }
}

/* Para móviles muy pequeños (iPhone SE, etc.) */
@media (max-width: 380px) {
    .horario li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .horario ul {
        padding: 15px;
    }
}

/* --- FOOTER --- */
footer {
    background-color: #1a472a; 
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-icon {
    width: 40px; 
    height: 40px;
    object-fit: contain;
}
