/**
 * Farray Motos Landing — CSS
 * Namespace: fml-*
 * Basado visualmente en Farray Ocasión (page 232)
 * Tokens XD: mismos que landing-nissan.css
 */

/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
    --fml-red:        #E5544E;
    --fml-navy:       #183347;
    --fml-blue-deep:  #204F72;
    --fml-blue-mid:   #247DBF;
    --fml-blue-dark:  #004262;
    --fml-blue-wash:  #E9F0FA;
    --fml-grey-bg:    #EFF2F7;
    --fml-white:      #FFFFFF;
    --fml-font:       'Montserrat', sans-serif;
}

/* Guard móvil: evita scroll lateral por pequeños desbordes del header Oxygen. */
@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
    }

    #header-container,
    #header-container .ct-section-inner-wrap,
    #top-menu-col-container,
    #logo-container-parent-div {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* ── RESET SECCIONES ─────────────────────────────────────────────────────── */
.fml-section {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--fml-font);
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.fml-hero {
    position: relative;
    padding: 0;
    margin: 0;
}
.fml-hero-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: fill;
}
.fml-hero-subfeatures {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--fml-navy);
    width: 100%;
    padding: 0;
    min-height: 40px;
}
.fml-subfeature {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 10px 16px;
    gap: 8px;
}
.fml-subfeature-icon {
    color: var(--fml-red);
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.fml-subfeature-text {
    color: var(--fml-white);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--fml-font);
    white-space: nowrap;
}

/* ── BUSCADOR ────────────────────────────────────────────────────────────── */
.fml-buscador {
    background-size: cover;
    background-position: center;
    padding: 40px 5%;
}
.fml-search-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    width: 90%;
}
.fml-search-section {
    background: var(--fml-red);
    padding: 24px;
    border-radius: 8px;
    color: var(--fml-white);
    box-sizing: border-box;
}

/* Tabs */
.fml-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}
.fml-tabs button {
    background: transparent;
    color: var(--fml-white);
    border: none;
    padding: 8px 16px;
    font-size: 15px;
    font-family: var(--fml-font);
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: background .2s;
}
.fml-tabs button:hover,
.fml-tabs button.active {
    background: rgba(255,255,255,0.3);
}

/* Barra filtros */
.fml-filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.fml-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.fml-filter-btn {
    background: var(--fml-white);
    color: var(--fml-navy);
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--fml-font);
    transition: background .2s, color .2s;
}
.fml-filter-btn:hover,
.fml-filter-btn.active {
    background: var(--fml-navy);
    color: var(--fml-white);
}

/* Slider dual */
.fml-filter-slider {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fml-filter-slider label {
    font-size: 14px;
    white-space: nowrap;
    color: var(--fml-white);
    font-family: var(--fml-font);
}
.fml-dual-range {
    position: relative;
    width: 180px;
    height: 24px;
    margin: 0 4px;
    --pos-min: 0;
    --pos-max: 100;
}
.fml-dual-range::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
}
.fml-dual-range::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 6px;
    background: var(--fml-white);
    border-radius: 3px;
    transform: translateY(-50%);
    pointer-events: none;
    left: calc(var(--pos-min) * 1%);
    right: calc((100 - var(--pos-max)) * 1%);
}
.fml-dual-range input[type=range] {
    -webkit-appearance: none;
    position: absolute;
    top: 0;
    height: 100%;
    background: transparent;
    margin: 0; padding: 0;
    pointer-events: all;
}
.fml-dual-range input.range-min { left: 0; width: calc(100% - 12px); z-index: 100; }
.fml-dual-range input.range-max { right: 0; left: auto; width: calc(100% - 12px); z-index: 100; }
.fml-dual-range input[type=range]::-webkit-slider-runnable-track,
.fml-dual-range input[type=range]::-moz-range-track { background: transparent; height: 6px; }
.fml-dual-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 24px;
    border-radius: 6px;
    background: var(--fml-white);
    border: 2px solid var(--fml-red);
    cursor: pointer;
    transition: border .2s;
}
.fml-dual-range input[type=range]::-moz-range-thumb {
    width: 12px; height: 24px;
    border-radius: 6px;
    background: var(--fml-white);
    border: 2px solid var(--fml-red);
    cursor: pointer;
}
.fml-slider-values {
    font-size: 14px;
    min-width: 60px;
    color: var(--fml-white);
    font-family: var(--fml-font);
}

/* Botón contador */
.fml-count-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--fml-navy);
    color: var(--fml-white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--fml-font);
    transition: background .2s;
    white-space: nowrap;
}
.fml-count-btn:hover { background: rgba(24,51,71,0.8); }
.fml-count-number { font-weight: 700; }

/* Caja opciones */
.fml-options-container {
    background: var(--fml-white);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    border-radius: 8px;
    position: relative;
    min-height: 40px;
}
.fml-options-container:empty { display: none; }
.fml-options-container.loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #ccc;
    border-top: 4px solid var(--fml-navy);
    border-radius: 50%;
    animation: fml-spin .8s linear infinite;
}
@keyframes fml-spin { to { transform: rotate(360deg); } }

.fml-option-item {
    width: 100px;
    text-align: center;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    background: #f5f5f5;
    transition: background .2s;
}
.fml-option-item:hover { background: #e6e6e6; }
.fml-option-item img {
    width: 100%;
    border-radius: 6px;
    opacity: 0.8;
    transition: opacity .2s;
}
.fml-option-item:hover img { opacity: 1; }
.fml-option-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--fml-navy);
    font-family: var(--fml-font);
}
.fml-option-count {
    margin-top: 4px;
    font-size: 12px;
    background: #4B7FA5;
    color: var(--fml-white);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: var(--fml-font);
}
.fml-option-item.selected { background: #4B7FA5 !important; }
.fml-option-item.selected .fml-option-count {
    background: var(--fml-white) !important;
    color: #4B7FA5 !important;
}
.fml-opt-placeholder {
    width: 100%;
    height: 60px;
    background: var(--fml-blue-mid);
    color: var(--fml-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    font-family: var(--fml-font);
}

/* ── STOCK ───────────────────────────────────────────────────────────────── */
.fml-stock {
    background: var(--fml-blue-dark);
    padding: 40px 0 30px;
    text-align: center;
}
.fml-stock-title {
    font-family: var(--fml-font);
    font-weight: 600;
    color: var(--fml-red);
    font-size: 20px;
    margin: 0 auto 8px;
    text-align: center;
}
.fml-inventory-count {
    margin: 0 auto 16px;
    text-align: center;
}
.fml-inventory-number {
    font-size: 3em;
    font-family: var(--fml-font);
    font-weight: 700;
    color: var(--fml-white);
    display: block;
    line-height: 1.2;
}
.fml-inventory-label {
    font-size: 2em;
    font-family: var(--fml-font);
    font-weight: 700;
    color: var(--fml-white);
    display: block;
    margin-top: 0.2em;
    line-height: 1.2;
}

/* Slider marcas */
.fml-model-slider-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding-bottom: 20px;
    max-width: 1600px;
    margin: 0 auto;
}
.fml-model-slider {
    display: flex;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    padding: 50px 2em 1em;
    box-sizing: border-box;
}
.fml-model-slide {
    flex: 0 0 20%;
    box-sizing: border-box;
    margin: 0 0.5%;
    border: 3px solid var(--fml-red);
    border-radius: 30px;
    position: relative;
    background: var(--fml-white);
    box-shadow: 0 0 20px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.3);
    text-align: center;
    padding-top: 0;
}

.fmo-stock .fmo-stock-track .fmo-stock-img {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 65%;
    height: auto;
    text-align: center;
    display: block;
}

.fmo-stock .fmo-stock-track .fmo-stock-img img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    height: auto;
    position: relative;
    top: -3vh;
    object-fit: cover;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.fml-slide-image {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 60%;
    overflow: visible;
}
.fml-slide-image img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: 80px;
    object-fit: contain;
    object-position: center;
}
.fml-slide-content {
    padding: 2em 1em 1em;
}
.fml-slide-count {
    font-size: 3em;
    color: var(--fml-red);
    font-weight: 700;
    font-family: var(--fml-font);
}
.fml-slide-label {
    font-size: 0.9em;
    color: #2F567D;
    font-weight: 400;
    margin-bottom: 0.5em;
    font-family: var(--fml-font);
}
.fml-slide-title {
    font-size: 1em;
    font-weight: 500;
    color: var(--fml-navy);
    margin-bottom: 0.5em;
    font-family: var(--fml-font);
}
.fml-slide-price {
    font-size: 1em;
    font-weight: 600;
    color: var(--fml-navy);
    font-family: var(--fml-font);
}
.fml-from { font-weight: 400; font-size: 0.9em; }

/* Flechas stock */
.fml-model-slider-wrapper .fml-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: var(--fml-white);
    border: none;
    font-size: 2em;
    width: 1em;
    height: 2em;
    line-height: 2em;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}
.fml-model-slider-wrapper .fml-prev { left: 0; margin-top: -39px; }
.fml-model-slider-wrapper .fml-next { right: 0; margin-top: -39px; }

/* Paginación stock */
.fml-model-slider-wrapper .fml-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--fml-white);
    border-radius: 999px;
    padding: 4px 8px;
    margin-top: 0.5em;
}
.fml-page-dot {
    width: 10px; height: 4px;
    margin: 0 4px;
    border-radius: 2px;
    background: rgba(0,0,50,0.2);
    cursor: pointer;
    transition: background .2s;
}
.fml-page-dot.active { background: #002B5C; }

/* Botón ver todas */
.fml-see-all {
    background: var(--fml-red);
    color: var(--fml-white);
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 50px;
    font-size: 1em;
    font-family: var(--fml-font);
    font-weight: 600;
    cursor: pointer;
    margin-top: .8em;
    margin-bottom: .5em;
    white-space: nowrap;
}

/* ── CATEGORÍAS ──────────────────────────────────────────────────────────── */
.fml-categorias {
    background: #f7f7f7;
    padding: 4em 2em;
}
.fml-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.fml-section-title {
    font-family: var(--fml-font);
    font-weight: 700;
    color: var(--fml-blue-dark);
    margin-bottom: 0.5em;
    font-size: 1.8em;
}
.fml-section-subtitle {
    font-family: var(--fml-font);
    color: #555;
    font-size: 1em;
    margin-bottom: 2em;
}

.fmo-categorias .fmo-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 540px) {
    .fmo-categorias .fmo-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding: 20px 12px !important;
    }

    .fmo-categorias .fmo-cat-card {
        min-height: 220px;
        padding: 16px 8px 18px;
    }

    .fmo-categorias .fmo-cat-card img {
        width: 100%;
        max-width: 135px;
        max-height: 118px;
        object-fit: contain;
    }

    .fmo-categorias .fmo-cat-card h3 {
        font-size: 0.9rem;
        line-height: 1.15;
    }
}

.fml-categories-wrapper {
    background: var(--fml-blue-dark);
    border-radius: 30px;
    padding: 2em;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5em;
    justify-items: center;
}

.fml-category-card {
    position: relative;
    background: var(--fml-white);
    border-radius: 12px;
    padding: 1.2em 0.8em 2.5em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 140px;
    box-sizing: border-box;
    transition: transform .2s;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
}
.fml-category-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.15) contrast(1.15);
}
.fml-category-card img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 0.1em;
}
.fml-cat-icon {
    font-size: 2.5em;
    text-align: center;
    margin: 0 auto 0.2em;
}
.fml-category-card h3 {
    font-family: var(--fml-font);
    font-size: .9em;
    font-weight: 500;
    color: var(--fml-navy);
    margin: 0 0 0.6em;
    text-align: center;
}
.fml-category-count {
    position: absolute;
    bottom: 0.8em;
    left: 50%;
    transform: translateX(-50%);
    background: #4B7FA5;
    color: var(--fml-white);
    padding: 0.2em 0.6em;
    border-radius: 6px;
    font-size: 0.8em;
    font-family: var(--fml-font);
    line-height: 1.2;
    white-space: nowrap;
}

/* ── MARCAS ──────────────────────────────────────────────────────────────── */
.fml-marcas {
    background: var(--fml-white);
    padding: 4em 2em;
}
.fml-brand-wrapper {
    background: var(--fml-blue-dark);
    border-radius: 30px;
    padding: 1.5em 3em 2.5em;
    position: relative;
}
.fml-brand-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
}
.fml-brand-slider-wrapper .fml-slide-nav {
    background: transparent;
    color: var(--fml-white);
    border: 2px solid var(--fml-white);
    border-radius: 50%;
    width: 2em; height: 2em;
    font-size: 1.2em;
    line-height: 1.8em;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background .2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.fml-brand-slider-wrapper .fml-slide-nav:hover { background: rgba(255,255,255,0.2); }
.fml-brand-slider-wrapper .fml-prev { left: -2em; }
.fml-brand-slider-wrapper .fml-next { right: -2em; }

.fml-brand-slider-viewport {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.fml-brand-slider {
    display: flex;
    transform: translateX(0);
    transition: transform .4s ease;
}
.fml-brand-slide {
    flex: 0 0 19%;
    box-sizing: border-box;
    margin: 0 .5%;
    background: var(--fml-white);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 1em .5em;
    height: 140px;
    transition: transform .2s;
}
.fml-brand-slide:hover { transform: translateY(-4px); }
.fml-brand-slide img { width: 60px; height: auto; margin-bottom: .5em; }
.fml-brand-slide h3 {
    font-family: var(--fml-font);
    font-size: 1em;
    color: var(--fml-blue-dark);
    margin: 0;
    text-align: center;
}
.fml-brand-count {
    font-family: var(--fml-font);
    font-size: .8em;
    background: #4B7FA5;
    color: var(--fml-white);
    padding: .3em .6em;
    border-radius: 6px;
    line-height: 1.2;
}
.fml-brand-placeholder {
    width: 60px; height: 60px;
    background: var(--fml-blue-mid);
    color: var(--fml-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: .5em;
    font-family: var(--fml-font);
}

/* Paginación marcas */
.fml-brand-slider-wrapper .fml-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -2em;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fml-white);
    border-radius: 999px;
    padding: 4px 8px;
    box-sizing: border-box;
}

/* ── NOVEDADES ───────────────────────────────────────────────────────────── */
.fml-novedades {
    background-size: cover;
    background-position: center;
    background: linear-gradient(135deg, #002B5C 0%, #82C9E9 100%);
    padding: 4em 2em;
}
.fml-novedades-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 3em;
}
.fml-title-white { color: var(--fml-white) !important; }
.fml-subtitle-white { color: var(--fml-white) !important; }
.fml-highlight {
    background: var(--fml-red);
    color: var(--fml-white);
    padding: 0 0.4em;
    border-radius: 4px;
}
.fml-latest-inner {
    background: rgba(241,245,248,0.65);
    border-radius: 25px;
    padding: 2em 2.5em 3em;
    position: relative;
}
.fml-vehicle-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
}
.fml-vehicle-slider-wrapper .fml-slide-nav {
    background: rgba(255,255,255,0.3);
    color: var(--fml-blue-dark);
    border: none;
    border-radius: 0;
    width: 1.5em; height: 3em;
    font-size: 1.5em;
    line-height: 2.5em;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background .2s;
    position: absolute;
}
.fml-vehicle-slider-wrapper .fml-slide-nav:hover { background: rgba(255,255,255,0.6); }
.fml-vehicle-slider-wrapper .fml-prev { left: -1.62em; }
.fml-vehicle-slider-wrapper .fml-next { right: -1.62em; }

.fml-vehicle-slider-viewport {
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.fml-vehicle-slider {
    display: flex;
    transition: transform .4s ease;
}
.fml-vehicle-slide {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 0 0.5em;
    text-align: center;
    position: relative;
}
.fml-ribbon {
    position: absolute;
    top: 0.8em;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fml-blue-dark);
    color: var(--fml-white);
    padding: 0.2em 0.8em;
    font-size: 0.8em;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 5;
    font-family: var(--fml-font);
    font-weight: 700;
}
.fml-vehicle-thumb {
    background: var(--fml-white);
    padding: 3em 1em 1em;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.fml-vehicle-thumb img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
}
.fml-vehicle-title {
    margin: 1em 0 0.2em;
    font-family: var(--fml-font);
    font-size: 1em;
    color: var(--fml-white);
    text-transform: uppercase;
}
.fml-vehicle-spec {
    font-size: 0.9em;
    color: var(--fml-white);
    margin-bottom: 1em;
    font-family: var(--fml-font);
}
.fml-vehicle-pricing {
    background: rgba(255,255,255,0.2);
    padding: 1em 0;
    color: var(--fml-white);
    margin-bottom: 1em;
}
.fml-price-cash {
    font-size: 1.5em;
    font-weight: 700;
    font-family: var(--fml-font);
}
.fml-price-financed {
    font-size: 1em;
    font-family: var(--fml-font);
}
.fml-details-btn {
    display: inline-block;
    background: var(--fml-red);
    color: var(--fml-white);
    text-decoration: none;
    padding: 0.6em 1.2em;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--fml-font);
    transition: background .2s;
}
.fml-details-btn:hover { background: #C8443A; }

/* Paginación novedades */
.fml-vehicle-slider-wrapper .fml-slider-pagination {
    position: absolute;
    bottom: -2em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5em;
}
.fml-vehicle-slider-wrapper .fml-slider-pagination .fml-page-dot {
    width: 12px; height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s;
}
.fml-vehicle-slider-wrapper .fml-slider-pagination .fml-page-dot.active {
    background: var(--fml-white);
}

/* ── SHARED BUTTONS & LABELS ─────────────────────────────────────────────── */
.fml-btn {
    display: inline-block;
    font-family: var(--fml-font);
    font-weight: 700;
    font-size: 0.9em;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: opacity .2s, background .2s;
    letter-spacing: 0.04em;
}
.fml-btn:hover { opacity: .88; }
.fml-btn-red  { background: var(--fml-red); color: var(--fml-white); }
.fml-btn-white { background: var(--fml-white); color: var(--fml-navy); }
.fml-btn-sm   { font-size: .78em; padding: 8px 18px; }
.fml-section-label {
    font-family: var(--fml-font);
    font-weight: 800;
    font-size: 1.5em;
    color: var(--fml-navy);
    text-align: center;
    letter-spacing: .06em;
    margin-bottom: .4em;
}
.fml-title-white { color: var(--fml-white) !important; }
.fml-subtitle-white { color: rgba(255,255,255,.85) !important; }
.fml-highlight  { color: var(--fml-red); }
.fml-text-red   { color: var(--fml-red); }

/* ── S2 BUSCADOR — nueva caja ─────────────────────────────────────────────── */
.fml-search-box {
    background: var(--fml-white);
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
/* Tabs */
.fml-search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--fml-grey-bg);
}
.fml-search-tabs button {
    background: transparent;
    border: none;
    padding: 10px 22px;
    font-family: var(--fml-font);
    font-weight: 700;
    font-size: .85em;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    letter-spacing: .04em;
}
.fml-search-tabs button.active,
.fml-search-tabs button:hover {
    color: var(--fml-red);
    border-bottom-color: var(--fml-red);
}
/* Filters row */
.fml-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
/* Dropdown */
.fml-dropdown { position: relative; }
.fml-drop-btn {
    background: var(--fml-white);
    border: 1.5px solid #ccd;
    border-radius: 6px;
    padding: 10px 16px;
    font-family: var(--fml-font);
    font-size: .85em;
    font-weight: 600;
    color: var(--fml-navy);
    cursor: pointer;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    transition: border-color .15s, background .15s;
}
.fml-drop-btn.active,
.fml-drop-btn:hover {
    background: var(--fml-red);
    color: var(--fml-white);
    border-color: var(--fml-red);
}
.fml-arrow { font-size: .7em; }
/* Search & Clear buttons */
.fml-search-btn {
    background: var(--fml-navy);
    color: var(--fml-white);
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-family: var(--fml-font);
    font-weight: 700;
    font-size: .85em;
    cursor: pointer;
    margin-left: auto;
    transition: background .15s;
    letter-spacing: .04em;
}
.fml-search-btn:hover { background: var(--fml-blue-deep); }
.fml-count-number { font-weight: 800; }
.fml-clear-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: .8em;
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--fml-font);
    transition: color .15s;
}
.fml-clear-btn:hover { color: var(--fml-red); }
/* Options panel */
.fml-options-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
}
.fml-opt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #dde;
    border-radius: 8px;
    padding: 10px 8px;
    cursor: pointer;
    min-width: 90px;
    max-width: 120px;
    text-align: center;
    transition: border-color .15s, background .15s;
    font-family: var(--fml-font);
}
.fml-opt-item img {
    max-width: 56px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
}
.fml-opt-item.selected {
    border-color: var(--fml-red);
    background: var(--fml-blue-wash);
}
.fml-opt-placeholder {
    width: 56px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fml-grey-bg);
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
    color: var(--fml-blue-dark);
    margin-bottom: 4px;
}
.fml-opt-label {
    font-size: .75em;
    font-weight: 700;
    color: var(--fml-navy);
    margin-bottom: 2px;
}
.fml-opt-count {
    font-size: .7em;
    color: #888;
}
/* Range panels */
.fml-range-panel {
    padding-top: 16px;
    font-family: var(--fml-font);
    width: 100%;
}
.fml-range-panel label {
    display: block;
    font-weight: 700;
    font-size: .85em;
    color: var(--fml-navy);
    margin-bottom: 6px;
}
.fml-dual-range {
    position: relative;
    height: 28px;
    width: 100%;
    max-width: 400px;
}
.fml-dual-range input[type=range] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
}
.fml-dual-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fml-red);
    pointer-events: all;
    cursor: pointer;
    border: 2px solid var(--fml-white);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.fml-range-label {
    display: block;
    font-size: .8em;
    color: var(--fml-navy);
    margin-top: 4px;
    font-weight: 600;
}

/* ── S7 SELECCIONADAS ─────────────────────────────────────────────────────── */
.fml-seleccionadas {
    background: var(--fml-grey-bg);
    padding: 4em 2em;
}
.fml-sel-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2em;
    justify-content: center;
    border-bottom: 2px solid #dde;
}
.fml-sel-tabs button {
    background: transparent;
    border: none;
    padding: 10px 24px;
    font-family: var(--fml-font);
    font-weight: 700;
    font-size: .85em;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    letter-spacing: .04em;
}
.fml-sel-tabs button.active,
.fml-sel-tabs button:hover {
    color: var(--fml-red);
    border-bottom-color: var(--fml-red);
}
.fml-sel-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    max-width: 1200px;
    margin: 0 auto 2em;
}
.fml-sel-grid.active { display: grid; }
.fml-sel-card {
    background: var(--fml-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    font-family: var(--fml-font);
    position: relative;
}
.fml-sel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fml-red);
    color: var(--fml-white);
    font-size: .72em;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: .06em;
    z-index: 2;
}
.fml-sel-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--fml-grey-bg);
}
.fml-sel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fml-sel-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #aaa;
    font-size: .9em;
    min-height: 160px;
}
.fml-card-brand-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
}
.fml-card-brand-name {
    color: var(--fml-white);
    font-size: .75em;
    font-weight: 800;
    letter-spacing: .06em;
}
.fml-card-farray-logo span {
    color: var(--fml-white);
    font-size: .72em;
    font-weight: 700;
    opacity: .85;
}
.fml-sel-name {
    font-size: 1em;
    font-weight: 700;
    color: var(--fml-navy);
    padding: .8em 1em .3em;
    margin: 0;
}
.fml-sel-bar {
    font-size: .78em;
    color: #777;
    padding: 0 1em .6em;
}
.fml-sel-price-row,
.fml-sel-finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5em 1em;
    border-top: 1px solid #eee;
    font-size: .82em;
    font-family: var(--fml-font);
}
.fml-sel-price-row span,
.fml-sel-finance-row span { color: #888; font-size: .9em; }
.fml-sel-price-row strong { color: var(--fml-navy); font-weight: 800; font-size: 1.1em; }
.fml-sel-finance-row strong { color: var(--fml-blue-mid); font-weight: 700; }
.fml-sel-card .fml-btn { margin: 1em; align-self: flex-start; }
.fml-sel-cta-wrap {
    text-align: center;
    padding-top: 1em;
}

/* ── S8 OPCIONES A ELEGIR ────────────────────────────────────────────────── */
.fml-opciones {
    background: var(--fml-white);
    padding: 4em 2em;
}
.fml-opt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2em;
    max-width: 1200px;
    margin: 0 auto;
}
.fml-opt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: var(--fml-white);
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    transition: transform .2s;
}
.fml-opt-card:hover { transform: translateY(-4px); }
.fml-opt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24,51,71,.15) 0%, rgba(24,51,71,.72) 100%);
}
.fml-opt-overlay-red {
    background: linear-gradient(180deg, rgba(229,84,78,.15) 0%, rgba(229,84,78,.72) 100%);
}
.fml-opt-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1.5em 1em 1.8em;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}
.fml-opt-inner h3 {
    font-family: var(--fml-font);
    font-weight: 800;
    font-size: 1.2em;
    color: var(--fml-white);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
    line-height: 1.3;
    margin: 0;
    letter-spacing: .04em;
}

/* ── S12 BENEFICIOS ──────────────────────────────────────────────────────── */
.fml-beneficios {
    background: var(--fml-white);
    padding: 3.5em 2em;
}
.fml-ben-header {
    text-align: center;
    margin-bottom: 2.5em;
}
.fml-ben-title {
    font-family: var(--fml-font);
    font-weight: 800;
    font-size: 1.8em;
    color: var(--fml-navy);
    letter-spacing: .04em;
    margin: 0;
}
.fml-ben-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    max-width: 1100px;
    margin: 0 auto;
}
.fml-ben-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .6em;
    font-family: var(--fml-font);
}
.fml-ben-icon-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--fml-blue-wash);
    flex-shrink: 0;
}
.fml-ben-icon-img { background: transparent; }
.fml-ben-item h3 {
    font-size: 1em;
    font-weight: 700;
    color: var(--fml-navy);
    margin: 0;
    line-height: 1.3;
}
.fml-ben-desc {
    font-size: .88em;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* ── S13 COMPRAMOS TU MOTO ───────────────────────────────────────────────── */
.fml-compramos {
    background: var(--fml-navy);
    color: var(--fml-white);
    font-family: var(--fml-font);
}
.fml-compramos-top {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5em 2em 2em;
}
.fml-compramos-left {
    flex: 1;
    padding-right: 2em;
}
.fml-compramos-left h2 {
    font-size: 2em;
    font-weight: 800;
    color: var(--fml-white);
    line-height: 1.2;
    margin-bottom: .8em;
}
.fml-compramos-divider {
    display: flex;
    align-items: center;
    gap: 1.2em;
}
.fml-compramos-rule {
    flex: 1;
    height: 3px;
    background: var(--fml-red);
    border-radius: 2px;
}
.fml-compramos-logo-wrap {
    flex-shrink: 0;
}
.fml-compramos-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
}
.fml-compramos-right {
    flex: 1;
    text-align: right;
}
.fml-compramos-car {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
}
.fml-compramos-bot {
    text-align: center;
    padding: 2em 2em 4em;
    max-width: 1100px;
    margin: 0 auto;
}
.fml-compramos-bot .fml-section-label {
    color: var(--fml-white);
    margin-bottom: 2em;
}
.fml-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin-bottom: 2.5em;
}
.fml-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1em;
}
.fml-step-num {
    position: relative;
    display: inline-block;
    width: 72px;
    height: 72px;
    margin-bottom: .8em;
}
.fml-step-num-base {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fml-font);
    font-weight: 900;
    font-size: 2.4em;
    color: var(--fml-red);
    z-index: 1;
}
.fml-step-num-vaho {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fml-font);
    font-weight: 900;
    font-size: 3.2em;
    color: rgba(255,255,255,.06);
    z-index: 0;
    transform: translate(4px, 4px);
}
.fml-step-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--fml-white);
    margin: 0 0 .5em;
}
.fml-step-rule {
    width: 40px;
    height: 3px;
    background: var(--fml-red);
    border-radius: 2px;
    margin: 0 auto .8em;
}
.fml-step p {
    font-size: .88em;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
    margin: 0;
}

/* ── S14 TESTIMONIOS ─────────────────────────────────────────────────────── */
.fml-testimonios {
    background: var(--fml-white);
    padding: 4em 2em;
}
.fml-reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1em;
    max-width: 1200px;
    margin: 0 auto 2.5em;
}
.fml-carousel-btn {
    background: var(--fml-navy);
    color: var(--fml-white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    line-height: 1;
}
.fml-carousel-btn:hover { background: var(--fml-red); }
.fml-carousel-viewport {
    flex: 1;
    overflow: hidden;
}
.fml-carousel-track {
    display: flex;
    transition: transform .4s ease;
}
.fml-reviews-track { gap: 1.2em; }
.fml-review-card {
    flex: 0 0 calc(33.333% - .8em);
    background: var(--fml-grey-bg);
    border-radius: 10px;
    padding: 1.6em 1.4em;
    text-align: center;
    font-family: var(--fml-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5em;
}
.fml-review-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: .4em;
    flex-shrink: 0;
}
.fml-review-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fml-review-brand {
    font-size: .7em;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--fml-red);
}
.fml-review-card h4 {
    font-size: 1em;
    font-weight: 700;
    color: var(--fml-navy);
    margin: 0;
}
.fml-review-role {
    font-size: .78em;
    color: #888;
}
.fml-review-stars {
    color: #f5a623;
    font-size: 1.1em;
    letter-spacing: .05em;
}
.fml-review-card p {
    font-size: .88em;
    color: #555;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}
/* Ratings block */
.fml-ratings {
    display: flex;
    gap: 3em;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding: 2em;
    background: var(--fml-grey-bg);
    border-radius: 12px;
    font-family: var(--fml-font);
}
.fml-ratings-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 180px;
    gap: .6em;
}
.fml-rating-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--fml-red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fml-rating-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.fml-rating-big {
    font-size: 2em;
    font-weight: 900;
    color: var(--fml-navy);
}
.fml-rating-sub {
    font-size: .72em;
    color: #888;
}
.fml-ratings-left h3 {
    font-size: .95em;
    font-weight: 700;
    color: var(--fml-navy);
    margin: 0;
}
.fml-ratings-left p {
    font-size: .82em;
    color: #666;
    margin: 0;
    line-height: 1.4;
}
.fml-ratings-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    justify-content: center;
}
.fml-bar-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: .8em;
    font-size: .88em;
    color: var(--fml-navy);
}
.fml-bar-item > span:first-child { font-weight: 600; white-space: nowrap; }
.fml-bar-item > span:last-child  { font-weight: 700; color: var(--fml-red); min-width: 40px; text-align: right; }
.fml-bar-track {
    height: 8px;
    background: #dde;
    border-radius: 4px;
    overflow: hidden;
    min-width: 160px;
}
.fml-bar-fill {
    height: 100%;
    background: var(--fml-red);
    border-radius: 4px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .fml-categories-wrapper { grid-template-columns: repeat(3, 1fr); }
    .fml-brand-slide { flex: 0 0 25%; }
    .fml-vehicle-slide { flex: 0 0 50%; }
    .fml-model-slide { flex: 0 0 33%; }
    .fml-opt-grid { grid-template-columns: repeat(2, 1fr); }
    .fml-sel-grid { grid-template-columns: repeat(2, 1fr); }
    .fml-ben-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .fml-hero-subfeatures { flex-wrap: wrap; }
    .fml-subfeature { flex: 0 0 50%; }
    .fml-categories-wrapper { grid-template-columns: repeat(2, 1fr); gap: 1em; }
    .fml-category-card { max-width: 100%; }
    .fml-brand-slide { flex: 0 0 50%; }
    .fml-vehicle-slide { flex: 0 0 100%; }
    .fml-model-slide { flex: 0 0 50%; }
    .fml-vehicle-slider-wrapper .fml-prev,
    .fml-vehicle-slider-wrapper .fml-next { display: none; }
    .fml-brand-wrapper { padding: 1.5em 1em 2.5em; }
    .fml-brand-slider-wrapper .fml-prev { left: -1em; }
    .fml-brand-slider-wrapper .fml-next { right: -1em; }
    /* S2 buscador */
    .fml-search-box { padding: 18px 16px; }
    .fml-search-tabs button { padding: 8px 12px; font-size: .78em; }
    .fml-drop-btn { min-width: 100px; font-size: .78em; padding: 8px 10px; }
    .fml-search-btn { margin-left: 0; width: 100%; justify-content: center; }
    /* S7 */
    .fml-sel-grid { grid-template-columns: 1fr; }
    /* S8 */
    .fml-opt-grid { grid-template-columns: repeat(2, 1fr); }
    /* S12 */
    .fml-ben-row { grid-template-columns: 1fr 1fr; gap: 1.5em; }
    /* S13 */
    .fml-compramos-top { flex-direction: column; }
    .fml-compramos-left { padding-right: 0; margin-bottom: 1.5em; }
    .fml-steps { grid-template-columns: 1fr; gap: 1.5em; }
    /* S14 */
    .fml-review-card { flex: 0 0 100%; }
    .fml-ratings { flex-direction: column; gap: 1.5em; }
    .fml-bar-track { min-width: 100px; }
}

/* Final mobile overflow clamp for shared Oxygen header. */
@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}
