/* Header Component Styles - 200 Millas Branding */
/* Hide specific menu items */
.hidden-item {
    display: none !important;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blanco);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-titulos);
    color: var(--naranja-principal);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

.logo-image {
    width: 50px; /* Ajustar según sea necesario para igualar el tamaño en la galería */
    height: auto;
    transition: transform 0.3s ease;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

/* Featured Menu Item Styling */
.featured-menu-item {
    background-color: var(--naranja-principal);
    border-radius: 6px;
    margin: 0.25rem 0;
    padding: 0.75rem 1.5rem !important;
}

.featured-menu-item a {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--gris-oscuro);
    font-weight: 500;
    font-family: var(--font-subtitulos);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--naranja-principal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--naranja-principal);
    font-weight: 600;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100;
    list-style: none;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-menu li:hover {
    background-color: rgba(230, 126, 34, 0.05);
}

.dropdown-menu a {
    display: block;
    color: var(--gris-oscuro);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-decoration: none;
}

.dropdown-menu a:hover {
    color: var(--amarillo-dorado);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Botón de WhatsApp */
.cta-nav .btn {
    margin-left: 0.5rem;
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    background-color: var(--naranja-principal);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-subtitulos);
    border: none;
}

.cta-nav .btn:hover {
    background-color: var(--marron-calido);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.cta-nav .btn i {
    margin-right: 0.5rem;
}

/* Menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--naranja-principal);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Estilos responsivos */
/* Estilos del botón de menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--naranja-principal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.75rem 0;
        display: block;
        width: 100%;
        color: var(--gris-oscuro);
        text-decoration: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        background: transparent;
        margin-top: 0;
        list-style: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 1000px;
        padding: 0.5rem 0 0.5rem 1.5rem;
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .cta-nav {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .cta-nav .btn {
        width: 100%;
        margin: 0;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.5rem;
    }

    .logo-subtext {
        font-size: 0.85rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    .header.scrolled {
        padding: 0.25rem 0;
    }
}
