/* ==========================================================================
   1. CONFIGURACIÓN GENERAL
   ========================================================================== */
body {
    font-family: 'Rajdhani', sans-serif;
    background: radial-gradient(circle at top left, #051923, #000 80%);
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER Y LOGO
   ========================================================================== */
header {
    min-height: 220px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding-bottom: 25px;
    background-color: #000; 
}

.logo {
    width: 140px; 
    height: auto;
    position: absolute;
    left: 40px;
    top: 10px; 
    z-index: 10;
}

.login-float {
    position: absolute !important; 
    top: 20px !important;
    right: 20px !important;
    z-index: 10000;
}

.login-btn {
    background: #000;
    padding: 8px 18px;
    border: 1px solid #00bfff;
    color: #00bfff;
    font-family: 'Orbitron';
    font-weight: bold;
    text-decoration: none;
    font-size: 0.75rem;
    cursor: pointer;
}

.login-content {
    opacity: 0; visibility: hidden;
    position: absolute; right: 0; top: 100%;
    background: #0a0a0a; min-width: 220px;
    padding: 20px; border: 1px solid #222;
    margin-top: 10px; transition: 0.3s;
}

.login-dropdown:hover .login-content { opacity: 1; visibility: visible; pointer-events: auto; }

header h1 {
    font-family: 'Orbitron';
    font-size: clamp(24px, 4vw, 48px); 
    margin: 60px 0 15px 0;
    text-transform: uppercase;
}

nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.nav-link {
    background-color: #0a0a0a;
    color: #eee;
    padding: 8px 16px;
    text-decoration: none;
    font-family: 'Orbitron';
    font-size: 0.75rem;
    border: 1px solid #333;
}

.nav-link.active { border-color: #00bfff; }
.nav-gold { color: #ffd700 !important; border-color: #ffd700 !important; }
.nav-live { color: #00ffcc !important; border-color: #00ffcc !important; }
.nav-pista { background: #cc0000 !important; border: 2px solid #fff !important; }

/* ==========================================================================
   3. PODIO (RECTÁNGULOS ORIGINALES)
   ========================================================================== */
#podio-contenedor { 
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    gap: 10px; 
    min-height: 180px; 
    margin: 30px auto;
}

.podio-card { 
    width: 120px; 
    text-align: center; 
    padding: 15px 5px; 
    font-family: 'Orbitron'; 
}

.podio-1 { background: #ffd700; color: #000; height: 150px; order: 2; border: 1px solid #fff; }
.podio-2 { background: #c0c0c0; color: #000; height: 120px; order: 1; }
.podio-3 { background: #cd7f32; color: #fff; height: 90px; order: 3; }

.podio-card h3 { margin: 0; font-size: 1.4rem; }
.podio-card p { margin: 5px 0; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.podio-card small { font-size: 0.65rem; opacity: 0.8; }

/* ==========================================================================
   4. SECCIONES Y H22 (RENOVADO - MÁS GRANDE Y CON EFECTOS)
   ========================================================================== */
section {
    margin: 20px auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    background-color: rgba(10, 10, 10, 0.95);
    border: 1px solid #222;
}

/* CONTENEDOR PRINCIPAL H22 - SPONSOR DE CIRCUITOS */
.h22-footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    padding: 35px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid #333;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

/* EFECTO AL PASAR EL CURSOR POR LA SECCIÓN */
.h22-footer-section:hover {
    border-color: #ffd700;
    background: rgba(15, 15, 15, 1);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.25);
    transform: translateY(-8px);
}

/* LA IMAGEN / BANNER DE H22 */
.h22-small-img { 
    width: 100%; 
    max-width: 650px; /* Aumentado drásticamente */
    height: auto;
    border-radius: 10px; 
    filter: grayscale(50%) brightness(0.8); /* Empieza sutil */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* EFECTO EN LA IMAGEN AL HACER HOVER */
.h22-footer-section:hover .h22-small-img {
    filter: grayscale(0%) brightness(1.1) contrast(1.1);
    transform: scale(1.05);
}

/* EL TEXTO "CIRCUITOS OFICIALES H22" */
.h22-footer-text { 
    font-family: 'Orbitron'; 
    font-size: 1.3rem; 
    margin-top: 25px; 
    color: #888; 
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}

.h22-footer-text span { 
    color: #ffd700; 
    font-weight: 900;
}

/* EL TEXTO SE ILUMINA AL HOVER */
.h22-footer-section:hover .h22-footer-text {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

h2 { text-align: center; color: #ffd700; font-family: 'Orbitron'; font-size: 1rem; margin-bottom: 15px; }

table { width: 100%; border-collapse: collapse; }
th { background: #111; color: #ffd700; padding: 12px; font-family: 'Orbitron'; font-size: 0.8rem; border-bottom: 2px solid #222; }
td { padding: 12px; text-align: center; border-bottom: 1px solid #1a1a1a; }

/* ==========================================================================
   5. FOOTER FINAL (CON SOPORTE PARA TEXTO EN REDES)
   ========================================================================== */
.footer-index {
    background: #000;
    border-top: 1px solid #222;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h4 { font-family: 'Orbitron'; color: #00bfff; margin-bottom: 15px; font-size: 0.8rem; }
.footer-col p, .footer-col a { color: #888; font-size: 0.85rem; text-decoration: none; margin-bottom: 10px; display: block; }

.footer-social { 
    display: flex; 
    gap: 25px; 
    margin-top: 15px; 
}

.social-wrapper {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.social-btn { 
    width: 45px; 
    height: 45px; 
    background: #111; 
    border: 1px solid #333; 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.3rem;
    border-radius: 4px;
    transition: 0.3s;
}

.social-wrapper span {
    color: #888;
    font-family: 'Orbitron';
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.social-wrapper:hover .social-btn { border-color: #ffd700; background: #1a1a1a; }
.social-wrapper:hover span { color: #ffd700; }

.footer-copy { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #111; }
.footer-copy p { color: #444; font-size: 0.7rem; font-family: 'Orbitron'; letter-spacing: 2px; }

/* FRANJAS */
.franjas-contenedor { width: 100%; margin-top: 25px; }
.franja { height: 18px; margin-bottom: 5px; }
.celeste { background-color: #00bfff; }
.blanca { background-color: #ffffff; }