:root {
    --primary-blue: #003366; /* FOX Style */
    --accent-yellow: #FFD700;
    --light-blue: #0055A4;
    --bg-gray: #f0f2f5;
    --text-main: #333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212; /* Fondo externo oscuro para centrar la página */
    color: var(--text-main);
    display: flex;
    justify-content: center;
}

/* Contenedor Principal Centrado */
.main-container {
    background-color: white;
    width: 100%;
    max-width: 1200px; /* Ancho ideal para desktop */
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Header */
.main-header {
    background: var(--primary-blue);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid var(--accent-yellow);
}

.logo { color: white; font-family: 'Montserrat'; font-weight: 800; font-size: 1.8rem; letter-spacing: -1px; }
.logo span { color: var(--accent-yellow); }

.desktop-nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Hero / Carrusel */
.hero-carousel {
    height: 400px;
    background: linear-gradient(rgba(0,51,102,0.7), rgba(0,51,102,0.7)), 
                url('https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 { font-size: 3.5rem; font-family: 'Montserrat'; margin-bottom: 10px; }

/* Secciones */
.section-area { padding: 3rem 5%; }
.gray-section { background: var(--bg-gray); }

.section-title {
    font-family: 'Montserrat';
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-blue);
    padding-left: 15px;
}

/* Grid de Pronósticos */
.grid-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.pick-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #eee;
}

.pick-card img { width: 100%; height: 200px; object-fit: cover; }
.card-info { padding: 1.5rem; text-align: center; }
.card-info h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 4px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 20px;
}

/* Eventos */
.grid-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.event-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    border-left: 4px solid var(--light-blue);
    transition: 0.3s;
}

.event-box:hover { background: var(--light-blue); color: white; }
.event-box .time { font-size: 0.8rem; font-weight: bold; color: var(--light-blue); }
.event-box:hover .time { color: var(--accent-yellow); }

/* Pop Up Mejorado */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,34,68,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: white;
    max-width: 500px;
    width: 100%;
    border-radius: 15px;
    position: relative;
    overflow: hidden; /* Evita desborde de imagen */
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-img-fluid {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

#modal-body { padding: 25px; text-align: center; }
#modal-text { margin: 15px 0 25px; line-height: 1.6; color: #555; }

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2.5rem;
    background: none; border: none; color: white;
    cursor: pointer; text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Footer */
footer { background: var(--primary-blue); color: white; padding: 3rem 5% 1rem; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 2rem;
}

.twitter-feed { background: rgba(255,255,255,0.1); padding: 15px;