/* ==========================================================================
   TRANSICIONES BASE
   ========================================================================== */
#nav-container {
    transition: top 0.4s ease !important;
}

[data-custom-class="tour-nav"] {
    transition: transform 0.4s ease, opacity 0.3s ease !important;
}

[data-type="tour-cta-float"],
#go-to-top {
    transition: bottom 0.4s ease !important;
}

/* ==========================================================================
   EL NAV DE LA WEB  →  se esconde arriba
   ========================================================================== */
#nav-container.ocultar-arriba {
    top: -150px !important;
}

/* ==========================================================================
   EL NAV DEL TOUR  →  oculto por defecto, se muestra con .mostrar-tournav
   (arranca deslizado hacia arriba; cuando se activa, baja a su sitio)
   ========================================================================== */
[data-custom-class="tour-nav"] {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
[data-custom-class="tour-nav"].mostrar-tournav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   EL CTA FLOTANTE  →  oculto abajo cuando NO está activo
   ========================================================================== */
[data-type="tour-cta-float"]:not(.mostrar-flotante) {
    bottom: -150px !important;
}

/* ==========================================================================
   EL BOTÓN IR ARRIBA  →  sube para esquivar el flotante
   ========================================================================== */
#go-to-top.esquivar-cta {
    bottom: 120px !important;
}


/* ==========================================================================
   CSS PARA EL NAV INTERNO DE LOS TOURS
   ========================================================================== */

[data-tnav-links] {
    flex: 0 1 auto !important;
    min-width: 0;                       
    display: flex !important;   
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    align-items: stretch;           
    overflow-x: auto;                  
    overflow-y: hidden;                
    scrollbar-width: none;              
    -ms-overflow-style: none;           
    -webkit-overflow-scrolling: touch;  
}

[data-tnav-links]::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ---- CADA LINK (lo crea el JS) ---- */

[data-tnav-links] > .tnav__item:first-child {
    margin-left: auto;
}
[data-tnav-links] .tnav__item {
    flex-shrink: 0;               
    display: flex;                       
    align-items: center;                
    padding: .9rem 1rem;
    font-family: var(--idx-font-body);
    font-size: var(--idx-fs-1);
    font-weight: 600;
    line-height: 1;                      /* evita que el interlineado corte */
    color: rgba(255,255,255,.5);
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;                 /* cada link en una sola línea */
}
[data-tnav-links] .tnav__item:hover {
    color: rgba(255,255,255,.9);
}

/* ---- LINK ACTIVO (scroll-spy) ---- */
[data-tnav-links] .tnav__item.tnav--active {
    color: var(--idx-primary);
    background: rgba(230,110,7,.15);     /* naranja translúcido (tu --idx-primary) */
    border-radius: var(--idx-radius-soft);
    border-bottom-color: transparent;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
    [data-tnav-links] .tnav__item {
        padding: .8rem .85rem;
        font-size: .72rem;
    }
}


