:root {
    --azul-primario: #0066FF;
    --azul-oscuro: #0050CC;
    --blanco: #FFFFFF;
    --gris-fondo: #F5F7FB;
    --gris-borde: #E3E8F0;
    --gris-texto: #5B6472;
    --texto-oscuro: #1A2333;
    --sombra: rgba(0, 0, 0, 0.12);
    --fuente: 'Inter', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--fuente);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    background-color: var(--azul-primario);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px var(--sombra);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 50px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    margin-left: 24px;
    font-weight: 600;
    font-family: var(--fuente);
    position: relative;
    padding: 6px 0;
    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.75;
}

/* Subrayado animado para el link activo */
nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--blanco);
    border-radius: 2px;
}

/* Botón de llamada a la acción */
nav a.btn-cta {
    background-color: var(--blanco);
    color: var(--azul-primario);
    padding: 8px 18px;
    border-radius: 6px;
    margin-left: 24px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

nav a.btn-cta:hover {
    background-color: #E6EEFF;
    opacity: 1;
    transform: translateY(-1px);
}

/* Botón hamburguesa (oculto en escritorio) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 26px;
    background-color: var(--blanco);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animación a "X" cuando el menú está abierto */
.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Accesibilidad: foco visible */
nav a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--blanco);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--azul-primario);
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px 20px;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, visibility 0s linear 0.3s;
    }

    nav.is-open {
        max-height: 400px;
        visibility: visible;
        transition: max-height 0.3s ease, visibility 0s linear 0s;
    }

    nav a {
        margin-left: 0;
        padding: 12px 0;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    nav a.btn-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
    }

    nav a.active::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* ===== Flota de vehículos ===== */

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

@media (max-width: 480px) {
    .container,
    .container-wide {
        padding-left: 16px;
        padding-right: 16px;
    }

    .container-wide {
        padding-top: 40px;
        padding-bottom: 50px;
    }
}

.fleet {
    background-color: var(--gris-fondo);
}

.fleet-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 32px;
}

.eyebrow {
    display: inline-block;
    color: var(--azul-primario);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.fleet-header h2 {
    color: var(--texto-oscuro);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 10px;
}

#flota,
#contacto,
.filter-btn {
    scroll-margin-top: 90px;
}

.fleet-sub {
    color: var(--gris-texto);
    font-size: 1rem;
}

.fleet-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    color: var(--gris-texto);
    font-family: var(--fuente);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 9px 20px;
    min-height: 44px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--azul-primario);
    color: var(--azul-primario);
}

.filter-btn.is-active {
    background-color: var(--azul-primario);
    border-color: var(--azul-primario);
    color: var(--blanco);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.vehicle-card {
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--sombra);
}

.vehicle-thumb {
    background-color: var(--gris-fondo);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    border-bottom: 1px solid var(--gris-borde);
    overflow: hidden;
    padding: 12px;
}

.vehicle-info {
    padding: 18px 20px 20px;
}

.vehicle-tag {
    display: inline-block;
    background-color: #E6EEFF;
    color: var(--azul-oscuro);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.vehicle-info h3 {
    color: var(--texto-oscuro);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.vehicle-specs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gris-texto);
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.vehicle-specs li {
    background-color: var(--gris-fondo);
    padding: 3px 9px;
    border-radius: 6px;
}

.vehicle-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--gris-borde);
    padding-top: 14px;
}

.price {
    color: var(--gris-texto);
    font-size: 0.85rem;
}

.price strong {
    color: var(--texto-oscuro);
    font-size: 1.15rem;
}

.btn-rent {
    background-color: var(--azul-primario);
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 7px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-rent:hover {
    background-color: var(--azul-oscuro);
}

.vehicle-card.is-hidden,
.vehicle-card.is-limited {
    display: none;
}

.fleet-more-wrap {
    text-align: center;
    margin-top: 8px;
}

.btn-ver-mas {
    background-color: var(--blanco);
    border: 1px solid var(--azul-primario);
    color: var(--azul-primario);
    font-family: var(--fuente);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 28px;
    min-height: 44px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-ver-mas:hover {
    background-color: var(--azul-primario);
    color: var(--blanco);
}

.btn-ver-mas[hidden] {
    display: none;
}

.fleet-empty {
    text-align: center;
    color: var(--gris-texto);
    margin-top: 30px;
}

/* ===== Hero ===== */

.hero {
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-oscuro) 100%);
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    height: 135%;
    width: auto;
    fill: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
}

.eyebrow-light {
    color: #CFE0FF;
}

.hero-copy h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    margin: 10px 0 14px;
}

.hero-sub {
    color: #E2ECFF;
    font-size: 1.05rem;
    max-width: 440px;
    margin-bottom: 22px;
}

.hero-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #EAF1FF;
    font-size: 0.92rem;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-highlights li::before {
    content: "✓";
    font-weight: 700;
    color: var(--blanco);
}

/* Tarjeta de búsqueda */
.hero-search {
    background-color: var(--blanco);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(0, 20, 60, 0.25);
}

.hero-search-title {
    color: var(--texto-oscuro);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.form-field label {
    color: var(--gris-texto);
    font-size: 0.8rem;
    font-weight: 600;
}

.form-field select,
.form-field input {
    font-family: var(--fuente);
    font-size: 0.92rem;
    color: var(--texto-oscuro);
    border: 1px solid var(--gris-borde);
    border-radius: 8px;
    padding: 10px 12px;
    background-color: var(--blanco);
}

.form-field select:focus,
.form-field input:focus {
    outline: 2px solid var(--azul-primario);
    outline-offset: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-search {
    width: 100%;
    background-color: var(--azul-primario);
    color: var(--blanco);
    border: none;
    font-family: var(--fuente);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 6px;
    transition: background-color 0.2s ease;
}

.btn-search:hover {
    background-color: var(--azul-oscuro);
}

@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-watermark {
        height: 85%;
        right: -25px;
    }
}

@media (max-width: 480px) {
    .hero-watermark {
        height: 60%;
        right: -15px;
    }
}

@media (max-width: 480px) {
    .hero-search {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-highlights {
        font-size: 0.88rem;
    }
}

/* ===== Footer ===== */

.site-footer {
    background-color: var(--texto-oscuro);
    color: #C7CEDB;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.footer-brand .logo-footer {
    max-height: 40px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 260px;
}

.footer-col h3 {
    color: var(--blanco);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 0.9rem;
}

.footer-col a {
    color: #C7CEDB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--blanco);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.82rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #C7CEDB;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--blanco);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
        margin: 0 auto;
    }

    .footer-brand .logo-footer {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-col ul {
        align-items: center;
    }
}

/* ===== Modal de reserva ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    position: relative;
    background-color: var(--blanco);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.modal h2 {
    color: var(--texto-oscuro);
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.modal-sub {
    color: var(--gris-texto);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gris-texto);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.vehicle-card:hover .vehicle-img {
    transform: scale(1.06);
}

.modal-close:hover {
    background-color: var(--gris-fondo);
}

.modal .form-field input[readonly] {
    background-color: var(--gris-fondo);
    color: var(--gris-texto);
}

@media (max-width: 480px) {
    .modal {
        padding: 24px 20px;
    }
}

/* Sección del Mapa Centrado, Cuadrado y Fondo Azul Claro */
.map-section {
    padding: 60px 0;
    background-color: #e8f2ff;
}

.map-header {
    text-align: center;
    margin-bottom: 30px;
}

.map-header .eyebrow {
    color: #ffffff;
    background-color: #0066FF;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.map-header h2 {
    color: #1a1a1a;
    margin-top: 5px;
}

.map-wrapper {
    max-width: 900px;
    width: 90%;
    height: 420px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.12);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Botón flotante de WhatsApp ===== */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.whatsapp-float.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:focus-visible {
    outline: 2px solid var(--texto-oscuro);
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }
}

/* Evita que el botón tape el footer en pantallas cortas */
.site-footer {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ===== Requisitos para rentar ===== */

.requisitos {
    background-color: var(--blanco);
}

.requisitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.requisito-card {
    background-color: var(--gris-fondo);
    border: 1px solid var(--gris-borde);
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
}

.requisito-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--azul-primario);
    color: var(--blanco);
    font-weight: 700;
    margin-bottom: 12px;
}

.requisito-card h3 {
    color: var(--texto-oscuro);
    font-size: 1rem;
    margin-bottom: 6px;
}

.requisito-card p {
    color: var(--gris-texto);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== Preguntas frecuentes ===== */

.faq {
    background-color: var(--gris-fondo);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--blanco);
    border: 1px solid var(--gris-borde);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--fuente);
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--texto-oscuro);
    padding: 16px 20px;
    cursor: pointer;
    min-height: 44px;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--azul-primario);
    transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-answer p {
    color: var(--gris-texto);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 20px 18px;
}

/* ===== Lightbox de fotos ===== */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 220;
}

.lightbox-overlay[hidden] {
    display: none;
}

.lightbox-figure {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    background-color: var(--blanco);
    object-fit: contain;
}

.lightbox-figure figcaption {
    color: var(--blanco);
    margin-top: 12px;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: var(--blanco);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}