.contenedor-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 0px;
    border-radius: 5px;
    background: transparent;
}
.etiqueta-filtro {
    display: inline-block;
    padding: 10px 18px;
    font-size: 1.1em;
    color: #333;
    background-color: #f1f1f1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #ccc;
}
.etiqueta-filtro:hover {
    background: #d0d0d0;
}
.etiqueta-filtro.activa {
    background: #0073aa;
    color: #fff;
    font-weight: bold;
}
.contenedor-filtros {
    display: flex;
    flex-direction: column;
    background: #f4f4f4;
    align-content: flex-start;
    margin-top: 30px;
    border-radius: 20px;
    padding: 15px;
    border: 1px solid lightgray;
}
.linea-divisoria {
    position: relative;
    width: 100vw;
    height: 1px;
    background-color: #ccc;
    border: none;
    margin: 20px 0;
    left: 50%;
    transform: translateX(-50%);
}
#paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.pagina-boton.activo {
    background-color: #005f87;
    font-weight: bold;
    transform: scale(1.1);
}
.pagina-boton:hover {
    background-color: #005f87;
    transform: scale(1.1);
}
.pagina-boton:disabled,
.pagina-boton[disabled] {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}
#orden-productos {
    box-sizing: content-box;
    border-radius: 5px;
    font-size: 1em;
    min-width: 200px;
    min-height: 30px;
    color: white;
    font-weight: 600;
    background-color: #009fe3;
    padding: 6px;
}

#orden-productos:focus {
    border-color: #0073aa; /* Borde azul */
    outline: none;
}
.fila-filtros {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
    margin-left:auto;
    margin-right:auto;
}
#busqueda-productos {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 50px;
    text-align: left !important;
}
.contenedor-busqueda {
    width: 100%;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    height: 80px;
}
.cerrar-overlay {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}
#boton-filtros-movil {
    display: none;
}
.product-anuncio a,
.product-anuncio a:visited {
    color: #000;
    text-decoration: none;
}
.product-anuncio .boton-anuncio {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #000;
    background-color: transparent;
    color: #000;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}
.product-anuncio .boton-anuncio:hover {
    background-color: #000;
    color: #fff;
}
.product-anuncio {
    display: flex;
    flex-direction: column;
    justify-content: center;     /* Centrado vertical */
    align-items: center;         /* Centrado horizontal */
    text-align: center;
    height: 100%;
    padding: min(5vh, 2em);
    color: #000;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    min-height: 100%;
    box-sizing: border-box;
}
.product-anuncio .contenido-anuncio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.anuncio-titulo {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color:white;
}
.anuncio-descripcion {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 20px;
}
.fila-input-boton {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.grupo-input-un {
    display: flex;
    align-items: center;
    padding: 0px;
    background-color: #f9f9f9;
    justify-content: space-around;
    width: 150px;
    }
.input-cantidad-base {
    border: none;
    width: 120px;
    font-size: 1.2em;
    padding: 6px 4px;
    background: transparent;
    outline: none;
    margin: 0px;
}
.input-medida-ame {
    border: none;
    width: 100%;
    font-size: 1.05em;
    padding: 6px 4px;
    background: transparent;
    outline: none;
    margin: 0px;
    box-sizing: border-box;
}
.input-cantidad-base.input-azul,
.input-medida-ame.input-azul {
    border: 2px solid #0073e6;
}
.input-cantidad-base.input-rojo,
.input-medida-ame.input-rojo {
    border: 2px solid #e60000;
}
.input-cantidad-base.input-verde,
.input-medida-ame.input-verde {
    border: 2px solid #118847;
}
.btn-recalcular-ame {
    display: none;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    margin: 0;
    border: 1px solid #0073e6;
    border-radius: 6px;
    background: #ffffff;
    color: #0073e6;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.btn-recalcular-ame.btn-recalcular-ame-visible {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
}
.btn-recalcular-ame:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.producto-ame.ame-pendiente .precio-unitario-dinamico,
.producto-personalizado.std-pendiente .precio-unitario-dinamico {
    opacity: 0.65;
}
.producto-ame.ame-pendiente .etiqueta-precio,
.producto-personalizado.std-pendiente .etiqueta-precio {
    color: #e60000;
    font-weight: 600;
}
.producto-ame.ame-invalido .etiqueta-precio,
.producto-personalizado.std-invalido .etiqueta-precio {
    color: #e60000;
    font-weight: 600;
}
.producto-ame .producto-wrapper-ame {
    background-color: #D7D7D7;
}
.unidad-sufijo {
    font-size: 13px;
    color: #666;
    margin-left: 4px;
}
.icono-refresh {
    display: block;
}
.titulo-etiquetas-tienda {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #0073AA;
}
.descripcion-filtros-industrias {
    display: block;
    text-align: center;
    color: #7e7e7e;
    font-size: 1.1rem;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}
.titulo-industrias-tienda {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    color: black;
    font-size: 1.5rem;
    font-weight: 800;
}
.oculto {
  display: none !important;
}
#borrar-busqueda:not(.oculto) {
    font-size: 100%;
    margin: 0;
    border: 1px;
    border-color: black;
    border-radius: 10px;
    text-align: center !important;
    color: white;
    margin-right: 20px;
    margin-left: 5px;
    background-color: #007bff!important;
    height: 3em!important;
}
.skeleton-loader, .skeleton-anuncio {
    animation: pulse 1.6s ease-in-out infinite;
    background: #f6f7f8;
}
.skeleton-img {
    width: 100%;
    height: 180px;
    background: #ddd;
    border-radius: 6px;
}
.skeleton-title {
    width: 70%;
    height: 18px;
    background: #e0e0e0;
    margin: 10px auto;
    border-radius: 4px;
}
.skeleton-input {
    width: 60%;
    height: 20px;
    background: #eaeaea;
    border-radius: 4px;
}
.skeleton-boton {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background: #ccc;
    border-radius: 50%;
}
.skeleton-precio {
    width: 50%;
    height: 18px;
    background: #dcdcdc;
    margin: 8px auto;
    border-radius: 4px;
}
.skeleton-titulo-anuncio,
.skeleton-descripcion-anuncio,
.skeleton-boton-anuncio {
    background: #e8e8e8;
    border-radius: 5px;
    margin: 6px auto;
}
.skeleton-titulo-anuncio {
    height: 20px;
    width: 80%;
}
.skeleton-descripcion-anuncio {
    height: 16px;
    width: 90%;
}
.skeleton-boton-anuncio {
    height: 30px;
    width: 40%;
    background: #d1d1d1;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.45; }
    100% { opacity: 1; }
}
#cargar-mas-productos {
    background-color: #009FE3;
    color: white;
    height: 3em;
    width: 100%;
    font-size: 1.5em;
    font-weight: 400;
}

#lista-productos-tienda > li.wfa-mobile-progressive-hidden {
    display: none !important;
}

.pagina-boton {
    background-color: #009FE3;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1em;
    height: 100%;
    transition: background-color 0.3s ease;
}
.pagina-boton.activo {
    background-color: #009FE3;
    font-weight: bold;
    transform: scale(1.2);
    border: 2px solid black;
}
.ordenamiento-movil-placeholder {
  display: none;
}
.ordenamiento-movil-activo select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
}
#overlay-filtros {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}
#overlay-filtros.mostrar {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}
.overlay-contenido {
    background: #fff;
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
    margin-top: 3rem;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    z-index: 10000;
    position: relative;
}
body.woocommerce-page {
    position: relative;
    z-index: 1;
}
#cerrar-overlay-filtros {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    float: right;
    cursor: pointer;
    margin-top: -1rem;
    margin-right: -1rem;
}
.overlay-contenido::-webkit-scrollbar {
    width: 6px;
}
.overlay-contenido::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 3px;
}
.lista-categorias-estatica li {
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1.2rem;
  text-align:center;
  color:black;
}
.lista-categorias-estatica li.activa {
  color: #009fe3;
  font-weight: bold;
}
#tienda-layout {
    width: 100%;
    max-width: 1800px;
    box-sizing: border-box;
    padding: 0 20px;
    background: white;
}
.contenedor-busqueda {
    width: 100%;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}
.busqueda-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
#busqueda-productos {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#contenedor-principal {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}
/*#productos-tienda {
    flex-grow: 1;
    width: calc(100% - 250px);
}*/
#barra-lateral {
    width: 360px;
    background: white;
    padding: 20px;
    min-height: 100vh;
    position: sticky;
    top: 0;
}
#filtros-movil {
    display: none; /* Se activarÃ¡ en mÃ³viles */
    width: 100%;
    background: #f6f6f6;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}
ul.products, .wc-block-grid__products {
    padding: 0px;
    background: white;
}
.woocommerce-shop .col-full {
    background-color: white;
}
#contenedor-principal-dinamico {
    width: 100%;
    margin: 0 auto;  /* Centrarlo */
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#contenedor-extra {
    width: 100%;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    text-align: center;
}
#productos-tienda {
    width: 100%;
}
.categoria-flotante {
    position: fixed;
    top: 90px;
    left: 40px;
    z-index: 9999;
    background-color: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
    /* font-size: 1.1rem; */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99999;
    width: auto;
    font-weight: 400;
    width: auto;
}
.categoria-flotante button {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    line-height: 0.9;
    align-items: center;
}
.categoria-flotante.oculto {
  display: none;
}
.pagina-boton.flecha-anterior,
.pagina-boton.flecha-siguiente {
    background-color: #ffffff;
    color: #007cba;
    border: 2px solid #007cba;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.pagina-boton.flecha-anterior:hover,
.pagina-boton.flecha-siguiente:hover {
    background-color: #007cba;
    color: #ffffff;
}
.pagina-boton.flecha-anterior::before,
.pagina-boton.flecha-siguiente::after {
    font-size: 1.2em;
}
ul.products li.product.product-anuncio {
  position: relative;
  overflow: hidden;
}
body.woocommerce-shop ul.products li.product.product-anuncio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wca-pattern-actual);
  background-repeat: repeat;
  background-size: 300px auto;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}
body.woocommerce-shop ul.products li.product.product-anuncio .contenido-anuncio {
  position: relative;
  z-index: 2;
}
body.woocommerce-shop .lista-categorias-estatica {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.boton-oculto {
    display: none !important;
}
.imagen-producto img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.2s ease;
}
.imagen-producto img:hover {
    transform: scale(1.05);
}
.woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    line-height: 1.3;
}
body.woocommerce-shop ul.products li.product.wfa-pst-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    aspect-ratio: auto;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__media-link,
body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__title-link {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__media-link {
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__media-link:focus-visible,
body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__title-link:focus-visible,
body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__cta:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: -3px;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f5f5;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__media img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: transform 0.3s ease;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card:hover .wfa-pst-card__media img {
    transform: scale(1.03);
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 8px rgba(21, 31, 38, 0.12);
    color: #4f5a60;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(4px);
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 15px;
    gap: 12px;
    box-sizing: border-box;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__title {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: auto;
    min-height: calc(1.2em * 2);
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: auto;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__model,
body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__dimensions {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__model {
    color: #31373b;
    font-size: 1.08rem;
    font-weight: 700;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__dimensions {
    color: #687177;
    font-size: 0.96rem;
    font-weight: 500;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__actions {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__cta {
    position: static;
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    transform: none;
    border: 1px solid #c9d0d4;
    border-radius: 8px;
    background: #f4f6f7;
    box-shadow: none;
    color: #3f4a50;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    backdrop-filter: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card:hover .wfa-pst-card__cta {
    border-color: #8d989e;
    background: #eef1f2;
    color: #20272b;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__help {
    position: static;
    display: inline-flex;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__info-button {
    flex-basis: 25px;
    width: 25px;
    min-width: 25px;
    height: 25px;
    margin: 0;
}

body.woocommerce-shop ul.products li.product.wfa-pst-card .wfa-pst-card__tooltip {
    position: absolute;
    z-index: 20;
    top: 72px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    text-align: left;
    transform: none;
}

body.woocommerce-shop .wfa-card-tooltip--visible {
    animation: wfa-card-tooltip-in 160ms ease both;
}

@keyframes wfa-card-tooltip-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 991px) {
    #paginacion {
        gap: 5px;
    }
    .pagina-boton {
        padding: 8px 15px;
        font-size: 14px;
    }
    .product-anuncio {
        padding: 20px 10px;
    }
    .product-anuncio .boton-anuncio {
        font-size: 13px;
        padding: 8px 16px;
    }
    #boton-filtros-movil {
        top: 20px;
        position: fixed;
        display: flex;
        left: 20px;
        z-index: 10000;
        font-size: 18px;
        font-weight: bold;
        background-color: #d7e9fb;
        color: #333;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
        border: none;
        border-radius: 40px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        cursor: pointer;
        display: flex;
        line-height: 1;
        white-space: nowrap;
        justify-content: center;
        height: 60px;
        width: auto;
        margin: 0;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        }
        #barra-lateral {
            display: none;
        }
        #filtros-movil {
            display: block;
        }
        #boton-filtros-movil {
        transition: top 0.25s ease-in-out;
        }
          #boton-filtros-movil.visible {
            opacity: 1;
            pointer-events: auto;
          }
          .categoria-flotante {
            transition: top 0.25s ease-in-out, opacity 0.3s ease;
            opacity: 0;
            pointer-events: none;
          }
          .categoria-flotante.visible {
            opacity: 1;
            pointer-events: auto;
          }
          .ordenamiento-movil-placeholder {
            display: block;
          }
          #barra-lateral #contenedor-ordenamiento {
            display: none !important;
          }
          .imagen-producto img:hover {
                transform: none;
            }
}

/* Barra lateral de industrias: adaptación vertical del megamenú editorial. */
body.woocommerce-shop #barra-lateral {
    flex: 0 0 286px;
    width: 286px;
    min-height: 0;
    padding: 0;
    background: transparent;
    top: 24px;
}

body.woocommerce-shop .shop-industries-filter {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 27, 36, .14);
    border-radius: 8px;
    background: #f1eee7;
    color: #171b24;
    box-shadow: 0 14px 30px rgba(23, 27, 36, .08);
}

body.woocommerce-shop .shop-industries-filter .fila-filtros {
    display: block;
    margin: 0;
    padding: 0;
}

body.woocommerce-shop .shop-industries-filter__header {
    padding: 17px 16px 15px;
    border-bottom: 1px solid rgba(23, 27, 36, .14);
}

body.woocommerce-shop .shop-industries-filter__eyebrow {
    margin: 0 0 7px;
    color: #555d68;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.woocommerce-shop .shop-industries-filter .titulo-industrias-tienda {
    display: block;
    margin: 0;
    color: #171b24;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
    text-align: left;
}

body.woocommerce-shop .shop-industries-filter .descripcion-filtros-industrias {
    max-width: none;
    margin: 8px 0 0;
    color: #626a75;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li {
    margin: 0;
    padding: 0;
    color: #171b24;
    font-size: 14px;
    text-align: left;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug] {
    border-bottom: 1px solid rgba(23, 27, 36, .12);
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug] > button {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 9px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug] > button > span:last-child {
    flex: 0 0 auto;
    color: #7a818c;
    font-size: 15px;
    transition: color .18s ease, transform .18s ease;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug]:hover > button,
body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug] > button:focus-visible {
    background: #f7f8fb;
    color: #2244ee;
    outline: none;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug]:hover > button > span:last-child,
body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug] > button:focus-visible > span:last-child {
    color: #2244ee;
    transform: translateX(2px);
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[data-slug] > button:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(34, 68, 238, .3);
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li.activa > button {
    background: #fff;
    box-shadow: inset 4px 0 0 #2244ee;
    color: #2244ee;
    font-weight: 800;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica li[hidden] {
    display: none;
}

body.woocommerce-shop .shop-industries-filter__main-category--has-children > button > span:last-child {
    font-size: 18px !important;
    transform-origin: center;
}

body.woocommerce-shop .shop-industries-filter__main-category--has-children > button[aria-expanded="true"] > span:last-child {
    color: #2244ee !important;
    transform: rotate(180deg);
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica .shop-industries-filter__subcategory {
    background: #dfe5f2;
    border-bottom-color: rgba(34, 68, 238, .16);
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica .shop-industries-filter__subcategory > button {
    min-height: 41px;
    padding-left: 24px;
    font-size: 13px;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica .shop-industries-filter__subcategory:hover > button,
body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica .shop-industries-filter__subcategory > button:focus-visible {
    background: #edf1f8;
}

body.woocommerce-shop .shop-industries-filter .lista-categorias-estatica .shop-industries-filter__subcategory.activa > button {
    background: #f7f9fd;
}

body.woocommerce-shop .shop-industries-filter__section {
    padding: 12px 14px 7px !important;
    color: #676e79 !important;
    cursor: default !important;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.woocommerce-shop .shop-industries-filter__product-line {
    border-bottom: 0 !important;
}

body.woocommerce-shop .shop-industries-filter__product-line > button {
    min-height: 62px !important;
    background: #fafafa !important;
}

body.woocommerce-shop .shop-industries-filter__product-line > button > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

body.woocommerce-shop .shop-industries-filter__product-line small {
    color: #65706a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
}

body.woocommerce-shop .shop-industries-filter__product-line strong {
    color: #171b24;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.015em;
}

body.woocommerce-shop .shop-industries-filter__product-line:hover strong,
body.woocommerce-shop .shop-industries-filter__product-line.activa strong,
body.woocommerce-shop .shop-industries-filter__product-line > button:focus-visible strong {
    color: #2244ee;
}

body.woocommerce-shop .shop-industries-filter__product-line + .shop-industries-filter__product-line {
    border-top: 1px solid rgba(23, 27, 36, .12) !important;
}

body.woocommerce-shop .shop-industries-filter__product-line-link {
    display: none;
    border-bottom: 1px solid rgba(23, 27, 36, .12);
    background: #fff;
}

body.woocommerce-shop .shop-industries-filter__product-line.activa + .shop-industries-filter__product-line-link {
    display: block;
}

body.woocommerce-shop .shop-industries-filter__product-line-link > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 7px 14px 8px 18px;
    color: #0073aa;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

body.woocommerce-shop .shop-industries-filter__product-line-link > a:hover,
body.woocommerce-shop .shop-industries-filter__product-line-link > a:focus-visible {
    background: #f5fbfe;
    color: #005f8c;
    outline: none;
}

/* Tarjeta AME: misma familia visual que STD, conservando medidas editables. */
body.woocommerce-shop ul.products li.product.wfa-measure-product-card {
    position: relative;
    background: #d5d5d5;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .producto-wrapper-ame {
    background: #d5d5d5;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .imagen-producto {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d5d5d5;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .wca-product-card-link--image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .imagen-producto img:not(.icono-360-ame) {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .icono-360-ame {
    position: absolute;
    z-index: 3;
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    margin: 0;
    opacity: .72;
    pointer-events: none;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .wca-product-card-title {
    min-height: calc(1.2em * 2);
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .bloque-medidas-ame {
    width: 100%;
    margin-top: 8px;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .wfa-ame-card__measure-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 25px;
    margin-bottom: 5px;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .wfa-ame-card__measure-heading > .etiqueta-cantidad {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .wfa-ame-card__help {
    position: static;
    display: inline-flex;
    flex: 0 0 21px;
    align-items: center;
    justify-content: center;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .wfa-ame-card__info-button {
    flex-basis: 21px;
    width: 21px;
    min-width: 21px;
    height: 21px;
    margin: 0;
    font-size: 12px;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .wfa-ame-card__tooltip {
    position: absolute;
    z-index: 20;
    top: 72px;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    text-align: left;
    transform: none;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .fila-medidas-ame {
    position: relative;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 64px)) 28px;
    gap: 5px !important;
    align-items: center !important;
    justify-content: center;
    width: 100%;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .grupo-medida-ame {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .grupo-medida-ame > label {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    color: #747b80;
    font-size: clamp(9px, .66vw, 11px);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .grupo-medida-ame::after {
    content: 'cm';
    position: absolute;
    right: 6px;
    bottom: 13px;
    color: #6c757b;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .input-medida-ame,
body.woocommerce-shop ul.products li.product.wfa-measure-product-card .input-medida-ame.input-azul,
body.woocommerce-shop ul.products li.product.wfa-measure-product-card .input-medida-ame.input-verde,
body.woocommerce-shop ul.products li.product.wfa-measure-product-card .input-medida-ame.input-rojo {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 38px;
    padding: 0 23px 0 7px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #b9c0c4 !important;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    box-shadow: none;
    color: #31373b;
    font-size: clamp(13px, .9vw, 16px);
    font-weight: 700;
    line-height: normal;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .input-medida-ame:focus {
    border-color: #0073aa !important;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, .14);
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card.ame-pendiente .input-medida-ame:not(.input-rojo) {
    border-color: #0073aa !important;
    background: #f5fbfe;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .input-medida-ame.input-verde {
    border-color: #118847 !important;
    background: #f3fbf6;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .input-medida-ame.input-rojo {
    border-color: #c0362c !important;
    background: #fff7f6;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .unidad-sufijo-medidas {
    display: none;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .medidas-editar-boton {
    display: inline-flex;
    align-self: end;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #747b80;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, opacity .18s ease;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .medidas-editar-boton:hover,
body.woocommerce-shop ul.products li.product.wfa-measure-product-card .medidas-editar-boton:focus-visible {
    background: rgba(255, 255, 255, .38);
    color: #0073aa;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .medidas-editar-boton:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .medidas-editar-icono {
    width: 20px;
    height: 20px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card.ame-pendiente .medidas-editar-boton {
    opacity: 0;
    pointer-events: none;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .btn-recalcular-ame {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 1px solid #c9ced1;
    border-radius: 8px;
    background: #f3f4f4;
    color: #91999e;
    font-size: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .btn-recalcular-ame::before {
    content: '↻';
    font-size: 21px;
    line-height: 1;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .btn-recalcular-ame.btn-recalcular-ame-visible {
    visibility: visible;
    border-color: #0073aa;
    background: #fff;
    color: #0073aa;
    opacity: 1;
    pointer-events: auto;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .btn-recalcular-ame.btn-recalcular-ame-visible:not(:disabled):hover,
body.woocommerce-shop ul.products li.product.wfa-measure-product-card .btn-recalcular-ame.btn-recalcular-ame-visible:not(:disabled):focus-visible {
    border-color: #006494;
    background: #0073aa;
    color: #fff;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .btn-recalcular-ame[aria-busy='true']::before {
    animation: wca-card-rotate .85s linear infinite;
}

body.woocommerce-shop ul.products li.product.wfa-measure-product-card .bloque-precio {
    margin-top: 10px;
}

/* Paginación de tienda: mismo lenguaje visual y comportamiento que categorías. */
body.woocommerce-shop #paginacion {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 44px auto 36px;
    padding: 8px 10px;
    border: 1px solid #c4c7c9;
    border-radius: 2px;
    background: #e2e2e2;
    transition: opacity 160ms ease;
}

body.woocommerce-shop #paginacion[aria-hidden="true"] {
    display: none !important;
}

body.woocommerce-shop #paginacion.is-loading {
    opacity: .58;
}

body.woocommerce-shop #paginacion .pagina-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    min-height: 38px;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid #c4c7c9;
    border-radius: 2px;
    appearance: none;
    background: transparent;
    box-shadow: none;
    color: #20262d;
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transform: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.woocommerce-shop #paginacion a.pagina-boton:hover:not(.is-disabled),
body.woocommerce-shop #paginacion a.pagina-boton:focus-visible,
body.woocommerce-shop #paginacion button.pagina-boton:hover:not(:disabled),
body.woocommerce-shop #paginacion button.pagina-boton:focus-visible {
    border-color: #20262d;
    background: rgba(255, 255, 255, .55);
    color: #20262d;
    transform: none;
}

body.woocommerce-shop #paginacion a.pagina-boton:focus-visible,
body.woocommerce-shop #paginacion button.pagina-boton:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

body.woocommerce-shop #paginacion .pagina-boton.activo {
    border: 1px solid #20262d;
    background: #20262d;
    color: #fff;
    font-weight: 700;
    cursor: default;
    transform: none;
}

body.woocommerce-shop #paginacion .pagina-boton.is-disabled,
body.woocommerce-shop #paginacion button.pagina-boton:disabled {
    border-color: #c4c7c9;
    background: transparent;
    color: #20262d;
    cursor: wait;
    pointer-events: none;
    transform: none;
}

body.woocommerce-shop #paginacion .pagina-boton--direccion {
    padding-inline: 12px;
}

body.woocommerce-shop #paginacion .paginacion-ellipsis {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    min-height: 38px;
    color: #747b80;
    font-size: 16px;
    line-height: 1;
}

body.woocommerce-shop #paginacion .pagina-boton.flecha-anterior::before,
body.woocommerce-shop #paginacion .pagina-boton.flecha-siguiente::after {
    content: none;
}

@media screen and (max-width: 768px) {
    body.woocommerce-shop #paginacion {
        display: none !important;
    }
}
.woocommerce-shop .wca-shop-tag-filters .etiqueta-filtro--ver-todas {
    border-style: dashed;
    background: rgba(255, 255, 255, 0.5);
}

.woocommerce-shop .wca-shop-tag-filters .etiqueta-filtro--ver-todas::after {
    content: " +";
    font-weight: 700;
}

.woocommerce-shop .wca-shop-tag-filters .etiqueta-filtro--ver-todas:disabled::after {
    content: "";
}
