/* Custom Shop Styles */

/* MS Motors — ficha de vehiculo: specs como chips (codigo/marca/categoria/año/km/transmision/etc)
   en vez de tabla larga, para optimizar espacio. Reutiliza .spec-chip del catalogo. */
.spec-chips-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.spec-chips-detail .spec-chip {
    font-size: 13px;
    padding: 6px 12px;
}
a.spec-chip {
    text-decoration: none;
    transition: all .2s ease;
}
a.spec-chip:hover,
a.spec-chip:focus {
    background: #d09a26;
    color: #fff;
    text-decoration: none;
}
a.spec-chip:hover i,
a.spec-chip:focus i {
    color: #fff;
}
.spec-chip-price {
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.spec-chip-price i {
    color: #d09a26;
}
.spec-chip-promo {
    background: #d9534f;
    color: #fff;
    font-weight: 700;
}
.spec-chip-promo i {
    color: #fff;
}
.spec-chip-financing {
    background: #d09a26;
    color: #fff;
    font-weight: 600;
}
.spec-chip-financing i {
    color: #fff;
}
.spec-chip-ok {
    background: #dff0d8;
    color: #3c763d;
}
.spec-chip-ok i {
    color: #3c763d;
}
.spec-chip-no {
    background: #f2dede;
    color: #a94442;
}
.spec-chip-no i {
    color: #a94442;
}

/* MS Motors — tabla de specs (nombre/codigo/tipo/marca/precio/etc) en la ficha: mas prolija,
   etiqueta en dorado y sin la grilla pesada de bordes de Bootstrap */
.dfTable.table-right-left > tbody > tr > td {
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 12px 10px !important;
    vertical-align: middle;
}
.dfTable.table-right-left > tbody > tr:last-child > td {
    border-bottom: none !important;
}
.dfTable.table-right-left > tbody > tr:nth-of-type(odd) {
    background-color: transparent !important;
}
.dfTable.table-right-left > tbody > tr > td:first-child {
    font-weight: 700;
    color: #d09a26;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .5px;
    width: 40%;
}
.dfTable.table-right-left > tbody > tr > td:last-child {
    color: #000;
    font-size: 15px;
}

/* MS Motors — carrusel de "Destacados" (home y otras vistas): foto mas grande y recortada pareja,
   con overlay dorado transparente + texto "Financiamiento disponible" al pasar el mouse */
.featured-image-wrap {
    position: relative;
    overflow: hidden;
    height: 170px;
}
.featured-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}
/* Las etiquetas (Financiamiento/Promo) ahora viven dentro del mismo contenedor que la foto;
   este z-index evita que la superposicion oscura del hover las tape */
.featured-image-wrap .badge {
    z-index: 3;
}
/* La regla del tema (.blue .featured-products .product .image_overlay, 4 clases) pesa mas
   que un selector de 2 clases, por eso usamos #wrapper (ID) para ganar siempre */
#wrapper .featured-products .product .image_overlay {
    background: rgba(0, 0, 0, .5) !important;
}
.featured-image-wrap .financing-hover-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .2s ease-out;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}
.animate .financing-hover-label {
    opacity: 1;
}

/* MS Motors — boton de Contacto/Consultar (WhatsApp): negro, dorado al hover
   Pisa la regla compilada .blue .btn-theme (0,2,0) / .blue .btn-theme:hover (0,3,0)
   que tiene mas especificidad que una clase sola, por eso usamos #wrapper (ID) */
#wrapper .btn-whatsapp-contact.btn-theme {
    background-color: #000;
    border-color: #000;
    color: #fff;
    width: 100%;
}
#wrapper .btn-whatsapp-contact.btn-theme:hover,
#wrapper .btn-whatsapp-contact.btn-theme:focus,
#wrapper .btn-whatsapp-contact.btn-theme:active,
#wrapper .btn-whatsapp-contact.btn-theme.active {
    background-color: #d09a26;
    border-color: #d09a26;
    color: #fff;
}

/* MS Motors — seguro general: nunca permitir scroll horizontal de la pagina */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* MS Motors — tarjeta de vehiculo un poco mas compacta en mobile (foto, texto y botones mas chicos), con aire interno y entre tarjetas */
@media (max-width: 767px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .product {
        padding: 12px;
    }
    .product-container {
        margin-bottom: 15px;
    }
    .product-desc {
        padding-top: 6px;
    }
    .product-desc .product-name {
        font-size: 1.2em;
    }
    .product-desc p {
        font-size: 12px;
    }
    .product-price {
        font-size: 1.1em;
        padding: 8px 0;
    }
    .product-cart-button .btn {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* MS Motors — filtros del catalogo como etiquetas clickeables (marca / año / destacados) */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-tag {
    display: inline-block;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 12px;
    transition: all .2s ease;
    user-select: none;
}
.filter-tag:hover {
    border-color: #d09a26;
    color: #d09a26;
}
.filter-tag.active {
    background: #d09a26;
    border-color: #d09a26;
    color: #fff;
}
.filter-tag-featured {
    display: inline-block;
}
.filter-tag-featured i {
    margin-right: 4px;
}

/* MS Motors — nombre del vehiculo en negro (en vez del color del tema) en todas las tarjetas */
.product-desc .product-name {
    color: #000;
}

/* MS Motors — contenedor mas ancho en todos los tamaños de escritorio, para que las 3 columnas del catalogo tengan mas espacio */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        width: 1100px;
    }
}
@media (min-width: 1200px) and (max-width: 1599px) {
    .container {
        width: 1400px;
    }
}
@media (min-width: 1600px) {
    .container {
        width: 1600px;
    }
}

/* MS Motors — dorado de marca en vez del azul por defecto */
#wrapper .top-header {
    background-color: #d09a26;
}
#wrapper .top-header ul.list-inline > li .dropdown-toggle,
#wrapper .top-header ul.list-inline > li > a {
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
}
#wrapper .top-header ul.list-inline > li .dropdown-toggle:hover,
#wrapper .top-header ul.list-inline > li .dropdown-toggle:focus,
#wrapper .top-header ul.list-inline > li .dropdown-toggle:active,
#wrapper .top-header ul.list-inline > li > a:hover,
#wrapper .top-header ul.list-inline > li > a:focus,
#wrapper .top-header ul.list-inline > li > a:active,
#wrapper .top-header ul.list-inline > li:hover,
#wrapper .top-header ul.list-inline > li:focus {
    background-color: #be8d23; /* -4% lightness */
}
#wrapper .top-header ul.list-inline > li .bootstrap-select.open > .dropdown-toggle,
#wrapper .top-header ul.list-inline > li .dropdown.open > .dropdown-toggle {
    background-color: #ad8020; /* -8% lightness */
    color: #fff;
}

/* MS Motors — navbar principal (menu Home/Productos/Categorias/Marcas) en negro */
.navbar.navbar-default {
    background-color: #000;
    border: 0;
}
.navbar-default .navbar-nav > li > a {
    color: #fff;
}
/* Pisa la regla compilada .blue .navbar .navbar-nav>...(background-color:#2196f3;color:#fff!important)
   que tiene mas especificidad (0,4,2) que un selector .navbar-default suelto */
#wrapper .navbar .navbar-nav > .active > a,
#wrapper .navbar .navbar-nav > .active > a:active,
#wrapper .navbar .navbar-nav > .active > a:focus,
#wrapper .navbar .navbar-nav > .active > a:hover,
#wrapper .navbar .navbar-nav > .open > a,
#wrapper .navbar .navbar-nav > .open > a:active,
#wrapper .navbar .navbar-nav > .open > a:focus,
#wrapper .navbar .navbar-nav > .open > a:hover,
#wrapper .navbar .navbar-nav > li > a:active,
#wrapper .navbar .navbar-nav > li > a:focus,
#wrapper .navbar .navbar-nav > li > a:hover {
    background-color: #d09a26;
    color: #fff !important;
}
.navbar-default .navbar-toggle {
    border-color: #d09a26;
}
.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: transparent;
    border-color: #d09a26;
}

/* MS Motors — etiqueta "Financiamiento" en dorado sobre la foto de cada vehiculo (o el texto cf1 si el vehiculo tiene uno propio) */
.badge-financing {
    background-color: #d09a26;
    color: #fff;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* MS Motors — evita que la etiqueta de financiamiento (u otro elemento) se salga de la tarjeta y genere scroll horizontal */
.product-container .product {
    overflow: hidden;
}

/* MS Motors — foto de vehiculo mas grande y recortada de forma pareja (no deformada) */
.product .product-image {
    height: 220px;
    overflow: hidden;
}
.product .product-image img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transition: transform .3s ease;
}
/* En mobile la tarjeta es mas angosta, la foto necesita mas alto para que abarque bien el espacio */
@media (max-width: 767px) {
    .product .product-image {
        height: 230px;
    }
}

/* MS Motors — modernizacion: tarjeta con elevacion al hover, zoom de foto y entrada suave */
.product-container .product {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    animation: msMotorsFadeIn .5s ease;
}
.product-container .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
    border-color: #d09a26;
    z-index: 2;
}
.product-container .product:hover .product-image img {
    transform: scale(1.05);
}
/* MS Motors — el "transform" del hover crea un contexto de apilamiento nuevo en la tarjeta;
   sin z-index propio la etiqueta Financiamiento/Promo queda tapada por la tarjeta vecina */
.product .badge {
    z-index: 3;
}
@keyframes msMotorsFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MS Motors — chips de specs (año/km/transmision) debajo del nombre del vehiculo */
.product-specs {
    margin: 2px 0 6px;
}
.spec-chip {
    display: inline-block;
    background: #f2f2f2;
    color: #333;
    font-size: 11px;
    line-height: 1.6;
    padding: 2px 8px;
    border-radius: 10px;
    margin: 0 4px 4px 0;
    white-space: nowrap;
}
.spec-chip i {
    color: #d09a26;
    margin-right: 3px;
}

/* MS Motors — filtros del catalogo colapsables en mobile (boton + panel oculto por defecto) */
@media (max-width: 767px) {
    .mobile-filters-toggle {
        display: block;
        width: 100%;
        border: 0;
        background-color: #000;
        color: #fff;
        padding: 10px 15px;
        border-radius: 4px;
        margin-bottom: 15px;
        cursor: pointer;
    }
    .mobile-filters-toggle i {
        color: #d09a26;
        margin-right: 6px;
    }
    #filter-column {
        display: none;
    }
    #filter-column.mobile-open {
        display: block;
    }
}
@media (min-width: 768px) {
    .mobile-filters-toggle {
        display: none;
    }
}

/* MS Motors — boton flotante de WhatsApp (mobile y desktop) */
.mobile-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    z-index: 1000;
}
.mobile-whatsapp-btn:hover,
.mobile-whatsapp-btn:focus {
    color: #fff;
    opacity: .9;
}

/* MS Motors — buscador (header, se ve en inicio y todas las paginas): centrado, mas grande, boton negro con hover dorado */
.search-box {
    float: none;
    margin: 0 auto;
}
.search-box .input-group .form-control {
    border: 2px solid #ddd;
    border-right: none;
    box-shadow: none;
    height: 46px;
    font-size: 16px;
}
.search-box .input-group .form-control:focus {
    border-color: #d09a26;
}
#wrapper .search-box .btn-search {
    background-color: #000;
    border: 2px solid #000;
    color: #fff;
    height: 46px;
    padding: 0 22px;
    font-size: 16px;
}
#wrapper .search-box .btn-search:hover,
#wrapper .search-box .btn-search:focus {
    background-color: #d09a26;
    border-color: #d09a26;
    color: #fff;
}

/* MS Motors — paginacion del catalogo con acento dorado */
.pagination > li > a,
.pagination > li > span {
    color: #000;
}
.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span {
    background-color: #d09a26;
    border-color: #d09a26;
    color: #fff;
}

/* MS Motors — encabezados de secciones (Filtros, Disponibilidad, etc.) en dorado */
#wrapper .title,
#wrapper .title span {
    border-bottom-color: #d09a26;
}

/* MS Motors — panel de filtros del catalogo con fondo claro y acento dorado a la izquierda */
#filter-column #sticky-con {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #d09a26;
}
#filter-column #sticky-con > div {
    padding-bottom: 15px;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #ddd;
}
#filter-column #sticky-con > div:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

/* MS Motors — widget "Destacados" de la ficha de producto: version compacta,
   la columna ahora es mas angosta (col-sm-3) asi que las fotos y textos bajan de tamano */
#sticky-con .featured-image-wrap {
    height: 100px;
}
#sticky-con .product .stats-container .product_name {
    font-size: 12px;
}
#sticky-con .product .stats-container .product_price {
    font-size: 13px;
}
#sticky-con .product .stats-container .link {
    font-size: 11px;
}

/* MS Motors — botones "Compartir" (rrssb): solo quedan facebook+whatsapp y su JS
   reparte el 100% del ancho entre ellos (antes eran 7, ahora 50% c/u = enormes).
   Se fuerza ancho fijo y compacto, ignorando el width inline que pone el JS. */
.rrssb-buttons {
    width: auto !important;
    height: auto !important;
}
.rrssb-buttons li {
    float: none !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    vertical-align: top;
}
.rrssb-buttons li a {
    width: 130px !important;
    height: auto !important;
    padding: 8px 6px 8px 26px !important;
    font-size: 11px;
}
.rrssb-buttons li a .rrssb-icon {
    padding-top: 7px;
}

/* MS Motors — miniaturas de la galeria en la ficha de producto, un poco mas grandes
   (base del tema: 50x50px), escalado con .photo-slider para no afectar otros carruseles */
.photo-slider .carousel-indicators li {
    width: 70px;
    height: 70px;
}
.photo-slider .carousel-indicators li img {
    max-width: 70px;
    max-height: 70px;
}

/* MS Motors — foto principal con efecto "flotante" (sombra) en desktop */
.photo-slider .item .img-thumbnail {
    border: none;
    border-radius: 10px;
    padding: 0;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}
.photo-slider {
    margin-bottom: 10px;
}

/* MS Motors — en mobile, TODA la ficha del vehiculo (titulo, foto, specs, boton) ocupa el
   ancho completo de la pantalla, no solo la foto — asi todo calza parejo con el mismo ancho */
@media (max-width: 767px) {
    .product-detail-panel {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .product-detail-panel .photo-slider .item .img-thumbnail {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
    }
    /* la columna de la foto sigue teniendo su padding de 15px (bootstrap), se cancela
       para que la imagen quede pegada a los bordes reales de la pantalla */
    .product-detail-panel .photo-slider {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* MS Motors — comentarios y calificaciones (ficha de producto + testimonios del home) */
.review-summary-stars,
.review-stars {
    color: #d09a26;
}
.review-list {
    margin-bottom: 15px;
}
.review-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.review-item:last-child {
    border-bottom: none;
}
.review-item-head {
    margin-bottom: 4px;
}
.review-date {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
}
.review-comment {
    margin: 4px 0 0;
    color: #444;
}

/* input de calificacion con estrellas (truco CSS: radios ocultos + orden invertido) */
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
}
.star-rating-input input {
    display: none;
}
.star-rating-input label {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    padding: 0 3px;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #d09a26;
}

/* testimonios en el home */
.testimonial-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
.testimonial-comment {
    font-style: italic;
    color: #444;
    margin: 10px 0;
}
.testimonial-author {
    font-size: 13px;
}

/* MS Motors — calculadora de cuota mensual (ficha de vehiculo) */
.finance-calculator {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px 20px;
    margin: 10px 0 25px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14), 0 4px 10px rgba(0, 0, 0, .06);
}
.fc-inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}
.fc-title {
    color: #d09a26;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
}
.fc-title i {
    margin-right: 6px;
}
.fc-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    text-align: left;
    margin-bottom: 20px;
}
.fc-input-group {
    flex: 1 1 200px;
    min-width: 200px;
}
.fc-input-group-full {
    flex: 1 1 100%;
}
.fc-input-group label {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.fc-down-amount {
    color: #777;
    font-weight: 400;
}
.fc-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #444;
    outline: none;
    margin-top: 8px;
}
.fc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d09a26;
    cursor: pointer;
    border: 2px solid #000;
}
.fc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d09a26;
    cursor: pointer;
    border: 2px solid #000;
}
#fc-term-select {
    background: #fff;
}
.fc-result {
    background: #000;
    border: 1px solid #d09a26;
    border-radius: 6px;
    padding: 20px 15px;
    margin-bottom: 12px;
}
.fc-result-label {
    color: #bbb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.fc-result-amount {
    color: #d09a26;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin: 6px 0;
    transition: color .15s ease;
}
.fc-result-amount.fc-up {
    color: #e2492f;
}
.fc-result-sub {
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.fc-disclaimer {
    color: #999;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #333;
}
.fc-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fc-btn-primary,
.fc-btn-secondary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: .5px;
}
.fc-btn-primary {
    background: #e2492f;
    border: 2px solid #e2492f;
    color: #fff;
}
.fc-btn-primary:hover,
.fc-btn-primary:focus {
    background: #c93c25;
    border-color: #c93c25;
    color: #fff;
}
.fc-btn-secondary {
    background: transparent;
    border: 2px solid #d09a26;
    color: #d09a26;
}
.fc-btn-secondary:hover,
.fc-btn-secondary:focus {
    background: #d09a26;
    color: #000;
    text-decoration: none;
}
@media (min-width: 768px) {
    .fc-buttons {
        flex-direction: row;
        justify-content: center;
    }
    .fc-btn-primary,
    .fc-btn-secondary {
        width: auto;
        min-width: 220px;
    }
}

/* MS Motors — modal de solicitud de financiamiento (SweetAlert2) */
.fc-request-form .form-group {
    text-align: left;
}
.fc-modal-estimate {
    background: #000;
    border-radius: 6px;
    padding: 14px 10px;
    margin-top: 6px;
    font-size: 13px;
    text-align: center;
    color: #bbb;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.fc-modal-estimate strong {
    display: block;
    color: #d09a26;
    font-size: 32px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.3;
    margin-top: 2px;
}

/* MS Motors — validacion de cedula y consentimiento de datos en el modal de solicitud */
.fc-id-status {
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}
.fc-id-status.fc-id-ok {
    color: #3c763d;
    font-weight: 600;
}
.fc-id-status.fc-id-error {
    color: #a94442;
    font-weight: 600;
}
#fc-id-number.fc-field-valid {
    border-color: #3c763d;
    background-color: #f4faf4;
    color: #3c763d;
    font-weight: 600;
}
.fc-consent-box {
    text-align: left;
    background: #fff8f7;
    border: 2px solid #e2492f;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
}
.fc-consent-header {
    display: flex;
    align-items: center;
}
.fc-consent-header input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}
.fc-consent-toggle {
    cursor: pointer;
    color: #e2492f;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    -webkit-user-select: none;
    user-select: none;
}
.fc-consent-toggle i {
    transition: transform .15s ease;
    color: #e2492f;
    font-size: 11px;
}
.fc-consent-toggle.open i {
    transform: rotate(180deg);
}
.fc-consent-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e8c3ba;
}
.fc-consent-box p {
    margin: 0 0 8px;
}
.fc-consent-box a {
    color: #d09a26;
    font-weight: 600;
    text-decoration: underline;
}
.fc-id-status.fc-id-warn {
    color: #8a6d3b;
    font-weight: 600;
}

/* MS Motors — pagina "Calcular Cuota": selector de vehiculo + foto principal */
.fc-vehicle-picker {
    margin-bottom: 14px;
}
.fc-vehicle-picker label {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
.fc-vehicle-photo-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}
.fc-vehicle-photo-wrap img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin: 0;
}
.fc-vehicle-info {
    margin-top: 14px;
}
.fc-vehicle-info h4 {
    margin: 0 0 4px;
    font-weight: 700;
    color: #000;
}
.fc-vehicle-price {
    color: #d09a26;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}
@media (max-width: 767px) {
    .fc-vehicle-photo-wrap {
        margin-bottom: 12px;
    }
    .fc-vehicle-photo-wrap img {
        height: 240px;
    }
}

/* MS Motors — subida de fotos de cedula (frente/dorso) en el modal de solicitud */
.fc-file-input {
    display: block;
    width: 100%;
    font-size: 12px;
}
.fc-photo-preview {
    margin-top: 6px;
}
.fc-photo-preview img {
    max-width: 100%;
    max-height: 100px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* MS Motors — vistas y estrellas de popularidad (basado en sma_products.views) */
.popularity-line {
    color: #777;
    font-size: 13px;
    margin-bottom: 14px;
}
.popularity-line .fa-eye {
    color: #999;
    margin-right: 3px;
}
.popularity-line .popularity-stars {
    margin: 0 6px;
}
.popularity-label {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.popularity-stars i {
    color: #d09a26;
    font-size: 13px;
}
.popularity-stars-sm {
    display: block;
    margin: 2px 0 4px;
}
.popularity-stars-sm i {
    font-size: 11px;
}

/* MS Motors — reservas de vehiculos: marca de agua sobre la imagen (cards, mismo mecanismo que
   .image_overlay) y banner grande en la ficha del vehiculo */
.reserved-watermark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: none;
}
.reserved-watermark span {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid #fff;
    padding: 4px 12px;
    white-space: nowrap;
}
.reserved-banner {
    background: #2d2d2d;
    color: #fff;
    border: none;
    font-size: 16px;
    letter-spacing: .5px;
    margin-bottom: 15px;
}

/* MS Motors — boton "deslizar para activar" sobre el caption del carrusel principal (usa el
   mismo campo "Link" del slide, configurado en Admin > Front End > Slider). Negro/dorado
   (paleta del sitio). El circulo se arrastra con mouse/touch hasta el final para abrir el link;
   un clic simple tambien funciona como atajo (ver custom/shop.js). */
.wa-slide-btn {
    padding: 0;
}
.wa-slide-track {
    position: relative;
    display: inline-block;
    min-width: 340px;
    max-width: 100%;
    background: rgba(0, 0, 0, .55);
    border: 2px solid #d09a26;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    text-align: left;
}
.wa-slide-label {
    display: block;
    color: #d09a26;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    padding: 10px 44px 10px 12px;
    text-shadow: none;
    pointer-events: none;
    white-space: nowrap;
}
.wa-slide-label i {
    margin-right: 6px;
}
.wa-slide-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d09a26;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    touch-action: none;
    cursor: grab;
    animation: wa-handle-hint 2.2s ease-in-out infinite;
}
.wa-slide-track.wa-slide-dragging .wa-slide-handle {
    animation: none;
    cursor: grabbing;
}
.wa-slide-track.wa-slide-complete {
    border-color: #25d366;
}
.wa-slide-track.wa-slide-complete .wa-slide-handle {
    background: #25d366;
    color: #fff;
    animation: none;
}
@keyframes wa-handle-hint {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}
.carousel-fullslide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}
@media (max-width: 767px) {
    /* MS Motors — en mobile la imagen del carrusel ocupa todo el ancho de la pantalla, sin
       importar el padding/margin que tenga cualquier contenedor padre (truco de "bleed" con
       viewport units en vez de solo cancelar el padding conocido) y el boton de WhatsApp se
       achica para no tapar tanto la foto. */
    .slider-container {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .slider-container .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    .slider-container .row {
        margin-left: 0;
        margin-right: 0;
    }
    .wa-slide-track {
        min-width: 140px;
        padding: 2px;
    }
    .wa-slide-label {
        font-size: 10px;
        padding: 5px 24px 5px 6px;
    }
    .wa-slide-handle {
        width: 21px;
        height: 21px;
        font-size: 10px;
        top: 2px;
        left: 2px;
    }
    .carousel-caption {
        bottom: 6px;
    }
}
.reserved-banner .fa-lock {
    color: #d09a26;
    margin-right: 6px;
}

/* MS Motors — banner de llamada a la accion en la ficha del vehiculo (financiamiento / asesor) */
.pdp-cta-banner {
    background: #fdf3d7;
    border: 1px solid #f0ddA0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pdp-cta-text {
    color: #6b5216;
    font-weight: 700;
    font-size: 15px;
}
.pdp-cta-text i {
    margin-right: 6px;
}
.pdp-cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pdp-cta-btn {
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.pdp-cta-finance {
    background: #d09a26;
    color: #000;
    border: 2px solid #d09a26;
}
.pdp-cta-finance:hover,
.pdp-cta-finance:focus {
    background: #b8871f;
    border-color: #b8871f;
    color: #000;
    text-decoration: none;
}
.pdp-cta-whatsapp {
    background: #25d366;
    color: #fff;
    border: 2px solid #25d366;
}
.pdp-cta-whatsapp:hover,
.pdp-cta-whatsapp:focus {
    background: #1ebc59;
    border-color: #1ebc59;
    color: #fff;
    text-decoration: none;
}
@media (max-width: 480px) {
    .pdp-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .pdp-cta-buttons {
        width: 100%;
    }
    .pdp-cta-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* MS Motors — barra de navegacion inferior fija (solo mobile), reemplaza el navbar hamburguesa */
.mobile-bottom-nav {
    display: none;
}
.mbn-more-panel {
    display: none;
}
@media (max-width: 767px) {
    body {
        padding-bottom: 62px;
    }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        background: #000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .2);
    }
    .mbn-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 2px 6px;
        color: #bbb;
        font-size: 10px;
        text-align: center;
        line-height: 1.3;
    }
    .mbn-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }
    .mbn-item.active,
    .mbn-item:hover,
    .mbn-item:focus {
        color: #d09a26;
        text-decoration: none;
    }
    .mbn-item.mbn-whatsapp i {
        color: #25d366;
    }
    .mbn-more-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 68px;
        z-index: 1001;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
        overflow: hidden;
    }
    .mbn-more-panel a {
        display: block;
        padding: 12px 16px;
        color: #333;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }
    .mbn-more-panel a:last-child {
        border-bottom: none;
    }
    .mbn-more-panel a i {
        color: #d09a26;
        width: 18px;
    }
    .mbn-more-panel a:hover,
    .mbn-more-panel a:focus {
        background: #faf6ec;
        text-decoration: none;
    }
    /* el boton flotante de WhatsApp ya vive dentro de la barra inferior en mobile */
    .mobile-whatsapp-btn {
        display: none !important;
    }
    .back-to-top {
        bottom: 70px;
    }
}
