/* Viajes Ejecutivos - Styles v9.2 (Optimized) */

:root {
    --primary: #0A192F;
    --gold: #D4AF37;
    --navy-brand: #0F2634;
    --teal-brand: #008C8C;

    --text: #121212;
    --muted: #666;
    --bg: #ffffff;
    --gray: #f8f9fa;

    --shadow: 0 10px 40px -10px rgba(0, 0, 0, .12);
    --shadow2: 0 18px 50px -18px rgba(0, 0, 0, .25);
    --radius: 16px;
    --t: all .28s cubic-bezier(.25, .8, .25, 1);

    --glass: rgba(255, 255, 255, .70);
    --glass-border: 1px solid rgba(255, 255, 255, .45);
    --glass-blur: blur(12px);

    --grad-gold: linear-gradient(135deg, #D4AF37 0%, #F0C445 100%);
    --grad-gold-hover: linear-gradient(135deg, #e6c35c 0%, #f5d160 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-display: swap;
    /* Optimization for font loading */
}

main,
.hero,
.section {
    flex-shrink: 0;
}

.hero {
    flex-grow: 1;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    content-visibility: auto;
    /* Browser optimization for off-screen images */
}

a {
    text-decoration: none;
    transition: var(--t)
}

ul {
    list-style: none
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px
}

.section {
    padding: 80px 0;
    contain: content;
    /* Rendering optimization */
}

.text-center {
    text-align: center
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.15;
    color: var(--primary);
    font-weight: 700;
}

.text-accent {
    color: var(--accent)
}

.text-gold {
    color: var(--gold)
}

@supports (-webkit-background-clip:text) {
    .text-gold {
        background: var(--grad-gold);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* Header */
header.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: 110px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--t);
}

header.header.scrolled {
    height: 80px;
    background: rgba(10, 25, 47, .98);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.nav-container {
    width: 98%;
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 30px;
}

/* Brand */
.logo-link {
    display: flex;
    align-items: center;
    gap: 18px
}

.logo-img {
    height: 90px;
    width: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

header.header.scrolled .logo-img {
    height: 65px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.05
}

.logo-title {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    /* Responsive font size */
    letter-spacing: 1px;
    color: #ffffff;
    /* Senior Fix: White text for contrast */
    font-weight: 800;
    text-shadow: none;
    /* Clean flat look */
}

.logo-title span {
    color: #40E0D0;
    /* Senior Fix: Bright Turquoise/Teal */
}

.logo-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    /* Senior Fix: White subtitle */
    font-weight: 600;
    text-shadow: none;
}

/* Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 35px
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--gold);
    transition: var(--t);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%
}

.mobile-toggle {
    display: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--t);
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-gold);
    color: #fff;
    box-shadow: 0 8px 20px rgba(212, 175, 55, .25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--grad-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(212, 175, 55, .38);
}

.btn-outline {
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--primary)
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 110px;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 50px;
}

@media (min-width: 992px) {
    .hero-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .hero-text {
        flex: 1;
        padding-right: 60px;
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-form-container {
        flex: 0 0 450px;
        width: 100%;
        max-width: 480px;
    }
}

.hero-kicker {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    margin-bottom: 15px;
}

.hero h1 {
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, .5);
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    color: #fff;
    opacity: .95;
    font-size: 1.3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    flex-wrap: wrap
}

/* Glass Form Components */
.hero-form-glass {
    background: linear-gradient(145deg, rgba(6, 11, 25, 0.65), rgba(10, 25, 47, 0.6));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 3px;
    z-index: 1;
}

.hero-form-glass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(transparent, transparent, transparent, transparent, rgba(212, 175, 55, 0.4));
    -webkit-mask-image: radial-gradient(circle, transparent 30%, black 50%);
    mask-image: radial-gradient(circle, transparent 30%, black 50%);
    animation: rotate-border 8s linear infinite;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.hero-form-glass::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: rgba(10, 25, 47, 0.7);
    border-radius: 17px;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-form-content {
    position: relative;
    z-index: 2;
    padding: 37px;
}

.hero-form-glass h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-form-glass label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-form-glass input,
.hero-form-glass select {
    width: 100%;
    background: rgba(25, 40, 65, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    margin-bottom: 20px;
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: var(--t);
}

.hero-form-glass input:focus,
.hero-form-glass select:focus {
    background: rgba(25, 40, 65, 0.7);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, .15);
}

/* Page Header */
.page-header {
    background: var(--primary);
    padding: 200px 0 100px;
    color: #fff;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-header h1 {
    color: var(--gold);
    font-size: 4rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.page-header p {
    opacity: .9;
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--t);
    border: 1px solid rgba(10, 25, 47, .06);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow2)
}

.card-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    margin-top: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Card Images */
.card-img {
    height: 280px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.price-tag {
    z-index: 2;
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-bottom: 4px solid #B8860B;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Tour Cards */
.tour-package-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.1);
    transition: var(--t);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 60px;
}

.tour-package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
}

.tour-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    background: #fff;
}

.tour-info {
    padding: 40px;
}

.tour-info h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.tour-includes h4 {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.inc-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
    color: #555;
}

.inc-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inc-list li::before {
    content: "✓";
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    background: var(--gold);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-pricing-side {
    background: #fdfdfd;
    padding: 40px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.pricing-blocks-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.price-block {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.price-block .pax {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

.price-block .price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* V7: Parallax Testimonials (Final Polish) */
.parallax-section {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(6, 11, 25, 0.9)), url('../../assets/img/chevrolet_traverse_portada.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 100px 0;
    position: relative;
    color: #fff;
}

/* Horizontal Slider (Mobile & Desktop) */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0 40px;
    /* Space for shadow/hover */
    scrollbar-width: none;
    /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

/* Chrome/Safari */

.testimonial-card {
    flex: 0 0 350px;
    /* Fixed width for slider */
    scroll-snap-align: center;

    background: rgba(255, 255, 255, 0.1);
    /* Glass on dark background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: var(--t);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* Styles for text inside dark parallax */
.parallax-section h2 {
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.testimonial-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--gold);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding-top: 10px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

/* Senior UI: Payment Info Card */
.payment-info-card {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 5px solid #40E0D0;
    /* Bright Teal */
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
}

.payment-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent, rgba(64, 224, 208, 0.1));
    border-radius: 0 0 0 100%;
    pointer-events: none;
}

.payment-info-card h4 {
    color: var(--navy-brand);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.payment-info-card p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.6;
}

.payment-info-card .note {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: start;
    margin-top: 20px;
}

/* Bank Details Card (Senior UI) */
.bank-account-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.bank-name {
    font-weight: 800;
    color: #d0021b;
    /* BAC Brand Color hint */
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    color: #555;
    font-weight: 600;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-brand);
    letter-spacing: 1px;
    margin: 10px 0;
    display: block;
}

.account-holder {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.account-holder strong {
    color: #333;
    text-transform: uppercase;
}

.feature-grid i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout img {
    box-shadow: var(--shadow2);
    border-radius: 16px;
}

/* Booking Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.step {
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    font-weight: 700;
    color: #999;
}

.step.active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer (Final Polish) */
footer {
    background: #050d18;
    /* Darker than primary */
    color: #fff;
    padding: 80px 0 30px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 25px;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding-top: 24px;
    color: #667;
    font-size: 0.9rem;
}

/* Footer Link & Icons */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: var(--t);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--t);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--primary);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    font-size: 2rem;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    z-index: 1100;
    transition: var(--t);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* V7 Mobile Responsiveness */
@media (max-width: 1024px) {
    .logo-img {
        height: 70px;
    }

    .logo-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 900px) {

    .tour-body,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .page-header {
        clip-path: none;
        padding: 160px 0 60px;
    }

    .hero-content-wrapper {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
    }

    .hero-form-container {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    header.header {
        height: 70px;
    }

    .logo-img {
        height: 45px;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .logo-text-group {
        white-space: nowrap;
    }

    .nav-container {
        padding: 0 15px;
    }

    .mobile-toggle {
        font-size: 1.5rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1100;
        /* Ensure above nav-links */
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: rgba(10, 25, 47, .95);
        backdrop-filter: blur(10px);
        /* Glass effect */
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        transition: var(--t);
        padding: 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .inc-list {
        grid-template-columns: 1fr;
    }

    .pricing-blocks-container {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        gap: 10px;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .hero-kicker {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* Parallax on Mobile */
    .parallax-section {
        background-attachment: scroll;
    }

    /* Better performance on mobile */
    .testimonial-card {
        flex: 0 0 280px;
    }

    /* Smaller card for mobile */
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .logo-title {
        font-size: 1.0rem;
    }
}

/* =========================================
   New Glass Card & Utility Styles (V7 Refactor)
   ========================================= */

.hero-form-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-form-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-form-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-form-content label {
    display: block;
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.hero-form-content input,
.hero-form-content select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.hero-form-content input:focus,
.hero-form-content select:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* History Block in Tours */
.history-block {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pop {
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

}

@media (max-width: 1100px) {

    /* Increased from 968px to prevent tablet overlap */
    .mobile-toggle {
        display: block;
        /* Ensure visibility */
        font-size: 1.6rem;
        color: #fff;
        cursor: pointer;
        margin-left: auto;
        /* Push to right */
        z-index: 1100;
        position: relative;
    }

    /* QA Fix: Logo was too big and separated */
    .logo-img {
        max-width: 50px !important;
        /* Force small size */
        height: auto;
        object-fit: contain;
    }

    .logo-link {
        gap: 6px !important;
        /* Minimal gap */
    }

    .logo-title {
        font-size: 1.0rem !important;
        /* Small, compact text */
        line-height: 1.1;
    }

    .logo-subtitle {
        font-size: 0.6rem !important;
        letter-spacing: 0.5px;
    }

    .nav-links.active {
        right: 0;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .inc-list {
        grid-template-columns: 1fr;
    }

    .pricing-blocks-container {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        gap: 10px;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .hero-kicker {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    /* Parallax on Mobile */
    .parallax-section {
        background-attachment: scroll;
    }

    /* Better performance on mobile */
    .testimonial-card {
        flex: 0 0 280px;
    }

    /* Smaller card for mobile */
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .logo-title {
        font-size: 1.0rem;
    }
}

/* =========================================
   New Glass Card & Utility Styles (V7 Refactor)
   ========================================= */

.hero-form-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-form-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-form-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-form-content label {
    display: block;
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.hero-form-content input,
.hero-form-content select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.hero-form-content input:focus,
.hero-form-content select:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

/* History Block in Tours */
.history-block {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pop {
    animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 968px) {
    .logo-img {
        max-width: 140px;
        height: auto;
        object-fit: contain;
        /* CRITICAL: Prevents squishing */
    }

    /* Fix for distorted logo on scroll - FORCE height auto */
    header.header.scrolled .logo-img {
        height: auto !important;
        /* Override global 65px fixed height */
        max-height: 50px;
        /* Constrain by height instead of width for better control */
        max-width: 120px;
        object-fit: contain;
    }

    .hero-form-container {
        justify-content: center;
        margin-top: 30px;
    }

    .hero-form-glass {
        max-width: 100%;
    }
}

/* Fade In Up Animation for Hero */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}


/* Contact Page Dark Glass Form */
.glass-form-container {
    background: rgba(10, 25, 47, 0.85);
    /* Primary Dark Blue with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: #fff;
}

.glass-form-container h3 {
    color: var(--gold);
}

.glass-form-container label {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.glass-form-container select,
.glass-form-container input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.glass-form-container select:focus,
.glass-form-container input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.glass-form-container select option {
    background: #0A192F;
    color: #fff;
}

/* =========================
   FIX: iPad/Safari + pantallas medianas
   Evita que logo/texto se monten con navbar
   ========================= */

/* 1) Permitir que el contenedor del header se adapte */
header.header .nav-container {
    flex-wrap: nowrap;
    /* por defecto */
    min-width: 0;
}

.logo-link {
    min-width: 0;
}

.logo-text-group {
    min-width: 0;
}

/* Evita que el texto empuje y se monte */
.logo-title,
.logo-subtitle {
    white-space: nowrap;
}

/* 2) Desde tablets (iPad) colapsar navegación a menú móvil */
@media (max-width: 1024px) {
    header.header {
        height: 90px;
        /* un poco más compacto */
    }

    header.header.scrolled {
        height: 75px;
    }

    /* Reduce un poco el logo para que no invada */
    .logo-img {
        height: 70px;
    }

    /* Tipografías más fluidas */
    .logo-title {
        font-size: clamp(1.15rem, 2.2vw, 1.5rem);
        line-height: 1.05;
    }

    .logo-subtitle {
        font-size: 0.78rem;
        letter-spacing: 2px;
    }

    /* Activa hamburguesa en tablets también */
    .mobile-toggle {
        display: block;
    }

    /* Off-canvas menu (evita montajes) */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 360px);
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 22px;
        padding: 30px 22px;
        transition: right .28s ease;
        z-index: 1200;
    }

    .nav-links.active {
        right: 0;
    }

    /* Asegura que el botón no “rompa” el layout */
    .nav-links .btn {
        width: 100%;
        max-width: 260px;
    }
}

/* 3) Ajustes extra para pantallas muy angostas */
@media (max-width: 420px) {
    .logo-subtitle {
        display: none;
        /* si no cabe, mejor ocultar el subtítulo */
    }
}

/* 4) Safari: evita “auto-zoom” de texto en inputs/headers raros */
html {
    -webkit-text-size-adjust: 100%;
}

/* =========================================
   FIX 3: ROBUST HEADER & MOBILE OVERFLOW
   Prevents iPad/Safari overlap and fixes mobile sizing
   ========================================= */

/* A) HEADER ROBUSTNESS (Safari Flex Fixes) */
header .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-width: 0;
    /* Critical for shrinking */
}

/* Allow shrinkage */
.logo-link,
.logo-text-group,
.nav-links,
nav {
    min-width: 0;
    flex-shrink: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
}

/* Fluid Typography */
.logo-title {
    white-space: nowrap;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    letter-spacing: clamp(0px, 0.2vw, 0.5px);
}

.logo-subtitle {
    white-space: nowrap;
    font-size: clamp(0.55rem, 1vw, 0.75rem);
    letter-spacing: clamp(1px, 0.3vw, 1.5px);
}

.logo-img {
    height: clamp(34px, 4vw, 48px);
    width: auto;
}

/* Nav Links Safety */
.nav-links {
    gap: clamp(10px, 1.6vw, 26px);
    flex-wrap: nowrap;
}

.nav-links a {
    white-space: nowrap;
}

/* B) MEDIA QUERIES FOR TIGHT SPOTS */
@media (max-width: 1100px) {
    .nav-container {
        padding-inline: clamp(10px, 2vw, 18px);
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 980px) {

    /* Even tighter if desktop menu still persistent */
    .logo-title {
        font-size: 1rem;
    }

    .nav-links {
        gap: 10px;
    }
}

/* C) MOBILE CRITICAL FIXES (Overflow/Sizing) */
@media (max-width: 768px) {

    /* 1. Prevent overflow */
    input,
    select,
    button,
    .btn {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 2. Flatten Grids */
    .hero-grid,
    .grid2,
    .form-grid,
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    /* 3. Full width buttons & Prevent Overflow */
    .btn,
    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
        display: flex;
        /* Fix text overflow */
        white-space: normal !important;
        height: auto !important;
        padding: 12px 15px !important;
        line-height: 1.25;
        text-align: center;
    }

    /* 4. Padding fixes */
    .quote-card,
    .step-form,
    .card {
        padding: 18px !important;
    }

    /* 5. Overflow containers */
    .pricebox,
    .total-display,
    .hero-right {
        width: 100%;
        overflow: hidden;
    }

    /* Ensure header remains constrained */
    header .nav-container {
        padding-inline: 15px;
    }
}