:root { --ms-header-h: 200px; }

/* Solo tienda (y taxonomías de productos si quieres) */
.ms-archive-page {
  padding-top: var(--ms-header-h);
}


/* ---------- Disabled Scroll Modal ---------- */
html.ms-no-scroll,
body.ms-no-scroll {
    overflow: hidden !important;
    height: 100%;
    touch-action: none;
}

/* ---------- Max width general (1280 centrado) ---------- */
.ms-page {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto
}

/* ---------- Tipografía y básicos ---------- */
.amount {
    color: #1661A4
}

.ms-product-title {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%
}

.ms-product-sku {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px
}

.ms-product-sku strong {
    font-weight: 700
}

.ms-product-price {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 100%
}

.ms-product-tax {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px
}

.ms-product-stock,
.ms-product-out-stock {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 18px
}

.ms-product-out-stock {
    color: #C03131
}

html {
    scroll-behavior: smooth
}

/* ---------- GRID: 700px / resto en desktop ---------- */
.ms-product-grid {
    display: grid;
    gap: 2rem
}

.wpcf7-form-control-wrap .wpcf7-list-item {
    margin: 0 !important;
    padding-bottom: 20px !important
}

.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    width: 100% !important
}

@media(min-width:1024px) {
    .ms-product-grid {
        grid-template-columns: 700px 1fr
    }
}

/* ---------- Cursor pointer global ---------- */
button,
.button,
[type="button"],
[role="button"] {
    cursor: pointer
}

/* ---------- Galería ---------- */
.ms-gallery-container {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem
}

.ms-dropdowns-container {
    position: relative;
    z-index: 2;
    clear: both;
    width: 100%
}

.ms-gallery-separator {
    display: block;
    width: 100%;
    height: 2rem;
    clear: both
}

.ms-gallery {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    align-items: start
}

.ms-gallery__thumbs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box
}

.ms-gallery__thumbs--no-scroll {
    max-height: none;
    overflow: visible
}

.ms-gallery__thumb button {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    width: 50%
}

.ms-gallery__thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 2px solid #e5e5e5;
    transition: transform .2s ease, border-color .2s ease;
    aspect-ratio: 1/1;
    object-fit: cover
}

.ms-gallery__thumb[aria-selected="true"] img {
    border-color: #0189BD;
    box-shadow: 0 0 0 1px #0189BD
}

.ms-gallery__thumb:hover img {
    transform: scale(1.04);
    border-color: #0189BD
}

.ms-gallery__stage {
    position: relative;
    width: 100%
}

.ms-gallery__figure {
    margin: 0
}

.ms-gallery__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain
}

/* Pills / etiquetas */
.ms-product-labels {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.ms-product-label {
    width: max-content;
    min-width: 84px;
    min-height: 20px;
    line-height: 1.2;
    background: #0189BD;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font: 600 11px/1.2 "Fira Sans Condensed", sans-serif;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    white-space: nowrap;
    display: flex;
    justify-content: center;
    padding-top: 4px
}

.woo-image img {
    height: 16px !important
}

/* Responsive: thumbs abajo */
@media(max-width:768px) {
    .ms-gallery {
        grid-template-columns: 1fr
    }

    .ms-gallery__stage {
        order: 0;
        grid-column: 1;
        grid-row: 1
    }

    .ms-gallery__thumbs {
        order: 1;
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden
    }
}

/* ---------- Dropdowns ---------- */
.ms-dd-title {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0
}

.ms-dd-arrow {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.ms-dd-arrow svg {
    width: 100%;
    height: 100%;
    color: #9CA3AF
}

details[open]>summary .ms-dd-arrow svg {
    transform: rotate(180deg);
    transition: transform .2s ease
}

summary::-webkit-details-marker {
    display: none
}

/* ---------- Rating ---------- */
.woocommerce-product-rating {
    display: flex !important;
    align-items: center;
    gap: 0px!important;

}

.woocommerce-product-rating .star-rating {
    position: relative;
    display: inline-block;
    width: 5.4em;
    height: 1em;
    line-height: 1;
    font-size: 18px;
    margin: 0 !important;
    translate: 0 -2px;
}

.woocommerce-product-rating .star-rating::before {
    content: "★★★★★";
    color: #DFDFDF;
    position: absolute;
    left: 0;
    top: 0
}

.woocommerce-product-rating .star-rating span {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    height: 1em
}

.woocommerce-product-rating .star-rating span::before {
    content: "★★★★★";
    color: #FFC600;
    position: absolute;
    left: 0;
    top: 0
}

.woocommerce-product-rating .woocommerce-review-link {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    color: #6B7280;
    text-decoration: none
}

.woocommerce-review-link span{
	padding-top: 4px!important;
    padding-left: 5px;
}

/* ---------- Cantidad ---------- */
.ms-qty .ms-qty-minus,
.ms-qty .ms-qty-plus {
    border: 1px solid #D1D5DB;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center
}

.ms-qty .ms-qty-minus span {
    display: block;
    height: 2px;
    width: 10px;
    background: #6B7280
}

.ms-qty .ms-qty-plus .line-h {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 2px;
    width: 10px;
    background: #374151
}

.ms-qty .ms-qty-plus .line-v {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 10px;
    background: #374151
}

.ms-qty .ms-qty-value {
    min-width: 16px;
    text-align: center
}

.ms-qty[data-disabled="1"] .ms-qty-minus,
.ms-qty[data-disabled="1"] .ms-qty-plus {
    opacity: .5;
    pointer-events: none
}

/* ---------- RELACIONADOS ---------- */
.ms-related-wrap {
    margin-top: 40px;
    margin-bottom: 40px
}

.ms-related-title {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0;
    color: #3A3A3A;
    margin-top: 20px;
    margin-bottom: 20px
}

.ms-related-grid {
    display: grid;
    gap: 20px
}

@media(min-width:1024px) {
    .ms-related-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

.ms-rel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.ms-rel-card__imgbox {
    width: 255px;
    height: 255px;
    border: 1px solid #DFDFDF;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff
}

.ms-rel-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.ms-rel-brand-label {
    margin-top: 10px;
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #3A3A3A
}

.ms-rel-brand {
    display: block;
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    color: #3A3A3A;
    margin-top: 4px
}

.ms-rel-sku {
    margin-top: 8px;
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #3A3A3A
}

.ms-rel-sku b {
    font-weight: 700
}

.ms-rel-price {
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    color: #3A3A3A !important
}

.ms-rel-price span {
    color: #3A3A3A !important
}

.ms-rel-card__btn {
    margin-top: 12px;
    width: 255px;
    height: 40px;
    border-radius: 4px;
    background: #1661A4;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-decoration: none
}

.ms-rel-card__btn[disabled] {
    opacity: .5;
    cursor: not-allowed
}

.ms-rel-card a {
    text-decoration: none
}

/* ---------- MODAL "Avísame" ---------- */
.ms-stock-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none
}

.ms-stock-modal.is-open {
    display: block
}

.ms-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6)
}

.ms-stock-dialog {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px
}

/* layout móvil: columna, imagen arriba */
.ms-stock-content {
    background: #fff;
    width: 380px;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    position: relative
}

@media(min-width:900px) {
    .ms-stock-content {
        width: 900px;
        flex-direction: row
    }

    .ms-stock-close {
        top: 16px;
        right: 16px
    }
}

.ms-stock-hero {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center center;
    display: block
}

@media(min-width:900px) {
    .ms-stock-hero {
        width: 450px;
        height: 100%;
        background-position: right center
    }
}

.ms-stock-form {
    flex: 1;
    overflow: auto;
    padding: 24px
}

.ms-stock-form h3 {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 100%;
    color: #3A3A3A;
    margin: 0 0 8px
}

.ms-stock-form p.ms-stock-desc {
    color: #6B7280;
    margin: 0 0 16px
}

.ms-stock-close {
    position: absolute;
    right: 16px;
    top: 10px;
    z-index: 20;
    padding: 8px;
    border-radius: 6px;
    background: transparent
}

.ms-stock-close:hover {
    background: #f3f4f6
}

.ms-stock-close svg path {
    fill: #3A3A3A
}

@media(max-width:899px) {
    .ms-stock-close svg path {
        fill: #FFFFFF
    }
}

.ms-stock-form .wpcf7 form,
.ms-stock-form form {
    display: block
}

.ms-stock-form input[type="text"],
.ms-stock-form input[type="email"],
.ms-stock-form select,
.ms-stock-form textarea {
    width: 100%;
    border: 1px solid #DFDFDF;
    border-radius: 4px;
    padding: 10px 12px;
    font: 400 14px/18px "Fira Sans Condensed", sans-serif;
    color: #3A3A3A;
    background: #fff;
    margin-bottom: 10px
}

.ms-stock-form textarea {
    min-height: 120px;
    resize: vertical
}

.ms-stock-form .wpcf7-list-item-label,
.ms-stock-form label {
    font: 400 14px/18px "Fira Sans Condensed", sans-serif;
    color: #3A3A3A
}

.ms-stock-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 255px;
    max-width: 100%;
    height: 40px;
    border-radius: 4px;
    background: #1661A4;
    color: #fff;
    font: 700 14px/1 "Fira Sans Condensed", sans-serif
}

/* ===== Modal de compatibilidad ===== */
.ms-fitment-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none
}

.ms-fitment-modal.is-open {
    display: block
}

.ms-fitment-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6)
}

.ms-fitment-dialog {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 16px
}

.ms-fitment-panel {
    border-radius: 4px;
}

.ms-fitment-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .25);
    max-width: 960px;
    width: 100%;
    position: relative;
}

.ms-fitment-head {
    padding: 18px 22px;
    border-bottom: 1px solid #efefef;
    text-align: center
}

.ms-fitment-title {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #111
}

.ms-fitment-body {
    padding: 18px 22px
}

.ms-fitment-grid {
    display: grid;
    gap: 12px
}

@media(min-width:900px) {
    .ms-fitment-grid {
        grid-template-columns: repeat(4, 1fr)
    }
}

@media(max-width:640px) {
    .ms-fitment-title {
        padding-bottom: 2px !important;
        padding-top: 8px;
    }
}

.ms-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff;
    border: 1px solid #DFDFDF;
    border-radius: 6px;
    padding: 10px 12px;
    font: 400 14px/18px "Fira Sans Condensed", sans-serif;
    color: #3A3A3A;
    width: 100%
}

.ms-select:disabled {
    background: #f5f6f7;
    color: #9CA3AF;
    cursor: not-allowed
}

.ms-fitment-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px
}

.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border-radius: 6px;
    padding: 0 16px;
    font: 700 14px/1 "Fira Sans Condensed", sans-serif;
    cursor: pointer;
    border: 1px solid transparent
}

.ms-btn--primary {
    background: #1661A4;
    color: #fff
}

.ms-btn--primary:disabled {
    opacity: .5;
    cursor: not-allowed
}

.ms-btn--ghost {
    background: #fff;
    border-color: #D1D5DB;
    color: #374151
}

.ms-fitment-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    padding: 1px;
    cursor: pointer
}

.ms-fitment-close svg {
    width: 16px;
    height: 16px;
    color: #6B7280
}

/* Resultado */
.ms-fitment-result {
    display: none;
    padding: 22px
}

.ms-fitment-result.is-in {
    display: block
}

.ms-fitment-result__box {
    background: #F8FAF9;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    text-align: center
}

.ms-fitment-ok {
    color: #119c4b
}

.ms-fitment-bad {
    color: #C03131
}

.ms-fitment-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    margin-bottom: 10px
}

.ms-fitment-result__icon--ok {
    background: rgba(18, 185, 92, .12)
}

.ms-fitment-result__icon--bad {
    background: rgba(192, 49, 49, .12)
}

.ms-fitment-note {
    font: 400 13px/18px "Fira Sans Condensed", sans-serif;
    color: #6B7280;
    margin-top: 6px
}

.ms-fitment-links {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap
}

.ms-fitment-links a {
    color: #1661A4;
    text-decoration: none;
    font-weight: 700
}

/* ===== Reordenar layout en móviles ===== */
@media (max-width: 1023px) {

    /* 1) “Aplanar” la primera columna para que sus hijos sean items del grid */
    .ms-product-grid>div:first-child {
        display: contents;
    }

    /* 2) Definir el orden deseado en una sola columna */
    .ms-product-grid {
        grid-template-areas:
            "gallery"
            "info"
            "dropdowns";
    }

    /* 3) Asignar cada bloque a su área */
    .ms-gallery-container {
        grid-area: gallery;
    }

    .ms-dropdowns-container {
        grid-area: dropdowns;
    }

    .ms-product-grid>div:nth-child(2) {
        grid-area: info;
    }

    /* columna de info */

    /* (opcional) Ocultar el separador en móvil */
    .ms-gallery-separator {
        display: none;
    }
}

/* ===== Volver al layout original en desktop ===== */
@media (min-width: 1024px) {
    .ms-product-grid>div:first-child {
        display: block;
        /* restaura el contenedor izquierdo normal */
    }

    /* grid-template-columns ya lo tienes definido para desktop, no hay que tocarlo */
}

/* ===== Reseñas (dropdown nuevo) ===== */
.ms-reviews-item {
    padding: 14px 0;
    border-bottom: 1px solid #DFDFDF;
}

.ms-reviews-item:last-child {
    border-bottom: 0;
}

.ms-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ms-reviews-title {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
    color: #1661A4;
    margin: 0;
}

/* Estrellas (amarillo) */
.ms-stars {
    position: relative;
    display: inline-block;
    width: 5.4em;
    /* igual que las otras estrellas */
    height: 1em;
    line-height: 1;
    font-size: 18px;
    flex: 0 0 auto;
}

.ms-stars::before {
    content: "★★★★★";
    color: #DFDFDF;
    position: absolute;
    left: 0;
    top: 0;
}

.ms-stars>span {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    height: 1em;
}

.ms-stars>span::before {
    content: "★★★★★";
    color: #FFC600;
    /* amarillo */
    position: absolute;
    left: 0;
    top: 0;
}

.ms-reviews-body,
.ms-reviews-author {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0;
    color: #3A3A3A;
}

.ms-reviews-author {
    text-align: right;
    margin-top: 6px;
}

/* Botón "DEJAR UNA RESEÑA" (usa tu mismo sistema visual) */
.ms-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    background: #ffffff;
    color: #1661A4;
    font: 700 14px/1 "Fira Sans Condensed", sans-serif;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    width: 255px;
    border: 2px solid #1661A4;
}

.ms-review-form {
    margin-top: 30px;
}

/* ===== Formulario de Reseñas (inputs igual que en la página) ===== */
.ms-review-form form,
.ms-review-form .comment-respond {
    display: block;
}

.ms-review-form form input[type="text"],
.ms-review-form form input[type="email"],
.ms-review-form form select,
.ms-review-form form textarea {
    width: 100%;
    border: 1px solid #DFDFDF;
    border-radius: 4px;
    padding: 10px 12px;
    font: 400 14px/18px "Fira Sans Condensed", sans-serif;
    color: #3A3A3A;
    background: #fff;
}

.ms-review-form form textarea {
    min-height: 140px;
    resize: vertical;
}

.ms-review-form form label {
    display: block;
    margin: 0 0 6px;
    font: 400 14px/18px "Fira Sans Condensed", sans-serif;
    color: #3A3A3A;
    margin-bottom: -3px;
}

/* Botones de reseñas: ghost (toggle) y primary (submit) */
.ms-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    font: 700 14px/1 "Fira Sans Condensed", sans-serif;
    text-decoration: none;
    cursor: pointer;
}

.ms-review-btn--ghost {
    background: #ffffff;
    color: #1661A4;
    border: 2px solid #1661A4;
    width: 255px;
}

.ms-review-btn--primary {
    background: #1661A4;
    color: #fff;
    border: 0;
    padding-left: 20px;
    padding-right: 20px;
}

/* Mensaje “debes iniciar sesión” */
.ms-review-login-msg {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #6B7280;
}

.ms-review-login-msg a {
    color: #1661A4;
    text-decoration: none;
    font-weight: 700;
}

.ms-review-form form label {
    font-size: 18px !important;
    padding: 12px 16px;
    padding-top: 25px;
    font-weight: 700;
}

.woocommerce p.stars.selected a.active::before {
    color: #FFC600;
}

.woocommerce p.stars a::before {
    color: #FFC600;
}

.ms-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    font: 700 14px/1 "Fira Sans Condensed", sans-serif;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    color: #1661A4;
    border: 2px solid #1661A4;
}

.ms-review-btn--ghost {
    background: #fff;
    color: #1661A4;
    border: 2px solid #1661A4;
    width: 255px;
}

.ms-review-btn--primary {
    background: #fff;
    color: #fff;
    border: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.ms-review-form .submit,
.ms-review-form input[type="submit"],
.ms-review-form button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    padding: 0 16px !important;
    border-radius: 4px !important;
    font: 700 14px/1 "Fira Sans Condensed", sans-serif !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: #1661A4 !important;
    color: #fff !important;
    border: 0 !important;
    width: 255px !important;
    margin-top: 12px !important;
}

/* ===== Éxito del modal "Avísame" ===== */
.ms-stock-success {
    display: none;
    flex: 1;
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.ms-stock-success.is-in {
    display: flex;
}

.ms-stock-success__card {
    width: min(440px, 100%);
    padding: 24px;
    text-align: center;
}

.ms-stock-success__title {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 100%;
    color: #3A3A3A;
    margin: 0 0 10px;
}

.ms-stock-success__text {
    font-family: "Fira Sans Condensed", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #6B7280;
    margin: 0 0 18px;
}

/* Botones del éxito */
.ms-stock-success .ms-btn {
    width: 100%;
}

.ms-stock-success .ms-btn+.ms-btn {
    margin-top: 10px;
}

/* Ocultar el mensaje nativo de CF7 dentro del modal */
.ms-stock-form .wpcf7 form .wpcf7-response-output {
    display: none !important;
}

/* === Relacionados: 2 columnas en mobile === */
@media (max-width: 1023px) {
  .ms-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Que la tarjeta se adapte a la columna */
  .ms-rel-card__imgbox {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* mantiene el cuadro cuadrado */
  }
  .ms-rel-card__btn {
    width: 100%;
  }
}

/* ===== Breadcrumbs (arriba del título) */
.ms-bc { margin-bottom: 6px; }
.ms-bc__wrap { color:#9CA3AF; font:400 14px/1 "Fira Sans Condensed",sans-serif; }
.ms-bc__item { color:#9CA3AF; }
.ms-bc__item a { color:#9CA3AF; text-decoration:none; }
.ms-bc__item a:hover { color:#1661A4; }
.ms-bc__wrap > .ms-bc__item:last-child{
  color: #1661A4;
  font-weight: 700;
  font-size: 14px;
}