/* METUSA - Identidad corporativa */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    --metusa-blue: #0169ac;
    --metusa-dark-blue: #092554;
    --metusa-light-blue: #4f94c1;
    --metusa-gray: #dbdcdd;
    --metusa-orange: #ff8c00;
    --metusa-white: #ffffff;
    --metusa-whatsapp: #25d366;
    --metusa-font: 'Roboto', sans-serif;
}

/* ==========================================
   METUSA - GRID DE PRODUCTOS
   ========================================== */

#js-product-list .products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Tarjeta de producto */

#js-product-list .products > .product-miniature {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

/* Escritorios pequeños */

@media (max-width: 1199px) {
    #js-product-list .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }
}

/* Tablets y celulares */

@media (max-width: 991px) {
    #js-product-list .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Celulares pequeños */

@media (max-width: 375px) {
    #js-product-list .products {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   METUSA - TARJETAS DE PRODUCTOS
   ========================================================== */

.product-miniature {
    --mt-product-blue: #0169ac;
    --mt-product-dark: #092554;
    --mt-product-orange: #ff8c00;
}


/* Estructura de la tarjeta */

.product-miniature .product-miniature__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-miniature .product-miniature__bottom {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 10px 18px;
}

.product-miniature .product-miniature__infos {
    flex: 1;
    text-align: center;
}


/* Nombre del producto */

.product-miniature .product-miniature__title {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0 0 12px;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    text-decoration: none;
    transition: color .2s ease;
}

.product-miniature .product-miniature__title:hover {
    color: var(--mt-product-blue);
}


/* ==========================================================
   METUSA - CONTENEDOR DEL BOTON
   ========================================================== */

.product-miniature .metusa-product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding: 5px 0 0;
}


/* ==========================================================
   METUSA - BOTON VER MAS
   ========================================================== */

.product-miniature .metusa-product-vermas {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    width: 100%;
    max-width: 190px;
    min-height: 40px;

    padding: 10px 18px;

    background: var(--mt-product-blue);
    color: #ffffff;

    border: 1px solid var(--mt-product-blue);
    border-radius: 6px;

    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none;
    text-align: center;
    box-sizing: border-box;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


/* Flecha del botón */

.product-miniature .metusa-product-vermas svg {
    flex-shrink: 0;
    transition: transform .25s ease;
}


/* Hover */

.product-miniature .metusa-product-vermas:hover {
    background: var(--mt-product-dark);
    border-color: var(--mt-product-dark);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(9, 37, 84, .15);
}

.product-miniature .metusa-product-vermas:hover svg {
    transform: translateX(4px);
}


/* Accesibilidad */

.product-miniature .metusa-product-vermas:focus-visible {
    outline: 2px solid var(--mt-product-orange);
    outline-offset: 3px;
}


/* ==========================================================
   METUSA - RESPONSIVE
   ========================================================== */

@media (max-width: 767px) {

    .product-miniature .product-miniature__bottom {
        padding: 10px 5px 15px;
    }

    .product-miniature .product-miniature__title {
        font-size: 13px;
        min-height: 40px;
    }

    .product-miniature .metusa-product-vermas {
        max-width: 100%;
        min-height: 36px;
        font-size: 13px;
        padding: 8px 12px;
        gap: 8px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .product-miniature .metusa-product-vermas,
    .product-miniature .metusa-product-vermas svg {
        transition: none;
    }

    .product-miniature .metusa-product-vermas:hover svg {
        transform: none;
    }

}

.product__prices.js-product-prices{display: none;}
/* ==========================================================
   METUSA - FICHA DE PRODUCTO
   ========================================================== */

/* Contenedor de cantidad y cotización */

#product .metusa-product-quote {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 25px;
    margin-bottom: 15px;
}


/* Selector de cantidad */

#product .metusa-product-quote .product__quantity {
    flex: 0 0 135px;
    width: 135px;
    margin: 0;
}


/* Contenedor del botón */

#product .metusa-product-quote .product__add-to-cart {
    flex: 0 1 230px;
    width: 230px;
    margin: 0;
}


/* ==========================================================
   BOTON COTIZAR
   ========================================================== */

#product .metusa-btn-cotizar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 46px;

    padding: 12px 22px;

    background: #0169ac;
    border: 1px solid #0169ac;
    border-radius: 6px;

    color: #ffffff;
    font-size: 16px;
    font-weight: 700;

    box-shadow: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

#product .metusa-btn-cotizar:not(:disabled):hover {
    background: #092554;
    border-color: #092554;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 37, 84, .15);
}

#product .metusa-btn-cotizar:disabled {
    opacity: .5;
    cursor: not-allowed;
}


/* ==========================================================
   FICHAS TECNICAS
   ========================================================== */

#product .metusa-product-downloads {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 18px 0 20px;
}


/* Botón de descarga */

#product .metusa-btn-ficha {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 38px;

    padding: 8px 18px;

    background: #f4f8fc;
    color: #0169ac;

    border: 1px solid #0169ac;
    border-radius: 5px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    text-transform: uppercase;
    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

#product .metusa-btn-ficha svg,
#product .metusa-btn-cotizar svg {
    flex-shrink: 0;
}

#product .metusa-btn-ficha:hover {
    background: #0169ac;
    border-color: #0169ac;
    color: #ffffff;
    text-decoration: none;
}

#product .metusa-btn-ficha:focus-visible,
#product .metusa-btn-cotizar:focus-visible {
    outline: 2px solid #ff8c00;
    outline-offset: 3px;
}


/* ==========================================================
   OCULTAR PRECIO EN LA FICHA
   ========================================================== */

#product .product__prices,
#product .product-prices {
    display: none !important;
}


/* ==========================================================
   OCULTAR BLOQUE INFERIOR DE DESCARGAS
   Ya mostramos las fichas junto al botón Cotizar.
   ========================================================== */

#product #product_attachments {
    display: none;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 767px) {

    #product .metusa-product-quote {
        gap: 10px;
    }

    #product .metusa-product-quote .product__quantity {
        flex: 0 0 115px;
        width: 115px;
    }

    #product .metusa-product-quote .product__add-to-cart {
        flex: 1 1 150px;
        width: auto;
        min-width: 0;
    }

    #product .metusa-btn-cotizar {
        min-height: 44px;
        font-size: 14px;
        padding: 10px 15px;
    }

    #product .metusa-btn-ficha {
        min-height: 38px;
        font-size: 12px;
    }

}

@media (prefers-reduced-motion: reduce) {

    #product .metusa-btn-cotizar,
    #product .metusa-btn-ficha {
        transition: none;
    }

}


/* ==========================================================
   METUSA - CHECKOUT DE COTIZACION
   ========================================================== */

/* Título principal */

#checkout .metusa-quote-title {
    color: #0169ac;
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #d9dfe5;
    padding: 0 0 16px;
    margin: 0 0 25px;
}


/* Contenedor general */

#checkout .metusa-quote-checkout {
    max-width: 1158px;
    margin: 24px auto 40px;
}

#checkout .metusa-quote-checkout .checkout-grid {
    align-items: start;
}

#checkout .metusa-quote-checkout
.checkout__summary-accordion-header .accordion-button {
    color: #0169ac;
    font-size: 18px;
    font-weight: 700;
}


/* ==========================================================
   FORMULARIO DE DATOS PERSONALES
   ========================================================== */

/* Distribución en dos columnas */

#checkout .metusa-quote-checkout #customer-form > section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    align-items: start;
}

/* Campos de ancho completo por defecto */

#checkout .metusa-quote-checkout #customer-form > section > * {
    grid-column: 1 / -1;
    min-width: 0;
}

/* Nombre, apellidos, correo y teléfono */

#checkout .metusa-quote-checkout
#customer-form > section > div:has(input[name="firstname"]),

#checkout .metusa-quote-checkout
#customer-form > section > div:has(input[name="lastname"]),

#checkout .metusa-quote-checkout
#customer-form > section:has(> div input:is([name="phone"], [name="phone_mobile"]))
> div:has(input[name="email"]),

#checkout .metusa-quote-checkout
#customer-form > section > div:has(input:is([name="phone"], [name="phone_mobile"])) {
    grid-column: auto;
}

#checkout .metusa-quote-checkout
#customer-form > section > input[type="hidden"] {
    display: none;
}


/* Etiquetas */

#checkout .metusa-quote-checkout #customer-form .form-label {
    font-size: 14px;
    font-weight: 600;
}


/* Campos de texto */

#checkout .metusa-quote-checkout #customer-form .form-control {
    min-height: 40px;
    border-radius: 5px;
}


/* Comentarios */

#checkout .metusa-quote-checkout #customer-form textarea,
#checkout .metusa-quote-checkout textarea[name="delivery_message"] {
    width: 100%;
    min-height: 85px;
}


/* Textos de ayuda */

#checkout .metusa-quote-checkout #customer-form .form-text {
    font-size: 12px;
}


/* ==========================================================
   PRODUCTOS POR COTIZAR
   ========================================================== */

#checkout .metusa-quote-checkout .metusa-quote-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 62px;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}


/* Imagen del producto */

#checkout .metusa-quote-checkout .metusa-quote-product__image {
    width: 64px;
    margin: 0;
}

#checkout .metusa-quote-checkout .metusa-quote-product__image img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #eeeeee;
    border-radius: 5px;
}


/* Información del producto */

#checkout .metusa-quote-checkout .metusa-quote-product__info {
    display: block;
    min-width: 0;
}

#checkout .metusa-quote-checkout .metusa-quote-product__name {
    color: #333333;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#checkout .metusa-quote-checkout .metusa-quote-product__name:hover {
    color: #0169ac;
}


/* Código de producto */

#checkout .metusa-quote-checkout .metusa-quote-product__reference {
    color: #666666;
    font-size: 12px;
    margin-top: 4px;
}


/* Cantidad */

#checkout .metusa-quote-checkout .metusa-quote-product__quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

#checkout .metusa-quote-checkout .metusa-quote-product__quantity span {
    color: #666666;
    font-size: 11px;
}

#checkout .metusa-quote-checkout .metusa-quote-product__quantity strong {
    color: #0169ac;
    font-size: 16px;
}


/* ==========================================================
   MENSAJE INFORMATIVO
   ========================================================== */

#checkout .metusa-quote-checkout .metusa-quote-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    margin-top: 16px;
    background: #f0f6fb;
    border-left: 3px solid #0169ac;
    border-radius: 4px;
    color: #0169ac;
    font-size: 13px;
    line-height: 1.5;
}

#checkout .metusa-quote-checkout .metusa-quote-notice i {
    flex-shrink: 0;
}


/* ==========================================================
   BOTON CONTINUAR
   ========================================================== */

#checkout .metusa-quote-checkout #customer-form button[name="continue"] {
    background: #0169ac;
    border-color: #0169ac;
}

#checkout .metusa-quote-checkout #customer-form button[name="continue"]:hover {
    background: #092554;
    border-color: #092554;
}


/* ==========================================================
   RESPONSIVE - CELULARES
   ========================================================== */

@media (max-width: 575px) {

    #checkout .metusa-quote-checkout #customer-form > section {
        grid-template-columns: minmax(0, 1fr);
    }

    #checkout .metusa-quote-checkout .metusa-quote-product {
        grid-template-columns: 50px minmax(0, 1fr) 53px;
        gap: 8px;
    }

    #checkout .metusa-quote-checkout .metusa-quote-product__image,
    #checkout .metusa-quote-checkout .metusa-quote-product__image img {
        width: 50px;
        height: 50px;
    }

}

.checkout-steps, #checkout .metusa-quote-checkout #customer-form .form-text { display: none !important;}
#checkout .metusa-quote-checkout #customer-form .form-label{ margin-bottom: 2px;}
.metusa-quote-checkout{ margin-top: 5%;}
.step__title.js-step-title { display: none !important;}