/* =========================================
   1. VARIABLES GLOBALES & CONFIGURACIÓN
   ========================================= */
:root {
    --primary-blue: #0A2540;
    --accent-aqua: #00AEEF;
    --text-grey: #505050;
    --light-bg: #F9FAFB;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* =========================================
   2. HEADER & NAVEGACIÓN
   ========================================= */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky; top: 0; 
    z-index: 1000; 
    padding: 0.5rem 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 50px; width: auto; display: block; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--primary-blue);
    font-weight: 500; font-size: 16px; font-family: var(--font-heading);
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active, .nav-links a.current-page { color: var(--accent-aqua); }

.dropdown { position: relative; }
.dropdown-content {
    display: none; position: absolute; background-color: var(--white);
    min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px; top: 100%; left: 0; padding: 10px 0;
    border-top: 3px solid var(--accent-aqua); z-index: 1001;
}
@media screen and (min-width: 769px) {
    .dropdown:hover .dropdown-content { display: block; }
}
.dropdown-content a { color: var(--text-grey); padding: 12px 20px; display: block; font-size: 14px; }
.dropdown-content a:hover { background-color: #f0f8ff; color: var(--primary-blue); }

/* --- BOTONES --- */
.btn-contact {
    display: inline-block;
    background-color: var(--primary-blue); color: var(--white) !important;
    padding: 10px 25px; border-radius: 50px; font-weight: bold; transition: all 0.3s ease; text-decoration: none;
    text-align: center;
}
.btn-contact:hover { background-color: var(--accent-aqua); transform: translateY(-2px); }

.btn-large {
    font-size: 1.1rem;
    padding: 15px 30px;
    width: 100%;
    max-width: 300px;
}

.mobile-only-btn { display: none; }
.desktop-only-btn { display: inline-block; }
.menu-toggle { display: none; font-size: 1.8rem; color: var(--primary-blue); cursor: pointer; }

.close-menu-btn {
    display: none; font-size: 1.8rem; color: var(--text-grey); 
    cursor: pointer; align-self: flex-end; margin-bottom: 20px;
}

/* ELIMINAMOS LA CLASE .menu-overlay DE AQUÍ */

/* =========================================
   3. HERO SECTIONS & FONDOS
   ========================================= */
.hero {
    height: 60vh;
    background-image: url('images/fondo-inicio.png');
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: flex-end;
    justify-content: center; text-align: center; padding-bottom: 40px;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.8) 0%, rgba(0, 174, 239, 0.4) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.btn-primary {
    background-color: var(--accent-aqua); color: var(--white);
    display: inline-block; padding: 15px 35px; border-radius: 5px;
    text-decoration: none; font-weight: bold; margin: 10px; transition: all 0.3s ease;
}
.btn-secondary {
    border: 2px solid var(--white); color: var(--white);
    display: inline-block; padding: 15px 35px; border-radius: 5px;
    text-decoration: none; font-weight: bold; margin: 10px; transition: all 0.3s ease;
    background-color: rgba(0,0,0,0.3);
}

.page-header {
    height: 25vh; min-height: 180px; position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; background-size: cover; background-position: center;
    background-repeat: no-repeat;
}
.page-header-content { z-index: 2; padding: 0 20px; max-width: 900px; }
.page-header-content h1 { color: var(--white); font-size: 2.2rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.5); margin-bottom: 15px; }
.page-header-content p { color: #f0f0f0; font-size: 1rem; font-weight: 300; }

.bg-europa { background-image: url('https://images.unsplash.com/photo-1473951574080-01fe45ec8643?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-medio-oriente { background-image: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-canada { background-image: url('https://images.unsplash.com/photo-1503614472-8c93d56e92ce?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-asia { background-image: url('https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-sudamerica { background-image: url('https://images.unsplash.com/photo-1587595431973-160d0d94add1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-estados-unidos { background-image: url('https://images.unsplash.com/photo-1496442226666-8d4d0e62e6e9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-mexico { background-image: url('https://images.unsplash.com/photo-1590523277543-a94d2e4eb00b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }
.bg-cruceros { background-image: url('https://images.unsplash.com/photo-1548574505-5e239809ee19?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); }

/* =========================================
   4. SECCIONES GENERALES
   ========================================= */
.intro-destinos { background-color: var(--white); padding: 60px 20px; text-align: center; }
.intro-text { font-size: 1.1rem; color: var(--text-grey); max-width: 800px; margin: 0 auto; line-height: 1.8; }

.services-section { padding-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; padding: 20px; }
.service-card {
    background: var(--white); padding: 40px 30px; border-radius: 15px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; border-bottom: 3px solid transparent;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 3px solid var(--accent-aqua); }

.icon-box-emoji {
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px; background: #f0f9ff; border-radius: 50%;
    margin-bottom: 20px; font-size: 40px; animation: floatEffect 4s ease-in-out infinite;
}
@keyframes floatEffect { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.iframe-section { width: 100%; background-color: var(--white); }
.iframe-full-width { width: 100%; height: 1400px; border: none; display: block; }
iframe { width: 100%; height: 100%; border: none; display: block; }
.disclaimer { text-align: center; font-size: 0.7rem; color: #ccc; padding: 10px; background-color: var(--white); }

/* =========================================
   5. GALERÍA LADRILLO
   ========================================= */
.travelers-gallery-section { 
    background-color: #f8f9fa; 
    padding: 40px 0; 
    overflow: hidden; 
    pointer-events: none; 
}

.gallery-scroll-container { display: flex; flex-direction: column; gap: 12px; }
.gallery-row { display: flex; width: 100%; overflow: hidden; position: relative; }
.gallery-track { display: flex; gap: 12px; width: max-content; }

.gallery-track img { 
    width: 130px; 
    height: 180px; 
    border-radius: 10px; 
    object-fit: cover; 
    flex-shrink: 0; 
    box-shadow: 0 3px 8px rgba(0,0,0,0.1); 
}

.scroll-left .gallery-track { animation: scrollLeft 60s linear infinite; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.scroll-right .gallery-track { animation: scrollRight 60s linear infinite; }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* =========================================
   6. FOOTER
   ========================================= */
.main-footer { background-color: var(--primary-blue); color: var(--white); padding: 50px 0 20px; margin-top: auto; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-column { flex: 1; min-width: 250px; }
.footer-column h3 { color: var(--accent-aqua); font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #e0e0e0; text-decoration: none; font-size: 0.95rem; transition: color 0.3s ease; display: flex; align-items: center; gap: 10px; }
.social-icons { display: flex; gap: 15px; }
.social-icons a { background-color: rgba(255, 255, 255, 0.1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

/* =========================================
   7. MEDIA QUERIES (MÓVIL)
   ========================================= */
@media screen and (max-width: 768px) {
    .header-content { display: flex; justify-content: space-between; align-items: center; }
    .menu-toggle { display: block; order: 1; }
    .logo-container { order: 2; margin-left: 15px; margin-right: auto; }
    .desktop-only-btn { display: none; }
    .mobile-only-btn { display: inline-block; margin-top: 20px; width: 100%; text-align: center; }

    /* MENÚ LATERAL (SIN OVERLAY) */
    .nav-links {
        position: fixed; 
        top: 0; left: 0; 
        height: 100vh; 
        width: 80%; 
        max-width: 300px;
        background-color: var(--white); 
        flex-direction: column; 
        align-items: flex-start;
        padding: 20px 25px; 
        transform: translateX(-100%); 
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 5000; /* Siempre encima */
        box-shadow: 4px 0 25px rgba(0,0,0,0.15); /* Sombra más fuerte */
        border-right: 1px solid #eee;
    }
    .nav-links.active { transform: translateX(0%); }
    .nav-links li { width: 100%; text-align: left; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
    
    .close-menu-btn { display: block; align-self: flex-end; font-size: 1.5rem; padding: 10px; cursor: pointer; }

    .dropdown-content { position: static; box-shadow: none; border-top: none; background-color: #f9f9f9; padding-left: 15px; display: none; width: 100%; }
    .dropdown.active .dropdown-content { display: block; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { display: flex; flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; margin: 5px 0; }
    .iframe-full-width { height: 1800px; }
    
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links a { justify-content: center; }
    .social-icons { justify-content: center; }
    
    .gallery-track img { width: 100px; height: 140px; }
    
    .btn-large {
        font-size: 1rem; 
        padding: 12px 20px; 
        width: 90%; 
        max-width: 300px;
        display: block; 
        margin: 0 auto; 
        white-space: normal;
    }
}
