/* BetaViajes Custom Styles */

/* Root Variables */
:root {
    --primary-color: #17a2b8;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

.text-info {
	color: #17a2b8 !important;
}

.bg-info {
	background-color: #17a2b8 !important;
}

.btn-info {
	--bs-btn-color: #ffffff !important;
    --bs-btn-bg: #17a2b8 !important;
    --bs-btn-border-color: #17a2b8 !important;
    --bs-btn-disabled-bg: #17a2b8 !important;
    --bs-btn-disabled-border-color: #17a2b8 !important;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Ensure content doesn't overlap with fixed navbar */
body {
    padding-top: 0;
}

/* Add scrolling offset for anchor links */
:target {
    scroll-margin-top: 80px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--info-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--info-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(23, 162, 184, 0.8)),
                url('../img/hero/hero-bg.jpg') center/cover no-repeat fixed;
    min-height: calc(100vh - 80px); /* Subtract navbar height */
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding-top: 80px; /* Account for fixed navbar height */
}

/* Responsive adjustments for shorter heights */
@media (max-height: 700px) {
    .hero-section {
        min-height: calc(100vh - 60px);
        padding-top: 60px;
        align-items: flex-start;
        padding-bottom: 40px;
    }
    
    .hero-section .container .row {
        padding-top: 20px;
    }
}

@media (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 20px;
    }
    
    .hero-section .display-3 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--info-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--info-color), var(--info-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--info-color);
}

.package-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.package-badge .badge {
    font-size: 0.8rem;
    padding: 8px 15px;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--info-color);
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    margin-top: 2px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50, #3498db) !important;
}

.footer-section h5,
.footer-section h6 {
    color: var(--info-color);
    font-weight: 600;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--info-color) !important;
}

.payment-icons i {
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    transform: scale(1.1);
}

/* Back to Top Button */
.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--info-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 160px;
        padding-bottom: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-card,
    .package-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .package-image {
        height: 200px;
    }
    
    /* Mobile navbar button spacing */
    .navbar-collapse .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-collapse .nav-item .btn {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    /* Search widget mobile spacing */
    .hero-section .col-lg-4 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Adjust scroll indicator position on mobile */
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* Fix button spacing in services CTA section */
    #servicios .btn {
        margin-bottom: 1rem;
        margin-right: 0 !important;
        display: block;
        width: 100%;
    }
    
    /* About section mobile spacing fixes */
    #nosotros .col-lg-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-bottom: 2rem;
    }
    
    #nosotros .btn {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Map mobile padding for easier scrolling */
    #map {
        margin-left: 2rem;
        margin-right: 2rem;
    }
    
    /* Footer mobile padding */
    .footer-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Newsletter and copyright mobile padding */
    .newsletter-section,
    .copyright-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 180px;
        padding-bottom: 100px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .btn-floating {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Enhanced mobile spacing for smaller screens */
    .hero-section .col-lg-4 {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    /* Scroll indicator positioned higher on small screens */
    .scroll-indicator {
        bottom: 15px;
    }
    
    /* Enhanced padding for smaller screens */
    #nosotros .col-lg-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Tighter spacing for smaller screens */
    #nosotros .btn {
        margin-top: 1rem;
    }
    
    /* Enhanced map mobile padding for smaller screens */
    #map {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    
    /* Footer mobile padding */
    .footer-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Newsletter and copyright mobile padding */
    .newsletter-section,
    .copyright-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Utility Classes */
.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color), var(--info-color));
}

.text-gradient {
    background: linear-gradient(135deg, var(--info-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.border-radius-lg {
    border-radius: 15px;
}

.border-radius-xl {
    border-radius: 20px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: white;
    }
    
    .form-control,
    .form-select {
        background-color: #4a5568;
        border-color: #718096;
        color: white;
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: #4a5568;
        color: white;
    }
}