/* Taxi Seguro Aeropuerto Montería - Styles */

:root {
    --primary: #FDD835;
    --primary-dark: #F9A825;
    --primary-light: #FFE082;
    --secondary: #fffef0;
    --secondary-blue: #1e40af;
    --secondary-blue-dark: #1e3a8a;
    --secondary-blue-light: #3b82f6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --text: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --border: #e2e8f0;
    --success: #10b981;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 20px rgba(253, 216, 53, 0.08);
    --shadow-lg: 0 10px 40px rgba(253, 216, 53, 0.12);
    --shadow-xl: 0 20px 60px rgba(253, 216, 53, 0.15);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', var(--font-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 2.75rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw + 0.25rem, 1.875rem);
}

p {
    font-size: clamp(0.9375rem, 1.5vw + 0.5rem, 1.125rem);
    line-height: 1.7;
}

.text-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 1.5vw + 0.25rem, 0.875rem) clamp(1.5rem, 3vw + 0.5rem, 2rem);
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 216, 53, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.btn-outline {
    background-color: rgba(253, 216, 53, 0.15);
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-nav {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-light) 100%);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* TOP BAR */
.top-bar {
    background: linear-gradient(135deg, var(--secondary-blue-dark) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 0.75rem 0;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    position: relative;
    z-index: 999;
    overflow: hidden;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Desktop vs Mobile top bar toggles */
.top-bar-desktop { display: block; }
.topbar-mobile { display: none; }

.topbar-reserve {
    display: none;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    height: 24px;
    min-width: 0;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    animation: slideUp 12s infinite;
}

.carousel-item {
    height: 24px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

@keyframes slideUp {

    0%,
    30% {
        transform: translateY(0);
    }

    33%,
    63% {
        transform: translateY(-24px);
    }

    66%,
    96% {
        transform: translateY(-48px);
    }

    100% {
        transform: translateY(0);
    }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}


/* Mobile thin top bar (hidden on desktop) */
.topbar-mobile {
    display: none;
    position: relative;
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, rgba(30,64,175,0.95), rgba(59,130,246,0.95));
    color: white;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.topbar-mobile-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    will-change: transform;
    animation: slideLeft 12s linear infinite;
    align-items: center;
    padding-left: 10px;
}

.topbar-item {
    padding: 0 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

/* mobile reserve buttons were consolidated into .topbar-reserve */

@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-30%); }
}

.pulse-text {
    animation: pulse 2s infinite;
    color: var(--accent);
    font-weight: 600;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.1rem;
}

.logo-main {
    font-size: 1.3rem;
    font-weight: 800;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.3s ease;
}

.menu-btn:active {
    transform: scale(0.95);
}

.menu-btn i {
    width: 28px;
    height: 28px;
}

/* HERO */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    overflow: hidden;
    background-color: var(--white);
    padding: 2rem 0;
}

/* Hero background slides (full coverage) */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.02);
}

/* Dark overlay for readability */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.1;
    margin: 0 0 1rem 0;
    color: #fff;
}

.hero-content .lead {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero .lead {
    color: rgba(255,255,255,0.95);
}

/* Stickers - Fixed circular stamps */
.sticker {
    position: fixed;
    width: 90px;
    height: 90px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    z-index: 20;
    font-weight: 800;
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    line-height: 1.2;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.95);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.25);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sticker::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.1));
    pointer-events: none;
    opacity: 0.6;
}

.sticker::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.2), inset 0 2px 6px rgba(0,0,0,0.1);
    pointer-events: none;
}

.sticker-top-left {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    top: 2rem;
    left: 1rem;
}

.sticker-bottom-right {
    background: linear-gradient(90deg, #06b6d4, #0ea5a0);
    bottom: 2rem;
    right: 1rem;
}

.sticker-left { left: 1rem; top: 12%; transform: rotate(-6deg); animation: floaty 6s ease-in-out infinite; background: linear-gradient(90deg,#f59e0b,#d97706); }
.sticker-right { right: 1rem; top: 62%; transform: rotate(6deg); animation: floaty 7s ease-in-out infinite; background: linear-gradient(90deg,#06b6d4,#0ea5a0); }

@keyframes floaty {
    0% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
    100% { transform: translateY(0) rotate(-3deg); }
}

/* New Destinations Carousel - Auto scroll 1 ROW (infinite loop) */
.dest-carousel-auto {
    overflow: hidden;
    width: 100%;
}

.dest-grid {
    display: flex;
    gap: 1.5rem;
    /* animation removed - using JS-driven auto-scroll for better control and drag support */
    will-change: transform;
}

.dest-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s ease;
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
}

.dest-card:hover {
    transform: translateY(-5px);
}

.dest-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.dest-card-overlay {
    position: absolute;
    inset: 0;
    /* do not darken or change photo colors - keep overlay transparent */
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    transition: opacity 0.3s ease;
}

.dest-card-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    /* keep text readable without darkening image */
    text-shadow: 0 6px 18px rgba(0,0,0,0.6);
    color: var(--white);
}

.dest-card-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Small notch bottom-left for duration/time */
.dest-time {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

@keyframes scrollDestinations {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

/* Make carousel container draggable cursor */
.dest-carousel-auto {
    overflow: hidden;
}

.dest-carousel-auto .dest-grid {
    transition: transform 0.05s linear;
}

.dest-carousel-auto { cursor: grab; }
.dest-carousel-auto:active { cursor: grabbing; }

@media (max-width: 992px) {
    .dest-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 220px;
    }

    .dest-card img {
        height: 220px;
    }

    @keyframes scrollDestinations {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

@media (max-width: 480px) {
    .dest-card {
        flex: 0 0 calc(100% - 0.75rem);
        min-width: 200px;
    }

    .dest-card img {
        height: 234px;
    }

    @keyframes scrollDestinations {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
}

/* SECTIONS */
.section {
    padding: 3rem 0; /* reduced global vertical spacing between sections */
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem; /* tightened header spacing */
}

.section-header h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--text);
}

.section-header p {
    color: var(--text-light);
    font-size: clamp(1rem, 2vw + 0.5rem, 1.125rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.bg-light {
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

/* DRIVER */
.driver-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 0;
}

.driver-image {
    position: relative;
}

.driver-image img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
}

.driver-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 1.25rem 1.75rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.driver-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.driver-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
}

.driver-info .sub-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* Ensure driver info h2 fits in one line */
.driver-info h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

/* Ensure driver info column stacks and action buttons are centered */
.driver-info {
    display: flex;
    flex-direction: column;
}

.driver-info .mt-4 {
    display: flex;
    justify-content: center; /* center the action button in this column */
    width: 100%;
}

.lead {
    font-size: clamp(1.125rem, 2.5vw + 0.5rem, 1.25rem);
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-left: clamp(1rem, 2vw, 1.5rem);
    border-left: 4px solid var(--accent);
    line-height: 1.8;
}

.driver-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-item i {
    color: var(--primary);
    background: var(--secondary);
    padding: 1rem;
    border-radius: 1rem;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-light) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-card:hover .icon-box {
    background: var(--white);
    color: var(--secondary-blue);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover h3,
.service-card:hover p {
    color: var(--white);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-light) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.4s;
    font-size: clamp(1.125rem, 2.5vw + 0.5rem, 1.5rem);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    transition: color 0.4s;
    font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1rem);
}

/* Mobile: make icon and title align horizontally to reduce empty space */
@media (max-width: 768px) {
    .service-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
    }

    .service-card .icon-box {
        margin-bottom: 0;
        width: 56px;
        height: 56px;
    }

    .service-card h3 {
        margin-bottom: 0;
        font-size: 1.05rem;
    }

    .service-card p {
        margin-top: 0.5rem;
        font-size: 0.95rem;
        flex-basis: 100%; /* force paragraph to a new line so title sits next to icon */
    }
}

/* VEHICLE */
.vehicle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Vehicle car deck / baraja styles */
.vehicle-column { display: flex; flex-direction: column; gap: 1rem; }
.vehicle-carousel { margin-top: 1rem; }
.card-deck {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    perspective: 1200px;
}
/* Taxi format: 1:1 (square) */
.vehicle-taxi .card-deck {
    height: 420px;
}

.vehicle-van .card-deck {
    height: 420px; /* 3:4 ratio with 420px width gives ~560px height */
}
.card-deck .card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* show complete image without cropping or borders */
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
    transform-origin: 50% 50%;
    transition: transform 700ms cubic-bezier(0.2,0.9,0.2,1), opacity 500ms ease;
    cursor: pointer;
    background: transparent;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}
.card-deck .card[aria-hidden="true"] {
    opacity: 1; /* keep fully visible to avoid visual 'borders' */
    pointer-events: none;
}

/* positions for stacked look */
.card-deck .card.stack-0 { transform: translate3d(0,0,0) scale(1); z-index: 40; }
.card-deck .card.stack-1 { transform: translate3d(-12px,12px,-20px) rotate(-2deg) scale(0.98); z-index: 30; }
.card-deck .card.stack-2 { transform: translate3d(-22px,22px,-40px) rotate(-4deg) scale(0.96); z-index: 20; }
.card-deck .card.stack-3 { transform: translate3d(-34px,34px,-60px) rotate(-6deg) scale(0.94); z-index: 10; }
.card-deck .card.move-out-left { transform: translate3d(-120%, -10%, 0) rotate(-20deg) scale(0.9); opacity: 0; }
.card-deck .card.move-in-from-right { transform: translate3d(120%, 10%, 0) rotate(8deg) scale(0.98); opacity: 0; }

/* mobile: keep fixed aspect ratios and reorder using CSS grid */
@media (max-width: 992px) {
    /* Mobile layout: info taxi, images taxi, info van, images van */
    .vehicle-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Place taxi info first */
    .vehicle-taxi-info {
        order: 1;
    }
    
    /* Place taxi images second */
    .vehicle-taxi {
        order: 2;
    }
    
    /* Place van info third */
    .vehicle-van-info {
        order: 3;
    }
    
    /* Place van images fourth */
    .vehicle-van {
        order: 4;
    }
    
    /* Taxi: keep 1:1 square ratio */
    .vehicle-taxi .card-deck {
        height: 420px;
        max-width: 420px;
    }
    
    /* Van: keep 3:4 horizontal ratio */
    .vehicle-van .card-deck {
        height: 420px;
        max-width: 420px;
    }
}

/* Mobile: make card-deck images smaller while keeping 1:1 aspect ratio */
@media (max-width: 768px) {
    .card-deck {
        max-width: 340px; /* smaller square on mobile */
        width: 100%;
        margin: 0 auto;
    }

    .vehicle-taxi .card-deck,
    .vehicle-van .card-deck {
        height: 260px; /* match width for 1:1 */
        max-width: 260px;
    }

    /* Ensure absolute cards still fill the smaller deck */
    .card-deck .card {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.vehicle-image {
    position: relative;
}

.vehicle-image img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.vehicle-image:hover img {
    transform: scale(1.05) rotate(-1deg);
}

.image-decoration {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 1.5rem;
    opacity: 0.15;
    z-index: 1;
}

/* For vehicle image decks we don't want the blue decoration covering the cards */
.vehicle-image .image-decoration {
    display: none !important;
}

/* Make sure card images inside vehicle-image are positioned and visible above any background layers */
.vehicle-image .card-deck { position: relative; width: 100%; /* keep deck height from .card-deck rule (340px / responsive) */ }
/* Ensure card images inside vehicle-image are absolutely positioned and fill the deck
   (this overrides the more generic `.vehicle-image img { position: relative; }` rule) */
.vehicle-image .card-deck .card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(2,6,23,0.35);
    object-fit: contain; /* show full image without cropping */
    background: var(--light-gray);
}

/* Remove focus outline on cards to avoid browser blue ring */
.card:focus { outline: none; }

.vehicle-info .sub-title {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.vehicle-info h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--text);
}

.features-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 500;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.features-list li:hover {
    background: var(--secondary);
    transform: translateX(5px);
}

.features-list li i {
    color: var(--success);
}

/* MAP */
.map-interface {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    min-height: 600px;
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

/* Coveñas card (improved CTA layout) */
.covenas-card {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--white) 100%);
    border-radius: 1rem;
    border: 1px solid var(--secondary-blue);
    box-shadow: var(--shadow-sm);
}

.covenas-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-blue);
}

.covenas-left p { color: var(--text-light); margin-bottom: 0.5rem; }
.covenas-list { margin: 0.5rem 0 0.75rem 0; color: var(--text); }
.covenas-note { font-size: 0.9rem; color: var(--text-light); margin-top: 0.5rem; }

.covenas-cta { display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; justify-content: center; }
.btn-covenas-whatsapp { 
    padding: 0.85rem 1rem; 
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-light) 100%);
    color: var(--white);
}

.btn-covenas-whatsapp:hover {
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}
.btn-covenas-form { 
    padding: 0.6rem 0.9rem;
    background-color: rgba(30, 64, 175, 0.15);
    border: 2px solid var(--secondary-blue);
    color: var(--secondary-blue);
}

.btn-covenas-form:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
}
.covenas-price { display: block; text-align: center; color: var(--text); margin-top: 0.25rem; font-weight: 700; }

/* Smaller screens: stack the Coveñas card */
@media (max-width: 992px) {
    .covenas-card { grid-template-columns: 1fr; padding: 1rem; }
    .covenas-cta { flex-direction: row; gap: 0.75rem; }
    .covenas-price { margin-top: 0; }
}

.map-controls {
    padding: 2rem;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--white) 100%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    appearance: none;
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

select:focus {
    outline: none;
    border-color: var(--primary);
}

.select-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
}

.route-info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
}

.hidden {
    display: none;
}

.route-info-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
}

.info-row i {
    color: var(--primary);
}

.label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
}

.full-width {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

#map {
    width: 100%;
    height: 100%;
}

.map-container {
    position: relative;
    height: 100%;
}

/* QUOTE FORM */
.quote-form-container {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.quote-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.quote-form-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.quote-form-header p {
    color: var(--text-light);
}

.quote-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-blue-light) 100%);
    color: var(--white);
}

.btn-submit:hover {
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    background: transparent;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    animation: pulse-green 2.5s infinite;
}

/* Side dot navigation */
/* side-dots removed */

/* Spacing between carousel and Coveñas card */
.dest-carousel-auto { margin-bottom: 1rem; }
.covenas-card { margin-top: 0.5rem; }

.whatsapp-float svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
}

.whatsapp-float:hover svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* SCROLL REVEAL */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .driver-container,
    .vehicle-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .map-interface {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    #map {
        height: 450px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Top Bar Responsive */
    .top-bar {
        font-size: clamp(0.75rem, 2vw, 0.9rem);
        padding: 0.75rem 0;
        position: relative;
        z-index: 999;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .carousel-container {
        width: 100%;
        text-align: center;
        height: auto;
        min-height: 24px;
    }

    .carousel-track {
        animation: slideUp 12s infinite;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .top-contact {
        font-size: clamp(0.75rem, 2vw, 0.85rem);
    }

    /* Replace desktop carousel with thin horizontal mobile bar */
    .carousel-container { display: none; }
    .topbar-mobile { display: flex; }

    /* Show only the thin topbar's reserve button on mobile */
    .topbar-reserve { display: inline-flex; }

    /* Hide desktop top bar on mobile */
    .top-bar-desktop { display: none; }

    /* Ensure mobile topbar occupies full width and is flush with nav */
    .topbar-mobile {
        width: 100%;
        left: 0;
        right: 0;
        margin: 0;
        z-index: 1001;
    }

    /* Navbar */
    .navbar {
        z-index: 1001;
    }

    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        z-index: 1002;
        position: relative;
        padding: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 1.5rem;
        z-index: 1000;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: clamp(1rem, 3vw, 1.125rem);
        padding: 0.75rem 0;
        width: 100%;
        text-align: center;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: clamp(0.9375rem, 2.5vw, 1rem);
    }

    .hidden-mobile {
        display: none !important;
    }

    /* Hero Responsive */
    .hero {
        min-height: 60vh;
        padding: 2.5rem 0 1.5rem;
        margin-top: 0;
    }

    .hero-slide { background-position: center top; }

    /* Hero heading reduced ~20% on mobile screens */
    .hero-content h1 { font-size: clamp(1rem, 4vw, 1.28rem); text-align: center; }
    .hero-content { text-align: center; padding: 1rem; }
    .sticker-left, .sticker-right { display: none; }

    .hero-content {
        /* keep vertical padding but add horizontal padding so hero has side margins on mobile */
        padding: 1.5rem 1rem 2rem;
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(1.225rem, 4.2vw, 1.75rem);
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: clamp(0.7rem, 2.1vw, 0.7875rem);
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    /* Center hero text and buttons on mobile so headings, paragraph and CTAs align visually */
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1,
    .hero p {
        text-align: center;
    }

    /* Make hero buttons responsive: keep them compact and allow them to sit side-by-side when space permits */
    .hero-btns {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .hero-btns .btn {
        /* Make hero CTAs size to their content on small screens and reduce lateral padding */
        flex: 0 0 auto;
        min-width: 0;
        max-width: 260px;
        padding: 0.6rem 0.9rem;
        font-size: clamp(0.9rem, 3vw, 1rem);
        justify-content: center;
    }

    .driver-image img {
        max-width: 280px;
    }

    .driver-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem 1.5rem;
    }

    .driver-badge .years {
        font-size: 2rem;
    }

    .driver-badge .text {
        font-size: 0.75rem;
    }

    .driver-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .quote-form-container {
        padding: 2rem 1rem;
    }

    .quote-form-header h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .quote-form-header p {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }

    .form-group label {
        font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: clamp(0.9375rem, 2.5vw, 1rem);
        padding: 0.875rem 1rem;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-float svg {
        width: 100%;
        height: 100%;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .section-header p {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    p {
        font-size: clamp(0.9375rem, 2.5vw, 1rem);
    }

    .lead {
        font-size: clamp(1.125rem, 3vw, 1.25rem);
    }

    .sub-title {
        font-size: clamp(0.75rem, 2vw, 0.875rem);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0 1.5rem;
        min-height: 60vh;
    }

    .hero-content {
        padding: 1rem 0 1.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .quote-form-container {
        padding: 1.5rem 1rem;
    }

    .map-controls {
        padding: 1.5rem 1rem;
    }

    .route-info-card {
        padding: 1.25rem;
    }

    .driver-badge {
        padding: 0.875rem 1.25rem;
        bottom: 0.5rem;
        right: 0.5rem;
    }
}
