:root {
    --primary-color: #1a1a1a;   
    --secondary-color: #ffffff; 
    --text-color: #e0e0e0;      
    --bg-color: #121212;        
    --accent-color: #00aaff;    
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Header --- */
.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-button {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

/* --- Barra de Navegación Lateral --- */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: var(--primary-color);
    padding-top: 60px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2000;
}

.side-nav.active { transform: translateX(0); }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav li a {
    display: block;
    padding: 15px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2rem;
}
.side-nav li a:hover { background-color: #333; }
.close-nav-button {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Main Content --- */
.main-content {
    padding-top: 70px; /* Espacio para header */
}

/* --- NUEVA BARRA DE INFO: WIDGET Y TICKER --- */
.info-bar {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    background-color: #000;
    gap: 0.5rem;
}

.weather-widget {
    min-height: 80px; /* Altura mínima para el widget */
}

.news-ticker {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
}

.news-ticker p {
    margin: 0;
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
}

.news-ticker span {
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 1.5rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


/* --- Videos --- */
.video-principal {
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.videos-secundarios {
    padding: 2rem 1rem;
    text-align: center;
}

.videos-secundarios h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* --- GALERÍA DE 3 COLUMNAS --- */
.galeria-videos {
    display: grid;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Por defecto (móvil) es 1 columna */
    grid-template-columns: 1fr;
}

.video-item a { text-decoration: none; color: var(--text-color); }
.video-item img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-item a:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.video-item p { margin-top: 0.5rem; font-weight: 700; }

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* --- Modales --- */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3000;
}
.fullscreen-modal.active { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: relative;
    color: var(--secondary-color);
    border: 1px solid #333;
}
.close-modal-button {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
}
.modal-content h2 { margin-top: 0; }
.social-links { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1rem; }
.social-links a, .modal-content a {
    color: var(--accent-color);
    font-size: 1.5rem;
    text-decoration: none;
}
.modal-content p a { font-size: 1rem; }

/* --- Animación de Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- ESTILOS PARA ESCRITORIO --- */
@media (min-width: 768px) {
    .main-content { padding-left: 2rem; padding-right: 2rem; }

    /* Layout horizontal para la barra de info */
    .info-bar {
        flex-direction: row;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    .weather-widget {
        flex-basis: 100%;
        flex-shrink: 0;
    }
    .news-ticker {
        flex-grow: 1; /* El ticker ocupa el espacio restante */
    }

    /* Galería de 3 columnas para videos */
    .galeria-videos {
        grid-template-columns: repeat(3, 1fr);
    }
}