/* ============================================
   Infinity Travel - Premium Design Enhancements
   Técnicas modernas de UI inspiradas en agencias top
   ============================================ */

/* ============================================
   1. GLASSMORPHISM AVANZADO
   ============================================ */

/* Cards con efecto glass premium */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Navbar glassmorphism mejorado */
.navbar {
    background: rgba(29, 58, 71, 0.85) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
}

.navbar.scrolled {
    background: rgba(29, 58, 71, 0.95) !important;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Hero badge con glass effect */
.hero-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   2. GRADIENTES ANIMADOS
   ============================================ */

/* Gradient text animado */
.gradient-text {
    background: linear-gradient(135deg,
            #FF6B6B 0%,
            #FFE66D 20%,
            #4ECDC4 40%,
            #45B7D1 60%,
            #667eea 80%,
            #FF6B6B 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Botón CTA con gradiente animado */
.btn-primary {
    background: linear-gradient(135deg, #4ECDC4 0%, #45B7D1 50%, #4ECDC4 100%);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::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: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 10px 40px rgba(78, 205, 196, 0.5),
        0 0 30px rgba(78, 205, 196, 0.3);
}

/* ============================================
   3. EFECTOS 3D EN CARDS
   ============================================ */

/* Advantage cards con 3D hover */
.advantage-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(78, 205, 196, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.advantage-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow:
        0 25px 50px rgba(29, 58, 71, 0.2),
        0 15px 30px rgba(78, 205, 196, 0.15);
    border-color: var(--color-accent);
}

.advantage-card:hover::before {
    opacity: 1;
}

/* Icon glow en hover */
.advantage-icon {
    transition: all 0.4s ease;
    position: relative;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
}

/* ============================================
   4. DESTINATION CARDS PREMIUM
   ============================================ */

.destination-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.destination-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(78, 205, 196, 0.3) 0%,
            transparent 50%,
            rgba(255, 230, 109, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
}

.destination-card:hover::after {
    opacity: 1;
}

.destination-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(78, 205, 196, 0.2);
}

/* Imagen con zoom más suave */
.destination-card:hover .destination-img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Badge flotante decorativo */
.destination-card .destination-icon {
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   5. GLOW EFFECTS
   ============================================ */

/* Stats number glow */
.stat-number {
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(78, 205, 196, 0.8);
    }
}

/* CTA button glow */
.nav-link.nav-cta {
    position: relative;
}

.nav-link.nav-cta::after {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-cta);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.nav-link.nav-cta:hover::after {
    opacity: 0.6;
}

/* ============================================
   6. REVEAL ANIMATIONS MEJORADAS
   ============================================ */

/* Fade up con blur */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Fade desde izquierda */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade desde derecha */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for grid items */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

.stagger-7 {
    transition-delay: 0.7s;
}

/* ============================================
   7. LÍNEAS DECORATIVAS ANIMADAS
   ============================================ */

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-rainbow);
    background-size: 300% 100%;
    margin-top: 1rem;
    border-radius: 4px;
    animation: lineGradient 4s ease infinite;
}

.section-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

@keyframes lineGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   8. VISUAL CARD PREMIUM
   ============================================ */

.visual-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent,
            rgba(78, 205, 196, 0.1),
            transparent 30%);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.visual-card:hover::before {
    opacity: 1;
}

.visual-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 50px rgba(29, 58, 71, 0.2),
        0 0 30px rgba(78, 205, 196, 0.1);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Visual icon floating */
.visual-icon {
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(3deg);
    }

    75% {
        transform: translateY(5px) rotate(-3deg);
    }
}

/* ============================================
   9. TESTIMONIALS PREMIUM
   ============================================ */

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-rainbow);
    background-size: 300% 100%;
    animation: lineGradient 4s ease infinite;
}

.testimonial-quote {
    font-size: 5rem !important;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.author-avatar {
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(78, 205, 196, 0.5);
    }
}

/* ============================================
   10. FORM PREMIUM STYLING
   ============================================ */

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow:
        0 0 0 4px rgba(78, 205, 196, 0.15),
        0 4px 20px rgba(78, 205, 196, 0.1);
    outline: none;
}

.form-group label {
    transition: all 0.3s ease;
}

.form-group.focused label {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* ============================================
   11. WHATSAPP BUTTON PREMIUM
   ============================================ */

.whatsapp-float {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    left: auto !important;
    box-shadow:
        0 6px 30px rgba(37, 211, 102, 0.4),
        0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow:
            0 6px 30px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow:
            0 6px 30px rgba(37, 211, 102, 0.4),
            0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow:
            0 6px 30px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
}

/* ============================================
   12. FOOTER PREMIUM
   ============================================ */

.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-rainbow);
    background-size: 300% 100%;
    animation: lineGradient 6s ease infinite;
}

/* ============================================
   13. PARALLAX HERO ENHANCEMENT
   ============================================ */

.hero-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero-content {
    will-change: transform, opacity;
}

/* Partículas decorativas en hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3) 1px, transparent 0),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2) 1px, transparent 0),
        radial-gradient(2px 2px at 50px 160px, rgba(255, 255, 255, 0.3) 1px, transparent 0),
        radial-gradient(2px 2px at 90px 40px, rgba(255, 255, 255, 0.2) 1px, transparent 0),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.3) 1px, transparent 0),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.2) 1px, transparent 0);
    background-size: 200px 200px;
    animation: starFloat 60s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes starFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-200px);
    }
}

/* ============================================
   14. SCROLL INDICATOR PREMIUM
   ============================================ */

.scroll-indicator {
    border-color: rgba(78, 205, 196, 0.5) !important;
}

.scroll-indicator::after {
    background: linear-gradient(to bottom,
            var(--color-accent),
            var(--color-gold)) !important;
}

/* ============================================
   15. LOADING STATES
   ============================================ */

.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   16. CURSOR EFFECTS (Optional)
   ============================================ */

.cta-hover-area {
    cursor: pointer;
    position: relative;
}

.cta-hover-area::after {
    content: 'Ver más →';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-hover-area:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   17. PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for animated elements */
.destination-card,
.advantage-card,
.testimonial-card,
.visual-card,
.btn-primary {
    will-change: transform, box-shadow;
    transform: translateZ(0);
}