/* ========================================= */
/* === 1. FUENTES Y COLORES GLOBALES === */
/* ========================================= */
@font-face {
    font-family: 'NFLFont';
    src: url('../fonts/NFLRedZone.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

:root {
    --nfl-red: #D71920;
    --nfl-black: #121212;
    --gray-disabled: #888;
    --border-color: #ddd;
}

/* 🔥 MAGIA APLICADA AQUÍ: Flexbox para el footer 🔥 */
body { 
    margin: 0; 
    font-family: 'Arial', sans-serif; 
    background: #fff; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}
a { text-decoration: none; color: inherit; }

/* ========================================= */
/* === 2. TÍTULOS Y CABECERAS === */
/* ========================================= */
.titulo-nfl {
    font-family: 'NFLFont', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}

.texto-rojo { color: #D71920; }
.texto-azul { color: #013369; }
.texto-amarillo { color: #FFB612; }

/* Alineación de iconos en títulos */
.widget-box h3 {
    display: flex; align-items: center; justify-content: center; gap: 10px;
}

/* ========================================= */
/* === 3. BARRAS SUPERIORES (NAV & LOGOS) === */
/* ========================================= */
.top-sketch-bar {
    background: white;
    border-bottom: 2px solid var(--nfl-black);
    padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; font-weight: bold;
}
.nav-item { display: flex; align-items: center; gap: 8px; }
.clickable { cursor: pointer; }

/* Barra de Equipos (Marquee) */
.nfl-marquee-container {
    width: 100%; overflow: hidden; background: #f4f4f4;
    padding: 10px 0; border-bottom: 2px solid #ddd; position: relative;
}
.slider-track {
    display: flex; width: max-content;
    animation: scroll 30s linear infinite;
}
.slider-track img {
    height: 40px; margin: 0 25px; flex-shrink: 0;
    filter: grayscale(100%); transition: all 0.3s;
}
.slider-track img:hover { filter: grayscale(0%); transform: scale(1.2); cursor: pointer; }
.slider-track:hover { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Logo Central */
.main-branding { text-align: center; padding: 40px 20px; }
.big-logo { max-width: 300px; height: auto; }
.sketch-separator { border: none; border-top: 2px solid var(--nfl-black); margin: 0 20px; }

/* ========================================= */
/* === 4. ESTRUCTURA PRINCIPAL (GRID) === */
/* ========================================= */
.dashboard-container {
    display: grid !important;
    grid-template-columns: 1.4fr 0.6fr 1.3fr !important; 
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto 60px auto;
    align-items: start;
}

/* ========================================= */
/* === 5. COLUMNAS Y WIDGETS === */
/* ========================================= */

/* Noticias */
.news-column {
    background: white; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-top: 5px solid var(--nfl-red);
}
.main-news-item img {
    width: 100% !important; height: 220px !important;
    object-fit: cover !important; display: block;
}
.main-news-info { padding: 20px; }
.main-news-info h2 { margin: 10px 0; font-size: 20px; color: #1a1a1a; }
.sub-news-item { display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid #f0f0f0; }
.sub-news-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

/* Widgets Genéricos */
.widget-box {
    background: white; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 20px;
}

/* Widget Promo (Podcast) */
.promo-box {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white; border-radius: 8px; padding: 20px; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); border-top: 5px solid #666;
}
.btn-promo {
    display: inline-block; background: #D71920; color: white;
    padding: 8px 15px; border-radius: 20px; font-size: 12px; font-weight: bold; margin-top: 10px;
}

/* ========================================= */
/* === 6. RESULTADOS (EL ARREGLO NUCLEAR) === */
/* ========================================= */

.scores-scroll-box {
    max-height: 135px; /* Altura fija */
    overflow-y: auto; padding-right: 5px;
    zoom: 0.85; 
    -moz-transform: scale(0.85); -moz-transform-origin: 0 0;
    scrollbar-width: thin; scrollbar-color: #FFB612 #1a1a1a;
}
.scores-scroll-box::-webkit-scrollbar { width: 10px; }
.scores-scroll-box::-webkit-scrollbar-track { background: #1a1a1a; }
.scores-scroll-box::-webkit-scrollbar-thumb { background: #FFB612; border: 2px solid #1a1a1a; border-radius: 4px; }

.scores-scroll-box,
.scores-scroll-box div,
.scores-scroll-box span,
.scores-scroll-box a,
.scores-scroll-box h2,
.scores-scroll-box p {
    font-size: 18px !important; 
    line-height: 1.2 !important;
    text-decoration: none !important;
}
.scores-scroll-box small,
.scores-scroll-box .status {
    font-size: 11px !important;
    color: #888 !important;
    display: block; margin-bottom: 5px;
}
.scores-scroll-box img {
    width: 28px !important; height: auto !important;
    vertical-align: middle; margin: 0 8px;
}
.scores-scroll-box > div {
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 10px 0 !important;
}

/* ========================================= */
/* === 7. EXTRAS (MODAL, COOKIES, TICKER) === */
/* ========================================= */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 999; justify-content: center; align-items: center; }
.modal-sketch-content { background: white; padding: 30px; border: 3px solid var(--nfl-black); border-radius: 15px; width: 90%; max-width: 350px; position: relative; }
.modal-football-icon { position: absolute; top: -50px; left: -50px; width: 120px; transform: rotate(-20deg); }
.input-group input { width: 100%; padding: 12px; border: 2px solid var(--nfl-black); border-radius: 8px; box-sizing: border-box; }
.btn-sketch-submit { width: 100%; background: var(--nfl-black); color: white; padding: 12px; border: none; font-weight: bold; border-radius: 8px; cursor: pointer; margin-top: 20px; }

.leagues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.league-card { background: white; border-radius: 10px; border: 1px solid #eee; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.card-img-container { height: 150px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; padding: 10px; }
.card-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
.btn-join { display: block; background: #28a745; color: white; text-align: center; padding: 10px; margin: 15px; border-radius: 5px; font-weight: bold; }

.cookie-box { display: none; position: fixed; bottom: 0; width: 100%; background: rgba(0,0,0,0.9); padding: 15px; color: white; z-index: 9999; }
.btn-cookie { background: var(--nfl-red); color: white; border: none; padding: 5px 15px; border-radius: 4px; cursor: pointer; }

/* ========================================= */
/* === 8. MEDIA QUERIES (MÓVIL) === */
/* ========================================= */
@media (max-width: 768px) {
    .dashboard-container { grid-template-columns: 1fr !important; }
    .titulo-nfl { font-size: 20px; text-align: center; }
    .top-sketch-bar { font-size: 12px; padding: 10px; }
    .slider-track img { height: 30px; margin: 0 15px; }
    .modal-football-icon { width: 80px; top: -30px; left: -20px; }
    .cookie-content { flex-direction: column !important; text-align: center !important; }
    .btn-cookie { width: 100% !important; margin-top: 10px; }
}

/* ========================================= */
/* === CINTILLA NOTICIAS === */
/* ========================================= */
.ticker-wrap {
    width: 100%; height: 40px; background-color: #000; overflow: hidden; white-space: nowrap; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.3); margin-bottom: 40px; border-top: 1px solid #333; display: flex; align-items: center; z-index: 5;
}
.ticker-label {
    background: #D71920; color: white; height: 100%; display: flex; align-items: center; padding: 0 20px; font-family: 'NFLFont', sans-serif; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; z-index: 10; position: relative; box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}
.ticker { display: inline-block; padding-left: 100%; animation: ticker-scroll 35s linear infinite; }
.ticker-item { display: inline-block; padding: 0 20px; font-size: 14px; color: white; vertical-align: middle; font-family: sans-serif; }
.ticker-item a { color: white; text-decoration: none; transition: color 0.2s; }
.ticker-item a:hover { color: #FFB612; text-decoration: underline; }

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ========================================= */
/* === AJUSTE MÓVIL: LIGAS (2 POR FILA) === */
/* ========================================= */
@media (max-width: 600px) {
    .leagues-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 0 10px !important; }
    .card-img-container { height: 80px !important; padding: 5px !important; }
    .league-card h3 { font-size: 12px !important; margin-bottom: 5px !important; }
    .btn-join { font-size: 10px !important; padding: 5px !important; margin-top: 5px !important; }
}

/* ========================================= */
/* === SECCIÓN SPONSORS (LOGOS) === */
/* ========================================= */
.sponsors-section {
    padding: 40px 20px; background: #f9f9f9; border-top: 1px solid #eee; text-align: center; margin-top: 60px;
}
.sponsors-grid {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; max-width: 1000px; margin: 0 auto;
}
.sponsor-item img {
    height: 40px; width: auto; filter: grayscale(100%); opacity: 0.5; transition: all 0.3s ease; cursor: pointer;
}
.sponsor-item img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
@media (max-width: 600px) {
    .sponsors-grid { gap: 20px; }
    .sponsor-item img { height: 30px; }
}

/* ========================================= */
/* === FOOTER (PIE DE PÁGINA) === */
/* ========================================= */
.main-footer {
    background-color: #121212; 
    color: #ccc;
    padding: 60px 20px 20px;
    
    /* 🔥 MAGIA APLICADA AQUÍ: Empuja el footer hasta el fondo 🔥 */
    margin-top: auto; 
    
    font-size: 14px;
    width: 100%;
    box-sizing: border-box; /* Previene desbordamientos a los lados */
}

.footer-content {
    max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #333;
}
.footer-col h4 {
    color: white; text-transform: uppercase; margin-bottom: 20px; font-size: 16px; border-left: 3px solid #D71920; padding-left: 10px;
}
.footer-col p { line-height: 1.6; color: #999; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #999; text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: #FFB612; padding-left: 5px; }

/* Redes Sociales */
.social-icons span {
    display: inline-block; background: #333; color: white; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; margin-right: 10px; font-size: 10px; font-weight: bold; cursor: pointer;
}
.social-icons span:hover { background: #D71920; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 12px; color: #666; }