/* --- VARIABLES Y RESET --- */
:root {
    --ipuc-blue: #003876;
    --ipuc-gold: #C8A037;
    --bg-light: #f9fafb;
    --text-dark: #333333;
    --text-light: #777777;
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6;
}

/* --- ANIMACIONES DE SCROLL --- */
.animar-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animar-scroll.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- NAVBAR --- */
.navbar { 
    background-color: white !important; 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.navbar-container { 
    max-width: 1200px; 
    margin: auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 20px; 
    flex-wrap: wrap; 
}
.logo-container { display: flex; align-items: center; text-decoration: none; color: var(--ipuc-blue); }
.logo-img-nav { height: 55px; width: auto; margin-right: 12px; }
.logo-text { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--ipuc-blue); }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-size: 15px; font-weight: 600; text-transform: uppercase; transition: 0.3s; }
.nav-links a:hover { color: var(--ipuc-blue); }
.menu-toggle { display: none; font-size: 28px; color: var(--ipuc-blue); cursor: pointer; padding: 5px; }
.auth-container-nav { display: flex; align-items: center; }
.btn-nav-admin { background-color: var(--ipuc-blue); color: white !important; padding: 10px 24px; border-radius: 4px; transition: 0.3s; }
.btn-nav-admin:hover { background-color: #002550; }

/* --- HERO --- */
.hero { color: white; text-align: center; padding: 140px 20px; position: relative; transition: background-image 1s ease-in-out;}
.hero h1 { margin: 0; font-size: 52px; font-weight: 700; margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
.hero p { font-size: 22px; font-weight: 300; max-width: 700px; margin: 0 auto; opacity: 1; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }
.hero-line { width: 80px; height: 4px; background-color: var(--ipuc-gold); margin: 30px auto 0; box-shadow: 1px 1px 4px rgba(0,0,0,0.5); }

/* --- INFO SECTION --- */
.info-section { background-color: white; padding: 60px 20px; text-align: center; border-bottom: 1px solid #eee; }
.info-container { max-width: 900px; margin: 0 auto; }
.info-title { color: var(--ipuc-blue); font-size: 30px; font-weight: 700; margin-bottom: 20px; }
.info-text { color: var(--text-light); font-size: 17px; line-height: 1.8; }

/* --- SECCIÓN SOMOS (FE) --- */
.faith-section { background-color: #f8f9fa; padding: 80px 20px; text-align: center; }
.faith-container { max-width: 1200px; margin: 0 auto; }
.faith-intro { max-width: 700px; margin: 0 auto 50px; color: #666; font-size: 1.1rem; }
.faith-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.faith-card { flex: 1 1 300px; max-width: 350px; width: 100%; background: white; padding: 40px 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s; position: relative; overflow: hidden; border-top: 4px solid var(--ipuc-gold); }
.faith-card:hover { transform: translateY(-10px); }
.faith-icon { font-size: 3rem; color: var(--ipuc-blue); margin-bottom: 20px; }
.faith-card h3 { color: var(--ipuc-blue); font-size: 1.5rem; margin-bottom: 15px; }
.faith-card p { color: #555; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.bible-cite { display: inline-block; background: #f0f4f8; color: var(--ipuc-blue); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* --- VERSÍCULO DEL DÍA --- */
.verse-day-section { background-color: var(--ipuc-blue); background-image: linear-gradient(135deg, #003366 0%, #001a33 100%); padding: 60px 20px; text-align: center; color: white; position: relative; overflow: hidden; }
.verse-overlay { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.verse-title { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; color: var(--ipuc-gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; opacity: 0.9; }
.verse-text { font-family: 'Playfair Display', serif; font-size: 2rem; font-style: italic; line-height: 1.4; margin-bottom: 20px; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.verse-reference { font-size: 1.1rem; font-weight: 600; margin-top: 10px; opacity: 0.8; }

/* --- BIBLIA ONLINE --- */
.bible-section { background-color: #f4f6f8; padding: 50px 20px; border-bottom: 1px solid #e0e0e0; }
.bible-container { max-width: 800px; margin: 0 auto; text-align: center; }

/* --- LAYOUT PRINCIPAL --- */
.main-container { max-width: 1300px; margin: 60px auto; padding: 0 20px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; border-bottom: 2px solid #eee; padding-bottom: 15px; }
.section-title { color: var(--ipuc-blue); font-size: 32px; font-weight: 700; margin: 0; position: relative; }
.content-layout { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.news-column { flex-grow: 1; margin-right: 80px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* --- TARJETAS --- */
.card { background: white; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }
.card-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 4px solid var(--ipuc-gold); cursor: pointer; transition: opacity 0.2s; }
.card-img:hover { opacity: 0.9; }
.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-date { color: #999; font-weight: 600; font-size: 0.8rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.card-title { font-size: 1.2rem; color: var(--ipuc-blue); margin: 0 0 10px 0; line-height: 1.4; font-weight: 700; }
.card-text { color: var(--text-light); font-size: 0.9rem; flex-grow: 1; margin-bottom: 20px; }
.btn-play-video { display: flex; align-items: center; justify-content: center; gap: 10px; background-color: white; color: var(--ipuc-blue); border: 2px solid var(--ipuc-blue); padding: 8px 16px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 13px; transition: 0.3s; cursor: pointer; width: 100%; text-transform: uppercase; }
.btn-play-video:hover { background-color: var(--ipuc-blue); color: white; }

/* --- COLUMNA DERECHA (CALENDARIO) --- */
.calendar-column { width: 300px; flex-shrink: 0; margin-left: auto; position: sticky; top: 90px; }
.calendar-card { background: white; padding: 15px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--ipuc-blue); }
.calendar-title { color: var(--ipuc-blue); font-size: 1.1rem; margin-bottom: 5px; text-align: center; }
.calendar-desc { font-size: 0.8rem; color: #777; text-align: center; margin-bottom: 15px; }
#calendar { font-size: 0.75rem; }
.fc-toolbar-title { font-size: 0.9rem !important; }
.fc-button { padding: 2px 6px !important; font-size: 0.7rem !important; }
.fc-day-today { background-color: rgba(200, 160, 55, 0.15) !important; }
.fc-event { cursor: pointer; font-size: 0.7rem; }

/* --- FOOTER --- */
footer { background-color: #1a1a1a; color: white; text-align: center; padding: 70px 20px 40px; margin-top: 80px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; text-align: left; }
.footer-col { flex: 1; min-width: 250px; }
.footer-logo { width: 80px; margin-bottom: 15px; }
.footer-info { color: #999; font-size: 0.9rem; margin-bottom: 10px; line-height: 1.6; }
.footer-title { color: white; font-size: 1.1rem; margin-bottom: 20px; border-bottom: 2px solid var(--ipuc-gold); display: inline-block; padding-bottom: 5px; }
.social-links { display: flex; gap: 15px; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 1.2rem; transition: 0.3s; }
.social-btn.facebook { background: #3b5998; }
.social-btn.instagram { background: #E1306C; }
.social-btn.youtube { background: #FF0000; } /* COLOR ROJO DE YOUTUBE */
.social-btn:hover { transform: translateY(-3px); filter: brightness(1.2); }
.copyright { color: #555; font-size: 13px; margin-top: 50px; border-top: 1px solid #333; padding-top: 20px; text-align: center; }

/* --- MODALES --- */
.modal-video-fondo, .modal-auth-fondo { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); z-index: 2000; justify-content: center; align-items: center; animation: fadeIn 0.3s; }
.modal-auth-fondo { background-color: rgba(0, 0, 0, 0.8); z-index: 3000; backdrop-filter: blur(5px); }
.modal-video-contenido, .modal-auth-contenido { position: relative; width: 100%; max-width: 900px; outline: none;}
.modal-auth-contenido { background: white; max-width: 400px; border-radius: 10px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.3); animation: slideDown 0.3s ease; }
.cerrar-video, .cerrar-auth { position: absolute; color: white; cursor: pointer; }
.cerrar-video { top: -45px; right: 0; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.cerrar-auth { top: 10px; right: 15px; font-size: 24px; color: #999; z-index: 10; }
#reproductorFull { width: 100%; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from {transform: translateY(-50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }

/* AUTH FORM STYLES */
.auth-header { display: flex; background: #f1f1f1; }
.tab-btn { flex: 1; padding: 15px; border: none; background: #f1f1f1; cursor: pointer; font-weight: bold; color: #666; border-bottom: 3px solid transparent; transition: 0.3s; }
.tab-btn.active { background: white; color: #003366; border-bottom: 3px solid #ffcc00; }
.auth-body { padding: 30px; }
.form-auth { display: none; }
.form-auth.active { display: block; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 14px; margin-bottom: 5px; color: #333; }
.input-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }
.btn-auth-submit { width: 100%; padding: 12px; background-color: #003366; color: white; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-auth-submit:hover { background-color: #002244; }

/* ESTILOS USUARIO */
.user-menu { display: flex; align-items: center; gap: 15px; }
.user-menu span { color: #555; font-size: 14px; }
.user-name { color: #003366 !important; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-logout { color: #dc3545 !important; border: none !important; background: transparent !important; padding: 8px; font-size: 1.2rem; transition: transform 0.2s ease; cursor: pointer; display: flex; align-items: center; }
.btn-logout:hover { background-color: transparent !important; color: #a71d2a !important; transform: scale(1.15); }
a.btn-login-nav { background: linear-gradient(135deg, #003366 0%, #0055aa 100%) !important; color: #ffffff !important; padding: 10px 24px; border-radius: 30px; font-weight: 700; box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3); transition: all 0.3s ease; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 8px; }
a.btn-login-nav:hover { background: linear-gradient(135deg, #002244 0%, #004488 100%) !important; color: #ffffff !important; transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4); }

/* MEDIA QUERIES */
@media (max-width: 900px) {
    .content-layout { flex-direction: column; }
    .news-column { margin-right: 0; }
    .calendar-column { width: 100%; margin-top: 30px; margin-left: 0; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 18px; }
    .verse-text { font-size: 1.5rem; }
    .logo-text { font-size: 20px; }
    .logo-img-nav { height: 40px; }
    .menu-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; position: absolute; top: 100%; left: 0; background-color: white; padding: 20px 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-top: 1px solid #eee; }
    .nav-links.active { display: flex; animation: slideDownNav 0.3s ease; }
    .nav-links a { padding: 12px 0; width: 100%; text-align: center; border-bottom: 1px solid #f9f9f9; }
    .auth-container-nav { width: 100%; display: flex; justify-content: center; margin-top: 20px; margin-bottom: 10px; }
    a.btn-login-nav { width: auto !important; display: flex !important; margin: 0 auto; padding: 12px 40px; border-bottom: none !important; }
    .user-menu { flex-direction: column; gap: 5px; margin-top: 15px; }
    
    /* Footer responsive */
    .footer-container { flex-direction: column; text-align: center; }
    .footer-title { border-bottom: none; }
    .social-links { justify-content: center; }
}
/* =========================================
   --- PÁGINA DE MISIONES ---
   ========================================= */

.missions-section {
    padding: 60px 20px;
    background-color: white;
}

.missions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: #f9fafb;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
    border-bottom: 4px solid var(--ipuc-blue);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: white;
}

.mission-icon {
    font-size: 3rem;
    color: var(--ipuc-gold);
    margin-bottom: 20px;
}

.mission-card h3 {
    color: var(--ipuc-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.mission-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   --- FORMULARIO DE CONTACTO ---
   ========================================= */

.contact-section {
    background-color: var(--ipuc-blue);
    background-image: linear-gradient(135deg, #003366 0%, #001529 100%);
    padding: 80px 20px;
    color: white;
    text-align: center;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    text-align: left;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--ipuc-blue);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--ipuc-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 56, 118, 0.2);
}

.btn-enviar {
    width: 100%;
    padding: 15px;
    background-color: var(--ipuc-gold);
    color: #003366; /* Texto oscuro para contraste en dorado */
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-enviar:hover {
    background-color: #e0b33e;
    transform: translateY(-2px);
}

/* Mensaje de éxito */
.mensaje-exito {
    text-align: center;
    padding: 40px 20px;
}
.mensaje-exito i {
    font-size: 60px;
    color: #27ae60;
    margin-bottom: 20px;
}
.mensaje-exito h3 {
    color: var(--ipuc-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
}
/* --- ESTILO PARA EL SCROLL DEL MURO --- */
.contenedor-peticiones-scroll {
    max-height: 500px;       /* Altura máxima fija */
    overflow-y: auto;        /* Muestra barra de scroll si se pasa */
    padding-right: 15px;     /* Espacio para que el texto no toque la barra */
    margin-top: 30px;
}

/* Personalización de la barra de scroll (para que combine con tu azul) */
.contenedor-peticiones-scroll::-webkit-scrollbar {
    width: 8px;
}
.contenedor-peticiones-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.contenedor-peticiones-scroll::-webkit-scrollbar-thumb {
    background: #003366;    /* Tu color azul institucional */
    border-radius: 4px;
}
.contenedor-peticiones-scroll::-webkit-scrollbar-thumb:hover {
    background: #002244; 
}


/*OTROS ESTILOS
.fc-event { cursor: pointer; }
        
        /* ESTILOS DE ANIMACIÓN */
        .animar-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
        .animar-scroll.visible { opacity: 1; transform: translateY(0); }
        .delay-1 { transition-delay: 0.2s; }
        .delay-2 { transition-delay: 0.4s; }
        .delay-3 { transition-delay: 0.6s; }

        /* ESTILOS AUTH NECESARIOS */
        .olvido-pass { display: block; text-align: center; margin-top: 15px; font-size: 0.9rem; color: #666; text-decoration: none; }
        .olvido-pass:hover { color: #003366; text-decoration: underline; }

        .btn-registro-lindo {
            width: 100%; padding: 12px;
            background: linear-gradient(135deg, #003366 0%, #0055aa 100%);
            color: white !important; border: none; border-radius: 30px;
            font-weight: 800; font-size: 1rem; cursor: pointer;
            transition: transform 0.2s; text-transform: uppercase;
        }
        .btn-registro-lindo:hover { transform: translateY(-2px); filter: brightness(1.1); }

        /* --- BOTÓN CERRAR MÁS GRANDE --- */
        .cerrar-auth {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            color: #999;
            cursor: pointer;
            line-height: 1;
            z-index: 100;
            transition: color 0.3s;
        }
        .cerrar-auth:hover { color: #333; }

        /* --- ESTILOS DEL NAVBAR --- */
        .navbar-container {
            width: 95% !important;
            max-width: 1400px !important;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative; 
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 25px;
        }
        .nav-links a {
            white-space: nowrap;
            text-decoration: none;
            color: #333;
            font-weight: 600;
            font-size: 0.95rem; 
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 10px; 
            margin-left: 10px;
        }
        .user-name {
            display: inline-block;
            max-width: 160px;
            white-space: nowrap;    
            overflow: hidden;       
            text-overflow: ellipsis;
            vertical-align: middle;
            font-weight: 600;
            font-size: 0.9rem;     
        }

        /* ESTILOS DEL BOTÓN HAMBURGUESA (Por defecto oculto en PC) */
        .menu-toggle {
            display: none;
            font-size: 1.8rem;
            color: #003366;
            cursor: pointer;
        }

        /* --- MEDIA QUERIES (RESPONSIVE) --- */

        /* 1. Laptops pequeñas (ajuste de espacio) */
        @media (min-width: 769px) and (max-width: 1200px) {
            .nav-links { gap: 15px; }
            .user-name { max-width: 120px; }
            .nav-links a { font-size: 0.85rem; }
        }

        /* 2. CELULARES */
        @media (max-width: 768px) {
            .menu-toggle { 
                display: block; /* Mostrar icono hamburguesa */
            }
            
            .user-name { 
                display: block; 
                max-width: none; /* Que ocupe todo el ancho necesario */
                margin-bottom: 5px; /* Separación del botón salir */
                text-align: center;
                color: #003366;
            }

            .user-menu {
                flex-direction: column; /* Nombre arriba, botón salir abajo */
                gap: 5px;
            }

            .nav-links {
                display: none; /* Oculto por defecto */
                position: absolute;
                top: 100%; /* Aparece justo debajo de la barra */
                left: 0;
                width: 100%;
                background-color: white; /* Fondo blanco sólido */
                flex-direction: column; /* Elementos uno debajo del otro */
                align-items: center;
                padding: 20px 0;
                box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
                z-index: 1000;
                gap: 20px; 
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links a {
                font-size: 1.1rem; 
                width: 100%;
                text-align: center;
                
            }

            .auth-container-nav {
                margin-left: 0;
                margin-top: 10px;
                display: flex;
                justify-content: center;
                width: 100%;
            }
        }

        /* ESTILOS NUEVOS: MURO DE ORACIÓN */
        .muro-section {
            background-color: #f4f6f9;
            padding: 80px 20px;
            text-align: center;
            font-family: 'Montserrat', sans-serif;
        }
        .muro-container-width {
            max-width: 800px;
            margin: 0 auto;
        }
        .muro-titulo {
            color: #003366;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
        .muro-subtitulo {
            color: #888;
            font-size: 1rem;
            margin-bottom: 50px;
            font-weight: 400;
        }
        .card-peticion {
            background: white;
            border-radius: 15px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            text-align: left;
            border-left: 6px solid #C8A037; /* El borde dorado */
            margin-bottom: 30px; 
        }
        .label-peticion {
            color: #003366;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 20px;
            display: block;
        }
        .input-peticion {
            width: 100%;
            padding: 15px;
            border: 1px solid #e1e1e1;
            border-radius: 8px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.95rem;
            color: #555;
            margin-bottom: 25px;
            outline: none;
            transition: border-color 0.3s;
        }
        .input-peticion:focus {
            border-color: #003366;
        }
        .btn-muro-enviar {
            background-color: #003366;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: background 0.3s;
        }
        .btn-muro-enviar:hover {
            background-color: #002244;
        }
        
        /* Estilos para las peticiones ya publicadas */
        .peticion-publicada {
            background: white;
            border-radius: 10px;
            padding: 20px;
            text-align: left;
            border-left: 4px solid #003366; 
            margin-bottom: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.03);
            animation: aparecer 0.5s ease-out;
        }
        .peticion-fecha {
            font-size: 0.8rem;
            color: #999;
            margin-bottom: 5px;
            display: block;
        }
        .peticion-texto {
            font-size: 1rem;
            color: #444;
            line-height: 1.5;
        }

        /* --- ESTILO PARA EL SCROLL (BARRA DE DESPLAZAMIENTO) --- */
        .contenedor-peticiones-scroll {
            max-height: 500px;/* Altura máxima fija */
            overflow-y: auto;/* Muestra barra de scroll si se pasa */
            padding-right: 15px;/* Espacio para que el texto no toque la barra */
            margin-top: 30px;
        }
        /* Personalización de la barra de scroll */
        .contenedor-peticiones-scroll::-webkit-scrollbar { width: 8px; }
        .contenedor-peticiones-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
        .contenedor-peticiones-scroll::-webkit-scrollbar-thumb { background: #003366; border-radius: 4px; }
        .contenedor-peticiones-scroll::-webkit-scrollbar-thumb:hover { background: #002244; }

        /* ESTILOS NUEVOS: GALERÍA DE FOTOS */
        .galeria-title { color: #003366; font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }
        .galeria-subtitle { color: #888; font-size: 1rem; margin-bottom: 40px; font-weight: 400; }
        .galeria-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto; }
        .galeria-card { 
            background: white; 
            border-radius: 15px; 
            overflow: hidden; 
            box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
            width: 350px; 
            transition: transform 0.3s; 
            cursor: pointer; 
        }
        .galeria-card:hover { transform: translateY(-5px); }
        .galeria-img-container { height: 220px; overflow: hidden; }
        .galeria-img { width: 100%; height: 100%; object-fit: cover; }
        .galeria-caption { 
            padding: 15px; 
            font-weight: 700; 
            color: #003366; 
            font-size: 1.1rem; 
            border-top: 4px solid #C8A037; /* Borde dorado */
            text-align: center;
        }

        @keyframes aparecer {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ================================================================== 
           !!! CORRECCIÓN DEFINITIVA VIDEO Y X DE CERRAR !!! 
           ================================================================== */
        .modal-video-fondo {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0; top: 0;
            width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.9);
            justify-content: center;
            align-items: center;
            padding: 20px; /* Para que no pegue a los bordes */
            box-sizing: border-box;
        }
        
        /* Contenedor flexible que se adapta al contenido */
        .modal-video-contenido {
            background-color: transparent; /* Fondo transparente */
            width: auto; /* Se adapta al ancho del video */
            max-width: 100%;
            max-height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        /* La barra negra con la X siempre visible */
        .cerrar-video {
            width: 100%;
            background-color: #000;
            color: white;
            padding: 10px 15px;
            text-align: right;
            cursor: pointer;
            font-weight: bold;
            font-family: 'Montserrat', sans-serif;
            border-radius: 8px 8px 0 0;
            flex-shrink: 0; /* IMPORTANTE: No deja que se aplaste */
        }
        .cerrar-video:hover { color: #ff4444; }
        
        /* El video se ajusta solito */
        #reproductorFull {
            display: block;
            width: auto;  /* Clave para videos verticales */
            height: auto;
            max-width: 100%;
            max-height: 80vh; /* Altura máxima controlada */
            background: black;
            border-radius: 0 0 8px 8px;
        }