:root {
    --color-nacional: #4CAF50;
    --color-leidsa: #FFC107;
    --color-real: #0D47A1;
    --color-loteka: #8ed1fc;
    --color-primera: #f80000;
    --color-suerte: #2196F3;
    --color-lotedom: #0009cd;
    --color-anguila: #ff6a00;
    --color-king: #795548;
    --color-americanas: #607D8B;
    --bg-dark: #333333;
    --text-dark: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f4f4; }

/* Navbar */
.main-navbar {
    background: linear-gradient(90deg, #1565C0, #1E88E5);
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; text-decoration: none; color: white; }
.brand-icon {
    background: rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.brand-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; padding: 2px; }
.nav-menu { display: flex; gap: 15px; position: relative; }
.nav-btn { background: rgba(0, 0, 0, 0.1); border: none; color: white; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.25); }

/* Dropdown & Menu */
.dropdown { position: relative; }
.dropdown-content { display: none; position: absolute; right: 0; top: 120%; background-color: white; min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 12px; z-index: 1000; overflow: hidden; }
.dropdown-content.show { display: block; }
.dropdown-content a { color: #333; padding: 14px 20px; text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 600; border-bottom: 1px solid #f5f5f5; }
.dropdown-content a:hover { background-color: #f0f7ff; color: #1565C0; }
.mini-logo { width: 24px; height: 24px; object-fit: contain; }
.scrollable-menu { max-height: 70vh; overflow-y: auto; min-width: 300px; padding: 0; }
.accordion-btn { background-color: #f8f9fa; color: #37474F; cursor: pointer; padding: 14px 20px; width: 100%; text-align: left; border: none; border-bottom: 1px solid #eceff1; font-weight: 700; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; }
.accordion-btn:hover, .accordion-btn.active { background-color: #eceff1; color: #1565C0; }
.panel { padding: 0; background-color: white; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; border-bottom: 1px solid #eceff1; }
.panel a { padding-left: 25px; }

/* Hero Header */
.hero-header { background: white; text-align: center; padding: 30px 20px; border-bottom: 1px solid #eee; }
.hero-title { color: #1565C0; font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.hero-subtitle { color: #546E7A; font-size: 1rem; max-width: 700px; margin: 0 auto; }

/* Grid & Cards */
.container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); gap: 12px; }
.lottery-card { background: white; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.5); border: 1px solid #ccc; display: flex; flex-direction: column; transition: all 0.3s ease; }
.lottery-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.card-header { padding: 6px 12px; color: white; font-weight: 700; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; }
.card-body { padding: 15px; text-align: center; }
.top-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.date-badge { background-color: #37474F; color: white; padding: 4px 8px; border-radius: 3px; font-size: 0.8rem; font-weight: bold; }
.lottery-logo { height: 65px; max-width: 120px; object-fit: contain; margin: 0 auto; display: block; transition: transform 0.2s; }
.lottery-logo:hover { transform: scale(1.1); }
.game-name { font-size: 1.1rem; color: #333; font-weight: 700; margin: 10px 0; }

/* Balls */
.numbers-container, .super-loto-flex { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ball { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f5f5f5, #d6d6d6); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; color: #444; box-shadow: 0 2px 4px rgba(0,0,0,0.15); border: 1px solid #ccc; }
.ball-blue { background: radial-gradient(circle at 30% 30%, #e3f2fd, #64b5f6); color: #0d47a1; border: 1px solid #42a5f5; }
.ball-red { background: radial-gradient(circle at 30% 30%, #ffebee, #e57373); color: #b71c1c; border: 1px solid #ef5350; }

/* Today Highlight Styles */
.today-card { 
    /* Verde intenso (Neón oscuro), radio corto */
    box-shadow: 0 2px 10px rgba(0, 200, 83, 0.8); 
    border: 1px solid #00c853;
    transform: translateY(-1px); /* Elevación sutil */
}

.ball-green {
    /* Verde Brillante para hoy */
    background: radial-gradient(circle at 30% 30%, #008927, #1aff31);
    color: #ffffff;
    border: 1px solid #439c4a;
    box-shadow: 0 0 5px rgba(0, 230, 118, 0.4);
}

.ball.vivid.ball-blue {
    /* Azul Más Intenso/Encendido */
    background: radial-gradient(circle at 30% 30%, #42a5f5, #1565c0);
    color: rgb(255, 255, 255);
    border: 1px solid #0d47a1;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.6);
    font-weight: bold;
}

.ball.vivid.ball-red {
    /* Rojo Más Intenso/Encendido */
    background: radial-gradient(circle at 30% 30%, #ef5350, #c62828);
    color: white;
    border: 1px solid #b71c1c;
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.6);
    font-weight: bold;
}

/* Info Section */
.info-section { background: white; padding: 40px; margin-top: 40px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.info-section h2 { color: #333; margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.info-content { color: #555; line-height: 1.6; }

/* Footer */
.site-footer { background-color: #37474F; color: #eceff1; padding: 40px 20px; text-align: center; margin-top: 60px; border-top: 4px solid #1565C0; }
.footer-links a { color: #90CAF9; text-decoration: none; margin: 0 10px; }
.footer-links a:hover { color: white; text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .main-navbar { flex-direction: column; gap: 15px; padding-bottom: 15px; }
    .nav-menu { width: 100%; justify-content: space-between; position: relative; gap: 10px; }
    .dropdown { position: static; flex: 1; }
    .dropdown-content { 
        left: 0; 
        right: 0; 
        top: 100%; 
        width: 96%; 
        margin: 10px auto 0 auto; 
        transform: none !important; 
        max-width: none;
    }
    .nav-btn { width: 100%; justify-content: center; }
}

/* Header Colors */
.header-nacional { background-color: var(--color-nacional); }
.header-leidsa { background-color: var(--color-leidsa); color: #333; }
.header-real { background-color: var(--color-real); }
.header-loteka { background-color: var(--color-loteka); }
.header-primera { background-color: var(--color-primera); }
.header-suerte { background-color: var(--color-suerte); }
.header-lotedom { background-color: var(--color-lotedom); }
.header-anguila { background-color: var(--color-anguila); }
.header-king { background-color: var(--color-king); }
.header-americanas { background-color: var(--color-americanas); }