.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cyber-grid {
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
}

.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 59, 59, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
}

.topo-overlay {
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
    opacity: 0.05;
}

.font-black-mauro {
    font-weight: 700;
}

/* Material Symbols */

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    font-display: swap;
    src: url('../fonts/material-symbols-subset.woff2') format('woff2');
}


@font-face {
    font-family: 'Vipnagorgialla';
    src: url('../fonts/vipnagorgialla/Vipnagorgialla Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vipnagorgialla';
    src: url('../fonts/vipnagorgialla/Vipnagorgialla Rg It.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Vipnagorgialla';
    src: url('../fonts/vipnagorgialla/Vipnagorgialla Bd.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Vipnagorgialla';
    src: url('../fonts/vipnagorgialla/Vipnagorgialla Bd It.otf') format('opentype');
    font-weight: bold;
    font-style: italic;
}

/* Space Grotesk */
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}

/* Open Sans */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/open-sans-v44-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/open-sans-v44-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/open-sans-v44-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/open-sans-v44-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/open-sans-v44-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/open-sans-v44-latin-800.woff2') format('woff2');
}


.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}


#ranking-2026 {
    margin-top: 15px;
}

#posiciones {
    margin-top: 35px;
}

.ranking-bg-simple-a {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/back-simple-a.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    border-radius: 1rem;
}

.ranking-bg-4x4 {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/back-4x4.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    border-radius: 1rem;
}

.ranking-bg-motos-libres {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/back-motos-libres.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    border-radius: 1rem;
}

.ranking-bg-cuatriciclos {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/back-cuatriciclos.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    border-radius: 1rem;
}

.text-glow-white {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.text-outline-white-soft {
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.05),
        1px -1px 0 rgba(0, 0, 0, 0.05),
        -1px 1px 0 rgba(0, 0, 0, 0.05),
        1px 1px 0 rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Transitions */
.mobile-drawer {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
    transform: translateX(0);
}

/* Scroll to Top Visibility Fix */
#scrollToTopBtn.visible {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Mobile UI Optimization - Massive Width & Vertical Stacking */
@media (max-width: 768px) {
    #ranking-2026-content .max-w-7xl {
        padding: 0 4px !important;
    }

    #ranking-2026-content .rounded-\[2\.5rem\] {
        border-radius: 12px !important;
        padding: 12px 6px !important;
    }

    #ranking-2026-content h3 {
        font-size: 1.35rem !important;
        line-height: 1.1 !important;
    }

    #ranking-2026-content .mb-12 {
        margin-bottom: 8px !important;
        padding-bottom: 8px !important;
    }

    #ranking-2026-content .text-slate-700 {
        font-size: 0.6rem !important;
        letter-spacing: 0.05em !important;
    }

    .accordion-header {
        padding: 10px 8px !important;
    }

    .accordion-header .text-xl {
        font-size: 1.1rem !important;
    }

    /* Aumentado a 1.1 para destacar la categoría */
    .accordion-content {
        padding: 2px !important;
    }

    [class*="ranking-bg-"] {
        margin: 4px 0 !important;
        padding: 10px 4px !important;
        width: 100% !important;
        border: none !important;
        border-radius: 8px !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
    }

    [class*="ranking-bg-"] .text-base {
        font-size: 1rem !important;
        /* NOMBRE DE PILOTO A 1rem */
        letter-spacing: -0.01em !important;
        line-height: 1.2 !important;
    }

    /* REDISEÑO: Número arriba, Nombre debajo para ganar espacio lateral */
    [class*="ranking-bg-"] .flex.items-center.gap-4 {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 2px !important;
        padding: 8px 10px !important;
    }

    [class*="ranking-bg-"] .w-10 {
        width: auto !important;
        font-size: 0.75rem !important;
        color: #f20d0d !important;
        opacity: 0.8;
        margin-bottom: -2px;
    }

    #ranking-2026-content .px-8.py-4 {
        padding: 8px 12px !important;
        font-size: 0.65rem !important;
    }

    /* Action Buttons (Inscripciones & Docs) */
    #inscripciones .rounded-\[2\.5rem\] {
        padding: 20px 10px !important;
        border-radius: 15px !important;
    }

    #inscripciones .group\/btn,
    #inscripciones .group\/doc {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        gap: 10px !important;
    }

    #inscripciones .flex,
    #inscripciones .flex.items-center.gap-4,
    #inscripciones .flex.items-center.gap-6 {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }

    #inscripciones .flex-1.flex.flex-col,
    #inscripciones .text-left {
        text-align: center !important;
    }

    /* Hide descriptions/comments in mobile */
    #inscripciones p.text-xs,
    #inscripciones span.text-\[9px\],
    #inscripciones p.text-\[10px\],
    #inscripciones p.text-white\/30,
    #inscripciones span.text-white\/20,
    #inscripciones .animate-pulse {
        display: none !important;
    }

    #inscripciones h3.text-xl,
    #inscripciones span.text-xl {
        font-size: 0.95rem !important;
        margin-top: 5px !important;
        line-height: 1.2 !important;
    }

    #inscripciones .w-16.h-16,
    #inscripciones .w-14.h-14,
    #inscripciones .w-12.h-12 {
        margin: 0 auto !important;
    }

    /* Contact Form Mobile */
    #contacto {
        padding: 25px 12px !important;
        border-radius: 12px !important;
    }

    #contacto h2 {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-bottom: 25px !important;
        line-height: 1.2 !important;
    }

    #contacto .absolute {
        display: none !important;
    }

    #contacto .max-w-4xl {
        max-width: 100% !important;
    }

    #contacto button {
        width: 100% !important;
        padding: 15px !important;
        font-size: 0.8rem !important;
    }

    #contacto input,
    #contacto textarea {
        font-size: 14px !important;
    }
}

/* ===== ITEM CARDS - Light Theme Fix ===== */
.item-card {
    background-color: rgb(248 250 252) !important;
    /* slate-50 */
    border-color: rgb(203 213 225) !important;
    /* slate-300 */
}

.item-card h3 {
    color: rgb(71 85 105) !important;
    /* slate-600 */
}

/* Íconos genéricos dentro de cards */
.item-card .material-symbols-outlined {
    color: rgb(100 116 139);
    /* slate-500 */
}

/* Contenedores de íconos genéricos */
.item-card>div:first-child {
    background-color: rgb(241 245 249);
    /* slate-100 */
    border-color: rgb(203 213 225);
    /* slate-300 */
}