.header-bottom .ts-menu nav>ul>li.special-item{margin-left:0!important}.header-bottom .ts-menu nav>ul>li:not(.special-item)+li.special-item{margin-left:auto!important}.header-bottom .ts-menu nav>ul>li.special-item:first-child{margin-left:auto!important}.header-bottom .ts-menu nav>ul>li.special-item+li.special-item{margin-left:10px!important}#menu-item-9214.special-item>a,li.menu-item-9214>a{cursor:pointer;display:inline-flex;align-items:center;gap:6px}#menu-item-9214 .ts-menu-drop-icon,li.menu-item-9214 .ts-menu-drop-icon{display:none!important}#menu-item-9214.special-item>a::after,li.menu-item-9214>a::after{content:"";width:14px;height:14px;flex:0 0 auto;background-color:currentColor;-webkit-mask:var(--mrc-arrow-right) no-repeat center / contain;mask:var(--mrc-arrow-right) no-repeat center / contain;transition:transform .16s ease}#menu-item-9214.special-item>a:hover::after,li.menu-item-9214>a:hover::after{transform:translateX(2px)}:root{--mrc-arrow-right:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>");
}

/* =================================================================
   ESTILOS PARA BOTÓN DE SOLICITUD DE COTIZACIÓN
   Fecha: 2026-02-05
   Aplica estilos personalizados al botón de solicitar cotización
   en las fichas de producto
   ================================================================= */
.yith-ywraq-add-button a.button {
    display: inline-block !important;
    min-width: 180px !important;
    text-align: center !important;
    border-radius: 50px !important;
}

a.add-request-quote-button.button {
    background: linear-gradient(135deg, #125BC9 0%, #125bc9 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    padding: 10px 20px 10px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 50px !important;
}

/* Estados hover y focus para mejor experiencia de usuario */
a.add-request-quote-button.button:hover,
a.add-request-quote-button.button:focus {
    background: linear-gradient(135deg, #0d47a1 0%, #125BC9 100%) !important;
    box-shadow: 0 4px 15px rgba(18, 91, 201, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* =================================================================
   ESTILOS PARA ENLACE "EXPLORAR LA LISTA"
   Mismo diseño que el botón de añadir pero respetando el ancho
   ================================================================= */
.yith_ywraq_add_item_browse_message a,
div[class*="yith_ywraq_add_item_browse-list"] a {
    background: linear-gradient(135deg, #125BC9 0%, #125bc9 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    display: inline-block !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-size: inherit !important;
    line-height: normal !important;
}

/* Estado hover para el enlace "Explorar la lista" */
.yith_ywraq_add_item_browse_message a:hover,
div[class*="yith_ywraq_add_item_browse-list"] a:hover,
.yith_ywraq_add_item_browse_message a:focus,
div[class*="yith_ywraq_add_item_browse-list"] a:focus {
    background: linear-gradient(135deg, #0d47a1 0%, #125BC9 100%) !important;
    box-shadow: 0 4px 15px rgba(18, 91, 201, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Asegurar que el contenedor del mensaje mantenga el espaciado apropiado */
.yith_ywraq_add_item_browse_message,
div[class*="yith_ywraq_add_item_browse-list"] {
    margin: 15px 0 !important;
    text-align: left !important;
}

/* Ajustar el contenedor principal de solicitud de presupuesto */
.yith-ywraq-add-to-quote {
    margin: 0px 0 !important;
    clear: both !important;
}

/* Estado de carga - mantener el mismo estilo y ancho */
a.add-request-quote-button.button.loading,
.add-request-quote-button.button.loading,
.yith-ywraq-add-button .button.loading,
.woocommerce a.add-request-quote-button.button.loading,
.woocommerce .add-request-quote-button.button.loading,
.yith-ywraq-add-button a.button.loading {
    background: linear-gradient(135deg, #125BC9 0%, #125bc9 100%) !important;
    color: transparent !important; /* Ocultar el texto durante la carga */
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    padding: 10px 20px 10px 20px !important;
    min-width: 180px !important; /* Mantener ancho mínimo */
    width: auto !important; /* Mantener el ancho automático */
    display: inline-block !important;
    cursor: wait !important;
    position: relative !important;
    box-sizing: border-box !important;
    border-radius: 50px !important; /* Mantener el border-radius */
}

/* Ocultar SOLO el texto "Añadiendo" durante la carga, no otros elementos */
.yith-ywraq-add-button .blockUI.blockMsg,
.yith-ywraq-add-button .blockUI .blockMsg {
    display: none !important;
}

/* Permitir que el botón se oculte cuando el producto está añadido */
.yith-ywraq-add-button.hide,
.yith-ywraq-add-button[style*="display:none"],
.yith-ywraq-add-button[style*="display:none"] {
    display: none !important;
}

/* Sobrescribir el :before de WooCommerce durante el loading - Spinner centrado */
.woocommerce a.add-request-quote-button.button.loading:before,
.woocommerce a.add-request-quote-button.button.loading:hover:before,
a.add-request-quote-button.button.loading:before,
.add-request-quote-button.button.loading:before,
.yith-ywraq-add-button .button.loading:before,
.yith-ywraq-add-button a.button.loading:before {
    background: transparent !important;
    background-color: transparent !important;
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: spinWithTranslate 0.8s linear infinite !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 10 !important;
    transform-origin: center !important;
}

/* Animación de rotación para el spinner - usando solo rotación */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Keyframes alternativo con translate incorporado */
@keyframes spinWithTranslate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Asegurar que el :after no interfiera */
a.add-request-quote-button.button.loading:after,
.add-request-quote-button.button.loading:after,
.yith-ywraq-add-button .button.loading:after,
.woocommerce a.add-request-quote-button.button.loading:after {
    display: none !important; /* Ocultar cualquier otro pseudo-elemento */
}

/* Prevenir cambios de tamaño durante la carga */
.yith-ywraq-add-button {
    min-height: 44px !important; /* Altura mínima del contenedor */
}

/* Forzar el mismo ancho en el estado loading específicamente */
.yith-ywraq-add-button a.add-request-quote-button.button.loading {
    min-width: 180px !important; /* Mantener el mismo ancho */
    border-radius: 50px !important; /* Mantener el border-radius durante la carga */
}

/* Asegurar que el contenedor del botón no cambie de tamaño */
.yith-ywraq-add-button {
    display: inline-block !important;
    min-width: 180px !important;
}

/* Prevenir el mensaje "Añadiendo..." específicamente durante la carga */
.yith-ywraq-add-button.loading .yith-ywraq-add-button-label,
.yith-ywraq-add-button .loading-text,
.button.loading + .loading-text {
    display: none !important;
}

/* =================================================================
   ESTILOS PARA MENSAJES DE INFORMACIÓN DE SOLICITUD DE PRESUPUESTO
   Fecha: 2026-02-05
   Aplica estilos discretos y profesionales a los mensajes informativos
   del sistema de solicitud de presupuesto YITH
   ================================================================= */
/* Mensaje informativo general */
div[class*="yith_ywraq_add_item_product_message"],
.yith_ywraq_add_item_product_message {
    background: #f0f6ff !important;
    border-left: 4px solid #125BC9 !important;
    color: #333333 !important;
    padding: 12px 15px !important;
    margin: 15px 0 !important;
    border-radius: 0 4px 4px 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    animation: slideInMessage 0.3s ease-out !important;
    position: relative !important;
}

/* Mensaje de éxito (producto añadido) */
div[class*="yith_ywraq_add_item_product_message"].success,
.yith_ywraq_add_item_product_message.success {
    background: #f0f9f4 !important;
    border-left-color: #28a745 !important;
}

/* Mensaje de advertencia (producto ya en lista) */
div[class*="yith_ywraq_add_item_product_message"].warning,
.yith_ywraq_add_item_product_message.warning,
div[class*="yith_ywraq_add_item_product_message"]:has-text("ya está en la lista") {
    background: #fff9e6 !important;
    border-left-color: #ffc107 !important;
}

/* Mensaje de error */
div[class*="yith_ywraq_add_item_product_message"].error,
.yith_ywraq_add_item_product_message.error {
    background: #fef2f2 !important;
    border-left-color: #dc3545 !important;
}

/* Animación de entrada suave */
@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo cuando el mensaje está oculto */
div[class*="yith_ywraq_add_item_product_message"].hide-when-removed,
.yith_ywraq_add_item_product_message.hide-when-removed {
    transition: opacity 0.3s ease-out !important;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    div[class*="yith_ywraq_add_item_product_message"],
    .yith_ywraq_add_item_product_message {
        font-size: 13px !important;
        padding: 10px 12px !important;
        margin: 10px 0 !important;
    }
}

/* =================================================================
   ESTILOS PARA BOTÓN DE COMPARAR EN POPUP
   Fecha: 2026-02-06
   Aplica el mismo estilo del botón de presupuesto al botón comparar
   ================================================================= */
a.button.link-to-compare,
.ts-compare-popup a.button.link-to-compare {
    background: linear-gradient(135deg, #125BC9 0%, #125bc9 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    padding: 10px 20px 10px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Estado hover para el botón de comparar */
a.button.link-to-compare:hover,
.ts-compare-popup a.button.link-to-compare:hover,
a.button.link-to-compare:focus,
.ts-compare-popup a.button.link-to-compare:focus {
    background: linear-gradient(135deg, #0d47a1 0%, #125BC9 100%) !important;
    box-shadow: 0 4px 15px rgba(18, 91, 201, 0.3) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =================================================================
   DISEÑO DE PESTAÑA COMPACTA PARA BOTÓN DE COMPARAR
   Fecha: 2026-02-12
   Rediseño del botón de comparar como pestaña discreta inferior
   ================================================================= */

/* OCULTAR la pestaña flotante "Comparar (N)" del comparador del tema (plugin
   themesky → .ts-stick-compare-button, position:fixed pegada abajo-izquierda).
   No se usa el comparador como pestaña fija; estorbaba pegada al bottom. Se
   oculta en TODOS sus estados (con y sin .active) y en todo el sitio. El botón
   "Añadir a comparar" de la ficha NO se toca (sigue disponible). */
.ts-stick-compare-button,
.ts-stick-compare-button.active {
    display: none !important;
}
/* =================================================================
   FIX ICONO PINTEREST EN FOOTER (2026-06)
   La fuente icomoon del tema NO incluye glifo para
   .icon-brand-pinterest, por lo que el icono salía vacío.
   Lo sustituimos por un SVG enmascarado que hereda el color actual.
   ================================================================= */
i.icon-brand-pinterest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
i.icon-brand-pinterest:before {
    content: "" !important;
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: var(--yoo-pinterest-svg) no-repeat center / contain;
    mask: var(--yoo-pinterest-svg) no-repeat center / contain;
}
:root {
    --yoo-pinterest-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path fill='black' d='M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z'/></svg>");
}

/* --------------------------------------------------------------------------
   Dropdown de cuenta del header (tema): ocultar "Mis pedidos" hardcodeado.
   La tienda va por PRESUPUESTOS (no pedidos). El enlace .orders está fijado
   en el vendor (merto/framework/woo_functions.php L55) y no es editable; se
   oculta aquí. Los enlaces útiles (Mis presupuestos / Detalles) se añaden por
   los custom links del tema (opción merto_theme_options).
   -------------------------------------------------------------------------- */
.ts-tiny-account-wrapper .account-dropdown-form li a.orders {
    display: none !important;
}
.ts-tiny-account-wrapper .account-dropdown-form li:has(> a.orders) {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Hotline del header: teléfono (+34 917 762 570). El markup lo genera
   includes/header-hotline.php con la clase estándar .hotline, por lo que
   hereda el estilo de teléfono del tema padre. No se necesita override.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Botón de envío de los formularios de contacto (Contact Form 7) en el azul
   de marca del proyecto (--yoo-color-primary #125bc9). Antes heredaba el color
   por defecto del tema. Acotado a .wpcf7 para no afectar otros botones.
   -------------------------------------------------------------------------- */
.wpcf7 .wpcf7-submit,
.wpcf7 input.wpcf7-form-control.wpcf7-submit,
.wpcf7-form-submit .wpcf7-submit {
    background-color: var(--yoo-color-primary, #125bc9) !important;
    border-color: var(--yoo-color-primary, #125bc9) !important;
    color: #fff !important;
    border-radius: var(--yoo-radius-md, 8px);
    font-weight: 600;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.wpcf7 .wpcf7-submit:hover,
.wpcf7 input.wpcf7-form-control.wpcf7-submit:hover,
.wpcf7-form-submit .wpcf7-submit:hover {
    background-color: var(--yoo-color-primary-hover, #0f4ea8) !important;
    border-color: var(--yoo-color-primary-hover, #0f4ea8) !important;
    transform: translateY(-1px);
}
.wpcf7 .wpcf7-submit:focus-visible {
    outline: 2px solid var(--yoo-color-primary-active, #0d47a1);
    outline-offset: 2px;
}

/* =================================================================
   "Catálogo 2026" (9214): NO megamenú/hover. Solo abre el modal al clic.
   Defensa por si quedara markup de megamenú: se oculta el panel y su overlay.
   ================================================================= */
#menu-item-9214.ts-megamenu-wrapper > .sub-menu,
#menu-item-9214 > .sub-menu,
#menu-item-9214 .ts-megamenu-container,
li.menu-item-9214 > .sub-menu,
li.menu-item-9214 .ts-megamenu-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* =================================================================
   MÓVIL: el drawer del menú (#group-icon-header .ts-sidebar-content)
   asomaba ~8px por el borde IZQUIERDO cuando está cerrado, porque el
   tema padre lo oculta con translateX(400px) hacia la derecha (RTL) pero
   nuestro panel es más ancho / va anclado a la izquierda. Esa franja del
   panel es el "espacio" que desplazaba/recortaba el contenido a la izq.
   Fix: con el menú CERRADO, sacar el panel del todo fuera de pantalla.
   (Petición 2026-07-13.) Reversible: borrar este bloque.
   ================================================================= */
#group-icon-header.ts-floating-sidebar:not(.active) .ts-sidebar-content {
    transform: translateX(-101%) !important;
    visibility: hidden;
    box-shadow: none !important;
}
#group-icon-header.ts-floating-sidebar.active .ts-sidebar-content {
    visibility: visible;
}

/* =================================================================
   MÓVIL: juntar un poco los iconos del header (lupa, cuenta, carrito).
   El tema deja gap 20px en .header-right; se reduce a 10px en móvil.
   (Petición 2026-07-13.) Reversible: borrar este bloque.
   ================================================================= */
@media (max-width: 767px) {
    .header-middle .header-right {
        gap: 0 10px !important;
    }
}

/* =================================================================
   MÓVIL: más padding lateral en páginas de TIENDA/CATEGORÍA (24px). El
   tema deja 10px → el contenido (título, breadcrumb, rejilla de productos)
   salía pegado al borde. Se cubren AMBOS contenedores: .container (título/
   breadcrumb) y .page-container (donde vive la rejilla de productos).
   Acotado a páginas Woo. (Petición 2026-07-13.) Reversible: borrar bloque.
   ================================================================= */
@media (max-width: 767px) {
    .woocommerce-page .container,
    .archive.woocommerce .container,
    .tax-product_cat .container,
    .woocommerce-page .page-container,
    .archive.woocommerce .page-container,
    .tax-product_cat .page-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

/* =================================================================
   MÓVIL: las CARDS DE PRODUCTO a full width (el resto conserva los 24px).
   Se compensa el padding lateral del .page-container SOLO en la rejilla de
   productos (.main-products), y el TEXTO de cada card recibe aire interno
   para no pegar al borde. (Petición 2026-07-13.) Reversible: borrar bloque.
   ================================================================= */
@media (max-width: 767px) {
    /* La rejilla de productos se extiende hasta el borde (anula los 24px del
       contenedor con margen negativo). El toolbar/contadores quedan igual. */
    .woocommerce.main-products,
    .archive.woocommerce .main-products {
        margin-left: -24px;
        margin-right: -24px;
    }
    /* Texto de cada card (título, precio, meta): aire mínimo para no pegar. */
    .woocommerce.main-products .product .product-name,
    .woocommerce.main-products .product .woocommerce-loop-product__title,
    .woocommerce.main-products .product .meta-wrapper,
    .woocommerce.main-products .product .price,
    .woocommerce.main-products .product .star-rating {
        padding-left: 4px;
        padding-right: 4px;
    }
    /* Títulos de SECCIÓN de categoría/subcategoría dentro de la rejilla full
       width (p. ej. "Aula Infantil", "↳ Armarios"): recuperan el margen para
       no quedar pegados al borde. */
    .woocommerce.main-products .category-section-title,
    .woocommerce.main-products .subcategory-section-title,
    .woocommerce.main-products .yoo-category-section-title,
    .woocommerce.main-products .yoo-subcategory-section-title,
    .woocommerce.main-products .category-title-item {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* -----------------------------------------------------------------------------
   Top bar (store notice): botón "Ver aquí" — píldora blanca sobre el fondo azul.
   El aspecto base va inline en el <a class="ts-notice-btn"> (opción
   merto_theme_options.ts_store_notice); aquí solo el hover/transición.
----------------------------------------------------------------------------- */
.ts-store-notice a.ts-notice-btn {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.ts-store-notice a.ts-notice-btn:hover {
    background-color: #eef3fc !important;
    color: #0f4ea8 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}
@media (max-width: 767px) {
    .ts-store-notice a.ts-notice-btn {
        margin-left: 6px !important;
        padding: 3px 12px !important;
    }
}

/* -----------------------------------------------------------------------------
   Home · módulo "Nuestras últimas noticias" (widget ts-blogs). Las imágenes son cuadradas (1000×1000 → 395×395) y quedan demasiado altas. Las reducimos a~la mitad con object-fit:cover,SOLO en la home (body.home),para no afectar al listado/ficha del blog (rediseño en blog-redesign.css). ----------------------------------------------------------------------------- */ body.home .ts-blogs article .thumbnail-content figure,body.home .ts-blogs article .thumbnail figure,body.home .ts-blogs article.has-post-thumbnail .thumbnail{height:200px}body.home .ts-blogs article .thumbnail-content figure img,body.home .ts-blogs article.has-post-thumbnail .thumbnail img{height:100%;width:100%;object-fit:cover;object-position:center}@media (max-width:1024px){body.home .ts-blogs article .thumbnail-content figure,body.home .ts-blogs article .thumbnail figure,body.home .ts-blogs article.has-post-thumbnail .thumbnail{height:180px}}@media (max-width:767px){body.home .ts-blogs article .thumbnail-content figure,body.home .ts-blogs article .thumbnail figure,body.home .ts-blogs article.has-post-thumbnail .thumbnail{height:190px}}