/*
 * Farray Nissan Landing — v6
 * Tokens exactos del brief XD. Montserrat. Bloques 1-2 únicamente.
 */

/* ── RESET SCOPE ── */
.fm-nissan *, .fm-nissan *::before, .fm-nissan *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

/* Guard móvil: el header Oxygen puede desbordar unos px y generar scroll lateral. */
@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;
    }
}

/* ── TOKENS ── */
.fm-nissan {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;

    --c-blue-light:  #7DBDE3;
    --c-coral:       #FD9B8B;
    --c-teal:        #6BBBB9;
    --c-red-dark:    #B81F18;
    --c-blue-mid:    #247DBF;
    --c-grey-line:   #D0D6E2;
    --c-grey-bg:     #EFF2F7;
    --c-blue-pale:   #BCD9EB;
    --c-red:         #E5544E;
    --c-blue-steel:  #4E84AB;
    --c-blue-deep:   #204F72;
    --c-navy:        #183347;
    --c-white:       #FFFFFF;
    --c-blue-wash:   #E9F0FA;
}

/* ══════════════════════════════════════════
   BLOQUE 1 — HERO
   ══════════════════════════════════════════ */

.fm-hero {
    position: relative;
    min-height: 680px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;   /* copy pegado abajo como en la referencia */
}

/* Overlay: oscuro en la mitad izquierda, transparente en la derecha */
.fm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        95deg,
        rgba(24, 51, 71, 0.72) 0%,
        rgba(24, 51, 71, 0.55) 35%,
        rgba(24, 51, 71, 0.15) 58%,
        transparent 75%
    );
    z-index: 1;
}

.fm-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: flex-end;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 5% 25px 5%;
    min-height: 680px;
}

/* ── Copy izquierda ── */
.fm-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 80px;
    padding-right: 1.5rem;
}

/* "NUEVO NISSAN QASHQAI" — una sola línea, NUEVO normal + NISSAN QASHQAI bold */
.fm-hero-title {
    font-size: clamp(32px, 3.8vw, 52px);
    line-height: 1.05;
    color: var(--c-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
    white-space: nowrap;
}
.fm-hero-title strong {
    font-weight: 800;
}
.fm-hero-title span {
    font-weight: 400;
}

/* "Desafiando lo establecido" — 25px, itálica, blanco */
.fm-hero-tagline {
    font-size: 25px;
    line-height: 45px;
    font-style: italic;
    font-weight: 400;
    color: var(--c-white);
    margin-bottom: 12px;
}

/* Precio: "Desde" + "240 € / mes" */
.fm-hero-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}
.fm-hero-desde {
    font-size: 20px;
    font-weight: 400;
    line-height: 37px;
    color: var(--c-white);
}
.fm-hero-amount {
    font-size: 33px;
    font-weight: 600;
    line-height: 40px;
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 0;
}

/* Financiación — 15px, blanco */
.fm-hero-finance {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
}
.fm-hero-finance span {
    font-size: 15px;
    line-height: 37px;
    font-weight: 400;
    color: var(--c-white);
}
.fm-hero-finance strong {
    font-weight: 600;
}

/* Fila badge + CTA */
.fm-hero-bottom-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Badge "HASTA 10 AÑOS DE GARANTÍA" */
.fm-hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 6px;
    padding: 8px 14px 6px;
    background: rgba(255,255,255,0.06);
    min-width: 80px;
    flex-shrink: 0;
}
.fm-bd-top {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
}
.fm-bd-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--c-white);
    line-height: 1;
}
.fm-bd-bot {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

/* CTA */
.fm-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-red);
    color: var(--c-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(229, 84, 78, 0.45);
    white-space: nowrap;
}
.fm-hero-cta:hover {
    background: var(--c-red-dark);
    transform: translateY(-2px);
}

/* ── Coche derecha ── */
.fm-hero-visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}
.fm-hero-car {
    width: 100%;
    max-width: 780px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35));
}

/* ══════════════════════════════════════════
   BLOQUE 2 — NISSAN DE OCASIÓN
   ══════════════════════════════════════════ */

.fm-occasion { position: relative; }

/* Cabecera azul con skyline parallax */
.fm-occ-head {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 44px 24px 36px;
    background-color: var(--c-blue-deep);
}
/* Capa parallax — imagen de ciudad detrás del overlay */
.fm-occ-head-bg {
    position: absolute;
    inset: -40px 0;
    height: 1000px;
    background-size: cover;
    background-position: center center;
    opacity: 1;
    will-change: transform;
    z-index: 0;
}
/* Overlay azul semitransparente encima de la imagen */
.fm-occ-head-overlay {
    position: absolute;
    inset: 0;
    background: rgba(32, 79, 114, 0.3);
    z-index: 1;
}
/* Contenido encima de todo */
.fm-occ-head-content {
    position: relative;
    z-index: 2;
}
.fm-occ-title {
    font-size: 33px;
    font-weight: 600;
    line-height: 40px;
    color: var(--c-white);
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 8px;
}
/* Sub debe ser ~20% más ancho visualmente que el título → font-size mayor */
.fm-occ-sub {
    font-size: 40px;
    font-weight: 400;
    line-height: 48px;
    color: var(--c-blue-wash);
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Campo rojo */
.fm-occ-field {
    background: var(--c-red);
    padding: 135px 24px 32px;
}

.fm-occ-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
}

/* ── Tarjeta ── */
.fm-card {
    background: var(--c-grey-bg);   /* #EFF2F7 como en el XD */
    border-radius: 16px;
    overflow: visible;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(0,0,0,0.14);
    position: relative;
}
.fm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.20);
}

/* Coche flotando por encima del borde superior de la card.
   Estrategia: .fm-card-visual tiene altura real (120px) con margin-top negativo
   para que el coche suba sobre el fondo rojo. La card tiene overflow:visible. */
.fm-card-visual {
    height: 96px;
    margin-top: -96px;          /* sube el contenedor fuera de la card hacia el rojo */
    position: relative;
    z-index: 3;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.fm-card-visual img {
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.20));
    transition: transform 0.3s;
    transform-origin: center bottom;
}
.fm-card:hover .fm-card-visual img {
    transform: scale(1.04) translateY(-4px);
}

/* Mismo margin-top para todas → altura de card homogénea */
.fm-card--qashqai .fm-card-visual,
.fm-card--juke    .fm-card-visual,
.fm-card--xtrail  .fm-card-visual,
.fm-card--micra   .fm-card-visual { margin-top: 10px; }

/* Ancho y correcciones por modelo — tamaños originales */
.fm-card--qashqai .fm-card-visual img { width: 309px; }
.fm-card--juke    .fm-card-visual img { width: 407px; }
.fm-card--xtrail  .fm-card-visual img { 
    width: 421px;     
    position: relative;
    top: 25px;
}
.fm-card--micra   .fm-card-visual img { 
    width: 380px; 
    position: relative;
    top: 15px;
}

/* Cuerpo */
.fm-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px 24px 0;
    text-align: center;
}

/* Nombre modelo */
.fm-card-name {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* Precio — una línea: "Desde" + "240 € / mes" + ℹ */
.fm-card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.fm-card-desde {
    font-size: 17px;
    font-weight: 400;
    color: var(--c-navy);
    flex-shrink: 0;
}
.fm-card-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--c-navy);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.fm-card-info {
    font-size: 14px;
    color: var(--c-blue-steel);
    flex-shrink: 0;
    align-self: center;
}

/* Financiación */
.fm-card-finance {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 18px;
    text-align: center;
}
.fm-card-finance span {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--c-navy);
}
.fm-card-finance strong {
    font-weight: 700;
    color: var(--c-navy);
}

/* CTA */
.fm-card-btn {
    display: block;
    text-align: center;
    background: var(--c-red);
    color: var(--c-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 10px;
    border-radius: 50px;
    margin: 0 0 0;
    transition: background 0.2s;
}
.fm-card-btn:hover { background: var(--c-red-dark); }

/* Beneficios — 3 columnas */
.fm-card-bens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--c-grey-bg);
    border-radius: 0 0 14px 14px;
    margin-top: 18px;
    overflow: hidden;
    padding-bottom: 25px;
}
.fm-card-ben {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 8px 16px;
    gap: 12px;
    transition: background 0.2s;
}
/* Solo separadores a cada lado de la columna central */
.fm-card-ben:nth-child(2) {
    border-left:  2px solid var(--c-blue-light);
    border-right: 2px solid var(--c-blue-light);
}
.fm-card-ben:hover { background: var(--c-blue-wash); }

/* Col 1: bloque "12 MESES DE GARANTÍA" — CSS puro, sin imagen */
.fm-card-ben-garantia {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--c-blue-steel);
    border-radius: 6px;
    padding: 6px 10px 4px;
    min-width: 52px;
    background: transparent;
}
.fm-card-ben-garantia-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-blue-deep);
    line-height: 1;
}
.fm-card-ben-garantia-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--c-blue-deep);
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

/* Todos los SVG de beneficios — sin recuadro, tamaño uniforme */
.fm-card-ben-svg {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.fm-card-ben span {
    font-size: 10px;
    font-weight: 700;
    color: var(--c-blue-deep);
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════
   BLOQUE 3 — OPCIONES A ELEGIR
   ══════════════════════════════════════════ */

.fm-s2-options {
    background: #f8f8f7;
}

.fm-s2-topbar {
    height: 20px;
    background: var(--c-red);
}

.fm-s2-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}

.fm-s2-head {
    text-align: center;
    margin-bottom: 34px;
}

.fm-s2-title {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--c-red);
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.fm-s2-subtitle {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--c-navy);
}

.fm-s2-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.fm-s2-card {
    position: relative;
    min-height: 595px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--c-white);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-s2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.fm-s2-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(32, 79, 114, 0.52) 0%, rgba(32, 79, 114, 0.66) 100%);
}

.fm-s2-card-inner {
    position: relative;
    z-index: 1;
    min-height: 595px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 86px 36px 24px;
}

.fm-s2-card-title {
    font-size: 33px;
    line-height: 1.05;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 148px;
}

.fm-s2-card-title br {
    content: '';
}

.fm-s2-card-desc {
    margin-top: auto;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 400;
    max-width: 290px;
    margin-bottom: 110px;
}

.fm-s2-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 28px;
    border-radius: 999px;
    background: var(--c-white);
    color: var(--c-red);
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ══════════════════════════════════════════
   BLOQUE 4 — EXPLORA NUESTROS NUEVOS MODELOS
   ══════════════════════════════════════════ */

.fm-s3-models {
    background:
        radial-gradient(circle at 12% 78%, rgba(229, 84, 78, 0.34), rgba(229, 84, 78, 0) 28%),
        linear-gradient(180deg, #526d84 0%, #4c667c 55%, #3f586d 100%);
    padding: 0 0 70px;
}

.fm-s3-shell {
    max-width: 1730px;
    margin: 0 auto;
    padding: 0 40px;
}

.fm-s3-head {
    text-align: center;
    color: var(--c-white);
    padding: 32px 24px 28px;
}

.fm-s3-title {
    font-size: 31px;
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.fm-s3-subtitle {
    font-size: 19px;
    line-height: 1.25;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
}

.fm-s3-tabs {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin: 0 auto 34px;
}

.fm-s3-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
    padding: 12px 18px 14px;
    border-radius: 18px;
    background: #d9dee8;
    color: #255782;
    box-shadow: 0 8px 20px rgba(11, 29, 45, 0.08);
}

.fm-s3-tab-name {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.fm-s3-tab-count {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: #255782;
    color: var(--c-white);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.fm-s3-tab--active {
    background: #ffffff;
}

.fm-s3-frame {
    background: #eceff4;
    border-radius: 38px;
    padding: 50px 34px 26px;
    box-shadow: 0 18px 44px rgba(16, 40, 57, 0.12);
}

.fm-s3-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    align-items: start;
}

.fm-s3-card {
    min-width: 0;
}

.fm-s3-visual {
    position: relative;
    min-height: 340px;
    padding: 46px 26px 0;
    background-size: 100% 120%;
    background-repeat: no-repeat;
    background-position: center top;
    overflow: hidden;
}

.fm-s3-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 280px;
    color: var(--c-white);
}

.fm-s3-eyebrow {
    display: block;
    font-size: 36px;
    line-height: 0.95;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.fm-s3-card-title {
    font-size: 32px;
    line-height: 1.02;
    font-weight: 700;
    margin: 0;
}

.fm-s3-car {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(92%, 450px);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.22));
}

.fm-s3-body {
    background: var(--c-white);
    margin-top: -2px;
    min-height: 194px;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 6px 16px rgba(16, 40, 57, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 22px 28px;
}

.fm-s3-price-label {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 400;
    color: #255782;
    margin-bottom: 34px;
}

.fm-s3-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 236px;
    min-height: 38px;
    padding: 10px 28px;
    border-radius: 999px;
    background: #2f98ec;
    color: var(--c-white);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
}

.fm-s3-cta:hover {
    background: #227fc8;
    transform: translateY(-1px);
}

.fm-s3-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.fm-s3-pager-dot {
    width: 0;
    height: 8px;
    border-radius: 999px;
    background: #d5e1ed;
    overflow: hidden;
    visibility: hidden;
}

.fm-s3-pager-dot--active {
    background: #5d99c5;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1520px) {
    .fm-occ-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 140px;
    }
    .fm-s3-grid {
        gap: 24px;
    }
    .fm-s3-card-title {
        font-size: 28px;
    }
    .fm-s3-eyebrow {
        font-size: 31px;
    }
}

@media (max-width: 1100px) {
    .fm-hero-inner {
        grid-template-columns: 1fr;
        padding: 3rem 2rem 2.5rem;
        min-height: auto;
    }
    .fm-hero-copy {
        align-items: center;
        text-align: center;
        max-width: 580px;
        margin: 0 auto;
        padding-right: 0;
    }
    .fm-hero-title { font-size: 38px; white-space: normal; }
    .fm-hero-tagline { font-size: 20px; }
    .fm-hero-bottom-row { justify-content: center; }
    .fm-hero-visual { min-height: 300px; margin-top: 1.5rem; }
    .fm-hero-car { width: 80%; transform: none; }
    .fm-occ-grid { grid-template-columns: repeat(2, 1fr); }
    .fm-occ-title { font-size: 26px; }
    .fm-occ-sub { font-size: 20px; }
    .fm-s2-grid { grid-template-columns: repeat(2, 1fr); }
    .fm-s2-card,
    .fm-s2-card-inner { min-height: 540px; }
    .fm-s2-card-title { font-size: 30px; margin-bottom: 120px; }
    .fm-s2-card-desc { margin-bottom: 82px; font-size: 17px; }
    .fm-s3-shell { padding: 0 20px; }
    .fm-s3-tabs { gap: 12px; flex-wrap: wrap; }
    .fm-s3-tab-name { font-size: 14px; }
    .fm-s3-tab { min-width: 120px; }
    .fm-s3-frame { padding: 28px 20px 22px; border-radius: 28px; }
    .fm-s3-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
    .fm-s3-visual { min-height: 360px; }
}

@media (max-width: 980px) {
    .fm-occ-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .fm-hero { min-height: auto; }
    .fm-hero-title { font-size: 28px; }
    .fm-hero-tagline { font-size: 17px; line-height: 1.4; }
    .fm-hero-amount { font-size: 26px; }
    .fm-hero-visual { min-height: 220px; }
    .fm-hero-car { width: 95%; }
    .fm-occ-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .fm-occ-head { padding: 28px 16px 22px; }
    .fm-occ-field { padding: 20px 12px 32px; }
    .fm-card-amount { font-size: 26px; }
    .fm-s2-shell { padding: 24px 12px 36px; }
    .fm-s2-title { font-size: 28px; }
    .fm-s2-subtitle { font-size: 19px; }
    .fm-s2-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .fm-s2-card,
    .fm-s2-card-inner { min-height: 500px; }
    .fm-s2-card-inner { padding: 68px 24px 24px; }
    .fm-s2-card-title { font-size: 28px; margin-bottom: 96px; }
    .fm-s2-card-desc { font-size: 16px; margin-bottom: 68px; }
    .fm-s2-card-cta { white-space: normal; text-align: center; }
    .fm-s3-models { padding-bottom: 40px; }
    .fm-s3-shell { padding: 0 12px; }
    .fm-s3-head { padding: 24px 12px 22px; }
    .fm-s3-title { font-size: 27px; }
    .fm-s3-subtitle { font-size: 17px; }
    .fm-s3-tabs { gap: 10px; margin-bottom: 20px; }
    .fm-s3-tab { min-width: calc(50% - 5px); padding: 12px 10px 12px; border-radius: 14px; }
    .fm-s3-tab-name { font-size: 13px; margin-bottom: 6px; }
    .fm-s3-tab-count { font-size: 11px; padding: 3px 10px; }
    .fm-s3-frame { padding: 22px 12px 18px; border-radius: 22px; }
    .fm-s3-grid { gap: 22px; }
    .fm-s3-visual { min-height: 280px; padding: 34px 18px 0; }
    .fm-s3-eyebrow { font-size: 27px; }
    .fm-s3-card-title { font-size: 25px; }
    .fm-s3-car { width: 94%; bottom: 14px; }
    .fm-s3-body { min-height: 154px; padding: 22px 16px 24px; }
    .fm-s3-price-label { font-size: 22px; margin-bottom: 24px; }
    .fm-s3-cta { min-width: 210px; font-size: 16px; }
    .fm-s3-pager-dot { width: 38px; }
}

/* ══════════════════════════════════════════
   NARROW MOBILE FIXES (≤420px) — prevent overflow
   ══════════════════════════════════════════ */
@media (max-width: 420px) {
    /* Hero: reduce padding so hero content fits */
    .fm-hero-inner { padding: 2.2rem 4% 1.5rem; }
    .fm-hero-copy { padding-bottom: 48px; padding-right: 0; width: 100%; max-width: 100%; min-width: 0; }
    .fm-hero-title { font-size: 22px; white-space: normal; }
    .fm-hero-tagline { font-size: 15px; line-height: 1.35; margin-bottom: 8px; }
    .fm-hero-amount { font-size: 22px; }
    .fm-hero-desde { font-size: 16px; line-height: 28px; }
    .fm-hero-price-block { gap: 6px; }
    .fm-hero-finance span { font-size: 13px; line-height: 28px; margin-bottom: 0; }
    .fm-hero-visual { min-height: 160px; margin-top: 1rem; }
    .fm-hero-car { width: 100%; max-width: none; }
    /* Bottom row: stack badge + CTA */
    .fm-hero-bottom-row { flex-direction: column; gap: 12px; align-items: center; }
    .fm-hero-badge { min-width: 68px; padding: 6px 10px 4px; }
    .fm-bd-num { font-size: 30px; }
    .fm-hero-cta { padding: 14px 24px; font-size: 14px; }
    /* Occasion: tighten field padding */
    .fm-occ-field { padding: 16px 8px 24px; }
    /* Cards: prevent fixed-width images from overflowing */
    .fm-card-visual { margin-top: 6px; }
    .fm-card-visual {
        height: 150px;
        overflow: visible;
        align-items: flex-end;
    }
    .fm-card,
    .fm-card-body {
        overflow: visible;
    }
    .fm-card--qashqai .fm-card-visual img {
        width: min(100%, 318px);
        max-width: 318px;
        transform: translateY(2px);
    }
    .fm-card--juke .fm-card-visual img {
        width: min(112%, 410px);
        max-width: 410px;
        transform: translateY(0);
    }
    .fm-card--xtrail .fm-card-visual img {
        width: min(116%, 425px);
        max-width: 425px;
        transform: translateY(-10px);
        top: auto;
    }
    .fm-card--micra .fm-card-visual img {
        width: min(100%, 342px);
        max-width: 342px;
        transform: translateY(-3px);
        top: auto;
    }
    .fm-card--qashqai .fm-card-visual img,
    .fm-card--juke .fm-card-visual img,
    .fm-card--xtrail .fm-card-visual img,
    .fm-card--micra .fm-card-visual img {
        height: auto;
    }
    .fm-card-body { padding: 14px 16px 0; }
    .fm-card-name { font-size: 20px; margin-bottom: 10px; }
    .fm-card-price { flex-wrap: wrap; white-space: normal; gap: 4px; }
    .fm-card-amount { font-size: 22px; }
    .fm-card-desde { font-size: 15px; }
    .fm-card-finance { margin-bottom: 12px; }
    .fm-card-finance span { font-size: 12px; }
    .fm-card-btn { font-size: 12px; padding: 12px 8px; }
    .fm-card-bens { gap: 0; padding-bottom: 18px; }
    .fm-card-ben { padding: 10px 4px 12px; gap: 8px; }
    .fm-card-ben span { font-size: 8px; }
    .fm-card-ben-svg { width: 36px; height: 36px; }
    .fm-card-ben-garantia { min-width: 40px; padding: 4px 8px 3px; }
    .fm-card-ben-garantia-num { font-size: 18px; }
    .fm-card-ben-garantia-label { font-size: 7px; }
    /* Block 3 options: tighten */
    .fm-s2-shell { padding: 20px 8px 28px; }
    .fm-s2-title { font-size: 22px; }
    .fm-s2-subtitle { font-size: 15px; }
    .fm-s2-card,
    .fm-s2-card-inner { min-height: 420px; }
    .fm-s2-card-inner { padding: 48px 16px 18px; }
    .fm-s2-card-title { font-size: 22px; margin-bottom: 72px; }
    .fm-s2-card-desc { font-size: 14px; margin-bottom: 48px; }
    /* Block 4 models: tighten */
    .fm-s3-shell { padding: 0 8px; }
    .fm-s3-frame { padding: 18px 8px 14px; border-radius: 18px; }
    .fm-s3-visual { min-height: 220px; padding: 28px 12px 0; }
    .fm-s3-visual-copy { max-width: 200px; }
    .fm-s3-eyebrow { font-size: 22px; }
    .fm-s3-card-title { font-size: 20px; }
    .fm-s3-body { min-height: 130px; padding: 18px 12px 20px; }
    .fm-s3-price-label { font-size: 18px; margin-bottom: 18px; }
    .fm-s3-cta { min-width: 180px; font-size: 14px; }
}

@media (max-width: 390px) {
    .fm-hero-inner {
        padding: 2rem 3.5% 1.25rem;
    }

    .fm-hero-copy,
    .fm-hero-visual,
    .fm-hero-bottom-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .fm-hero-title {
        width: 100%;
        font-size: 20px;
        line-height: 1.15;
        letter-spacing: 0.4px;
    }

    .fm-hero-title strong,
    .fm-hero-title span {
        white-space: normal;
    }

    .fm-hero-cta {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .fm-occ-grid {
        max-width: 100%;
    }

    .fm-card {
        width: 100%;
        max-width: 100%;
    }

    .fm-card-body,
    .fm-card-price,
    .fm-card-finance,
    .fm-card-btn,
    .fm-card-bens {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .fm-card,
    .fm-card-visual,
    .fm-card-body {
        overflow: visible;
    }

    .fm-card-visual img {
        max-width: 100% !important;
    }

    .fm-card--qashqai .fm-card-visual img {
        width: 318px !important;
        max-width: none !important;
    }

    .fm-card--juke .fm-card-visual img {
        width: 406px !important;
        max-width: none !important;
    }

    .fm-card--xtrail .fm-card-visual img {
        width: 422px !important;
        max-width: none !important;
    }

    .fm-card--micra .fm-card-visual img {
        width: 353px !important;
        max-width: none !important;
    }

    .fm-card-name,
    .fm-card-price,
    .fm-card-finance span,
    .fm-card-btn {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

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