/* ========================================
   NAVBAR RESPONSIVE FIX V3 - TABLETS/IPAD
   COBERTURA COMPLETA: 769px - 1440px+
   Version 3: Fix rangos problemáticos detectados
   ======================================== */

/* ========================================
   TABLET LANDSCAPE (768px - 1024px)
   Crítico para iPad y tablets horizontales
   ======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Container más ancho para aprovechar espacio */
    .navbar .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Nav wrapper sin wrap */
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap !important;
        height: auto !important;
        min-height: 60px !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Logo más pequeño */
    .logo-img {
        height: 35px !important;
        width: auto !important;
    }
    
    /* Menú más compacto */
    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important; /* Reducir mucho el espacio */
        margin: 0 !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
    }
    
    /* Links más pequeños y sin padding excesivo */
    .nav-link {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.5rem !important;
        white-space: nowrap !important;
        font-weight: 500 !important;
        height: auto !important;
        line-height: 1.3 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* "Nuestra Flota" → "Flota" en tablets */
    .nav-link[href="#flota"] {
        font-size: 0 !important;
        padding: 0.4rem 0.4rem !important;
    }
    
    .nav-link[href="#flota"]::after {
        content: "Flota" !important;
        font-size: 0.85rem !important;
        display: inline-flex !important;
        align-items: center !important;
        font-weight: 500 !important;
    }
    
    /* CTA Button más compacto pero SIN CORTAR */
    .cta-button {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        margin-left: 0.5rem !important;
        border-radius: 25px !important;
        height: auto !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
        min-height: 36px !important;
    }
    
    .cta-button i {
        font-size: 0.75rem !important;
    }
}

/* ========================================
   RANGE CRÍTICO: 1025px - 1100px  
   PRIMER RANGE PROBLEMÁTICO
   ======================================== */
@media (min-width: 1025px) and (max-width: 1100px) {
    .navbar .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .nav-wrapper {
        padding: 0.5rem 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-menu {
        gap: 0.7rem !important; /* MUY compacto */
    }
    
    .nav-link {
        font-size: 0.88rem !important;
        padding: 0.45rem 0.6rem !important;
        height: auto !important;
        white-space: nowrap !important;
    }
    
    /* "Nuestra Flota" → "Flota" también aquí */
    .nav-link[href="#flota"] {
        font-size: 0 !important;
        padding: 0.45rem 0.5rem !important;
    }
    
    .nav-link[href="#flota"]::after {
        content: "Flota" !important;
        font-size: 0.88rem !important;
        display: inline-flex !important;
        align-items: center !important;
        font-weight: 500 !important;
    }
    
    .cta-button {
        padding: 0.5rem 1.05rem !important;
        font-size: 0.88rem !important;
        margin-left: 0.7rem !important;
        min-height: 38px !important;
    }
}

/* ========================================
   RANGE CRÍTICO: 1101px - 1200px
   SEGUNDO RANGE PROBLEMÁTICO  
   ======================================== */
@media (min-width: 1101px) and (max-width: 1200px) {
    .navbar .container {
        max-width: 1150px;
        padding: 0 20px;
    }
    
    .nav-wrapper {
        padding: 0.5rem 0 !important;
    }
    
    .nav-menu {
        gap: 0.9rem !important; /* Compacto controlado */
    }
    
    .nav-link {
        font-size: 0.91rem !important;
        padding: 0.5rem 0.7rem !important;
        height: auto !important;
    }
    
    .nav-link[href="#flota"] {
        font-size: 0.87rem !important;
        padding: 0.5rem 0.65rem !important;
    }
    
    .cta-button {
        padding: 0.58rem 1.25rem !important;
        font-size: 0.91rem !important;
        margin-left: 0.9rem !important;
        min-height: 39px !important;
    }
}

/* ========================================
   RANGE CRÍTICO: 1201px - 1280px
   TERCER RANGE PROBLEMÁTICO
   ======================================== */
@media (min-width: 1201px) and (max-width: 1280px) {
    .navbar .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .nav-wrapper {
        padding: 0.5rem 0 !important;
    }
    
    .nav-menu {
        gap: 1.1rem !important;
    }
    
    .nav-link {
        font-size: 0.93rem !important;
        padding: 0.55rem 0.8rem !important;
        height: auto !important;
    }
    
    .nav-link[href="#flota"] {
        font-size: 0.89rem !important;
        padding: 0.55rem 0.75rem !important;
    }
    
    .cta-button {
        padding: 0.62rem 1.35rem !important;
        font-size: 0.93rem !important;
        margin-left: 1.1rem !important;
        min-height: 40px !important;
    }
}

/* ========================================
   RANGE: 1281px - 1366px
   ======================================== */
@media (min-width: 1281px) and (max-width: 1366px) {
    .navbar .container {
        max-width: 1250px;
        padding: 0 25px;
    }
    
    .nav-wrapper {
        padding: 0.5rem 0 !important;
    }
    
    .nav-menu {
        gap: 1.25rem !important;
    }
    
    .nav-link {
        font-size: 0.95rem !important;
        padding: 0.58rem 0.85rem !important;
        height: auto !important;
    }
    
    .nav-link[href="#flota"] {
        font-size: 0.92rem !important;
        padding: 0.58rem 0.8rem !important;
    }
    
    .cta-button {
        padding: 0.65rem 1.4rem !important;
        font-size: 0.95rem !important;
        margin-left: 1.25rem !important;
        min-height: 41px !important;
    }
}

/* ========================================
   RANGE: 1367px - 1440px
   ======================================== */
@media (min-width: 1367px) and (max-width: 1440px) {
    .navbar .container {
        max-width: 1300px;
        padding: 0 30px;
    }
    
    .nav-wrapper {
        padding: 0.5rem 0 !important;
    }
    
    .nav-menu {
        gap: 1.4rem !important;
    }
    
    .nav-link {
        font-size: 0.97rem !important;
        padding: 0.6rem 0.9rem !important;
        height: auto !important;
    }
    
    .nav-link[href="#flota"] {
        font-size: 0.94rem !important;
        padding: 0.6rem 0.85rem !important;
    }
    
    .cta-button {
        padding: 0.68rem 1.5rem !important;
        font-size: 0.97rem !important;
        margin-left: 1.4rem !important;
        min-height: 42px !important;
    }
}

/* ========================================
   OPCIÓN EMERGENCIA: Solo para rangos críticos
   ======================================== */
@media (min-width: 1025px) and (max-width: 1150px) {
    /* Si AÚN hay problema, acortar "Nuestra Flota" */
    .nav-link[href="#flota"] {
        font-size: 0 !important;
    }
    
    .nav-link[href="#flota"]::after {
        content: "Flota" !important;
        font-size: 0.85rem !important;
        display: inline !important;
    }
    
    /* Y acortar "Reservar Ahora" */
    .cta-button {
        font-size: 0 !important;
    }
    
    .cta-button::after {
        content: "Reservar" !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .cta-button i {
        display: none !important;
    }
}

/* ========================================
   FIX GENERAL - Altura y no-wrap
   ======================================== */
@media (min-width: 769px) {
    /* Navbar con altura suficiente */
    .navbar {
        height: auto !important;
        min-height: 70px !important;
        overflow: visible !important;
        padding: 0.25rem 0 !important;
    }
    
    .nav-wrapper {
        height: auto !important;
        min-height: 60px !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-menu,
    .nav-menu li {
        height: auto !important;
    }
    
    .nav-link {
        height: auto !important;
        line-height: 1.4 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        text-align: center !important;
    }
    
    /* CTA button NUNCA se corta */
    .cta-button {
        height: auto !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 25px !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
    }
}

/* ========================================
   SHINE EFFECT MANTENIDO
   ======================================== */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
    animation: shine 0.6s ease;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* TIMESTAMP: 2025-08-24-v3-complete-fix */