
/* =====================================
   MENÚ DESPLEGABLE F1 FANS
===================================== */

/* Elementos del menú */
.menu-enlaces li {
    position: relative;
}

/* Submenú oculto */
.menu-enlaces .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #151515;
    border: 1px solid #333333;
    border-top: 3px solid #e10600;
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Mostrar submenú */
.menu-enlaces li:hover > .sub-menu,
.menu-enlaces li:focus-within > .sub-menu {
    display: block;
}

/* Elementos del desplegable */
.menu-enlaces .sub-menu li {
    display: block;
    width: 100%;
}

/* Enlaces del desplegable */
.menu-enlaces .sub-menu li a {
    display: block;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    transition: 0.2s;
}

/* Hover de enlaces */
.menu-enlaces .sub-menu li a:hover {
    background: #252525;
    color: #e10600;
}

/* =====================================
   INDICADOR DE INFORMACIÓN
===================================== */

.menu-enlaces > li.menu-item-has-children > a {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start !important;
    width: auto !important;
    gap: 4px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none;
}

/* Flecha roja junto a Información */
.menu-enlaces > li.menu-item-has-children > a::after {
    content: "▼" !important;
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin-left: 0 !important;
    color: #e10600 !important;
    font-size: 10px !important;
    background: none !important;
    transform: none;
    transition: transform 0.2s;
}

/* Girar flecha al abrir */
.menu-enlaces > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* =====================================
   TABLET Y MÓVIL
===================================== */

@media (max-width: 768px) {

    .menu-enlaces .sub-menu {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-left: 2px solid #e10600;
        border-radius: 0;
        margin-top: 5px;
        background: #111111;
    }

    .menu-enlaces .sub-menu li a {
        white-space: normal;
        padding: 10px 15px;
    }

}
