/* =========================================
   MAESTRAZGO - TERRITORIO
   ========================================= */

.maestrazgo-territorio {
    position: relative;
    margin-top: 40px;
}

.maestrazgo-territorio__header {
    margin-bottom: 75px;
}

.maestrazgo-territorio__header h2 {
    margin: 0 0 16px;
}

.maestrazgo-territorio__localidad {
    display: inline-block;
    margin-left: 24px;
    color: #D4303D;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    text-decoration: none;
}

.maestrazgo-territorio__localidad:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   BLOQUES DE TERRITORIO
   Cada categoría ocupa una línea completa.
   ========================================= */

.maestrazgo-territorio__bloques {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.maestrazgo-territorio__bloque {
    width: 100%;
}

.maestrazgo-territorio__bloque h3 {
    margin: 0 0 14px;
}


/* =========================================
   LISTADO DE TERRITORIO
   Los elementos se muestran en línea y
   saltan de línea cuando es necesario.
   ========================================= */

.maestrazgo-territorio__lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    padding-left: 24px;
}

.maestrazgo-territorio__elemento {
    position: relative;
}


/* =========================================
   TRIGGER DEL POPOVER
   ========================================= */

.maestrazgo-territorio__trigger {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent !important;
    padding: 0;
    margin: 0;
    color: #D4303D;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    box-shadow: none !important;
}

.maestrazgo-territorio__trigger:hover,
.maestrazgo-territorio__trigger:focus,
.maestrazgo-territorio__trigger:focus-visible {
    color: #D4303D;
    background: transparent !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    box-shadow: none !important;
    outline: none;
}


/* =========================================
   POPOVER
   ========================================= */

.maestrazgo-territorio__popover {
    position: absolute;
    z-index: 50;
    left: 0;
    bottom: calc(100% + 12px);
    width: 300px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    overflow: visible;
}

.maestrazgo-territorio__popover::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-right: 1px solid rgba(0, 0, 0, 0.10);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    transform: rotate(45deg);
}

.maestrazgo-territorio__popover[hidden] {
    display: none;
}


/* =========================================
   IMAGEN DEL POPOVER
   ========================================= */

.maestrazgo-territorio__popover-imagen {
    display: block !important;
    width: calc(100% + 40px) !important;
    max-width: none !important;
    height: 169px !important;
    margin: -20px -20px 18px !important;
    padding: 0 !important;
    object-fit: cover;
}


/* =========================================
   CONTENIDO DEL POPOVER
   ========================================= */

.maestrazgo-territorio__popover strong {
    display: block;
    margin-bottom: 10px;
    color: #222222;
}

.maestrazgo-territorio__popover p {
    margin: 0 0 8px;
    color: #505050;
    font-size: 14px;
    line-height: 1.5;
}

.maestrazgo-territorio__popover p span {
    font-weight: 600;
    color: #222222;
}

.maestrazgo-territorio__popover-text {
    margin-bottom: 12px;
    color: #505050;
    font-size: 14px;
    line-height: 1.5;
}

.maestrazgo-territorio__popover-text p:last-child {
    margin-bottom: 0;
}


/* =========================================
   ENLACE DEL POPOVER
   ========================================= */

.maestrazgo-territorio__popover-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #D4303D;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
}

.maestrazgo-territorio__popover-link:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.maestrazgo-territorio__popover-link span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.maestrazgo-territorio__popover-link:hover span {
    transform: translateX(4px);
}


/* =========================================
   LOGO DEL COMERCIO
   ========================================= */

.maestrazgo-logo-comercio {
    display: flex;
    align-items: center;
}

.maestrazgo-logo-comercio img {
    display: block;
    max-width: 180px !important;
    width: auto;
    height: auto;
}


/* =========================================
   INFORMACIÓN DEL COMERCIO
   ========================================= */

.maestrazgo-comercio-info__nombre {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 23px;
    color: #222222;
}

.maestrazgo-comercio-info__extracto {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #505050;
}

.maestrazgo-comercio-info__extracto p {
    margin: 0;
}


/* =========================================
   ENLACE "CONOCE EL COMERCIO"
   ========================================= */

.maestrazgo-comercio-info__enlace {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #D4303D;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    text-decoration: none;
}

.maestrazgo-comercio-info__enlace:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.maestrazgo-comercio-info__enlace span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.maestrazgo-comercio-info__enlace:hover span {
    transform: translateX(3px);
}


/* =========================================
   MAESTRAZGO - INFORMACIÓN DE LOCALIDAD
   ========================================= */

.maestrazgo-localidad-info {
    display: flex;
    flex-direction: column;
    gap: 28px;

}


/* =========================================
   BLOQUES DE LOCALIDAD
   Cada categoría ocupa una línea completa.
   ========================================= */

.maestrazgo-localidad-info__bloque {
    width: 100%;
}

.maestrazgo-localidad-info__bloque h3 {
    margin: 0 0 14px;
}


/* =========================================
   LISTADO DE LOCALIDAD
   Los establecimientos se muestran en línea.
   ========================================= */

.maestrazgo-localidad-info__lista {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    padding-left: 20px;
}

.maestrazgo-localidad-info__elemento {
    position: relative;
}

.maestrazgo-localidad-info__titulo {
    margin-bottom: 0;
}


/* =========================================
   POPOVER DE LOCALIDAD
   ========================================= */

.maestrazgo-localidad-info__elemento
.maestrazgo-territorio__popover {
    position: absolute;
    z-index: 50;
    left: 0;
    bottom: calc(100% + 12px);
    width: 300px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    overflow: visible;
}

.maestrazgo-localidad-info__elemento
.maestrazgo-territorio__popover::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border-right: 1px solid rgba(0, 0, 0, 0.10);
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    transform: rotate(45deg);
}

.maestrazgo-localidad-info
.maestrazgo-territorio__popover[hidden] {
    display: none;
}


/* =========================================
   COMERCIOS DE LA LOCALIDAD
   ========================================= */


.maestrazgo-localidad-comercios__lista {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 30px;
    padding-top: 20px;
}

.maestrazgo-localidad-comercio {
    min-width: 0;
}


/* =========================================
   IMAGEN DEL COMERCIO
   ========================================= */

.maestrazgo-localidad-comercio__imagen {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dcdcdc;
}

.maestrazgo-localidad-comercio__imagen img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================
   NOMBRE DEL COMERCIO
   ========================================= */

.maestrazgo-localidad-comercio__nombre {
    padding-top: 25px;
    margin: 0 0 8px;
}


/* =========================================
   ENLACE DEL COMERCIO
   ========================================= */

.maestrazgo-localidad-comercio__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #8C3B2A;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.maestrazgo-localidad-comercio__cta:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.maestrazgo-localidad-comercio__cta span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.maestrazgo-localidad-comercio__cta:hover span {
    transform: translateX(3px);
}


/* =========================================
   INFORMACIÓN BÁSICA DE LA LOCALIDAD
   ========================================= */

.maestrazgo-localidad-info__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maestrazgo-localidad-info__item h4 {
    margin: 0;
}

.maestrazgo-localidad-info__item p {
    margin: 0;
    padding-left: 20px;
}


/* =========================================
   ENLACES DE INFORMACIÓN DE LOCALIDAD
   ========================================= */

.maestrazgo-localidad-info__link {
    display: inline-flex;
    padding-left:20px;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    color: #D4303D;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}


/* =========================================
   HOVER DEL ENLACE
   ========================================= */

.maestrazgo-localidad-info__link:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   FLECHA DEL ENLACE
   ========================================= */

.maestrazgo-localidad-info__link span {
    display: inline-block;
    transition: transform 0.2s ease;
}


/* =========================================
   MOVIMIENTO DE LA FLECHA
   ========================================= */

.maestrazgo-localidad-info__link:hover span {
    transform: translateX(4px);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {

    .maestrazgo-localidad-comercios__lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 767px) {

    /* -----------------------------------------
       TERRITORIO
       ----------------------------------------- */

    .maestrazgo-territorio__bloques {
        gap: 25px;
    }

    .maestrazgo-territorio__lista {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }


    /* -----------------------------------------
       LOCALIDAD
       ----------------------------------------- */

    .maestrazgo-localidad-info {
        gap: 25px;
    }

    .maestrazgo-localidad-info__lista {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 15px;
    }


    /* -----------------------------------------
       POPOVERS
       ----------------------------------------- */

    .maestrazgo-territorio__popover,
    .maestrazgo-localidad-info__elemento
    .maestrazgo-territorio__popover {
        position: fixed;
        left: 50%;
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        width: calc(100vw - 40px);
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .maestrazgo-territorio__popover::after,
    .maestrazgo-localidad-info__elemento
    .maestrazgo-territorio__popover::after {
        display: none;
    }


    /* -----------------------------------------
       COMERCIOS
       ----------------------------------------- */

    .maestrazgo-localidad-comercios__lista {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   OTRAS LOCALIDADES DEL MAESTRAZGO
   ========================================= */

.maestrazgo-otras-localidades {
    margin-top: 0px;
}


/* =========================================
   TÍTULO
   ========================================= */

.maestrazgo-otras-localidades__titulo {
    margin: 0 0 20px;
}


/* =========================================
   LISTADO
   ========================================= */

.maestrazgo-otras-localidades__lista {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 40px;
    padding-top: 10px;
}


/* =========================================
   ENLACES
   ========================================= */

.maestrazgo-otras-localidades__enlace {
    display: inline-block;
    color: #D4303D;
    font-weight: 600;
    text-decoration: none;
}


/* =========================================
   HOVER
   ========================================= */

.maestrazgo-otras-localidades__enlace:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 767px) {

    .maestrazgo-otras-localidades {
        margin-top: 45px;
    }

    .maestrazgo-otras-localidades__lista {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

}


/* =========================================
   VÍDEO DE PRESENTACIÓN DEL COMERCIO
   ========================================= */

.maestrazgo-comercio-video {
    width: 100%;
    max-width: 420px;
}

.maestrazgo-comercio-video video {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================
   UBICACIÓN DEL COMERCIO
   ========================================= */

/* Cada bloque de información */
.maestrazgo-comercio-ubicacion__item {
    margin-bottom: 24px;
}

/* El último bloque no necesita margen inferior */
.maestrazgo-comercio-ubicacion__item:last-child {
    margin-bottom: 0;
}

/* Título */
.maestrazgo-comercio-ubicacion__item h4 {
    margin: 0;
    padding-bottom: 10px;
}

/* Texto con sangría */
.maestrazgo-comercio-ubicacion__item p {
    margin: 0;
    padding-left: 20px;
}

/* Enlace de localidad */
.maestrazgo-comercio-ubicacion__item p a {
    color: #D4303D;
    font-weight: 600;
    text-decoration: none;
}

/* Hover del enlace */
.maestrazgo-comercio-ubicacion__item p a:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   DATOS DEL COMERCIO
   ========================================= */

/*
 * Contenedor general.
 */
.maestrazgo-comercio-datos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/*
 * Cada dato se muestra en una línea.
 */
.maestrazgo-comercio-datos__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}


/*
 * Iconos SVG de los datos.
 */
.maestrazgo-comercio-datos__icono {
    flex: 0 0 20px;
    height: 20px;
    margin-top: 2px;
    display: block;
}


/*
 * Texto sin enlace.
 */
.maestrazgo-comercio-datos__texto {
    color: #D4303D;
    font-weight: 600;
    line-height: 1.5;
}


/*
 * Enlaces de los datos.
 */
.maestrazgo-comercio-datos__enlace {
    color: #D4303D;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}


/*
 * Hover de los enlaces.
 */
.maestrazgo-comercio-datos__enlace:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================
   REDES SOCIALES
   ========================================= */

/*
 * La fila mantiene exactamente la misma
 * estructura que el resto de los datos.
 */
.maestrazgo-comercio-datos__item--social {
    gap: 12px;
}


/*
 * Contenedor de los iconos sociales.
 */
.maestrazgo-comercio-datos__iconos-social {
    display: flex;
    align-items: center;
    gap: 30px;
}


/*
 * Enlaces de las redes.
 */
.maestrazgo-comercio-datos__social-enlace {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    text-decoration: none;
}


/*
 * Iconos SVG.
 */
.maestrazgo-comercio-datos__social-enlace img {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
}


/*
 * Las redes no llevan subrayado.
 */
.maestrazgo-comercio-datos__social-enlace:hover {
    text-decoration: none;
}


/* =========================================
   DESCUBRE LA LOCALIDAD
   ========================================= */


.maestrazgo-comercio-descubre-localidad h2 {
    margin: 0 0 12px;
}

.maestrazgo-comercio-descubre-localidad__enlace {
    color: #D4303D;
    font-weight: 600;
    text-decoration: none;
}

.maestrazgo-comercio-descubre-localidad__enlace:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   MAESTRAZGO - MENÚ DE COMERCIOS
   ========================================= */

/* .maestrazgo-menu-comercios__titulo {
    margin: 0 0 24px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    color: var(--color-heading-alt);
}
*/


/* =========================================
   LISTA
   ========================================= */

.maestrazgo-menu-comercios__lista {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}


/* =========================================
   ELEMENTOS
   ========================================= */

.maestrazgo-menu-comercios__item {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0;
    list-style: none;
    background-color: #F4EACD;
    border-radius: 0.75rem;
    /* border-bottom: 1px solid #dcdcdc;
*/
}

.maestrazgo-menu-comercios__item:last-child {
    border-bottom: 0;
}


/* =========================================
   ENLACES DEL MENÚ
   ========================================= */

.maestrazgo-menu-comercios__item a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    color: #D4303D;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}


/* =========================================
   HOVER / COMERCIO ACTIVO
   ========================================= */

.maestrazgo-menu-comercios__item a:hover,
.maestrazgo-menu-comercios__item.is-active a {
    color: #8C3B2A;
    background-color: #E7EADD;
    border-radius: 0.75rem;
    text-decoration: none;
}


/* =========================================
   INFORMACIÓN DEL PRODUCTO
   ========================================= */

.maestrazgo-producto-info__item p {
    margin: 0;
}


/* Enlaces */
.maestrazgo-producto-info__item p a {
    display: inline-block;
    padding-left: 20px;
    color: #D4303D;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
  }

.maestrazgo-producto-info__item h4 {
    font-size: 16px !important;
  }

/* Hover */
.maestrazgo-producto-info__item p a:hover {
    color: #D4303D;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Ver todos sus productos */
.maestrazgo-producto-info__todos {
    margin-top: 8px !important;
}

/* Separación entre bloques de información */
.maestrazgo-producto-info__item {
    margin-top: 24px;
}


/* =========================================
   MENÚ DE TIENDA - CATEGORÍAS/MARCAS
   ========================================= */

.maestrazgo-menu-tienda__item {
    display: block;
    margin-bottom: 12px;
    padding-left: 20px;
    color: #D4303E;
    text-decoration: none;
}

.maestrazgo-menu-tienda__item:hover {
    color: #D4303E;
    text-decoration: underline;
}

.maestrazgo-menu-tienda__item.is-active {
    font-weight: 600;
}

.maestrazgo-menu-tienda__item,
.maestrazgo-menu-marcas__item {
    display: block;
    margin-bottom: 12px;
    padding-left: 20px;
    color: #D4303E;
    text-decoration: none;
}

.maestrazgo-menu-tienda__item:hover,
.maestrazgo-menu-marcas__item:hover {
    color: #D4303E;
    text-decoration: underline;
}

.maestrazgo-menu-tienda__item.is-active,
.maestrazgo-menu-marcas__item.is-active {
    font-weight: 600;
}

h3.maestrazgo-menu-marcas__titulo {
    font-size: 16px;
}

h3.maestrazgo-menu-tienda__titulo {
    font-size: 16px;
}

/* =========================================
   PRODUCTOS DEL COMERCIO
   ========================================= */

.maestrazgo-productos-comercio ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.maestrazgo-productos-comercio ul.products li.product {
    width: auto !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding-bottom: 24px !important;
    background: #FFFFFF !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}


/* =========================================
   IMAGEN
   ========================================= */

.maestrazgo-productos-comercio ul.products li.product > a.woocommerce-LoopProduct-link {
    display: block !important;
    width: 100% !important;
}

.maestrazgo-productos-comercio ul.products li.product > a.woocommerce-LoopProduct-link img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}


/* =========================================
   COMERCIO
   ========================================= */

.maestrazgo-productos-comercio .maestrazgo-producto__comercio {
    margin: 18px 20px 0 !important;
    color: #D4303D !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
}


/* =========================================
   NOMBRE DEL PRODUCTO
   ========================================= */

.maestrazgo-productos-comercio ul.products li.product .woocommerce-loop-product__title {
    margin: 4px 20px 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}


/* =========================================
   LOCALIDAD
   ========================================= */

.maestrazgo-productos-comercio .maestrazgo-producto__localidad {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: fit-content !important;
    max-width: 100% !important;
    gap: 5px !important;
    margin: 0 20px !important;
    padding: 0 !important;
    color: #D4303D !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    text-align: left !important;
}

.maestrazgo-productos-comercio .maestrazgo-producto__localidad img {
    display: block !important;
    flex: 0 0 13px !important;
    width: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
    max-height: 13px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================
   PRECIO
   ========================================= */

.maestrazgo-productos-comercio ul.products li.product .price {
    display: block !important;
    margin: 10px 20px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #000 !important;
}

.maestrazgo-productos-comercio ul.products li.product .price .woocommerce-Price-amount,
.maestrazgo-productos-comercio ul.products li.product .price bdi,
.maestrazgo-productos-comercio ul.products li.product .price .woocommerce-Price-currencySymbol {
    display: inline !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}


/* =========================================
   BOTÓN VER PRODUCTO
   ========================================= */

.maestrazgo-productos-comercio ul.products li.product .button {
    display: block !important;
    width: fit-content !important;
    line-height: 16px !important;
    margin: 16px auto 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {

    .maestrazgo-productos-comercio ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* =========================================
   MÓVIL
   ========================================= */

@media (max-width: 767px) {

    .maestrazgo-productos-comercio {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .maestrazgo-productos-comercio ul.products {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: none !important;
    }

    .maestrazgo-productos-comercio ul.products li.product {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 0 24px 0 !important;
    }

    .maestrazgo-productos-comercio ul.products li.product > a.woocommerce-LoopProduct-link {
        width: 100% !important;
        max-width: none !important;
    }

}


/* =========================================
   TARJETAS DE PRODUCTO
   ========================================= */

.woocommerce ul.products li.product {
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 0 0 24px 0 !important;
}


/* =========================================
   IMAGEN
   ========================================= */

.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
    display: block;
}


/* =========================================
   COMERCIO
   ========================================= */

.woocommerce ul.products li.product .maestrazgo-producto__comercio {
    margin: 18px 20px 0 !important;
    color: #D4303D !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
}


/* =========================================
   NOMBRE DEL PRODUCTO
   ========================================= */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 4px 20px 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}


/* =========================================
   LOCALIDAD
   ========================================= */

.woocommerce ul.products li.product .maestrazgo-producto__localidad {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 20px !important;
    color: #D4303D !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
}

.woocommerce ul.products li.product .maestrazgo-producto__localidad img {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
}


/* =========================================
   PRECIO
   ========================================= */

.woocommerce ul.products li.product .price {
    display: block !important;
    margin: 10px 20px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #000 !important;
}


/* Mantener importe y símbolo € en la misma línea */
.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.woocommerce ul.products li.product .price bdi,
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
    display: inline !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}


/* =========================================
   BOTÓN VER PRODUCTO
   ========================================= */

.woocommerce ul.products li.product .button {
    display: block !important;
    width: fit-content !important;
    margin: 16px auto 0 !important;
    line-height: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
}
/* Botón Ver producto */
.woocommerce ul.products li.product .button,
.maestrazgo-productos-comercio ul.products li.product .button {
    display: block !important;
    width: fit-content !important;
    margin: 16px auto 0 !important;
    line-height: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    border-radius: 4px !important;
}

/* =========================================
   LOGOS DE COMERCIOS - GRID DESCUBRE
   ========================================= */

.maestrazgo-logo-comercio {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 40px !important;
    box-sizing: border-box !important;
    background-color: #FBF8EE !important;
}

/* Contenedor de los logos */
.elementor-portfolio-item__img:has(.maestrazgo-logo-comercio) {
    background-color: #FBF8EE !important;
}

/* Logo */
.elementor-portfolio-item__img .maestrazgo-logo-comercio {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 40px !important;
    box-sizing: border-box !important;
}


/* =========================================
   FILTRO DE PRODUCTOS EN SEARCH RESULTS
   ========================================= */


.maestrazgo-filtro-productos__lista {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-left: 20px;
    margin-bottom: 20px;
}

.maestrazgo-filtro-productos__opcion {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.maestrazgo-filtro-productos__opcion input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 8px 0 0 !important;
}

.maestrazgo-filtro-productos__opcion span {
    display: inline-block !important;
}


.maestrazgo-filtro-productos__titulo {
    margin-bottom: 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
}

.maestrazgo-filtro-productos__boton {
    padding: 10px 16px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    margin-right: 20px;
}


/* =========================================
   FILTRO SIN RESULTADOS
   ========================================= */


.maestrazgo-sin-resultados {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    background: #FBF8EE;
    border-radius: 6px;
    text-align: center;
}

.maestrazgo-sin-resultados h2 {
    margin: 0 0 8px;
}

.maestrazgo-sin-resultados p {
    margin: 0;
}



/* =========================================
   TARJETAS DE CATEGORÍAS
   ========================================= */

.imagen-contenedor {
    position: relative !important;
}

/* Imagen */

.imagen-contenedor > .elementor-widget-image {
    margin: 0 !important;
}

.imagen-contenedor > .elementor-widget-image img {
    display: block !important;
    width: 100% !important;
    /* height: 100% !important; */
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.imagen-contenedor:hover {
    filter: brightness(1.12) !important;
}



/* Capa superpuesta */

.imagen-contenedor .capa-html {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    box-sizing: border-box !important;
    z-index: 99 !important;
}


/* Título */

/* .imagen-contenedor .capa-html h3 {
    font-size: 36px !important;
    line-height: 42px !important;  */
    margin: 0 !important;
}


/* Resto del contenido */

.imagen-contenedor .capa-html h1,
.imagen-contenedor .capa-html h2,
.imagen-contenedor .capa-html h4,
.imagen-contenedor .capa-html h5,
.imagen-contenedor .capa-html h6,
.imagen-contenedor .capa-html p {
    margin-top: 0 !important;
}


/* Móvil */

@media (max-width: 767px) {

    .imagen-contenedor .capa-html {
        padding: 15px 25px !important;
    }

   /* .imagen-contenedor .capa-html h3 {
        font-size: 26px !important;
        line-height: 32px !important;  */
    }
}