/* =========================================
   DASHBOARD CLIENTE (FUENTE QUICKSAND)
   ========================================= */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
input,
button,
select,
label,
.nav-link,
li,
td,
th {
    font-family: "Quicksand", sans-serif !important;
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    /* Mantenemos el peso correcto para que se vean */
    font-weight: 900;
}

/* =========================================
   NAVBAR FINAL - BURGERS & ROLLS
   ========================================= */

.front-navbar {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0 18 0;
    position: relative;
    z-index: 1000;
}

/* 1. LOGO */
.front-navbar .navbar-brand img {
    height: 75px; /* Tamaño Base */
    width: auto;
    transition: transform 0.3s;
}
.front-navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

/* 2. LINKS GENERALES */
.nav-link-custom {
    color: var(--orange, #ff7428) !important;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    margin: 0;
    margin-right: 15px; /* Margen base */
    transition: color 0.2s;
}
.nav-link-custom:hover {
    color: #e05d15 !important;
}

/* 3. ICONOS */
.icon-action {
    color: #20232a;
    font-size: 1.4rem;
    margin-right: 20px;
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

/* Badge (Contador Rojo) */
.badge-counter {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #e6462b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* 4. AVATAR (SOLO CIRCULO) */
.user-box {
    position: relative;
    padding: 2px;
    border-radius: 50%;
    transition: background 0.2s;
}
.user-box:hover {
    background-color: #f0f0f0;
}

.user-avatar,
.avatar-letter {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange, #ff7428);
    display: block;
}
.avatar-letter {
    background: var(--orange, #ff7428);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 5. DROPDOWN */
.custom-dropdown {
    display: none;
    position: absolute;
    top: 125%;
    right: 0;
    width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    z-index: 9999 !important;
    overflow: hidden;
    padding: 5px 0;
}
.custom-dropdown.active {
    display: block !important;
    animation: slideDown 0.2s ease-out;
}

.dropdown-item-custom {
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}
.dropdown-item-custom:hover {
    background-color: #fff4f2;
    color: var(--orange);
}
.dropdown-item-custom i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* =========================================
   RESPONSIVE (MÓVIL - MENOS DE 992px)
   ========================================= */
@media (max-width: 991px) {
    .front-navbar,
    .front-navbar .container {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        /* padding-bottom: 40x !important; */
        /* margin-bottom: 8px !important; */
    }
    /* Corregir grupo de iconos/avatar en extremo derecho */
    .front-navbar .nav-icons-group {
        padding-right: 12px !important;
    }
    /* Si usas un contenedor para los links (como .mobile-nav-bar o similar) */
    .front-navbar .mobile-nav-bar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* =========================================
   ESCRITORIO (MÁS DE 992px) - ¡ESTA FALTABA!
   ========================================= */
@media (min-width: 992px) {
    /* 1. Reset de márgenes móviles */
    .mobile-nav-bar {
        padding: 0 !important;
        margin-top: 0 !important;
        justify-content: space-between !important;
    }

    /* 2. Links centrados/izquierda */
    .nav-links-zone {
        margin-left: 20px;
    }
    .nav-link-custom {
        font-size: 1rem !important;
        margin-right: 25px !important;
    }

    /* 3. Iconos a la derecha */
    .nav-icons-group {
        margin-left: auto !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CLASE ACTIVE: El JS la agrega y el CSS muestra el menú */
.custom-dropdown.active {
    display: block !important;
    animation: slideDown 0.2s ease-out;
}

/* Items del menú */
.dropdown-item-custom {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.dropdown-item-custom:hover {
    background-color: #fff4f2;
    color: var(--orange, #ff7428);
    padding-left: 25px; /* Pequeña animación a la derecha */
}
.dropdown-item-custom i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   QUITAR SUBRAYADO EN BOTONES
   ========================================= */

/* Quitar raya al botón naranja de "Crear cuenta" */
.btn-nav-register:hover {
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Quitar raya al enlace de "Iniciar sesión" (por si acaso) */
.btn-nav-login:hover {
    text-decoration: none !important;
}

/* BOTÓN MENÚ DESTACADO */
.menu-highlight {
    background-color: var(--orange, #ff7428);
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 50px; /* Bordes redondos */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 116, 40, 0.3);
}

.menu-highlight:hover {
    background-color: #e05d15;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 116, 40, 0.4);
    color: #ffffff !important;
}

/* Eliminar la línea inferior en hover para este botón */
.menu-highlight::after {
    display: none !important;
}

/* =========================================
   NAVBAR TWEAKS (Web / Tablet / Mobile)
========================================= */

/* --- Base: asegura alineación vertical bonita --- */
.front-navbar .navbar-brand {
    display: flex;
    align-items: center;
}

/* Desktop base ok, solo refinamos un chin */
@media (min-width: 992px) {
    .front-navbar {
        padding: 12px 0; /* un poquito más aire arriba/abajo */
    }

    .front-navbar .navbar-brand img {
        height: 78px; /* casi igual, más elegante */
    }
}

/* Tablet (entre 768 y 991px) */
@media (max-width: 991px) {
    .front-navbar {
        padding: 8px 0;
    }

    /* container full width pero sin pegarse tanto a la izquierda */
    .front-navbar .container {
        padding-left: 6px !important;
        padding-right: 10px !important;
    }

    /* logo le bajamos un poquito */
    .front-navbar .navbar-brand img {
        height: 68px !important;
        margin-top: 6px; /* 🔥 baja el logo */
    }
}

/* Móvil fuerte */
@media (max-width: 575px) {
    .front-navbar {
        padding: 6px 0;
    }

    .front-navbar .container {
        padding-left: 4px !important; /* 🔥 menos padding izq */
        padding-right: 8px !important;
    }

    .front-navbar .navbar-brand img {
        height: 62px !important;
        margin-top: 8px; /* 🔥 baja más el logo en móvil */
    }

    /* Links más compactos en móvil */
    .nav-link-custom {
        font-size: 0.9rem !important;
        margin-right: 10px !important;
    }
}

/* =========================================
   BOTÓN LOGIN MÁS PRO (PILL)
========================================= */
.btn-nav-login {
    background: var(--orange, #ff7428);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(255, 116, 40, 0.35);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-nav-login:hover {
    background: #e05d15;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 116, 40, 0.45);
}

/* Login más grande en móvil */
@media (max-width: 575px) {
    .btn-nav-login {
        padding: 9px 20px !important;
        font-size: 1rem !important;
    }
}
