/* ============================= */
/* Estilos generales del navbar */
/* ============================= */
.navbar {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #3a1c0a 0%, #5e361a 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid #f8c11b;
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
    position: relative;
}

/* ============================= */
/* Logo */
/* ============================= */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 0 5px 40px;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 55px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ============================= */
/* Menú de navegación */
/* ============================= */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: all 0.5s ease-in-out;
}

.nav-links li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    font-family: inherit;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    display: block;
}

/* Animación subrayado */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #F8C11B;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #F8C11B;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================= */
/* Botón menú móvil */
/* ============================= */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: white;
    z-index: 1001;
    padding: 10px;
}

/* ============================= */
/* Botón de ordenar */
/* ============================= */
.nav-button {
    margin-left: 15px !important;
    transition: all 0.3s ease;
}

.nav-button .btn-order {
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Estilos responsivos para el botón Ordena Ahora */
@media (max-width: 966px) {
    .nav-button .btn-order {
        padding: 6px 15px !important;
        font-size: 0.85rem !important;
    }
}

.btn-order {
    background-color: #F8C11B;
    color: #3a1c0a !important;
    padding: 12px 25px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: all 0.3s ease;
    border: 2px solid #F8C11B;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 14px;
}

.btn-order:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(248, 193, 27, 0.3);
    color: #3a1c0a !important;
}

.btn-order:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-order::after {
    display: none !important;
}

/* ============================= */
/* Carrito Navbar */
/* ============================= */
.nav-cart {
    margin-left: 15px;
    position: relative;
}

.cart-icon {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* ============================= */
/* Carrito desplegable */
/* ============================= */
.carrito-contenedor {
    position: relative;
    display: inline-block;
}

.carrito-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.carrito-contenedor:hover .carrito-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.carrito-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

/* ============================= */
/* Ícono carrito navbar */
/* ============================= */
.carrito-nav {
    position: relative;
    color: #333;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carrito-nav:hover {
    transform: scale(1.1);
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.carrito-contador {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ============================= */
/* Responsive ajustes */
/* ============================= */
@media screen and (max-width: 1200px) {
    .logo { padding-left: 30px; }
}

@media screen and (max-width: 992px) {
    .nav-button {
        margin: 15px 0 10px !important;
        width: 100%;
        padding: 0 10px;
    }
    .btn-order {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px !important;
        font-size: 16px !important;
        margin: 5px auto;
        display: block !important;
        border-radius: 8px;
        font-weight: 800 !important;
        letter-spacing: 1.2px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    .btn-order:hover {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 6px 12px rgba(248, 193, 27, 0.4);
    }
}

@media screen and (max-width: 768px) {
    .nav-cart .cart-icon { font-size: 1.8rem; }
    .nav-cart .cart-count {
        font-size: 0.9rem;
        width: 24px;
        height: 24px;
        top: -10px;
        right: -10px;
    }
    .nav-cart { padding: 0 10px; }
    .nav-container { padding: 0 15px; }
    .menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #3a1c0a 0%, #5e361a 100%);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .nav-links a {
        padding: 12px 25px;
        font-size: 16px;
        text-align: center;
    }
    .nav-links a::after { display: none; }
    .logo { padding-left: 20px; }
    .logo img { height: 45px; }
    .nav-button {
        margin: 15px auto !important;
        max-width: 200px;
        display: flex;
        justify-content: center;
    }
    .btn-order { width: 100%; }
}

@media screen and (max-width: 480px) {
    .navbar { height: 60px; }
    .nav-links { top: 60px; padding: 15px 0; }
    .nav-links li { margin: 8px 0; }
    .nav-links a { padding: 10px 20px; font-size: 15px; }
    .logo img { height: 80px; }
    .nav-button { max-width: 180px; }
    .btn-order {
        padding: 12px 20px !important;
        min-width: 140px;
    }
}

