html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

:root {
    --primary: #59a5b0;
    /* El color Turquesa/Teal del símbolo del logo */
    --secondary: #3a7bd5;
    --accent: #e8e4db;
    /* El color Hueso/Off-white del texto del logo */
    --bg-dark: #0a0b10;
    /* El fondo Navy muy oscuro del logo */
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-white: #e8e4db;
    --text-muted: #8a9ba8;
    --glass: rgba(10, 11, 16, 0.85);
    --glass-border: rgba(89, 165, 176, 0.2);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.2rem 2rem;
    min-height: 100px;
    /* Reducido de 1.5rem a 0.5rem */
    background: rgba(10, 11, 16, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-white);
    margin-top: -5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen; filter: brightness(1.1) contrast(1.5) darken(10%);
    /* Esto hace que el negro desaparezca sobre fondos oscuros */
}

.cta-button {
    background: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--bg-dark) !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(89, 165, 176, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Imagen de e-foil profesional - Reemplazar la URL por tu foto con la neumatica negra */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('portada.jpg') center/cover no-repeat;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.highlight {
    background: linear-gradient(to right, var(--primary), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-outline {
    border: 2px solid white;
}

.btn:hover {
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Services */
.services {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.15);
}

.card-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: 0.5s ease;
}

.service-card:hover .card-img {
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem;
    background: var(--bg-dark);
    /* Ensure text is readable over background */
    z-index: 1;
    position: relative;
}

/* Testimonials */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #111827 100%);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    position: relative;
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.testimonial-card p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user div {
    text-align: left;
}

.user strong {
    display: block;
    font-size: 1.1rem;
}

.user span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.badge.centered {
    display: block;
    width: fit-content;
    margin: 0 auto 1rem;
}

/* How it Works */
.how-it-works {
    padding: 6rem 0;
    background: #0f172a;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Inline Calendar Styles */
.calendar-inline-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    display: none; /* Keep as none initially for JS logic */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.calendar-inline-container.active {
    display: flex;
    opacity: 1;
    max-height: 1000px;
    margin-top: 2rem;
    padding-top: 2rem;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.calendar-inline {
    background: transparent;
    margin-bottom: 1rem;
}

/* Flatpickr Customization to match Brand */
.flatpickr-calendar.inline {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
}

.flatpickr-day.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-months .flatpickr-month, 
.flatpickr-current-month, 
.flatpickr-weekday {
    color: #fff !important;
    fill: #fff !important;
    font-family: var(--font-main) !important;
}

.flatpickr-day {
    color: #cbd5e1 !important;
    border-radius: 8px !important;
}

.flatpickr-day:hover {
    background: rgba(89, 165, 176, 0.2) !important;
}

.flatpickr-time input {
    color: #fff !important;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-card ul {
    margin: 2rem 0;
    text-align: left;
}

.price-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.price-card svg {
    color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Fleet */
.fleet {
    padding: 8rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1544211153-6a3f4e3c98ba?auto=format&fit=crop&q=80&w=2000') center/cover;
}

.fleet-content {
    max-width: 600px;
    text-align: left;
}

.fleet-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.fleet-icons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.f-icon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.f-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.f-icon span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Adjust Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.about h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.about-visual {
    flex: 1;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1510414842594-a61c69b5ae57?auto=format&fit=crop&q=80&w=2070') center/cover;
    border-radius: 30px;
    position: relative;
}

.glass-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: #000000;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.footer-grid h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 2000; /* Ensure icon is above menu */
        position: relative;
    }

    .menu-toggle i {
        color: var(--primary);
        width: 32px;
        height: 32px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(15px);
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 1000;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: inline-block;
        padding: 0.5rem 0;
    }

    .lang-switcher {
        margin-top: 1rem;
        justify-content: center;
        gap: 1.5rem;
    }

    .lang-btn {
        font-size: 2rem;
    }

    .lang-btn img {
        width: 36px !important;
        height: 24px !important;
    }

    .split-layout {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-visual {
        height: 300px;
        width: 100%;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #20ba5a;
}


/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.2rem;
    border-radius: 5px;
    transition: 0.3s;
    opacity: 0.5;
    filter: grayscale(100%);
}

.lang-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* SVG Flag adjustments */
.lang-btn img {
    border-radius: 2px;
    vertical-align: middle;
}
/* Payment Overlay */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 16, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.payment-overlay.active {
    opacity: 1;
}

.payment-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lock-icon {
    width: 80px;
    height: 80px;
    background: rgba(89, 165, 176, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
}

.lock-icon svg {
    width: 40px;
    height: 40px;
}

.payment-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.payment-content .small {
    margin-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.payment-loader {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.payment-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--primary);
    animation: loaderMove 2s infinite ease-in-out;
}

@keyframes loaderMove {
    0% { left: -50%; }
    100% { left: 100%; }
}

.pricing {
    background: linear-gradient(to bottom, #0a0b10, #000);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    align-items: start;
}

.price-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    scroll-margin-top: 150px; /* Offset for fixed header */
}

.price-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.price-card.featured {
    background: rgba(89, 165, 176, 0.1);
    border-color: var(--primary);
    position: relative;
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.price-card ul {
    margin-bottom: 3rem;
    text-align: left;
    flex-grow: 1;
}

.price-card li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.price-card li i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.full-width {
    width: 100%;
}

@media (max-width: 968px) {
    /* MOBILE-FIRST OVERRIDES - FORCE STACKING */
    
    /* 1. Services Section */
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .service-card {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 0 2rem 0 !important;
    }

    /* 2. Pricing Section */
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .price-card {
        width: 100% !important;
        margin: 0 0 2rem 0 !important;
    }

    .price-card.featured {
        transform: scale(1) !important;
        margin-top: 2rem !important;
    }

    /* 3. Hero Section */
    .hero-btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 2rem auto 0 !important;
    }

    .hero-btns .btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
    }

    /* 4. Layout & Overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100vw !important;
        position: relative !important;
    }

    .container {
        padding: 0 1.5rem !important;
        max-width: 100% !important;
    }

    /* 5. Typography Scaling */
    .hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .section-title {
        font-size: 2rem !important;
        margin-bottom: 3rem !important;
    }
}

/* Social Links Footer */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
    border-color: var(--primary);
}
