/* ================= VARIABLES GLOBALES DE MARCA ================= */
:root {
    --naranja-acento: #d94f15;
    --verde-oscuro: #163822;
    --verde-claro: #2a6038;
}

/* ================= ENLACES PRÓXIMAMENTE (deshabilitados) ================= */
.link-coming-soon {
    cursor: not-allowed !important;
    opacity: 0.55;
    filter: grayscale(35%);
}

.link-coming-soon:hover,
.link-coming-soon:focus {
    opacity: 0.55;
}

/* ================= HEADER ================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    background: rgba(20, 40, 20, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(14, 33, 22, 0.28);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--naranja-acento);
}

.main-header.scrolled {
    background: rgba(20, 40, 20, 0.98);
    box-shadow: 0 10px 30px rgba(14, 33, 22, 0.34);
    border-bottom-color: rgba(217, 79, 21, 0.65);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: saturate(2) brightness(1.3);
}

.logo-text span {
    font-family: 'Fraunces', serif;
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

/* ================= NAV DESKTOP ================= */
nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

nav ul {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
}

nav a,
.custom-navbar .nav-link {
    font-family: 'Fraunces', serif;
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 13px;
    padding-bottom: 5px;
    white-space: nowrap;
    transition: 0.3s ease;
    text-decoration: none;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--naranja-acento);
    transition: 0.3s ease;
}

nav a:hover,
.custom-navbar .nav-link:hover {
    color: #ffffff;
}

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

nav a.active,
.nav-link.active {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px;
}

/* ================= BOTÓN HAMBURGUESA ================= */
.navbar-toggler {
    border: none;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    z-index: 2000;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    filter: invert(1);
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

/* ================= LANGUAGE DROPDOWN ================= */
.language-dropdown {
    position: relative;
    margin-left: 18px;
    flex-shrink: 0;
}

.language-toggle {
    min-width: 88px;
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(217, 79, 21, 0.55);
    border-radius: 14px;
    background: rgba(217, 79, 21, 0.08);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: 0.3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(217, 79, 21, 0.80);
}

.language-toggle i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

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

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 88px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(20, 40, 20, 0.97);
    border: 1px solid rgba(217, 79, 21, 0.35);
    box-shadow: 0 18px 35px rgba(217, 79, 21, 0.14);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.25s ease;
    z-index: 1200;
}

.language-dropdown.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
}

.language-option:hover {
    background: rgba(217, 79, 21, 0.10);
    color: #ffffff;
}

.language-option.active {
    background: rgba(217, 79, 21, 0.12);
    color: var(--naranja-acento);
    box-shadow: inset 0 0 0 1px rgba(217, 79, 21, 0.22);
}

/* ================= RESPONSIVE ================= */

/* ── 1100px: menú hamburguesa lateral ── */
@media (max-width: 1100px) {
    .main-header {
        padding: 0 24px;
        min-height: 80px;
        justify-content: space-between;
    }

    .logo-area {
        margin-right: auto;
    }

    .navbar-toggler {
        display: flex !important;
        margin-left: auto;
        margin-right: 10px;
        border: 2px solid rgba(217, 79, 21, 0.70);
        border-radius: 8px;
        padding: 6px 10px;
        background: rgba(217, 79, 21, 0.08);
        cursor: pointer;
        transition: 0.25s ease;
    }

    .navbar-toggler:hover {
        border-color: var(--naranja-acento);
        background: rgba(217, 79, 21, 0.14);
    }

    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        background: rgba(20, 40, 20, 0.99) !important;
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0 40px 40px !important;
        transform: translateX(100vw) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 99999 !important;
        overflow-y: auto;
        border-left: 3px solid rgba(217, 79, 21, 0.55);
    }

    .navbar-collapse.show {
        transform: translateX(0) !important;
    }

    .navbar-collapse.collapsing {
        transform: translateX(100vw) !important;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        height: 100dvh !important;
    }

    body:has(#menuNav.show) .fab-container {
        display: none !important;
    }

    .menu-sidebar-header {
        width: calc(100% + 80px);
        margin: 0 -40px !important;
        position: sticky;
        top: 0;
        background: rgba(20, 40, 20, 0.99);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 18px 28px 18px !important;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(217, 79, 21, 0.25);
        z-index: 2;
    }

    .mobile-header-logo {
        height: 68px;
        width: auto;
        flex-shrink: 0;
    }

    .mobile-header-title {
        flex: 1;
        text-align: center;
        color: white;
        font-family: 'Fraunces', serif;
        font-size: 17px;
        font-weight: 700;
        white-space: nowrap;
    }

    .close-menu-btn {
        position: static;
        background: transparent;
        border: none;
        color: #ffffff !important;
        font-size: 30px;
        font-weight: 300;
        cursor: pointer;
        line-height: 1;
        padding: 5px;
        flex-shrink: 0;
        transition: color 0.2s ease;
    }

    .close-menu-btn:hover {
        color: var(--naranja-acento) !important;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100%;
        max-width: 320px;
        margin-top: 10px;
        padding: 0;
        text-align: center;
    }

    .navbar-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(217, 79, 21, 0.18);
        border-radius: 10px;
        transition: background 0.2s ease;
    }

    .navbar-nav li:hover {
        background: rgba(217, 79, 21, 0.10);
        border-bottom-color: rgba(217, 79, 21, 0.35);
    }

    .navbar-nav li.active-page {
        background: rgba(217, 79, 21, 0.13);
        border-left: 3px solid var(--naranja-acento);
        border-radius: 10px;
    }

    .nav-link,
    nav a {
        display: block;
        padding: 16px 0 !important;
        font-size: 19px !important;
        color: #ffffff !important;
        font-weight: 600;
        text-transform: capitalize;
    }

    .nav-link:hover,
    nav a:hover {
        color: var(--naranja-acento) !important;
        transition: all 0.2s ease;
    }

    nav a::after {
        display: none !important;
    }

    .language-dropdown {
        margin-left: 0;
        margin-top: 35px;
        width: 100%;
        max-width: 220px;
    }

    .language-toggle {
        width: 100%;
        justify-content: space-between;
        background: rgba(217, 79, 21, 0.08);
        border: 1px solid rgba(217, 79, 21, 0.45);
        border-radius: 12px;
    }

    .language-menu {
        width: 100%;
        position: relative;
        top: 5px;
        right: auto;
        box-shadow: none;
        background: rgba(20, 40, 20, 0.97);
    }
}

/* ── 600px: logo más compacto ── */
@media (max-width: 600px) {
    .logo-area {
        gap: 8px;
    }

    .logo-text span {
        font-size: 15px;
    }

    .logo-img {
        height: 54px;
    }
}

/* ── 380px: móviles muy pequeños ── */
@media (max-width: 380px) {
    .main-header {
        padding: 0 16px;
        min-height: 70px;
    }

    .logo-img {
        height: 46px;
    }

    .logo-text span {
        font-size: 13px;
    }
}
