/* ========================================
   VARIABLES Y COLORES CORPORATIVOS
   ======================================== */

:root {
    /* Paleta estilo DriveX (tema oscuro + acento naranja) */
    --accent: #F5A623;
    --accent-dark: #d98e12;
    --primary-blue: #F5A623;   /* se mantiene el nombre; ahora es el acento */
    --dark-blue: #d98e12;
    --page-bg: #0f1012;
    --section-bg: #17181c;
    --card-bg: #1c1e23;
    --card-bg-2: #23262c;
    --light-bg: #17181c;
    --text-dark: #F4F5F7;      /* texto principal (claro sobre oscuro) */
    --text-light: #FFFFFF;
    --text-muted: #aeb4bf;
    --border-color: #2e313a;
    --scroll-behavior: smooth;
}

/* ========================================
   RESET Y CONFIGURACIÓN BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--page-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
}

/* ========================================
   TEMA OSCURO
   ======================================== */

.dark-theme {
    background: linear-gradient(135deg, var(--background) 0%, #1a2a3a 50%, var(--background) 100%);
    min-height: 100vh;
}

.bg-dark-primary {
    background-color: var(--primary-dark) !important;
}

.bg-dark-secondary {
    background-color: #232f3e !important;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light) !important;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 0.8;
}

.navbar-toggler {
    border-color: var(--text-light);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 82, 204, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
}

.hero-box {
    background: rgba(61, 122, 177, 0.85);
    padding: 2.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-box h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hero-box p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.search-input::placeholder {
    color: #999;
}

.btn-hero {
    background-color: #5B9BD5;
    color: var(--text-light);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-hero:hover {
    background-color: var(--dark-blue);
    color: var(--text-light);
}

/* ========================================
   SECCIÓN RESERVA
   ======================================== */

.reservation-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 3rem 0;
}

.reservation-section h2 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.reservation-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.reservation-group {
    display: flex;
    flex-direction: column;
}

.reservation-group label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.reservation-group input,
.reservation-group select {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #E0E0E0;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.reservation-group input:focus,
.reservation-group select:focus {
    outline: none;
    border-color: var(--text-light);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.warning-message {
    background-color: #FF6B6B;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.btn-continue {
    background-color: #7BA3D0;
    color: var(--text-light);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background-color 0.3s ease;
}

.btn-continue:hover {
    background-color: #5B8AB5;
}

/* ========================================
   TIPOGRAFÍA Y TEXTOS
   ======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
}

/* ========================================
   TARJETAS
   ======================================== */

.card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   BOTONES
   ======================================== */

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}

/* ========================================
   FORMULARIOS
   ======================================== */

.form-control,
.form-select {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #FFFFFF;
    border-color: var(--primary-blue);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.25);
}

label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ========================================
   GRID Y LAYOUT
   ======================================== */

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ========================================
   SECCIONES
   ======================================== */

section {
    padding: 4rem 0;
}

.section-padding {
    padding: 3rem 2rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #F5F7FA;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-box {
        padding: 2rem;
    }

    .hero-box h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 400px;
    }

    .hero-box {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .hero-box h1 {
        font-size: 1.25rem;
    }

    .reservation-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-primary {
    color: var(--primary-blue);
}

.shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========================================
   SUCURSAL
   ======================================== */

.branch-card {
    max-width: 380px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.branch-card:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); }

.branch-img { display: block; height: 176px; overflow: hidden; }
.branch-img img { width: 100%; height: 100%; object-fit: cover; }

.branch-body { padding: 1.1rem 1.25rem 1.35rem; }
.branch-body h5 { color: var(--primary-blue); font-weight: 700; margin-bottom: 0.35rem; }
.branch-body p { color: var(--text-muted); margin-bottom: 0.4rem; }
.branch-body a { color: var(--text-dark); font-weight: 700; text-decoration: none; }
.branch-body a:hover { color: var(--primary-blue); }

/* ========================================
   TARJETA "EMPIEZA TU RESERVA"
   ======================================== */

.start-reserve-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 620px;
    margin: -35px auto 0;
    background: #fff;
    border: 1px solid #dbe4f3;
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.start-reserve-card:hover { border-color: var(--primary-blue); transform: translateY(-2px); }

.start-reserve-card .src-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.start-reserve-card .src-text { flex-grow: 1; }
.start-reserve-card .src-text strong { display: block; color: var(--text-dark); }
.start-reserve-card .src-text small { color: var(--text-muted); }
.start-reserve-card .src-arrow { color: var(--primary-blue); }

/* ========================================
   BOTONES FLOTANTES (WhatsApp / Instagram)
   ======================================== */

.floating-widgets {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fw-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.fw-btn:hover { transform: scale(1.1); color: #fff; }
.fw-whatsapp { background: #25D366; }
.fw-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ========================================
   MODAL DE RESERVA
   ======================================== */

.reserve-modal { border-radius: 16px; }
.reserve-modal .modal-body { padding: 1rem 1.5rem 1.75rem; }
.reserve-modal .form-label { font-weight: 600; }

.reserve-warning {
    background: #FDECEC;
    color: #C0392B;
    font-weight: 600;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ========================================
   FLUJO DE RESERVA
   ======================================== */

.booking-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.bstep {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.bstep strong { display: block; color: var(--text-dark); }
.bstep small { font-size: 0.8rem; }

.bstep-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #9DBBF5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.bstep.active .bstep-num,
.bstep.done .bstep-num { background: var(--primary-blue); }
.bstep.active strong { color: var(--primary-blue); }

.booking-sidebar { position: sticky; top: 1rem; }

[hidden] { display: none !important; }

.booking-option {
    display: grid;
    grid-template-columns: 1fr auto 46px;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.booking-option:last-child { border-bottom: 0; }
.bo-name { font-weight: 600; }
.bo-price { white-space: nowrap; font-weight: 600; }
.booking-option .bo-toggle { display: none; }

.bo-switch {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #cfd6e0;
    position: relative;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.bo-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.bo-toggle:checked ~ .bo-switch { background: var(--primary-blue); }
.bo-toggle:checked ~ .bo-switch::after { transform: translateX(20px); }

.pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pay-method {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.pay-method i { font-size: 1.6rem; color: var(--primary-blue); }
.pay-method input { display: none; }
.pay-method:has(input:checked) { border-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.15); }

@media (max-width: 768px) {
    .booking-steps { grid-template-columns: 1fr; gap: 0.75rem; }
    .booking-sidebar { position: static; }
}

/* ========================================
   FLOTA (estilo tarjetas)
   ======================================== */

.fleet-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.fleet-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fleet-select {
    appearance: none;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 2rem 0.55rem 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
}

.fleet-count {
    margin: 0;
    color: var(--text-muted);
}

.fleet-count strong {
    color: var(--text-dark);
    font-weight: 700;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.fleet-grid--favorites {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    margin: 0 auto;
}

.fleet-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fleet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

.fleet-card-title {
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.fleet-card-title span {
    display: inline-block;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.fleet-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #E6F7EC;
    color: #1E7E44;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

.fleet-badge.unavailable {
    background: #FDECEC;
    color: #C0392B;
}

.fleet-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    min-height: 150px;
}

.fleet-img img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
}

.fleet-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem 0.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.fleet-specs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.fleet-specs li i {
    font-size: 1rem;
    color: var(--primary-blue);
}

.fleet-price {
    text-align: center;
    margin: 1rem 0;
}

.fleet-price strong {
    display: block;
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 800;
}

.fleet-price small {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: 0.25rem;
}

.fleet-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.fleet-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
}

@media (max-width: 1200px) {
    .fleet-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .fleet-grid,
    .fleet-grid--favorites {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .fleet-grid,
    .fleet-grid--favorites {
        grid-template-columns: 1fr;
    }
    .fleet-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   ¿POR QUÉ PACIFIC?
   ======================================== */

.why-section {
    background-color: #0B0B45;
    color: var(--text-light);
    padding: 60px 0;
}

.why-title {
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1.5rem;
}

.why-card i {
    font-size: 1.75rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.why-card h5 {
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.why-tagline {
    text-align: center;
    margin: 2.5rem 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.why-tagline span {
    color: #F5A623;
    font-weight: 600;
}

/* ========================================
   FAQ
   ======================================== */

.faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.section-title.text-start {
    text-align: left;
}

.faq-contact {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-contact a {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-contact a:hover {
    border-color: var(--primary-blue);
    background: var(--light-bg);
}

.faq-section .accordion-button {
    font-weight: 600;
    color: var(--dark-blue);
    border-left: 3px solid var(--primary-blue);
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--light-bg);
    color: var(--dark-blue);
    box-shadow: none;
}

@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   TEMA "DRIVEX" — OSCURO + ACENTO NARANJA
   (solo estilos: no cambia estructura ni el menú)
   ======================================================================== */

::-webkit-scrollbar-track { background: var(--section-bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* Fondos de sección: vence a los style="background-color" en línea */
section[style*="background"] { background-color: var(--page-bg) !important; }
section[style*="#F5F7FA"] { background-color: var(--section-bg) !important; }

p { color: var(--text-muted); }

/* El contenido nunca debe quedar invisible si AOS no dispara */
[data-aos] { opacity: 1 !important; transform: none !important; }

/* Texto de Bootstrap sobre fondo oscuro */
.text-muted { color: var(--text-muted) !important; }
.card, .modal-content, .booking-sidebar, .booking-panel {
    color: var(--text-dark);
}
.card .text-muted, .modal-content .text-muted { color: var(--text-muted) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-success { color: #37d67a !important; }
hr { border-color: var(--border-color); opacity: 1; }

/* --- Navbar --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: rgba(11, 12, 14, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease, padding 0.3s ease;
}

/* Al hacer scroll (clase añadida por main.js) */
.navbar.scrolled {
    background-color: #0b0c0e !important;
    border-bottom-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.navbar.scrolled .navbar-brand img { height: 34px; transition: height 0.3s ease; }
.navbar-brand img { transition: height 0.3s ease; }

.navbar.scrolled .navbar-nav .nav-link:hover { color: var(--accent) !important; opacity: 1; }

.lang-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.lang-link.active .lang-flag { box-shadow: 0 0 0 1px var(--accent); }

/* --- Títulos de sección --- */
.section-title { color: var(--text-light); }
.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    margin: 0.9rem auto 0;
}
.section-title.text-start::after { margin-left: 0; }
.section-subtitle { color: var(--text-muted); }

/* --- Botones --- */
.btn-primary,
.btn-hero,
.btn-continue {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #14100a !important;
    border-radius: 999px;
    font-weight: 700;
}
.btn-primary:hover,
.btn-hero:hover,
.btn-continue:hover {
    background-color: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    color: #14100a !important;
}

.btn-outline-primary {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    border-radius: 999px;
    font-weight: 700;
    background: transparent !important;
}
.btn-outline-primary:hover {
    background: var(--accent) !important;
    color: #14100a !important;
}

.text-primary { color: var(--accent) !important; }
.text-warning { color: var(--accent) !important; }

/* --- Tarjetas genéricas (Bootstrap .card) --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    border-radius: 14px;
}
.card:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
.card-title, .card h5, .card h6 { color: var(--text-light); }
.card-text, .card p, .card li, .card small { color: var(--text-muted); }
.card[style*="solid"] { border: 1px solid var(--accent) !important; }

/* --- Hero --- */
.hero-section {
    min-height: 620px;
    padding: 0 6%;
    justify-content: flex-start;
}
.hero-section::before {
    background: linear-gradient(90deg, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.55) 60%, rgba(10,11,13,0.25) 100%);
}
.hero-content { max-width: 720px; text-align: left; width: 100%; }
.hero-box {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
}
.hero-box h1 { font-size: 3rem; line-height: 1.15; }
.hero-box p { color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.search-input {
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 999px;
}
.search-input::placeholder { color: rgba(255,255,255,0.6); }
.btn-hero { width: auto; padding: 0.8rem 2.4rem; }

/* --- Sección "Empieza tu reserva" (barra tipo buscador DriveX) --- */
.reservation-section {
    background: transparent;
    padding: 2.5rem 0 0.5rem;
    position: relative;
    z-index: 5;
    margin-top: -46px;
}
.start-reserve-card {
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.start-reserve-card:hover { border-color: var(--accent); }
.start-reserve-card .src-icon { background: var(--accent); color: #14100a; }
.start-reserve-card .src-text strong { color: var(--text-light); }
.start-reserve-card .src-text small { color: var(--text-muted); }
.start-reserve-card .src-arrow { color: var(--accent); }

/* --- Flota --- */
.fleet-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.fleet-card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.fleet-card-title { color: var(--text-light); }
.fleet-img {
    background: #fff;
    border-radius: 10px;
}
.fleet-specs { border-color: var(--border-color); }
.fleet-specs li { color: var(--text-muted); }
.fleet-specs li i { color: var(--accent); }
.fleet-price strong { color: var(--accent); }
.fleet-badge { background: rgba(37, 211, 102, 0.14); color: #37d67a; }
.fleet-badge.unavailable { background: rgba(224, 49, 49, 0.15); color: #ff6b6b; }
.fleet-select {
    background-color: var(--card-bg-2);
    border-color: var(--border-color);
    color: var(--text-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239aa0ab' viewBox='0 0 16 16'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E");
}
.fleet-count, .fleet-count strong, .fleet-empty { color: var(--text-muted); }
.fleet-count strong { color: var(--text-light); }

/* --- ¿Por qué? --- */
.why-section { background-color: #0b0c0e; }
.why-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.why-card i { color: var(--accent); }
.why-tagline span { color: var(--accent); }

/* --- FAQ --- */
.faq-section { background-color: var(--page-bg); }
.faq-contact a {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-dark);
}
.faq-contact a:hover { border-color: var(--accent); background: var(--card-bg-2); }
.accordion { --bs-accordion-bg: transparent; }
.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 0.6rem;
    border-radius: 10px;
    overflow: hidden;
}
.accordion-button {
    background: var(--card-bg) !important;
    color: var(--text-light) !important;
    border-left: 3px solid var(--accent);
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) { background: var(--card-bg-2) !important; color: var(--accent) !important; }
.accordion-button::after { filter: invert(1) grayscale(1) brightness(1.6); }
.accordion-body { background: var(--card-bg); color: var(--text-muted); }

/* --- Sucursal --- */
.branch-card { background: var(--card-bg); border-color: var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.branch-body h5 { color: var(--accent); }
.branch-body p { color: var(--text-muted); }
.branch-body a { color: var(--text-light); }
.branch-body a:hover { color: var(--accent); }

/* --- Footer --- */
.footer { background-color: #0b0c0e; border-top: 1px solid var(--border-color); }
.footer h5 { color: var(--text-light); }
.footer-link:hover { color: var(--accent); }
.footer .text-primary { color: var(--accent) !important; }
.footer-bottom { border-color: var(--border-color); color: var(--text-muted); }

/* --- Formularios --- */
.form-control, .form-select {
    background-color: var(--card-bg-2);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}
.form-control::placeholder { color: #6b7280; }
.form-control:focus, .form-select:focus {
    background-color: var(--card-bg-2);
    border-color: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 0 0 0.2rem rgba(245, 166, 35, 0.25);
}
label, .form-label { color: var(--text-dark); }

/* --- Modal de reserva --- */
.modal-content, .reserve-modal {
    background-color: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}
.reserve-modal .modal-title { color: var(--text-light); }
.reserve-modal .btn-close { filter: invert(1) grayscale(1) brightness(1.8); }
.reserve-warning { background: rgba(224, 49, 49, 0.15); color: #ff6b6b; }

/* --- Flujo de reserva --- */
.booking-steps { background: var(--card-bg); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.bstep { color: var(--text-muted); }
.bstep strong { color: var(--text-light); }
.bstep-num { background: #3a3d45; }
.bstep.active .bstep-num, .bstep.done .bstep-num { background: var(--accent); color: #14100a; }
.bstep.active strong { color: var(--accent); }
.booking-option { border-color: var(--border-color); }
.bo-name { color: var(--text-light); }
.bo-price { color: var(--text-muted); }
.bo-switch { background: #3a3d45; }
.bo-toggle:checked ~ .bo-switch { background: var(--accent); }
.pay-method { border: 1px solid var(--border-color); color: var(--text-light); background: var(--card-bg-2); }
.pay-method i { color: var(--accent); }
.pay-method:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.25); }
#summaryLines .fw-bold { color: var(--text-light); }

/* --- Info / cards con iconos --- */
.fa-3x.text-primary { color: var(--accent) !important; }

/* ========================================================================
   MENSAJE ENGANCHADOR (toast)
   ======================================================================== */

.hook-toast {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1065;
    width: min(340px, calc(100vw - 40px));
    display: flex;
    gap: 0.85rem;
    background-color: #202329 !important;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 1rem 1.1rem 1rem 1rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    transform: translateY(160%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
    pointer-events: none;
}

.hook-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.hook-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hook-body strong { display: block; color: var(--text-light); font-size: 0.98rem; }
.hook-body p { margin: 0.2rem 0 0.7rem; color: var(--text-muted); font-size: 0.85rem; line-height: 1.35; }
.hook-cta { padding: 0.4rem 1rem; }

.hook-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.hook-close:hover { color: var(--text-light); }

@media (max-width: 768px) {
    .hook-toast {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: 96px;   /* por encima de la barra inferior */
    }
    body.hook-open .floating-widgets { bottom: 260px; }
}

/* ========================================================================
   VERSIÓN MÓVIL — ESTILO APP (barra inferior + tarjetas compactas)
   ======================================================================== */

/* Barra inferior: oculta en escritorio */
.mobile-tabbar { display: none; }

@media (max-width: 768px) {

    /* --- Navbar compacto: logo + idiomas, sin hamburguesa --- */
    .navbar { padding: 0.5rem 0; }
    .navbar .container { align-items: center; }
    .navbar-toggler { display: none !important; }
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
    }
    .navbar-nav {
        flex-direction: row !important;
        align-items: center;
        gap: 0.25rem;
    }
    .navbar-nav .nav-item:nth-child(-n+3) { display: none; }  /* Flota/Sucursales/Planes -> van a la tabbar */
    .navbar-nav .nav-link { padding: 0.35rem 0.4rem; font-size: 0.9rem; }
    .lang-flag { width: 18px; height: 13px; }
    .navbar-brand img { height: 34px; }

    /* --- Tabbar inferior --- */
    body { padding-bottom: 86px; }
    .mobile-tabbar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1060;
        background: #101114;
        border-top: 2px solid var(--accent);
        box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.7);
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        align-items: flex-end;
        min-height: 62px;
    }
    .mtab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        background: none;
        border: 0;
        padding: 4px 2px;
        color: #c7ccd6;
        text-decoration: none;
        font-size: 0.66rem;
        font-weight: 600;
        line-height: 1.1;
        text-align: center;
    }
    .mtab i { font-size: 1.2rem; }
    .mtab.active { color: var(--accent); }

    .mtab-cta { color: var(--text-light); position: relative; }
    .mtab-cta::before {
        content: "";
        position: absolute;
        top: -26px;
        left: 50%;
        transform: translateX(-50%);
        width: 76px;
        height: 76px;
        background: #101114;
        border-radius: 50%;
        border-top: 2px solid var(--accent);
        z-index: -1;
    }
    .mtab-cta-circle {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: var(--accent);
        color: #14100a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35rem;
        box-shadow: 0 6px 18px rgba(245, 166, 35, 0.55);
        margin-top: -22px;
        margin-bottom: 3px;
    }

    /* --- Widgets flotantes por encima de la tabbar --- */
    .floating-widgets { bottom: 90px; right: 14px; }
    .fw-btn { width: 46px; height: 46px; font-size: 1.35rem; }

    /* --- Hero compacto tipo tarjeta --- */
    .hero-section {
        min-height: 340px;
        padding: 0 1.25rem;
        align-items: center;
    }
    .hero-box h1 { font-size: 1.65rem; }
    .hero-box p { font-size: 0.95rem; }
    .search-input { width: 100%; }
    .btn-hero { width: 100%; }

    .reservation-section { margin-top: -28px; padding: 1.5rem 0 0; }
    .start-reserve-card { max-width: none; margin: 0 1rem; }

    /* --- Secciones más juntas --- */
    section[style*="padding: 60px 0"],
    section[style*="padding: 40px 0 70px"] { padding-top: 34px !important; padding-bottom: 34px !important; }
    .section-title { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.9rem; margin-bottom: 1.75rem; }

    /* --- Favoritos: carrusel horizontal estilo app --- */
    .fleet-grid--favorites {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.9rem;
        padding: 0.25rem 1rem 0.75rem;
        margin: 0 -1rem;
        -webkit-overflow-scrolling: touch;
    }
    .fleet-grid--favorites::-webkit-scrollbar { display: none; }
    .fleet-grid--favorites .fleet-card {
        flex: 0 0 78%;
        scroll-snap-align: center;
    }

    /* --- Tarjetas app: bordes más redondeados --- */
    .fleet-card, .card, .branch-card, .booking-steps { border-radius: 16px; }
    .fleet-actions { grid-template-columns: 1fr 1fr; }

    /* --- Flujo de reserva en móvil --- */
    .booking-steps {
        display: flex;
        overflow-x: auto;
        gap: 0.75rem;
        scrollbar-width: none;
    }
    .booking-steps::-webkit-scrollbar { display: none; }
    .bstep { flex: 0 0 auto; }
    .bstep small { display: none; }
    .booking-sidebar { margin-top: 1.5rem; }
    .booking-panel .text-end { text-align: center !important; }
    .booking-panel .text-end .btn,
    .booking-panel .d-flex.justify-content-between .btn { flex: 1; }
    .booking-panel .d-flex.justify-content-between { gap: 0.75rem; }

    /* --- Footer con algo de aire sobre la tabbar --- */
    .footer { padding-bottom: 2rem; }
}

/* Accesos rápidos (solo móvil) — chips bajo el buscador */
.quick-access { display: none; }
@media (max-width: 768px) {
    .quick-access {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
        padding: 1.25rem 1rem 0;
    }
    .qa-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        padding: 0.9rem 0.4rem;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 600;
        text-align: center;
    }
    .qa-item i { font-size: 1.25rem; color: var(--accent); }
}
