:root {
    --primary: #006994;
    /* Deep Ocean Blue */
    --secondary: #4ECDC4;
    /* Seafoam Green */
    --accent: #FF6B6B;
    /* Coral for CTAs */
    --dark: #2D3436;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(78, 205, 196, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(0, 105, 148, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(78, 205, 196, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 105, 148, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(to right, var(--secondary), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-dark-blue {
    color: #0f172a;
    /* Azul oscuro elegante */
    font-weight: 800;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--white);
    transition: var(--transition);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Added for mobile menu positioning */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.highlight {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Language Selector */
.lang-select {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../assets/Imagen2.webp') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect fallback */
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: -70px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 105, 148, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    word-wrap: break-word;
    max-width: 100%;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Subpage Hero Standard */
.hero-subpage {
    height: 50vh !important;
    min-height: 350px !important;
    margin-top: 0 !important;
}

.hero-subpage .hero-content {
    margin-top: 80px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--secondary);
}

.image-placeholder {
    width: 100%;
    height: 600px;
    background: url('../assets/Imagen10.jpeg') no-repeat center center/cover;
    transition: var(--transition);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.image-placeholder:hover {
    transform: scale(1.02);
}

/* Itinerary Section */
.itinerary-section {
    background: transparent;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Timeline Responsive Fixes */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 30px;
    }

    .timeline-item::after {
        left: 21px;
        right: auto;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 300px;
    background: #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow);
}


/* Swiper Gallery Adjustments */
.gallerySwiper {
    width: 100%;
    padding-bottom: 50px !important;
}

.swiper-slide {
    width: 300px;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--white) !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--secondary);
    color: var(--dark) !important;
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: none;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: 300 !important;
}

.swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary);
    width: 20px;
    border-radius: 10px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #ddd;
    border: 4px solid var(--secondary);
}

.img-1 {
    background: url('../assets/team_1.png') no-repeat center center/cover;
}

.img-2 {
    background: url('../assets/team_2.png') no-repeat center center/cover;
}

.img-3 {
    background: url('../assets/team_3.png') no-repeat center center/cover;
}

.team-card h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
}

.faq-page-content {
    padding: 80px 0;
    background-color: #f8fafc;
    min-height: 60vh;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* WhatsApp Button */
.whatsapp-box {
    text-align: center;
    padding: 20px;
}

.whatsapp-box h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.whatsapp-box p {
    margin-bottom: 30px;
    color: #666;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.5rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px 20px; /* Added horizontal padding */
    overflow-x: hidden;
}

.footer p {
    word-wrap: break-word;
    max-width: 100%;
}

/* Specific Page Styles */
.about-page-content {
    padding: 80px 0;
    background-color: #f8fafc;
}

.about-text-content {
    background-color: #2b3a55;
    color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.about-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
    font-weight: 800;
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e2e8f0;
}

.about-text-content p:last-child {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0;
    margin-top: 30px;
}

.vision-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vision-img-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vision-img-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.vision-img-card:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 10px 0; /* Added margin for better spacing */
    }

    .nav-links li a {
        font-size: 1.2rem;
        display: block;
        padding: 5px 0;
    }

    #language-selector {
        margin-top: 20px; /* Space out language selector from links */
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-top: 40px; /* Prevent overlap with fixed header */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .hero-subpage {
        height: 60vh !important;
        min-height: 350px !important;
        text-align: center;
    }

    .hero-subpage h1 {
        font-size: 2rem;
        padding: 0 15px;
    }

    .hero-subpage p {
        font-size: 1.1rem !important;
        padding: 0 15px;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}