/*=========================================================
  MODERN DESIGN CSS - CORBUS TRAVEL
  Efectos modernos, animaciones y diseño 2025
=========================================================*/

/* ==================== VARIABLES CSS ==================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --blue-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --orange-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --green-gradient: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --sunset-gradient: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    --ocean-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== ANIMACIONES KEYFRAMES ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

/* ==================== SMOOTH SCROLLING ==================== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ==================== HEADER MODERNO ==================== */
.head {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.head.affix {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.5s ease;
}

/* ==================== BOTONES MODERNOS ==================== */
.link-btn {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    border: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.link-btn:active {
    transform: translateY(-1px);
}

/* ==================== SLIDER MODERNO ==================== */
.slider {
    position: relative;
    overflow: hidden;
}

.slider .slides li {
    position: relative;
}

.slider .slides li img {
    filter: brightness(0.8);
    transition: var(--transition-smooth);
}

.slider .slides li:hover img {
    filter: brightness(0.9);
    transform: scale(1.05);
}

.slider .slides li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    z-index: 1;
    opacity: 0.8;
}

.slider .caption {
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease;
}

.slider .caption h5 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.slider .caption h2 {
    font-size: 56px;
    font-weight: 800;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.8s ease 0.4s both;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider .caption p {
    font-size: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.slider .caption a {
    animation: fadeInUp 0.8s ease 0.8s both;
    background: var(--sunset-gradient);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    transition: var(--transition-smooth);
    display: inline-block;
}

.slider .caption a:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

/* ==================== TÍTULOS MODERNOS ==================== */
.spe-title {
    animation: fadeInUp 0.8s ease;
}

.spe-title h2 {
    font-size: 48px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.spe-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.spe-title p {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.title-line {
    position: relative;
    display: none; /* Usaremos el ::after del h2 */
}

/* ==================== CARDS DE PAQUETES MODERNAS ==================== */
.b_packages {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.b_packages:nth-child(1) { animation-delay: 0.1s; }
.b_packages:nth-child(2) { animation-delay: 0.2s; }
.b_packages:nth-child(3) { animation-delay: 0.3s; }
.b_packages:nth-child(4) { animation-delay: 0.4s; }
.b_packages:nth-child(5) { animation-delay: 0.5s; }
.b_packages:nth-child(6) { animation-delay: 0.6s; }

.b_pack {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.b_pack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.b_pack:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.b_pack:hover::before {
    opacity: 0.1;
}

.v_place_img {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.v_place_img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.b_pack:hover .v_place_img::after {
    opacity: 1;
}

.v_place_img img {
    transition: var(--transition-smooth);
}

.b_pack:hover .v_place_img img {
    transform: scale(1.15) rotate(2deg);
}

.b_pack h4 {
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.b_pack:hover h4 a {
    color: #667eea;
}

.pack_icon {
    position: relative;
    z-index: 1;
}

.pack_icon ul li {
    transition: var(--transition-smooth);
}

.pack_icon ul li:hover {
    transform: scale(1.2) rotate(10deg);
}

.pack_icon img {
    transition: var(--transition-smooth);
    filter: grayscale(0.5);
}

.pack_icon ul li:hover img {
    filter: grayscale(0) brightness(1.2);
}

/* ==================== BANDA DE OFERTA ==================== */
.band {
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

/* ==================== TOUR CARDS CON GLASSMORPHISM ==================== */
.tour-mig-like-com {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

.tour-mig-like-com:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 1);
}

.tour-mig-lc-img {
    position: relative;
    overflow: hidden;
}

.tour-mig-lc-img img {
    transition: var(--transition-smooth);
    filter: brightness(0.9);
}

.tour-mig-like-com:hover .tour-mig-lc-img img {
    transform: scale(1.1);
    filter: brightness(1);
}

.tour-mig-lc-con {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 30%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tour-mig-lc-con h5 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ==================== SECCIÓN DE OFERTAS ==================== */
.offer {
    position: relative;
    overflow: hidden;
}

.offer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
}

.offer .container {
    position: relative;
    z-index: 2;
}

.offer-l {
    animation: slideInLeft 1s ease;
}

.ol-1, .ol-2, .ol-3, .ol-4 {
    animation: fadeInUp 0.8s ease;
    animation-fill-mode: both;
}

.ol-2 { animation-delay: 0.2s; }
.ol-3 { animation-delay: 0.4s; }
.ol-4 { animation-delay: 0.6s; }

.offer-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    transition: var(--transition-smooth) !important;
    border-radius: 15px !important;
}

.offer-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.offer-r {
    animation: slideInRight 1s ease;
}

/* ==================== COUNTDOWN TIMER ==================== */
.or-2 {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.or-21, .or-22, .or-23, .or-24 {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    min-width: 80px;
    text-align: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    animation: pulse-glow 2s ease infinite;
}

.or-21:hover, .or-22:hover, .or-23:hover, .or-24:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== TIPS SECTION ==================== */
.tips {
    position: relative;
    overflow: hidden;
}

.tips::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 162, 218, 0.95) 0%, rgba(102, 126, 234, 0.95) 100%);
    z-index: 1;
}

.tips_1 {
    position: relative;
    z-index: 2;
}

.tips_left {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.tips_left:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-lg);
}

/* ==================== TESTIMONIALS ==================== */
.testi-2 > div {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.testi-2 > div:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-lg);
}

/* ==================== FOOTER MODERNO ==================== */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(102, 126, 234, 0.5) 50%, transparent 100%);
}

.foot-social ul li i {
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.foot-social ul li:hover i {
    transform: translateY(-5px) rotate(360deg);
    background: var(--primary-gradient);
    border-color: transparent;
}

/* ==================== PRELOADER MODERNO ==================== */
#preloader {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

#status {
    background-image: none !important;
    width: 60px !important;
    height: 60px !important;
    border: 4px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== EFECTOS DE PARALLAX ==================== */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ==================== EFECTOS HOVER EN IMÁGENES ==================== */
img {
    transition: var(--transition-smooth);
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE IMPROVEMENTS ==================== */
@media (max-width: 768px) {
    .slider .caption h2 {
        font-size: 36px;
    }
    
    .spe-title h2 {
        font-size: 32px;
    }
    
    .b_pack:hover {
        transform: translateY(-10px);
    }
    
    .or-21, .or-22, .or-23, .or-24 {
        min-width: 60px;
        padding: 15px;
        font-size: 24px;
    }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* ==================== SELECTION COLOR ==================== */
::selection {
    background: var(--primary-gradient);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-gradient);
    color: #fff;
}

/* ==================== FOCUS STYLES ==================== */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* ==================== LOADING STATE ==================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
