/*=========================================================
  ADDITIONAL ENHANCEMENTS - CORBUS TRAVEL
  Mejoras específicas y ajustes finales
=========================================================*/

/* ==================== MEJORAS AL MENÚ NAVIGATION ==================== */
.navbar-nav > li > a {
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li.active > a::after {
    width: 80%;
}

.navbar-nav > li > a:hover {
    color: #667eea !important;
}

/* ==================== LOGO ANIMADO ==================== */
.head_left img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.head_left img:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
}

/* ==================== BOTONES DE REDES SOCIALES ==================== */
.head_right ul li a i {
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
}

.head_right ul li a i:hover {
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.head_right ul li a .fa-facebook:hover {
    background: linear-gradient(135deg, #3b5998, #5a7bc5) !important;
}

.head_right ul li a .fa-google-plus:hover {
    background: linear-gradient(135deg, #dd4b39, #f06c5f) !important;
}

.head_right ul li a .fa-twitter:hover {
    background: linear-gradient(135deg, #55acee, #7ec4ff) !important;
}

.head_right ul li a .fa-linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc) !important;
}

.head_right ul li a .fa-whatsapp:hover {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
}

/* ==================== MEJORAS AL SLIDER ==================== */
.slider.fullscreen {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.slider .indicators {
    z-index: 100;
}

.slider .indicators .indicator-item {
    background-color: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.slider .indicators .indicator-item.active {
    background-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.slider .indicators .indicator-item:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* ==================== MEJORAS A LAS CARDS DE PAQUETES ==================== */
.b_packages {
    margin-bottom: 30px;
    will-change: transform;
}

.b_pack h4 a {
    background: linear-gradient(135deg, #000 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.b_pack:hover h4 a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Efecto de brillo en las imágenes */
.v_place_img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    z-index: 1;
}

.b_pack:hover .v_place_img::before {
    left: 100%;
    opacity: 1;
}

/* ==================== ICONOS DE PAQUETES CON TOOLTIP ==================== */
.pack_icon ul li a {
    position: relative;
    display: inline-block;
}

.pack_icon ul li a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.pack_icon ul li a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* ==================== MEJORAS A LA SECCIÓN DE OFERTAS ==================== */
.offer-l ul li {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.offer-l ul li:nth-child(1) { animation-delay: 0.1s; }
.offer-l ul li:nth-child(2) { animation-delay: 0.2s; }
.offer-l ul li:nth-child(3) { animation-delay: 0.3s; }
.offer-l ul li:nth-child(4) { animation-delay: 0.4s; }
.offer-l ul li:nth-child(5) { animation-delay: 0.5s; }

.offer-btn img {
    transition: all 0.3s ease;
    filter: brightness(1);
}

.offer-btn:hover img {
    filter: brightness(1.3);
    transform: scale(1.1);
}

/* ==================== COUNTDOWN MEJORADO ==================== */
.or-1 {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.or-11 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: block;
    margin-bottom: 10px;
}

.or-12 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

/* ==================== TIPS MEJORADOS ==================== */
.tips h3 {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tips h3:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tips_left h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.tips_left p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

/* ==================== TESTIMONIALS MEJORADOS ==================== */
.testi-2 h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.testi-2 h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.testi-2 p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 10px;
}

.testi-2 address {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-size: 14px;
}

/* ==================== FOOTER MEJORADO ==================== */
.footer h4 {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, transparent);
}

.foot-social ul li i:hover {
    animation: wobble 0.5s ease;
}

@keyframes wobble {
    0%, 100% { transform: translateY(-5px) rotate(0deg); }
    25% { transform: translateY(-7px) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
    75% { transform: translateY(-7px) rotate(-3deg); }
}

/* ==================== PRELOADER MEJORADO ==================== */
#preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#preloader::after {
    content: 'Cargando...';
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 20px;
    letter-spacing: 2px;
    animation: pulse 1.5s ease infinite;
}

/* ==================== TOUR CARDS ENHANCED ==================== */
.tour-mig-like-com {
    margin-bottom: 30px;
}

.tour-mig-lc-con h5 {
    transition: all 0.3s ease;
}

.tour-mig-like-com:hover .tour-mig-lc-con h5 {
    transform: translateX(5px);
}

.tour-mig-lc-con p {
    color: #666;
    line-height: 1.6;
}

/* ==================== ANIMACIÓN DE ENTRADA PARA SECCIONES ==================== */
section {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== EFECTOS DE CARGA DE IMÁGENES ==================== */
img {
    opacity: 0;
    animation: imageLoad 0.6s ease forwards;
}

@keyframes imageLoad {
    to {
        opacity: 1;
    }
}

img.loaded {
    animation: none;
    opacity: 1;
}

/* ==================== MEJORAS DE ACCESIBILIDAD ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para mejor navegación con teclado */
*:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.6);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==================== RESPONSIVE ENHANCEMENTS ==================== */
@media (max-width: 992px) {
    .spe-title h2 {
        font-size: 36px;
    }
    
    .slider .caption h2 {
        font-size: 42px;
    }
    
    .or-11 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .b_pack:hover {
        transform: translateY(-10px) scale(1);
    }
    
    .slider .caption h2 {
        font-size: 32px;
    }
    
    .slider .caption p {
        font-size: 16px;
    }
    
    .or-21, .or-22, .or-23, .or-24 {
        min-width: 50px;
        padding: 10px;
        font-size: 20px;
    }
    
    .tips h3 {
        font-size: 18px;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .spe-title h2 {
        font-size: 28px;
    }
    
    .slider .caption h2 {
        font-size: 24px;
    }
    
    .or-2 {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .or-21, .or-22, .or-23, .or-24 {
        min-width: 45%;
        font-size: 18px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .head, .footer, .slider, #preloader {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .b_pack {
        page-break-inside: avoid;
    }
}

/* ==================== DARK MODE SUPPORT (OPCIONAL) ==================== */
@media (prefers-color-scheme: dark) {
    /* Estilos para modo oscuro si se desea implementar */
}

/* ==================== ANIMACIONES ADICIONALES ==================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Aplicar bounce-in a elementos específicos */
.wow.bounce-in {
    animation: bounce-in 0.8s ease;
}

/* ==================== MEJORAS DE PERFORMANCE ==================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Optimización de will-change para elementos animados */
.b_pack,
.tour-mig-like-com,
.slider img,
.link-btn {
    will-change: transform;
}

/* ==================== CUSTOM UTILITIES ==================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
