/* 
   Azul Tourquesa Premium Proposal 
   Theme: Deep Ocean Luxury
*/


/* Custom Font - Bobby Jones Soft */
@font-face {
    font-family: 'BobbyJonesSoft';
    src: url('../fonts/BobbyJonesSoft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Nueva Paleta de Colores */
    --accent-pink: #D97CB0;
    /* Rosa - Acentos, hover, badges */
    --neutral-gray: #B3C3C9;
    /* Gris - Textos secundarios, bordes */
    --brand-teal: #41BABF;
    /* Turquesa - Color principal, botones */
    --primary-dark: #22394F;
    /* Azul Oscuro - Headers, textos, footer */

    /* Colores complementarios para compatibilidad */
    --primary-color: var(--primary-dark);
    --secondary-color: var(--brand-teal);
    --accent-color: var(--accent-pink);
    --text-color: var(--primary-dark);
    --light-bg: #f8f9fa;
    --white: #ffffff;

    /* Tipografía */
    --font-heading: 'BobbyJonesSoft', sans-serif;
    --font-body: 'BobbyJonesSoft', 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;
}

/* Force Font on Paragraphs */
p,
.tour-description-enhanced p,
.detail-item,
.detail-text {
    font-family: 'BobbyJonesSoft', sans-serif !important;
    font-weight: normal !important;
    text-align: justify;
    /* Default justify for cleaner look */
}

/* Force justify on mobile for all body text */
@media (max-width: 768px) {

    p,
    .tour-description-enhanced p,
    .detail-item,
    .detail-text,
    .hero-desc,
    .intro-text p {
        text-align: justify !important;
        font-size: 0.95rem !important;
        /* Slightly smaller on mobile */
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* 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: transparent;
    /* Transparent initially */
    backdrop-filter: none;
    border-bottom: none;
}

#main-header.scrolled {
    background: rgba(34, 57, 79, 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) - COMPACT */
.dropdown>.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);

    /* Matching Header Glass Effect */
    background: rgba(34, 57, 79, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    min-width: 260px !important;
    z-index: 2000;

    /* Box Shadow */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    /* Animation State */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);

    border-top: 3px solid var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* COMPACT PADDING */
    padding: 4px 0;

    border-radius: 0 0 10px 10px;
    text-align: left;

    display: block !important;
    max-height: none;
    overflow: visible;
}

/* 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;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    border-bottom: none;
}

.dropdown-group:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Group Title (Trigger) */
.dropdown-menu .dropdown-group>span,
.dropdown-menu .dropdown-group>a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;

    /* COMPACT PADDING & FONT */
    padding: 4px 10px 4px 5px !important;
    font-size: 0.75rem !important;

    box-sizing: border-box !important;
    color: var(--white) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    cursor: pointer;
    margin: 0;
    text-decoration: none;
    line-height: 1.1;
    border-bottom: none;
}

.dropdown-menu .dropdown-group>span::after,
.dropdown-menu .dropdown-group>a::after {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-right: 2px solid var(--accent-color) !important;
    border-bottom: 2px solid var(--accent-color) !important;
    transform: rotate(-45deg);
    margin-bottom: 2px;
    transition: transform 0.3s ease;

    position: static !important;
}

.dropdown-menu .dropdown-group:hover>span::after,
.dropdown-menu .dropdown-group:hover>a::after {
    transform: translateX(3px);
}

/* 3. Submenu (Level 2 - The Side Menu) */
.dropdown-group>ul {
    position: absolute;
    left: 100%;
    top: -5px;

    background: rgba(34, 57, 79, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    min-width: 240px;

    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;

    /* COMPACT PADDING */
    padding: 8px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);

    transition: all 0.3s ease;
    pointer-events: none;

    margin-left: 0px;
    z-index: 1002;
    display: block;
}

/* Bridges */
.dropdown-group>ul::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: transparent;
}

.dropdown-group:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Lifted Submenu (for Venta de Tickets) */
.dropdown-group>ul.lifted-submenu {
    top: -150px !important;
    bottom: auto !important;
    /* Adjust this value based on height of submenu to align items as desired */
    /* If we want Venta de Tickets to align with Xel-Ha (2nd item), we need to shift up. */
    /* Assuming ~40px per item. 5 items = 200px. */
    /* Bottom -10px means bottom of submenu is 10px below bottom of trigger. */
    /* This lifts it comfortably up from the taskbar. */
}

/* Links inside Submenu */
.dropdown-group>ul>li {
    padding: 0 15px;
    margin-bottom: 0;
}

.dropdown-group>ul>li>a {
    padding: 4px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    transition: all 0.2s;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.dropdown-group>ul>li>a:hover {
    color: var(--white);
    transform: translateX(3px);
    background: transparent;
    padding-left: 0;
}

/* 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(34, 57, 79, 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;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

.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: var(--accent-pink);
    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: 60px 0;
    /* Reduced from 100px/140px based on user feedback */
    overflow: hidden;
    /* FIXED IMAGE PATH */
    background-image: url('../img/bg_intro.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: auto !important;
    /* Allow auto height */
    min-height: auto !important;
}

@media (max-width: 768px) {
    #intro {
        padding: 50px 0;
        /* Reduced mobile padding */
    }
}

/* 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(34, 57, 79, 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: flex;
    /* Changed from grid to flex for full width control */
    flex-direction: column;
    /* Stacked by default */
    gap: 40px;
    align-items: center;
    width: 100%;
    /* Force full width */
    max-width: 100% !important;
    /* Override container max-width if needed inside */

    /* 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: 40px 20px;
    /* Reduced padding */
    border-radius: 30px;

    /* Elegant Border */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(212, 175, 55, 0.3);

    /* 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-text {
    width: 100%;
    text-align: center;
    /* Center visuals */
}

.intro-text p {
    text-align: justify;
    /* Justify text */
    max-width: 100%;
}

/* Force stickers side-by-side on mobile */
/* START - New Stickers Wrapper */
.intro-stickers-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 20px;
}

/* END - New Stickers Wrapper */

@media (min-width: 992px) {
    .intro-grid {
        flex-direction: column !important;
        /* Stack Vertical */
        /* justify-content: space-between; REMOVED */
    }

    .intro-text {
        width: 100% !important;
        text-align: center !important;
    }

    /* .intro-visual removed/deprecated */
}

.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;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.1;
    text-align: center !important;
    /* ALIGNMENT FIX: Center all titles GLOBALLY */

    /* ANIMATION ENTRY */
    opacity: 0;
    animation: premiumFadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        /* Mobile font size fix */
    }

    .hero-title {
        font-size: 2.2rem !important;
        /* Match section title size exactly */
    }

    .hero-subtitle {
        text-align: center !important;
    }
}

/* Global Title Centering Enforcer */
h1,
h2,
h3,
.subsection-title,
.tour-title {
    text-align: center !important;
}

/* Exception: Card titles might look better left or center? User said "todos los titulos". Keeping center. */
.tour-card-body h3,
.tour-title {
    text-align: center !important;
}

/* Fix for Spa page specific title if generic class misses */
.subsection-title {
    display: block;
    width: 100%;
}

.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;
}

.card-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Exception for Photo Sessions Page and Home Page */
.photo-session-page .card-image,
.photo-session-page .card-image-real,
.home-page .card-image,
.home-page .card-image-real {
    background-position: top center !important;
    object-position: top center !important;
}

/* 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 {
    text-align: center;
}

/* FIX: Override global p justify and force center for footer items including flex containers */
.footer-col p {
    text-align: center !important;
    justify-content: center !important;
    display: flex;
    gap: 10px;
    width: 100%;
}

.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: 15px;
    /* Reduced from 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;
    display: none;
    /* Hide if not removed from HTML */
}

.payment-logos {
    text-align: center;
    margin-bottom: 10px;
    /* Reduced from 20px */
    font-size: 1.5rem;
    color: #ccc;
    display: flex;
    justify-content: center;
    gap: 10px;
    display: none;
    /* Hide if not removed from HTML */
}

/* 4. Payment Selector (Cards) */
.payment-selector label {
    display: block;
    font-size: 0.8rem;
    /* Smaller font */
    font-weight: 600;
    margin-bottom: 5px;
    /* Reduced from 10px */
    color: #555;
    margin-top: 5px;
}

.payment-options {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    /* Reduced from 25px */
}

.pay-option {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 5px;
    /* Compact padding */
    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.1rem;
    /* Slightly smaller */
    margin-bottom: 3px;
}

.pay-option span {
    font-size: 0.7rem;
    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.1rem;
    /* Slightly smaller */
    font-weight: 700;
    margin-bottom: 10px;
    /* Reduced from 15px */
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    /* Reduced from 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.65rem;
    color: #999;
    margin-top: 10px;
    /* Reduced from 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: 8px;
    /* Reduced from 10px */
}

#card-inputs .input-group input {
    padding: 6px 12px 6px 35px;
    /* Reduced padding */
    font-size: 0.85rem;
    /* Smaller font */
    height: auto;
}

#card-inputs .input-group i {
    top: 28px;
    /* Adjusted icon position for compact inputs */
    font-size: 0.8rem;
    left: 12px;
}

#card-inputs .input-group label {
    margin-bottom: 3px;
    font-size: 0.75rem;
}

/* =========================================
   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);
}

/* --- Tour Page Redesign V12 --- */

/* Enhanced Description Typography */
.tour-description-enhanced {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

/* Quick Stats Bar */
.quick-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon-circle {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.4);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 500;
}

/* Interactive Tooltip */
.stat-tooltip {
    position: absolute;
    bottom: 100%;
    /* Show above */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    /* Prevent breaking for short texts */
    min-width: 150px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    /* Let clicks pass through */
}

.stat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.stat-item:hover .stat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .quick-stats-bar {
        gap: 20px;
    }

    .stat-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .tour-description-enhanced {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

/* --- Tour Details Redesign (V2) --- */
.tour-body {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Star hidden for animation */
    transform: translateY(20px);
}

.tour-body .detail-item {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.tour-body .detail-item.icon-header {
    display: flex;
    align-items: flex-start;
}

.tour-body .detail-item.text-header {
    display: block;
}

.tour-body .detail-item:hover {
    background-color: #f9f9f9;
}

/* Icon Header Styles */
.tour-body .detail-item.icon-header strong {
    font-size: 1.5rem;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
    color: var(--accent-color);
}

/* Text Header Styles (No massive font, no flex gap) */
.tour-body .detail-item.text-header strong {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 5px;
    display: inline;
    /* Ensure it flows inline */
}

.tour-body .detail-list-item {
    list-style: none;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #555;
    font-size: 1.05rem;
}

.tour-body .detail-list-item::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clean up H3 inside tour body for consistency */
.tour-body h3 {
    margin-bottom: 40px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.8rem !important;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.tour-body h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* =========================================
   UTILITIES
   ========================================= */
.margin-top-small {
    margin-top: 20px !important;
}

.margin-top-medium {
    margin-top: 50px !important;
}

.margin-top-large {
    margin-top: 80px !important;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-color);
}

/* Carousel Fixes */
.photo-carousel .tour-card {
    height: 220px !important;
    /* Override inline 300px to fix aspect ratio */
}

.photo-carousel .swiper-button-next,
.photo-carousel .swiper-button-prev {
    background: white;
    /* Ensure visibility */
    color: var(--primary-color);
}

/* PREMIUM CART STYLES (Trust UI) */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 57, 79, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -450px;
    /* Hidden */
    width: 400px;
    height: 100vh;
    z-index: 9999;

    /* Glassmorphism Premium */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 240, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.8);

    transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-header h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent-color);
}

.cart-body {
    flex: 1 1 auto;
    /* Grow and shrink */
    padding: 20px;
    overflow-y: auto;
    min-height: 150px;
    /* Ensure at least some space for items */
}

.cart-footer {
    flex: 0 0 auto;
    /* Do not grow, just take content size */
    padding: 15px;
    /* Reduced from 25px */
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    max-height: 60vh;
    /* Prevent taking more than 60% of screen */
    overflow-y: auto;
    /* Scroll internally if form is too long */
}

/* Trust Header */
.trust-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    /* Reduced */
    opacity: 0.9;
}

.trust-header i {
    color: var(--accent-color);
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 15px;
    /* Reduced */
    opacity: 0.8;
}

/* Payment Selector */
.payment-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.payment-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pay-option {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.6);
}

.pay-option i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #666;
}

.pay-option span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
}

.pay-option:hover {
    background: white;
    transform: translateY(-2px);
}

.pay-option.active {
    background: white;
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pay-option.active i,
.pay-option.active span {
    color: var(--accent-color);
}

/* Inputs */
#card-inputs {
    transition: all 0.3s;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 5px;
    color: #888;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(217, 124, 176, 0.1);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 38px;
    color: #aaa;
}

.form-row {
    display: flex;
    gap: 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-checkout:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-checkout.paypal-mode {
    background: #FFC439;
    color: #003087;
}

.btn-checkout.mp-mode {
    background: #009EE3;
    color: white;
}

.ssl-badge {
    text-align: center;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/* =========================================
   MOBILE IMPROVEMENTS (Fix "Stretched" Look)
   ========================================= */
@media (max-width: 768px) {

    /* Increase side margins/padding for main container */
    .container {
        width: 100% !important;
        /* Max width */
        padding-left: 5px !important;
        /* Minimal padding */
        padding-right: 5px !important;
        /* Minimal padding */
    }

    /* Give tour body (white card) more breathing room internally */
    .tour-body {
        padding: 20px 10px !important;
        /* Minimal side padding */
        margin-top: -20px;
        width: 100% !important;
        border-radius: 15px;
        /* Slightly reduced radius */
    }

    /* Ensure text doesn't touch edges */
    .tour-description-enhanced {
        padding: 0 10px !important;
        /* Reduced padding */
        font-size: 1.05rem !important;
        line-height: 1.8 !important;
    }

    /* Fix header sizes to not be huge/stretched */
    .hero-title {
        font-size: 2.2rem !important;
        padding: 0 5px;
        /* Reduced padding */
    }

    h2[data-i18n="tour.desc_title"],
    .tour-body h3 {
        font-size: 1.5rem !important;
    }

    /* Ensure list items have space */
    .tour-body .detail-list-item {
        padding-left: 25px;
        /* Slightly reduced indentation */
    }

    /* Relax the justification if it causes weird gaps */
    p {
        text-align: left;
    }
}

/* FIX: Ensure Tour Card Images fit container */
.tour-card-img {
    width: 100% !important;
    height: 250px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    display: block;
}

/* FIX: Force Hero Description Centered on Mobile */
.hero-desc {
    text-align: center !important;
}

/* FINAL AUDIT CSS FIXES */

/* 1. Mobile Spacing Reduction */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0 !important;
    }
}

/* 2. Inspirados Alignment: Justify Block, Left Align Container */
.intro-text {
    width: 100% !important;
    text-align: left !important;
}

.intro-text p {
    text-align: justify !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 3. Thumbnails Title Centering */
.tour-card-body h3,
.tour-title {
    text-align: center !important;
}

/* 4. Tour Details Title Centering */
.tour-details-title,
.tour-desc-title {
    text-align: center !important;
}


/* FINAL SNAG FIXES CSS */

/* 1. Inspirados Width Force */
.intro-text,
.intro-text p {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    /* Remove internal padding if any */
}

/* 2. Mobile Footer Centering */
@media (max-width: 768px) {
    .footer-col {
        text-align: center !important;
        align-items: center !important;
    }

    .footer-col h4 {
        text-align: center !important;
    }

    .footer-col p {
        justify-content: center !important;
    }

    .social-links {
        justify-content: center !important;
    }

    /* 3. Inspirados Container Padding Reduction on Mobile to maximize width */
    .intro-grid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}


/* FINAL SAFETY FIXES */

/* 1. Ensure Hero Visibility on Mobile */
@media (max-width: 768px) {
    .page-hero {
        min-height: 70vh !important;
        margin-top: 0 !important;
        display: flex !important;
        padding-top: 80px !important;
        /* Clear fixed header */
        position: relative !important;
        z-index: 1 !important;
    }
}

/* 2. Force Footer Center on Mobile */
@media (max-width: 768px) {
    #main-footer .footer-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    #main-footer .footer-col p {
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    #main-footer h4 {
        text-align: center !important;
        width: 100% !important;
    }
}


/* =========================================
   FINAL REPAIR - MOBILE VISIBILITY & LAYOUT
   ========================================= */

/* 1. FORCE HERO VISIBILITY ON MOBILE */
@media (max-width: 768px) {
    #hero {
        position: relative !important;
        display: flex !important;
        min-height: 80vh !important;
        height: auto !important;
        /* Allow growing */
        align-items: center !important;
        justify-content: center !important;
        z-index: 1 !important;
        margin-top: 0 !important;
        overflow: hidden !important;
        padding-top: 60px !important;
        /* Clear buffer for fixed header */
        background-color: #22394F;
        /* Fallback color */
    }

    #hero video {
        min-height: 100% !important;
        width: auto !important;
        min-width: 100% !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 0 !important;
        /* Behind content */
        opacity: 0.6;
        /* Ensure it's not too bright */
    }

    /* Ensure overlay is present */
    #hero .video-overlay {
        display: block !important;
        background: rgba(34, 57, 79, 0.5) !important;
        z-index: 1 !important;
    }

    .hero-content {
        z-index: 2 !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        width: 100%;
        padding: 0 20px;
    }

    .hero-subtitle,
    .hero-title,
    .hero-desc {
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
}

/* 2. FOOTER ALIGNMENT & EMAIL FIX */
@media (max-width: 768px) {
    #main-footer .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    #main-footer .footer-col {
        width: 100% !important;
        align-items: center !important;
        margin-bottom: 30px;
    }

    #main-footer .footer-col p {
        justify-content: center !important;
        display: flex;
        gap: 10px;
    }

    #main-footer .social-links {
        justify-content: center !important;
        display: flex !important;
        width: 100%;
    }
}

/* 3. POLICIES IMAGES */
.policy-container img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
}

/* =========================================
   CRITICAL FORCED CENTERING & FIXES (FINAL)
   ========================================= */

/* 1. Global Section Titles & Subtitles */
h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.subsection-title,
.tour-title,
.tour-header h2,
.intro-text h2,
.tour-description-enhanced p,
.hero-title,
.hero-subtitle {
    text-align: center !important;
}

/* 2. Specific "Quienes Somos" & "Venta de Tickets" Centering */
.page-content p,
.tour-body p,
.tour-itinerary,
.glass-card p,
.intro-text p,
.tour-details-content p {
    text-align: center !important;
}

/* 3. Transport Image Sizing Fix */
.tour-card img {
    height: 250px !important;
    /* Force uniform height */
    object-fit: cover !important;
    width: 100% !important;
}

/* 4. Email Fix */
.email-text,
a[href^="mailto:"] {
    text-transform: lowercase !important;
}

/* 5. "Inspirados" Section Full Width but Justified */
.intro-text {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    /* Header centered */
}

.intro-text p {
    text-align: justify !important;
    /* Body text justified */
    text-align-last: center;
    /* Last line centered */
    max-width: 900px;
    margin: 0 auto;
}

/* 6. List styling centering wrapper */
.tour-itinerary ul {
    display: inline-block;
    text-align: left;
}

.tour-itinerary {
    text-align: center !important;
}

/* 7. Mobile Hero Visibility (Reinforcement) */
@media (max-width: 768px) {

    #hero,
    .page-hero {
        min-height: 60vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content,
    .hero-title,
    .hero-subtitle {
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* 8. EMERGENCY CENTERING FIXES */
    .intro-text h2,
    .intro-text p,
    .about-mission h2,
    .about-mission p,
    .about-vision h2,
    .about-vision p,
    .section-title,
    .subsection-title {
        text-align: center !important;
    }

    /* Specific text targeting */
    h2:contains("Nuestra Filosofía"),
    h2:contains("Aventuras únicas"),
    h3:contains("Detalles del Tour"),
    p:contains("Vive una experiencia ancestral"),
    p:contains("Explora los caminos"),
    p:contains("Recorre la isla") {
        text-align: center !important;
    }

    /* Force details title centering */
    .tour-details h3,
    .tour-description h3,
    .tour-itinerary h3 {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    /* Transport Private Thumbnails Fix */
    .fleet-carousel .swiper-slide .tour-card img {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Fix Bioluminescence Thumbnail Focus */
    img[src*="bioluminiscencia"],
    img[src*="hero_bio"] {
        object-position: bottom !important;
    }

    /* Quienes Somos Centering */
    .fleet-specs,
    .fleet-specs ul,
    .fleet-specs li {
        text-align: center !important;
        list-style-position: inside !important;
    }

    /* Fix Bioluminescence Thumbnail Focus */
    img[src*="bioluminiscencia"],
    img[src*="bioluminiscencia"] {
        object-position: bottom !important;
    }

    /* Quienes Somos Text Centering */
    #quienes-somos .page-content,
    #quienes-somos p,
    #quienes-somos h2,
    #quienes-somos h3,
    #quienes-somos li {
        text-align: center !important;
    }

    /* Venta de Tickets Text Centering */
    .ticket-page p,
    .ticket-page h1,
    .ticket-page h2,
    .ticket-page li {
        text-align: center !important;
        list-style-position: inside !important;
    }

    /* --- MISSING CLASSES RESTORED FOR QUIENES SOMOS --- */
    .glass-card {
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        /* Soft premium shadow */
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .glass-card:hover {
        transform: translateY(-5px);
    }

    .section-badge {
        background: rgba(65, 186, 191, 0.1);
        /* Brand teal, light */
        color: #41babf;
        padding: 8px 16px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .inclusions-grid {
        display: grid;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .values-list i {
        color: #41babf !important;
    }

    /* Ensure icons in cards are visible */
    .glass-card i {
        display: inline-block;
    }
}

/* FIX: Force Bioluminescence Thumbnail Focus (Desktop Only) */
@media (min-width: 992px) {

    .tour-card .card-image[style*="bioluminiscencia"],
    img[src*="bioluminiscencia"] {
        background-position: bottom center !important;
        object-position: bottom center !important;
    }

    /* FIX: Center Pricing Section (Desktop Only) */
    .pricing-info,
    .tour-prices {
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
        /* Ensure it doesn't float */
        margin-top: 50px !important;
        /* Visual Separation */
    }

    /* FIX: Pricing Disclaimer Centering */
    .pricing-info p {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}