/* ============================================================================
   GSF HOTELS - Header Unificado
   Archivo: /corporativo/css/header-unified.css
   Fecha: 2026-04-24
   Aplicable a: header-home.php, header-interior-inversionistas.php,
                header-interior-sustentabilidad.php (ES + EN)
   Namespace: .tr-header (aislado de style.css global)
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. Reset dentro del namespace
   ---------------------------------------------------------------------------- */
.tr-header,
.tr-header *,
.tr-header *::before,
.tr-header *::after {
    box-sizing: border-box;
}

.tr-header ul,
.tr-header li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tr-header a {
    text-decoration: none;
    color: inherit;
}

/* ----------------------------------------------------------------------------
   2. Contenedor raíz
   ---------------------------------------------------------------------------- */
.tr-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #fff;
    line-height: 1.4;
}

/* ----------------------------------------------------------------------------
   3. Top Line - glass sutil
   ---------------------------------------------------------------------------- */
.tr-header .tr-top-line {
    background: rgba(30, 41, 59, 0.50);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.tr-header .tr-top-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.tr-header .tr-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.88);
}

.tr-header .tr-top-left a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.tr-header .tr-top-left a:hover { color: #A0C4DA; }
.tr-header .tr-top-left i { font-size: 11px; color: #A0C4DA; }

.tr-header .tr-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tr-header .tr-top-right > a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.tr-header .tr-top-right > a:hover { color: #A0C4DA; }

/* Contacto CTA en top bar */
.tr-header .tr-contact-cta {
    color: #A0C4DA !important;
    border: 1px solid rgba(160, 196, 218, 0.35);
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.tr-header .tr-contact-cta:hover {
    background: #A0C4DA;
    color: #1E293B !important;
    border-color: #A0C4DA;
}

/* Language switcher */
.tr-header .tr-lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.tr-header .tr-lang a {
    color: rgba(255, 255, 255, 0.70);
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
}

.tr-header .tr-lang a:hover,
.tr-header .tr-lang a.active { color: #A0C4DA; }

.tr-header .tr-lang-sep { opacity: 0.35; margin: 0 2px; }

/* Social icons */
.tr-header .tr-social {
    display: flex;
    gap: 8px;
    padding-left: 14px;
    margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.tr-header .tr-social a {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.80);
    transition: all 0.15s ease;
}

.tr-header .tr-social a:hover {
    background: #A0C4DA;
    border-color: #A0C4DA;
    color: #1E293B;
}

/* ----------------------------------------------------------------------------
   4. Main Bar - glass sólido (72%)
   ---------------------------------------------------------------------------- */
.tr-header .tr-main-bar {
    background: rgba(30, 41, 59, 0.72);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    backdrop-filter: blur(28px) saturate(1.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tr-header .tr-main-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Logo */
.tr-header .tr-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.tr-header .tr-logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* ----------------------------------------------------------------------------
   5. Menú principal
   ---------------------------------------------------------------------------- */
.tr-header .tr-nav {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.tr-header .tr-menu {
    display: flex;
    gap: 2px;
    align-items: center;
}

.tr-header .tr-menu > li {
    position: relative;
}

.tr-header .tr-menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.tr-header .tr-menu > li > a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.tr-header .tr-menu > li > a.active,
.tr-header .tr-menu > li.active > a {
    color: #1E293B;
    background: #A0C4DA;
    font-weight: 600;
}

.tr-header .tr-menu > li > a .tr-chevron {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-left: 4px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6,9 12,15 18,9'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    transition: transform 0.25s ease, opacity 0.25s ease;
    vertical-align: middle;
}

.tr-header .tr-menu > li.tr-has-dropdown:hover > a .tr-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ----------------------------------------------------------------------------
   6. Dropdown estándar
   ---------------------------------------------------------------------------- */
.tr-header .tr-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: rgba(30, 41, 59, 0.94);
    -webkit-backdrop-filter: blur(30px) saturate(1.6);
    backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.40);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 100;
}

.tr-header .tr-menu > li.tr-has-dropdown:hover .tr-dropdown,
.tr-header .tr-menu > li.tr-has-dropdown:focus-within .tr-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* Puente invisible para que el hover no se rompa al bajar al dropdown */
.tr-header .tr-menu > li.tr-has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    z-index: 99;
}

.tr-header .tr-dropdown a {
    display: block;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.12s ease;
}

.tr-header .tr-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tr-header .tr-dropdown a.active {
    background: rgba(160, 196, 218, 0.18);
    color: #fff;
    font-weight: 600;
}

.tr-header .tr-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 8px;
    padding: 0;
}

/* ----------------------------------------------------------------------------
   7. Dropdown WIDE (Portafolio - 2 columnas con grupos de hoteles)
   ---------------------------------------------------------------------------- */
.tr-header .tr-dropdown-wide {
    min-width: 560px;
    max-width: 720px;
}

.tr-header .tr-dropdown-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.tr-header .tr-dropdown-group-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A0C4DA;
    padding: 10px 14px 6px;
    margin-top: 4px;
}

.tr-header .tr-dropdown-group-title:first-child {
    margin-top: 0;
}

.tr-header .tr-dropdown-cols ul + .tr-dropdown-group-title {
    margin-top: 8px;
}

/* ----------------------------------------------------------------------------
   8. Responsive + Mobile Menu estilo Hilton (drawer fullscreen)
   ---------------------------------------------------------------------------- */

/* Hamburguesa - oculto en desktop */
.tr-header .tr-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.tr-header .tr-hamburger:hover {
    background: rgba(255,255,255,0.15);
}

.tr-header .tr-hamburger svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* Header interno del drawer (logo + boton cerrar) */
.tr-header .tr-drawer-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 20px;
    margin: 0 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: relative;
    z-index: 2;
}

.tr-header .tr-drawer-header .tr-drawer-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.tr-header .tr-drawer-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.20);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.tr-header .tr-drawer-close:hover {
    background: rgba(255,255,255,0.08);
}

.tr-header .tr-drawer-close svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* Overlay oscuro detras del drawer */
.tr-header .tr-mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 15, 25, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tr-header.tr-mobile-open .tr-mobile-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
}



.tr-header.tr-mobile-open .tr-mobile-overlay {
    display: block;
    opacity: 1;
}

/* Tablet */
@media (max-width: 1199px) {
    .tr-header .tr-top-inner { padding: 8px 20px; }
    .tr-header .tr-top-right > a:not(.tr-contact-cta) { display: none; }
    .tr-header .tr-main-inner { padding: 12px 20px; gap: 20px; }
    .tr-header .tr-menu > li > a { font-size: 15px; padding: 10px 12px; }
}

/* Mobile: 991px y abajo - estilo Hilton */
@media (max-width: 991px) {
    .tr-header .tr-hamburger { display: inline-flex; }

    .tr-header .tr-top-line { font-size: 12px; }
    .tr-header .tr-top-inner { padding: 6px 16px; }
    .tr-header .tr-top-left a { font-size: 12px; }
    .tr-header .tr-top-right { gap: 10px; }
    .tr-header .tr-social { display: none; }

    .tr-header .tr-main-inner { padding: 10px 16px; }
    .tr-header .tr-logo img { height: 40px; }

    /* Drawer FULLSCREEN desde la izquierda estilo Hilton */
    .tr-header .tr-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -100%;
        z-index: 99999;
        pointer-events: auto;
        right: auto;
        width: 92vw;
        max-width: 420px;
        height: 100vh;
        background: rgba(30, 41, 59, 0.98);
        -webkit-backdrop-filter: blur(30px) saturate(1.6);
        backdrop-filter: blur(30px) saturate(1.6);
        border-right: 1px solid rgba(255,255,255,0.14);
        padding: 30px 24px 40px;
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 9999;
        display: block;
    }

    .tr-header.tr-mobile-open .tr-nav {
        left: 0;
    }

    .tr-header.tr-mobile-open .tr-drawer-header {
        display: flex;
    }

    /* Menu dentro del drawer */
    .tr-header .tr-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .tr-header .tr-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .tr-header .tr-menu > li:last-child {
        border-bottom: none;
    }

    .tr-header .tr-menu > li > a {
        font-size: 17px;
        font-weight: 500;
        padding: 18px 4px;
        justify-content: space-between;
        width: 100%;
        border-radius: 0;
        background: transparent !important;
        color: rgba(255,255,255,0.95);
    }

    .tr-header .tr-menu > li > a:hover {
        background: rgba(255,255,255,0.04) !important;
    }

    /* Chevron en mobile: ahora apunta a la DERECHA como ">" estilo Hilton */
    .tr-header .tr-menu > li > a .tr-chevron {
        width: 16px;
        height: 16px;
        margin-left: 8px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9,6 15,12 9,18'/></svg>");
        opacity: 0.7;
    }

    /* Cuando esta expandido, apunta hacia abajo */
    .tr-header .tr-menu > li.tr-has-dropdown.tr-expanded > a .tr-chevron {
        transform: rotate(90deg);
        opacity: 1;
    }

    /* No rotar por hover en mobile */
    .tr-header .tr-menu > li.tr-has-dropdown:hover > a .tr-chevron {
        transform: none;
    }
    .tr-header .tr-menu > li.tr-has-dropdown.tr-expanded:hover > a .tr-chevron {
        transform: rotate(90deg);
    }

    /* Dropdowns: expandibles inline */
    .tr-header .tr-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 12px 16px;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        max-height: 0;
        overflow: hidden;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .tr-header .tr-menu > li.tr-has-dropdown.tr-expanded .tr-dropdown {
        max-height: 3000px;
    }

    .tr-header .tr-dropdown-wide { min-width: 0; max-width: 100%; }
    .tr-header .tr-dropdown-cols { grid-template-columns: 1fr; gap: 0; }

    .tr-header .tr-dropdown-group-title {
        padding: 14px 12px 4px;
        font-size: 11px;
    }

    .tr-header .tr-dropdown a {
        font-size: 14px;
        padding: 10px 12px;
        color: rgba(255,255,255,0.75);
    }

    .tr-header .tr-dropdown a:hover {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }

    /* Anular hover desktop en mobile */
    .tr-header .tr-menu > li.tr-has-dropdown:hover .tr-dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .tr-header .tr-menu > li.tr-has-dropdown::before {
        display: none;
    }

    /* Evitar scroll del body cuando drawer abierto */
    body.tr-no-scroll {
        overflow: hidden;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .tr-header .tr-top-inner { padding: 6px 12px; }
    .tr-header .tr-main-inner { padding: 10px 12px; gap: 12px; }
    .tr-header .tr-top-right .tr-contact-cta { font-size: 11px; padding: 5px 10px; }
    .tr-header .tr-lang { padding: 3px 8px; font-size: 11px; }
    .tr-header .tr-logo img { height: 36px; }
    .tr-header .tr-nav { padding: 24px 20px 40px; }
}

/* ----------------------------------------------------------------------------
   9. Override a reglas globales que pueden interferir
   ---------------------------------------------------------------------------- */
.tr-header h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: 1;
}

/* ----------------------------------------------------------------------------
   10. Nav y Overlay movidos al body (escapa stacking context)
   ---------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .tr-nav-moved {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        right: auto !important;
        bottom: 0 !important;
        width: 92vw !important;
        max-width: 420px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(30, 41, 59, 0.98) !important;
        -webkit-backdrop-filter: blur(30px) saturate(1.6) !important;
        backdrop-filter: blur(30px) saturate(1.6) !important;
        border-right: 1px solid rgba(255,255,255,0.14) !important;
        padding: 0 !important;
        overflow-y: auto !important;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 99999 !important;
        display: flex !important;
        flex-direction: column;
        font-family: 'Red Hat Display', sans-serif;
        color: #fff;
    }

    .tr-nav-moved.tr-open {
        left: 0 !important;
    }

    .tr-nav-moved .tr-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .tr-nav-moved .tr-drawer-header .tr-drawer-logo img {
        height: 42px;
        width: auto;
        display: block;
    }

    .tr-nav-moved .tr-drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(255,255,255,0.20);
        background: transparent;
        border-radius: 6px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .tr-nav-moved .tr-drawer-close svg {
        width: 18px;
        height: 18px;
        stroke: #fff;
    }

    .tr-nav-moved .tr-menu {
        list-style: none;
        margin: 0;
        padding: 8px 24px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .tr-nav-moved .tr-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        list-style: none;
    }

    .tr-nav-moved .tr-menu > li:last-child {
        border-bottom: none;
    }

    .tr-nav-moved .tr-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 4px;
        font-size: 17px;
        font-weight: 500;
        color: rgba(255,255,255,0.95);
        text-decoration: none;
        text-align: left;
    }

    .tr-nav-moved .tr-menu > li > a .tr-chevron {
        width: 16px;
        height: 16px;
        display: inline-block;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9,6 15,12 9,18'/></svg>");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.7;
        transition: transform 0.2s ease;
    }

    .tr-nav-moved .tr-menu > li.tr-has-dropdown.tr-expanded > a .tr-chevron {
        transform: rotate(90deg);
        opacity: 1;
    }

    .tr-nav-moved .tr-dropdown {
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 16px;
    }

    .tr-nav-moved .tr-menu > li.tr-has-dropdown.tr-expanded .tr-dropdown {
        max-height: 3000px;
        padding-bottom: 12px;
    }

    .tr-nav-moved .tr-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .tr-nav-moved .tr-dropdown a {
        display: block;
        padding: 10px 12px;
        font-size: 14px;
        color: rgba(255,255,255,0.75);
        text-decoration: none;
        text-align: left;
    }

    .tr-nav-moved .tr-dropdown-cols {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tr-nav-moved .tr-dropdown-group-title {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #A0C4DA;
        padding: 14px 12px 4px;
        margin: 0;
        text-align: left;
    }


    /* Footer del drawer: info adicional */
    .tr-nav-moved .tr-drawer-footer {
        margin-top: 20px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.12);
        display: flex;
        flex-direction: column;
        gap: 18px;
        text-align: left;
    }

    /* Row-2 (brand + social + lang) pegado al fondo del drawer */
    .tr-nav-moved .tr-drawer-row-2 {
        margin: auto 24px 24px !important;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.10);
    }

    /* Fila 1: telefono + contacto CTA */
    .tr-nav-moved .tr-drawer-row-1 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin: 20px 24px 0;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.12);
    }

    /* Fila 2: brand + social + lang en 3 columnas */
    .tr-nav-moved .tr-drawer-row-2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .tr-nav-moved .tr-drawer-row-2 .tr-drawer-brand {
        flex: 0 0 auto;
    }

    .tr-nav-moved .tr-drawer-row-2 .tr-drawer-social {
        flex: 1 1 auto;
        justify-content: center;
    }

    .tr-nav-moved .tr-drawer-row-2 .tr-drawer-lang {
        flex: 0 0 auto;
    }

    .tr-nav-moved .tr-drawer-phone {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: rgba(255,255,255,0.85);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }

    .tr-nav-moved .tr-drawer-phone i {
        color: #A0C4DA;
    }

    .tr-nav-moved .tr-drawer-contact {
        display: inline-block;
        width: fit-content;
        padding: 10px 18px;
        background: #A0C4DA;
        color: #1E293B !important;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.15s ease;
    }

    .tr-nav-moved .tr-drawer-contact:hover {
        background: #b8d4e5;
    }

    .tr-nav-moved .tr-drawer-brand {
        display: inline-block;
        width: fit-content;
        color: rgba(255,255,255,0.75);
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 4px 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .tr-nav-moved .tr-drawer-brand:hover {
        color: #A0C4DA;
        border-bottom-color: #A0C4DA;
    }

    .tr-nav-moved .tr-drawer-lang {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 6px;
        width: fit-content;
        font-size: 12px;
        font-weight: 700;
    }

    .tr-nav-moved .tr-drawer-lang .tr-lang-active {
        color: #A0C4DA;
    }

    .tr-nav-moved .tr-drawer-lang .tr-lang-sep {
        color: rgba(255,255,255,0.35);
    }

    .tr-nav-moved .tr-drawer-lang a {
        color: rgba(255,255,255,0.70);
        text-decoration: none;
    }

    .tr-nav-moved .tr-drawer-lang a:hover {
        color: #A0C4DA;
    }

    .tr-nav-moved .tr-drawer-social {
        display: flex;
        gap: 10px;
    }

    .tr-nav-moved .tr-drawer-social a {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.14);
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.80);
        text-decoration: none;
        font-size: 14px;
        transition: all 0.15s ease;
    }

    .tr-nav-moved .tr-drawer-social a:hover {
        background: #A0C4DA;
        border-color: #A0C4DA;
        color: #1E293B;
    }

    /* Overlay movido */
    .tr-overlay-moved {
        display: none !important;
        position: fixed !important;
        top: 0; left: 0; right: 0; bottom: 0;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 15, 25, 0.55);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        z-index: 99998 !important;
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }

    .tr-overlay-moved.tr-open {
        display: block !important;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    /* En desktop: el nav movido se comporta como el .tr-nav original dentro de .tr-main-bar */
    .tr-nav-moved {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border: none !important;
        padding: 0 !important;
        transition: none !important;
        z-index: auto !important;
        display: flex !important;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        flex: 1;
        color: inherit;
    }

    /* En desktop, ocultar TODOS los elementos mobile-only del drawer */
    .tr-nav-moved .tr-drawer-header,
    .tr-nav-moved .tr-drawer-row-1,
    .tr-nav-moved .tr-drawer-row-2,
    .tr-nav-moved .tr-drawer-phone,
    .tr-nav-moved .tr-drawer-contact,
    .tr-nav-moved .tr-drawer-brand,
    .tr-nav-moved .tr-drawer-social,
    .tr-nav-moved .tr-drawer-lang {
        display: none !important;
    }

    /* Overlay: siempre oculto en desktop */
    .tr-overlay-moved {
        display: none !important;
    }
}

/* Como .tr-nav-moved esta ahora fuera de .tr-header en el DOM,
   pero visualmente debe estar dentro del .tr-main-bar en desktop,
   lo posicionamos con JS manteniendolo como hijo directo del body. 
   Pero en desktop sus estilos deben ser horizontales y transparentes. */

body.tr-no-scroll {
    overflow: hidden !important;
}

/* ============================================================================
   FORCE TOP - Mobile drawer al tope absoluto del viewport
   ============================================================================ */
@media (max-width: 991px) {
    html body .tr-nav-moved,
    body > .tr-nav-moved,
    .tr-nav-moved {
        top: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        transform: translateY(0) !important;
    }

    html body .tr-overlay-moved,
    body > .tr-overlay-moved,
    .tr-overlay-moved {
        top: 0 !important;
        margin-top: 0 !important;
    }

    /* Quitar el safe-area que metí antes */
    .tr-nav-moved {
        padding-top: 0 !important;
    }
}

/* ============================================================================
   DESKTOP: Ocultar TODOS los elementos mobile-only del drawer
   (sin importar si estan dentro de .tr-header, .tr-nav-moved, o cualquier otro contenedor)
   ============================================================================ */
@media (min-width: 992px) {
    .tr-drawer-header,
    .tr-drawer-row-1,
    .tr-drawer-row-2,
    .tr-drawer-phone,
    .tr-drawer-contact,
    .tr-drawer-brand,
    .tr-drawer-social,
    .tr-drawer-lang,
    .tr-hamburger,
    .tr-drawer-close,
    .tr-drawer-footer {
        display: none !important;
    }
}

@media (max-width: 991px) {
    /* En mobile, los items del menú del drawer deben mostrarse verticales */
    /* (las reglas específicas ya existen en la sección 10) */
}
