/* 
   Azul Tourquesa Premium Proposal 
   Theme: Deep Ocean Luxury
*/

:root {
    --primary-color: #033b4a;
    /* Deep Teal from Logo */
    --secondary-color: #0079de;
    /* Brighter Blue for interactions */
    --accent-color: #d4af37;
    /* Gold/Sand for luxury accents */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Height of sticky header + buffer */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Premium Background: Subtle Pattern + Gradient */
    background-color: #fcfcfc;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 121, 222, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
    /* Increased spacing for luxury feel */
}

.text-center {
    text-align: center;
}

/* Navigation - Premium Glassmorphism */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(3, 59, 74, 0.1);
    /* Slight tint initially */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#main-header.scrolled {
    background: rgba(3, 59, 74, 0.85);
    /* Deep Teal but Translucent */
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    /* Heavy Blur */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

#main-header.scrolled .logo img {
    height: 50px;
}

/* Center Menu */
#main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    /* More breathing room */
}

.nav-links li {
    position: relative;
    padding: 5px 0;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Luxury spacing */
    padding: 5px 0;
    position: relative;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    transform: none;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Nav Actions (Right) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon a {
    position: relative;
    font-size: 1.2rem;
    color: var(--white);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.btn-book-nav {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-book-nav:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Dropdown - NESTED TREE STYLE */
.dropdown {
    position: relative;
}

/* 1. Main Dropdown Container (Level 1) */
.dropdown>.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);

    /* Matching Header Glass Effect */
    background: rgba(3, 59, 74, 0.9);
    /* Deep Teal Translucent */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    min-width: 280px !important;
    z-index: 2000;

    /* Box Shadow */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* Darker shadow */

    /* Animation State */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    border-top: 4px solid var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    /* Vertical Padding */

    border-radius: 0 0 10px 10px;
    text-align: left;

    /* RESET GRID from Mega Menu */
    display: block !important;
}

/* Hover State for Top Level */
.dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* 2. Dropdown Groups (Items with Submenus) */
.dropdown-group {
    position: relative;
    /* Anchor for Level 2 */
    width: 100%;
    padding: 0 20px;
    /* Padding for hover area */
    box-sizing: border-box;
}

.dropdown-group:hover {
    background-color: rgba(255, 255, 255, 0.05);
    /* Light highlight */
}

/* Group Title (Trigger) */
.dropdown-group>span,
.dropdown-group>a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 0;

    color: var(--white) !important;
    /* White Text */
    font-weight: 500;
    /* Slightly lighter weight for elegance */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    cursor: pointer;
    margin: 0;
    border: none;
    pointer-events: auto;
    /* Enable clicking/hovering */
    text-decoration: none;
    /* For the anchor tag */
}

/* Arrow Indicator - Keep this on SPAN only if we want, or remove if we don't want the side arrow on the link */
/* Actually, for the Category Links, we might not want the right chevron if they are just links now, 
   but previously they had 'content: \f054' (right arrow). 
   Let's keep it for visual consistency if they indicate deeper levels, 
   but maybe text-decoration only on hover.
*/

.submenu-arrow {
    padding: 0 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.dropdown.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Arrow Indicator for Groups */
.dropdown-group>span::after,
.dropdown-group>a::after {
    content: '\f054';
    /* Font Awesome fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.dropdown-group:hover>span::after,
.dropdown-group:hover>a::after {
    transform: translateX(4px);
}

/* 3. Submenu (Level 2 - The Side Menu) */
.dropdown-group>ul {
    position: absolute;
    left: 100%;
    /* To the right */
    top: 0;

    /* Dark Glass Match */
    background: rgba(3, 59, 74, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    min-width: 250px;

    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px 0;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;

    /* Ensure it connects */
    margin-left: 0px;
}

/* Show Submenu on Group Hover */
.dropdown-group:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Links inside Submenu */
.dropdown-group>ul>li {
    padding: 0 20px;
}

.dropdown-group>ul>li>a {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    /* Soft White */
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.dropdown-group>ul>li>a:hover {
    color: var(--accent-color);
    /* Gold Hover */
    padding-left: 5px;
    background: transparent;
}

/* Last child border fix */
.dropdown-group>ul>li:last-child>a {
    border-bottom: none;
}

/* Mobile Fixes handled in media query */

/* Links inside columns */
.dropdown-menu a {
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: none;
    display: block;
    padding: 8px 0;
    transition: color 0.2s, padding 0.2s;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.03);
    white-space: normal;
    /* Allow text wrapping */
}

.dropdown-menu a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
    background: rgba(0, 0, 0, 0.02);
}

/* Burger */

/* Burger */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

#hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 59, 74, 0.4);
    /* Dark overlay */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.9s both;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #bfa030;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 1;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Intro Section - Premium Redesign (V11 Luminous) */
#intro {
    position: relative;
    padding: 140px 0;
    /* More vertical space */
    overflow: hidden;
    /* FIXED IMAGE PATH */
    background-image: url('../img/bg_intro.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Blur & Tint Overlay - LIGHTER VERSION */
#intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* MUCH LIGHTER Tint - allowing the image to shine */
    background: rgba(3, 59, 74, 0.2);
    /* Blur maintained */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

#intro::after {
    display: none;
}

/* Content Container - GRAND Glass Card */
.intro-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    /* Wider gap */
    align-items: center;

    /* GLASSMORPHISM CARD - BRIGHTER & LARGER */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 240, 0.9));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    padding: 80px;
    /* Grand padding */
    border-radius: 30px;
    /* Softer corners */

    /* Elegant Border */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    /* Subtle Gold Top Highlight */

    /* Soft Deep Shadow */
    box-shadow: 0 30px 60px rgba(0, 50, 80, 0.15);

    /* INTERACTIVE LIFT */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.intro-grid:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 40px 80px rgba(0, 50, 80, 0.2);
}

.section-tag {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    /* Extremely elegant spacing */
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 20px;

    /* ANIMATION ENTRY */
    opacity: 0;
    animation: premiumFadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    /* Starts immediately */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    /* Larger Title */
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.1;

    /* ANIMATION ENTRY */
    opacity: 0;
    animation: premiumFadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
    /* 200ms delay */
}

.intro-text p {
    font-size: 1.25rem;
    /* Larger Body Text */
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.8;

    /* ANIMATION ENTRY */
    opacity: 0;
    animation: premiumFadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.4s;
    /* 400ms delay */
}

/* NEW PREMIUM KEYFRAMES */
@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-icon {
    width: 80px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: smoothFloat 6s ease-in-out infinite;
}

@keyframes smoothFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.icon-flamenco {
    margin-top: 0;
}


/* Tours Grid */
.bg-light {
    background-color: #fff;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tour-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.tour-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 250px;
    background-color: #eee;
    background-image: url('../img/tour-placeholder.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Recovered Original Images */
.tour-card:nth-child(1) .card-image {
    background-image: url('../img/tour_bioluminiscencia.png');
}

.tour-card:nth-child(2) .card-image {
    background-image: url('../img/tour_snorquel_con_tiburon_ballena.png');
}

/* Placeholder for Islas until found */
.tour-card:nth-child(3) .card-image {
    background-image: url('../img/tour_islas_+_punta_mosquito.png');
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.link-arrow i {
    margin-left: 5px;
    transition: var(--transition);
}

.tour-card:hover .link-arrow i {
    transform: translateX(5px);
}

/* Footer */
#main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 992px) {

    /* Navigation Drawer */
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        /* Align left for better hierarchy reading */
        justify-content: flex-start;
        width: 80%;
        /* Slightly wider */
        max-width: 300px;
        transform: translateX(100%);
        transition: var(--transition);
        padding: 80px 30px;
        /* More padding */
        z-index: 999;
        overflow-y: auto;
        /* Scrollable menu */
    }

    .nav-links.nav-active {
        transform: translateX(0%);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links li {
        width: 100%;
        /* Full width for clickable areas */
        opacity: 0;
        /* Animate in */
        animation: navLinkFade 0.5s ease forwards 0.3s;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separators */
        position: relative;
        /* Ensure it's the anchor for ::after */
    }

    /* Fix Underline Alignment on Mobile - Left Align */
    .nav-links a::after {
        left: 0 !important;
        transform: none !important;
        bottom: 5px !important;
    }

    /* Burger Toggle */
    .burger {
        display: block;
        z-index: 1001;
    }

    /* Fix Layout Overlaps */
    .logo {
        z-index: 1001;
    }

    /* DROPDOWN MOBILE FIXES */
    .dropdown>.dropdown-menu {
        position: static !important;
        /* Forces flow layout */
        float: none;
        display: none;
        /* Hidden by default */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        padding: 0;
        margin: 0;
        border-radius: 0;
    }

    .dropdown.active>.dropdown-menu {
        display: block !important;
        animation: fadeIn 0.3s ease;
    }

    /* Level 2 Submenus */
    .dropdown-group {
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-group>span,
    .dropdown-group>a {
        font-size: 0.95rem;
        padding: 10px 0;
        color: var(--accent-color) !important;
        /* Force Gold */
        opacity: 0.9;
        text-decoration: none;
        display: block;
        /* Ensure full width */
    }

    .dropdown-group>ul {
        position: static !important;
        /* Stack normally */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        width: 100%;
        min-width: 0;
        padding-left: 15px;
        /* Indent */
        display: block !important;
        /* Always show children of groups for now */
        margin: 0;
    }

    .dropdown-group>ul>li {
        padding: 0;
    }

    .dropdown-group>ul>li>a {
        font-size: 0.9rem;
        padding: 8px 0;
        border-bottom: none;
        color: var(--white) !important;
        opacity: 0.8;
    }

    /* Header Adjustments */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   PREMIUM CART (Trust UI) - Prompt Maestro
   ========================================= */

/* 1. Structure */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    /* Overlay blur */
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    /* Glassmorphism Base */
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    /* Elegant shadow */
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth slide */
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    transform: translateX(0);
}

/* Header */
.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-color);
}

/* Body (Items) */
.cart-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: #aaa;
    margin-top: 50px;
}

.empty-cart-msg i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.btn-text {
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 10px;
}

/* 3. Trust Checkout Section (Footer) */
.cart-footer {
    padding: 25px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.9));
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-header {
    text-align: center;
    color: #27ae60;
    /* Trust Green */
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-logos {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #ccc;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 4. Payment Selector (Cards) */
.payment-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.payment-options {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.pay-option {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.5);
}

.pay-option i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.pay-option span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Active State */
.pay-option.active {
    opacity: 1;
    background: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 121, 222, 0.15);
    /* Brand glow */
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Specific Brand Colors on Active */
.pay-option[data-method="paypal"].active {
    border-color: #0070ba;
    color: #0070ba;
    box-shadow: 0 4px 10px rgba(0, 112, 186, 0.15);
}

.pay-option[data-method="mercadopago"].active {
    border-color: #009ee3;
    color: #009ee3;
    box-shadow: 0 4px 10px rgba(0, 158, 227, 0.15);
}

/* Total & Button */
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #005bb5);
    color: white;
    font-weight: 700;
    font-family: var(--font-heading);
    /* Slight elegance */
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 121, 222, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 121, 222, 0.4);
}

/* Dynamic Button Colors */
.btn-checkout.paypal-mode {
    background: #ffc439;
    color: #2c2e2f;
    text-shadow: none;
}

.btn-checkout.mp-mode {
    background: #009ee3;
}

.ssl-badge {
    text-align: center;
    font-size: 0.7rem;
    color: #999;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/* Input Styles for Premium Cart */
.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 38px;
    /* Adjusted for label height */
    color: #999;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    /* Space for icon */
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fdfdfd;
    font-family: var(--font-body);
}

.input-group input:focus {
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 121, 222, 0.05);
    outline: none;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
}

.form-row {
    display: flex;
    gap: 15px;
}

/* Compact Card Inputs */
#card-inputs .input-group {
    margin-bottom: 10px;
    /* Reduced from 15px */
}

#card-inputs .input-group input {
    padding: 8px 12px 8px 40px;
    /* Reduced padding */
    font-size: 0.9rem;
    /* Smaller font */
    height: auto;
}

#card-inputs .input-group i {
    top: 32px;
    /* Adjusted icon position for smaller label/input */
    font-size: 0.9rem;
}

#card-inputs .input-group label {
    margin-bottom: 5px;
    font-size: 0.8rem;
}

/* =========================================
   INNER PAGES: HERO SECTIONS
   ========================================= */
.tour-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    padding-bottom: 60px;
    margin-bottom: 0;
}

.tour-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(3, 59, 74, 0.95) 0%, rgba(3, 59, 74, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    color: var(--white);
}

.tour-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tour-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
}

.tour-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 20px 30px;
    border-radius: 50px;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.stat-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* =========================================
   LAYOUTS: SIDEBAR & CONTENT
   ========================================= */
.tour-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    position: relative;
}

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.content-block h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.content-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* =========================================
   COMPONENTS: TIMELINE (ITINERARY)
   ========================================= */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid rgba(6, 182, 212, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.3);
}

.timeline-time {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* =========================================
   COMPONENTS: INCLUSIONS GRID
   ========================================= */
.inclusions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
}

/* =========================================
   COMPONENTS: GALLERY
   ========================================= */
.tour-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   STICKY BOOKING CARD
   ========================================= */
.tour-booking-col {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 100px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.from-text {
    display: block;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.price-unit {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.booking-form .form-group {
    margin-bottom: 15px;
}

.booking-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.booking-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.booking-form .form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.book-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(3, 59, 74, 0.3);
}

.book-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    background: rgba(37, 211, 102, 0.1);
    transition: var(--transition);
}

.whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.2);
}

/* =========================================
   RELATED TOURS
   ========================================= */
.related-tours {
    padding: 80px 0;
    background: var(--light-bg);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .tour-layout {
        grid-template-columns: 1fr;
    }

    .tour-booking-col {
        order: -1;
        margin-bottom: 40px;
    }

    .tour-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .tour-hero {
        height: 60vh;
    }

    .tour-title {
        font-size: 2.5rem;
    }

    .tour-stats {
        padding: 15px 20px;
        border-radius: 15px;
    }
}

/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-form-card {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(3, 59, 74, 0.2);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    backdrop-filter: blur(5px);
}

.contact-details h4 {
    margin: 0 0 5px;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.contact-details p {
    margin: 0;
    color: #555;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* LANGUAGE SELECTOR */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.lang-flag {
    width: 24px;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    border-radius: 4px;
}

.lang-flag:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-flag.active {
    opacity: 1;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}