/* ===== VARIABLES CSS ===== */
:root {
    /* Colores Patagónica */
    --primary-color: #002B5B;
    --secondary-color: #0B5345;
    --accent-color: #F5F0E1;
    --white: #FFFFFF;
    --dark: #1a1a1a;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    
    /* Fuentes */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    
    /* Sombras */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    background: rgba(0, 43, 91, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(0, 43, 91, 0.7);
    box-shadow: var(--shadow-medium);
}

.navbar-brand img {
    transition: var(--transition);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/images/foto4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 43, 91, 0.7), rgba(11, 83, 69, 0.5));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
}

/* Asegurar que los elementos del hero sean siempre visibles */
.hero-title,
.hero-subtitle,
.hero-buttons {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    line-height: 1.1;
    opacity: 1;
    transform: translateY(0);
}

.hero-highlight {
    color: var(--accent-color);
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}


.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    transform: translateY(0);
}

.hero-buttons {
    transform: translateY(0);
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 25px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    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);
    }
}

/* ===== ABOUT SECTION ===== */
.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 40px;
}

.about-image img {
    border-radius: 25px;
    box-shadow: var(--shadow-medium);
    max-width: 90%;
    margin: 0 auto;
    display: block;
}

/* ===== TOURS SECTION ===== */
.tour-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

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

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.tour-info {
    display: flex;
    gap: 1rem;
}

.tour-info span {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tour-content {
    padding: 1.5rem;
}

.tour-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

/* Instagram Video Embed Styles */
.instagram-video-embed {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.instagram-video-embed blockquote {
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

.instagram-video-embed iframe {
    width: 100% !important;
    min-height: 400px !important;
    border: none !important;
    border-radius: 10px !important;
}

/* ===== TESTIMONIALS ===== */
.testimonials-swiper {
    padding: 2rem 0;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    text-align: center;
    margin: 0 1rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-medium);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h5 {
    margin-bottom: 0.2rem;
    color: var(--primary-color);
}

.author-info span {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* ===== RESERVAS FORM ===== */
.reservation-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 43, 91, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(135deg, var(--gray-light) 0%, #ffffff 100%);
    padding-bottom: 5rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.contact-item h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    margin: 0;
    color: var(--dark);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.social-links h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

/* Social Buttons Inline */
.social-buttons-inline {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    font-size: 1rem;
    border: 1px solid var(--gray-light);
    background: white;
}

.social-link-mini:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.social-link-mini.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-link-mini.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link-mini.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link-mini.email:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    font-weight: 500;
    min-width: 140px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: white;
}

.social-link i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    min-width: 20px;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.social-link.email:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Map Container */
.map-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin-bottom: 2rem;
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.map-info {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.map-info p {
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Highlights */
.contact-highlights {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.highlight-item {
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.highlight-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.highlight-item h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.highlight-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-medium);
}

/* Contact CTA */
.contact-cta .alert {
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid var(--primary-color);
    color: var(--dark);
}

.contact-cta .alert i {
    color: var(--primary-color);
}

/* CTA Item dentro de Contact Info */
.contact-cta-item {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid var(--primary-color);
}

.contact-cta-item h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-cta-item p {
    margin-bottom: 1rem;
    color: var(--dark);
}

.cta-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.cta-buttons .btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* Footer Spacer */
.footer-spacer {
    height: 4rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 43, 91, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 43, 91, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 43, 91, 0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Instagram videos responsive */
    .instagram-video-embed {
        display: flex;
        justify-content: center;
    }

    .instagram-video-embed blockquote {
        min-height: 300px !important;
        overflow: hidden !important;
    }

    .instagram-video-embed iframe {
        min-height: 300px !important;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .social-buttons {
        flex-direction: column;
    }

    .social-link {
        min-width: auto;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tour-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
    }
    
    .reservation-form {
        padding: 1rem;
    }
}

/* ===== ANIMACIONES ADICIONALES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ===== UTILIDADES ===== */
.bg-light {
    background-color: var(--gray-light) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* ===== SWIPER CUSTOMIZATION ===== */
.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn.loading {
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}