/* ============================================
   ESTILOS GLOBALES - GPS LOGGER
   ============================================ */

/* --- MENÚ DE NAVEGACIÓN SUPERIOR --- */
.nav-botones {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    background: #f8f9fa;
}

/* Botón hamburguesa (oculto en escritorio) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Contenedor de enlaces */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.boton-ligero {
    display: inline-block;
    padding: 6px 14px;
    background: #ffffff;
    color: #0073aa;
    text-decoration: none;
    border: 1px solid #ccd0d4;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.boton-ligero:hover {
    background: #eaf2fa;
    border-color: #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.boton-ligero.actual {
    background: #007bff;
    color: white;
    border-color: #007bff;
    pointer-events: none;
}

/* --- RESPONSIVE: PC / PANTALLAS GRANDES --- */
@media (min-width: 769px) {
    .nav-botones {
        justify-content: center;
        padding: 12px 20px;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        border-bottom: 1px solid #d0d7de;
    }
    
    .boton-ligero {
        padding: 7px 16px;
        font-size: 0.95em;
    }
    
    .boton-ligero:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

/* --- RESPONSIVE: MÓVIL (Menú hamburguesa) --- */
@media (max-width: 768px) {
    .nav-botones {
        justify-content: flex-end;
        padding: 10px 15px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .menu-toggle {
        display: flex;
    }

    /* Animación: transforma las 3 rayas en una X al abrir */
    .nav-botones.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-botones.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-botones.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Menú desplegable oculto por defecto */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0 0 8px 8px;
        z-index: 1000;
        padding: 10px 0;
    }

    /* Mostrar menú cuando tiene la clase 'menu-open' */
    .nav-botones.menu-open .nav-links {
        display: flex;
    }

    /* Estilo de los botones en modo móvil */
    .boton-ligero {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1rem;
    }
    .boton-ligero:last-child {
        border-bottom: none;
    }
    .boton-ligero:hover {
        background: #f8fafc;
    }
    .boton-ligero.actual {
        background: #007bff;
        color: white;
    }
}