/* ==========================================================================
   ANNAPURNA & EVEREST EXPEDICIONES
   Master Design System & Google Ads Compliance CSS
   República Argentina - Legajo EVT 18.492 / CUIT 30-71649281-4
   ========================================================================== */

:root {
    --primary: #ee5057;
    --primary-hover: #d53239;
    --primary-dark: #b71c1c;
    --navy-dark: #0b1d28;
    --navy-header: #0f172a;
    --navy-surface: #1e293b;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    padding-top: 102px; /* Top info bar (34px) + Navbar (68px) */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

/* ==========================================================================
   Navigation & Header Architecture (Fixed 68px, Clean, No Crooked Dividers)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

/* Top Information Strip */
.top-strip {
    background: var(--navy-dark);
    color: #cbd5e1;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-strip a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.top-strip a:hover {
    color: var(--primary);
}

/* Main Navbar */
.main-navbar {
    height: 68px;
    padding: 0;
    background: #ffffff;
}
.main-navbar .navbar-brand {
    padding: 0;
    margin-right: 25px;
    display: flex;
    align-items: center;
}
.main-navbar .navbar-brand img {
    height: 48px;
    width: auto;
}

.main-navbar .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
.main-navbar .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 14px !important;
    transition: color 0.2s ease;
    border: none !important; /* Eliminate old template dividers */
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
}

/* Dropdown Menus */
.main-navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    margin-top: 0;
    border-top: 3px solid var(--primary);
    animation: fadeIn 0.2s ease;
}
.main-navbar .dropdown-item {
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    padding: 8px 20px;
    transition: all 0.2s ease;
}
.main-navbar .dropdown-item:hover {
    background-color: #fff1f2;
    color: var(--primary);
    padding-left: 24px;
}

.navbar-cta-btn {
    background: linear-gradient(135deg, #ee5057 0%, #d53239 100%);
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 9px 18px !important;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(238, 80, 87, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin-left: 10px;
}
.navbar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(238, 80, 87, 0.5);
    color: #ffffff !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    color: #ffffff;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(11, 29, 40, 0.8) 0%, rgba(11, 29, 40, 0.5) 50%, rgba(11, 29, 40, 0.9) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 50px 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(238, 80, 87, 0.95);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(238, 80, 87, 0.4);
}
.hero-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 820px;
    margin: 0 auto 35px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Expedition Cards
   ========================================================================== */

.expedition-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.expedition-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.expedition-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}
.expedition-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.expedition-card:hover .expedition-card-img img {
    transform: scale(1.06);
}
.badge-duration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.badge-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.expedition-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.expedition-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.expedition-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.expedition-card-title a:hover {
    color: var(--primary);
}
.expedition-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.expedition-specs li {
    margin-bottom: 7px;
    display: flex;
    align-items: flex-start;
}
.expedition-specs li i {
    color: var(--primary);
    width: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ==========================================================================
   Interactive Altitude Timeline Widget
   ========================================================================== */

.altitude-timeline-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.altitude-bar-container {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 230px;
    padding: 35px 5px 10px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}
.altitude-day-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}
.altitude-bar-wrapper {
    height: 160px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}
.altitude-day-bar {
    width: 22px;
    max-width: 90%;
    min-width: 8px;
    background: linear-gradient(180deg, #ee5057 0%, #0284c7 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.altitude-day-bar:hover {
    filter: brightness(1.15);
}
.altitude-tooltip {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    pointer-events: none;
}
.altitude-day-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 8px;
    white-space: nowrap;
}

/* ==========================================================================
   Modals & Layering Hierarchy (FIXING MODAL OVERLAP COMPLETELY)
   ========================================================================== */

.modal {
    z-index: 1060 !important; /* Above header (1020) and backdrop (1050) */
}
.modal-backdrop {
    z-index: 1050 !important;
}
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.modal-header {
    background: var(--navy-header);
    color: #ffffff;
    padding: 20px 24px;
    border-bottom: none;
}
.modal-header .close {
    color: #ffffff;
    opacity: 0.8;
    text-shadow: none;
}
.modal-header .close:hover {
    opacity: 1;
}
.modal-body {
    padding: 28px 24px;
}

/* Floating WhatsApp Button */
.wa-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    z-index: 1040; /* Above regular elements, below modals */
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa-floating-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.65);
}
.wa-floating-btn .badge-ping {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* ==========================================================================
   Footer & Legal Compliance
   ========================================================================== */

.site-footer {
    background: var(--navy-dark);
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 14px;
}
.site-footer h6 {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--primary);
}

.arrepentimiento-banner {
    background: #132735;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    body {
        padding-top: 68px; /* Hide top strip or adjust */
    }
    .top-strip {
        display: none !important;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .main-navbar .navbar-collapse {
        background: #ffffff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: var(--shadow-lg);
        margin-top: 10px;
    }
    .navbar-cta-btn {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: block;
    }
}

/* Altitude Day Column and Labels */
.altitude-day-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.altitude-day-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 6px;
    white-space: nowrap;
}

/* Altitude Switcher Buttons Styling */
.btn-group-toggle .btn {
    border-color: #ee5057 !important;
    color: #ee5057 !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    background: #ffffff !important;
    transition: all 0.25s ease !important;
}
.btn-group-toggle .btn:hover {
    background: #fff1f2 !important;
    color: #d53239 !important;
}
.btn-group-toggle .btn.active,
.btn-group-toggle .btn:active {
    background: #ee5057 !important;
    color: #ffffff !important;
    border-color: #ee5057 !important;
    box-shadow: 0 4px 12px rgba(238, 80, 87, 0.35) !important;
}
