/* Wolf Travel Chile - Custom Styles */

/* Brunson — Tipografía oficial de marca Wolf Travel */
@font-face {
    font-family: 'Brunson';
    src: url('fonts/Brunson.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Brunson Rough';
    src: url('fonts/BrunsonRough.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oldport Script';
    src: url('fonts/OldportScript.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Navigation Enhancements */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Links del nav cambian a oscuro al scrollear */
#navbar.scrolled a:not(.bg-white):not(.bg-wolf-blue) {
    color: #202125 !important;
}
#navbar.scrolled a:hover:not(.bg-white):not(.bg-wolf-blue) {
    color: #0B34DE !important;
}

/* Logo: misma altura para ambas versiones, sin padding transparente que achique */
.nav-logo {
    height: 44px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (max-width: 768px) {
    .nav-logo { height: 36px; }
}
.nav-logo:hover {
    transform: scale(1.05);
}

/* Hero Section Enhancements */
.hero-bg-pattern {
    background-image: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #0B34DE, #3b82f6);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover::before {
    opacity: 1;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Testimonials Carousel */
.testimonial-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form Enhancements */
.form-input {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-input:focus {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

/* Destination Cards */
.destination-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.destination-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(147, 51, 234, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.destination-card:hover::after {
    opacity: 0.1;
}

/* HelpMeTravel Section */
.helpmetravel-bg {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0B34DE 100%);
    position: relative;
}

.helpmetravel-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2n) {
    animation-delay: -2s;
}

.floating-element:nth-child(3n) {
    animation-delay: -4s;
}

/* Text Gradient Effects */
.text-gradient {
    background: linear-gradient(135deg, #0B34DE, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation for Form */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* Wolfy Images Enhancements */
.wolfy-image {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.wolfy-image:hover {
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.3));
    transform: scale(1.05);
}

/* Statistics Counter Animation */
.stat-number {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0B34DE;
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .floating-element {
        animation: none;
    }
    
    .card-hover:hover {
        transform: none;
    }
}

/* High Performance Mode for Animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here for future enhancement */
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Intersection Observer Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Hero Carousel Styles */
.carousel-container {
    position: relative;
    aspect-ratio: 4/3;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.carousel-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #0B34DE !important;
    transform: scale(1.3);
}

.destination-label {
    transition: all 0.3s ease;
    cursor: pointer;
}

.destination-label.active {
    color: #0B34DE;
    font-weight: 600;
}

.destination-label:not(.active) {
    color: #6b7280;
}

.destination-label:hover:not(.active) {
    color: #3b82f6;
}

/* Animation for carousel transition */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide.entering {
    animation: slideInRight 0.8s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0B34DE;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Wolf Logo Text Styles */
.wolf-logo {
    display: flex;
    align-items: flex-end;
    line-height: 0.8;
}

.wolf-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.travel-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-left: 4px;
    margin-bottom: 2px;
    letter-spacing: 0.05em;
    text-transform: lowercase;
}
/* HelpMeTravel Brand Colors */
.text-hmt-blue { color: #21355E; }
.text-hmt-red { color: #E92742; }
.bg-hmt-blue { background-color: #21355E; }
.bg-hmt-red { background-color: #E92742; }
.border-hmt-blue { border-color: #21355E; }
.border-hmt-red { border-color: #E92742; }
.from-hmt-blue { --tw-gradient-from: #21355E var(--tw-gradient-from-position); }
.to-hmt-red { --tw-gradient-to: #E92742 var(--tw-gradient-to-position); }

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 14px rgba(0,0,0,0.4);
    color: #FFF;
}
