/* gama.css — componentes de la gama y de la ficha de modelo.
   Se carga despues de theme.css. Tipografia y colores siguen el manual Renault
   (NouvelR via las familias "Empresa"/"EmpresaBold" ya definidas en theme.css). */

/* ---------- chips de motorizacion ---------- */
.motor-chip {
    display: inline-block;
    color: #fff;
    font-family: "Empresa", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    padding: 4px 8px;
    margin: 0 4px 4px 0;
    border-radius: 2px;
    text-transform: lowercase;
    white-space: nowrap;
}
.menu-chips { margin-top: 6px; }

/* ---------- grilla de la gama (home) ---------- */
.gama-bajada { color: #6b6b6b; font-size: 16px; margin-bottom: 10px; }

.gama-grilla { margin-top: 25px; }

.gama-card {
    display: block;
    padding: 12px 8px 20px;
    text-decoration: none !important;
    color: inherit;
    transition: transform .25s ease;
}
.gama-card:hover { transform: translateY(-4px); }
.gama-card img { width: 85%; margin-bottom: 6px; }
.gama-card h4 { margin: 6px 0 2px; text-transform: uppercase; letter-spacing: .01em; }
.gama-card .gama-precio {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #000;
    font-family: "EmpresaBold", sans-serif;
}
.gama-card .gama-precio--proximo { color: #efdf00; background: #000; display: inline-block; padding: 3px 8px; }

.gama-legal {
    font-size: 11px;
    color: #8a8a8a;
    line-height: 1.5;
    margin: 25px 0 10px;
}

/* ---------- hero de la ficha de modelo ---------- */
.modelo-hero {
    position: relative;
    min-height: 62vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-top: 0;
}
.modelo-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 75%);
}
.modelo-hero-caption {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-bottom: 45px;
}
.modelo-hero-caption h1 { color: #fff; font-weight: 500; margin: 8px 0 0; }
.modelo-hero-caption h3 { color: #fff; margin-top: 2px; }

.modelo-hero--packshot { background: #f4f4f4; min-height: 0; padding: 120px 0 40px; display: block; }
.modelo-hero-caption--dark { color: #000; text-align: center; padding-bottom: 20px; }
.modelo-hero-caption--dark h1,
.modelo-hero-caption--dark h3 { color: #000; }

/* ---------- encabezado: descripcion + caja de precio ---------- */
.modelo-encabezado { margin: 45px 0 20px; }
.modelo-descripcion { font-size: 16px; line-height: 1.65; color: #333; }
.modelo-versiones { font-size: 14px; color: #6b6b6b; margin-top: 15px; }

.modelo-box {
    border: 1px solid #e3e3e3;
    padding: 25px 22px;
    background: #fafafa;
}
.modelo-precio-label { font-size: 13px; color: #6b6b6b; display: block; }
.modelo-precio {
    font-family: "EmpresaBold", sans-serif;
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 6px;
}
.modelo-precio-nota {
    display: block;
    color: #8a8a8a;
    font-size: 11px;
    line-height: 1.45;
    margin-bottom: 6px;
}
.modelo-badge {
    display: inline-block;
    background: #000; color: #efdf00;
    padding: 5px 10px; font-size: 12px;
    font-family: "EmpresaBold", sans-serif;
    text-transform: uppercase; margin-bottom: 10px;
}
.modelo-cta { width: 100%; margin-top: 10px; }

/* ---------- bloques de especificaciones ---------- */
.modelo-specs { margin: 55px 0 15px; }
.modelo-specs h2 { margin-bottom: 30px; }

/* Bootstrap 3 flota las columnas: si un bloque es mas alto que su vecino, el
   siguiente se engancha y queda corrido. Con flex las filas se arman parejas. */
.modelo-specs .row {
    display: flex;
    flex-wrap: wrap;
}
.modelo-specs .row > [class*="col-"] {
    display: flex;
    float: none;
    width: 100%;
}
@media (min-width: 992px) {
    .modelo-specs .row > [class*="col-"] { width: 50%; }
}

.spec-card {
    border-top: 3px solid #000;
    padding: 20px 0 10px;
    margin-bottom: 30px;
    width: 100%;
}
.spec-card h4 {
    font-family: "EmpresaBold", sans-serif;
    text-transform: lowercase;
    margin: 0 0 14px;
}
.spec-card h4 i { margin-right: 6px; }
.spec-card dl { margin: 0; }
.spec-card dt {
    font-weight: normal;
    color: #6b6b6b;
    font-size: 13px;
    float: left;
    clear: left;
    width: 45%;
    padding: 7px 10px 7px 0;
    border-top: 1px solid #ededed;
}
.spec-card dd {
    font-size: 14px;
    margin-left: 45%;
    padding: 7px 0;
    border-top: 1px solid #ededed;
}
.spec-card dt:first-of-type,
.spec-card dd:first-of-type { border-top: 0; }

@media (max-width: 767px) {
    .spec-card dt { float: none; width: auto; padding-bottom: 0; border-top: 1px solid #ededed; }
    .spec-card dd { margin-left: 0; padding-top: 2px; border-top: 0; }
}

/* ---------- galeria ---------- */
.modelo-galeria { margin: 45px 0 20px; }
.modelo-galeria h2 { margin-bottom: 8px; }
.modelo-galeria-ayuda { color: #8a8a8a; font-size: 13px; margin-bottom: 26px; }
/* Miniaturas recortadas a una altura pareja para que la grilla no se desarme
   cuando las fotos vienen en distintas relaciones de aspecto. */
.galeria-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 25px;
    background: #f4f4f4;
}
@media (max-width: 991px) { .galeria-img { height: 165px; } }
@media (max-width: 767px) { .galeria-img { height: 130px; margin-bottom: 18px; } }

/* La miniatura avisa que se puede ampliar */
.galeria-img.is-zoomable {
    cursor: zoom-in;
    transition: transform .25s ease, box-shadow .25s ease;
}
.galeria-img.is-zoomable:hover,
.galeria-img.is-zoomable:focus {
    transform: scale(1.015);
    box-shadow: 0 6px 22px rgba(0,0,0,.18);
    outline: none;
}
.galeria-img.is-zoomable:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------- lightbox ---------- */
.lb-overlay {
    position: fixed;
    inset: 0;
    /* Por encima del header fijo (10005) y del overlay de WhatsApp */
    z-index: 20000;
    background: #000;
    display: none;
    align-items: center;
    justify-content: center;
}
/* Mientras el visor esta abierto, nada del sitio se filtra por encima */
body.lb-abierto #site-header,
body.lb-abierto #overlay-wa { visibility: hidden; }
.lb-overlay.is-open { display: flex; }

.lb-figura {
    margin: 0;
    max-width: 92vw;
    max-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img {
    max-width: 92vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    display: block;
    animation: lbFade .22s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lb-cerrar {
    position: absolute;
    top: 18px; right: 22px;
    background: none; border: 0;
    color: #fff; font-size: 40px; line-height: 1;
    cursor: pointer; padding: 0 8px;
    opacity: .8; transition: opacity .2s ease;
}
.lb-cerrar:hover, .lb-cerrar:focus { opacity: 1; outline: none; }

.lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: 0; color: #fff;
    font-size: 34px; line-height: 1;
    width: 52px; height: 72px;
    cursor: pointer;
    transition: background .2s ease;
}
.lb-nav:hover, .lb-nav:focus { background: rgba(255,255,255,.25); outline: none; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-nav[hidden] { display: none; }

.lb-contador {
    position: absolute;
    bottom: 22px; left: 0; right: 0;
    text-align: center;
    color: #fff;
    font-family: "Empresa", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .06em;
}
.lb-contador[hidden] { display: none; }

@media (max-width: 767px) {
    .lb-nav { width: 42px; height: 60px; font-size: 28px; }
    .lb-cerrar { font-size: 34px; top: 10px; right: 12px; }
}

.modelo-fuente {
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.6;
    border-top: 1px solid #ededed;
    padding-top: 18px;
    margin: 20px 0 40px;
}

/* ---------- otros modelos ---------- */
.modelo-otros { background: #f4f4f4; padding: 40px 0 25px; }
.modelo-otros h3 { margin-bottom: 25px; }
.modelo-otros a { text-decoration: none !important; color: inherit; }
.modelo-otros img { width: 82%; }
.modelo-otros h5 { text-transform: uppercase; margin-bottom: 20px; }
