.carrusel-cabecera {
    padding: 4% 0 2% 0;
}

p.carrusel-subtitulo {
    font-size: 1.2rem;
    text-align: left;
    color: darkgray;
    margin-top: 0;
    margin-bottom: 0;
    line-height: initial;
    flex: 3;
}

.categorias-slider-wrapper {
    position: relative;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.categorias-slider-wrapper.is-ready {
    opacity: 1;
    visibility: visible;
}

.categorias-slider {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 20px 2px;
    box-sizing: border-box;
}

.categorias-slider::-webkit-scrollbar {
    display: none;
}

.anuncio-slide {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: calc((100% - 40px) / 3);
    height: 30rem;
    border-radius: 18px;
    background-color: #fafafa;
    box-shadow: 2px 4px 12px #00000014;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    transition: all .3s cubic-bezier(0, 0, .5, 1);
}

.anuncio-slide:hover {
    box-shadow: 2px 4px 16px #00000029;
    transform: scale3d(1.01, 1.01, 1.01);
    cursor: pointer;
}

.anuncio-parte-superior {
    flex-grow: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
}

.anuncio-parte-superior::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.anuncio-slide.texto-negro .anuncio-parte-superior::before {
    background: none;
}

.anuncio-contenido {
    position: relative;
    z-index: 1;
    text-align: left;
}

.anuncio-slide.texto-blanco .anuncio-titulo,
.anuncio-slide.texto-blanco .anuncio-mensaje {
    color: #fff;
}

.anuncio-slide.texto-negro .anuncio-titulo,
.anuncio-slide.texto-negro .anuncio-mensaje {
    color: #000;
}

.anuncio-titulo {
    font-size: 2em;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.anuncio-mensaje {
    margin: 0;
    font-size: 1.4em;
    font-weight: 400;
}

.anuncio-badge-producto {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    text-decoration: none;
    border-top: 1px solid #eee;
}

.anuncio-badge-producto:hover {
    background-color: #f9f9f9;
}

.badge-imagen {
    flex-shrink: 0;
    margin-right: 15px;
}
.badge-subtitulo {
    color: #333;
    line-height: normal;
}
.badge-imagen img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
}

.badge-info {
    text-align: left;
}

.badge-titulo {
    display: block;
    font-weight: 800;
    color: #333;
    font-size: larger;
}
.badge-precio {
    color: #000;
}

.categoria-slide {
    background-color: #f2f2f2;
    border-radius: 18px;
    box-shadow: 2px 4px 12px #00000014;
    display: flex;
    flex-direction: column;
    height: 30rem;
    overflow: hidden;
    position: relative;
    transition: all .3s cubic-bezier(0, 0, .5, 1);
    white-space: normal;
    width: calc((100% - 40px) / 3);
    flex-shrink: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    padding: 5rem;
    scroll-snap-align: start;
    text-decoration: none;
}

.categoria-slide:hover {
    box-shadow: 2px 4px 16px #00000029;
    transform: scale3d(1.01, 1.01, 1.01);
    cursor: pointer;
}

.categoria-slide img,
.categoria-slide .woocommerce-placeholder {
    width: 100%;
    height: auto;
    max-height: 15rem;
    display: block;
    mix-blend-mode: multiply;
    object-fit: contain;
}

.slide-info {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

.categoria-precio {
    font-weight: 600;
    color: #1d1d1f;
    display: block;
    margin-top: 0.5em;
}

.categoria-placeholder {
    height: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    text-align: center;
    width: 100%;
}

.categoria-title {
    display: block;
    width: 100%;
    text-decoration: none;
    color: #1d1d1f;
    white-space: normal;
    font-weight: 600;
    text-align: center;
    font-size: 1.2rem;
}

.texto-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: #f0f0f0;
    flex-shrink: 0;
    width: calc((100% - 40px) / 3);
    height: 30rem;
    border-radius: 18px;
    box-shadow: 2px 4px 12px #00000014;
    text-decoration: none;
    transition: all .3s cubic-bezier(0, 0, .5, 1);
    scroll-snap-align: start;
}

.texto-slide:hover {
    box-shadow: 2px 4px 16px #00000029;
    transform: scale3d(1.01, 1.01, 1.01);
    cursor: pointer;
}

.texto-slide.texto-blanco {
    background-color: #333;
}

.texto-slide.texto-blanco .texto-slide-titulo,
.texto-slide.texto-blanco .texto-slide-mensaje {
    color: #fff;
}

.texto-slide.texto-negro .texto-slide-titulo,
.texto-slide.texto-negro .texto-slide-mensaje {
    color: #000;
}

.texto-slide-titulo {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    font-weight: bold;
}

.texto-slide-mensaje {
    margin: 0;
    font-size: 1em;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #666;
    width: fit-content;
    height: fit-content;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
    opacity: 1;
    pointer-events: auto;
}

.slider-btn:hover {
    filter: brightness(1.2);
}

.slider-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-btn svg {
    width: 28px;
    height: 28px;
}

.slider-btn.prev {
    left: -15px;
    transform: unset;

}

.slider-btn.next {
    right: -15px;
    transform: unset;

}

@media (max-width: 767px) {


p.carrusel-subtitulo{
    font-size: 1em;
}

    .carrusel-cabecera {
        padding-top: 5%;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-content: center;
        flex-direction: column;
    }
    .categoria-slide,
    .anuncio-slide,
    .texto-slide {
        width: 80vw;
        height: auto;
    }
    .categoria-slide img,
    .categoria-placeholder {
        max-height: 12rem;
    }
    .anuncio-parte-superior {
        min-height: 180px;
        padding: 1.5rem;
    }
    .badge-imagen img {
        width: 60px;
        height: 60px;
    }
    .categoria-title,
    .anuncio-titulo,
    .texto-slide-titulo {
        font-size: 1.1rem;
    }
    .anuncio-mensaje,
    .texto-slide-mensaje {
        font-size: 0.9rem;
    }
    .slider-btn.prev {
        left: 5px;
    }
    .slider-btn.next {
        right: 5px;
    }
}

.anuncio-badge-post {
    padding: 2rem;
    min-height: 11rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-direction: column;
}

.anuncio-badge-post .badge-info-post {
    flex-grow: 1;
}

.anuncio-badge-post .badge-categoria {
    display: block;
    font-size: 0.8em;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.anuncio-slide:hover .anuncio-badge-post .badge-categoria {
    color: #0d47a1;
}

.anuncio-badge-post .badge-titulo {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: larger;
}

.anuncio-badge-post .badge-leermas {
    background-color: #0d47a1;
    color: #fff;
    padding: 8px 15px;
    border-radius: 12em;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.anuncio-slide:hover .anuncio-badge-post .badge-leermas {
    background-color: #1565c0;
}

.carrusel-barra-botones-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #ffffff;
}

.carrusel-boton-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.carrusel-boton-item:hover {
    transform: translateY(-2px);
    color: #0073aa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.carrusel-boton-icono {
    flex-shrink: 0;
}

.carrusel-boton-icono svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    display: block;
}

.carrusel-boton-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.carrusel-boton-texto {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.2;
}

.carrusel-boton-descripcion {
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1.3;
    color: #666;
}



.carrusel-boton-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    background-color: transparent; /* Cambiado de #f7f7f7 a transparente */
    padding: 50px; /* Aumentado el espacio interno (padding) */
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    border: 1px solid #e0e0e0; /* Borde fino y visible por defecto */
}

.carrusel-boton-item:hover {
    transform: translateY(-2px);
    color: #0073aa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #ccc; /* Borde ligeramente mÃ¡s oscuro en hover */
}


@media (max-width: 767px) {
    .carrusel-barra-botones-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 15px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .carrusel-barra-botones-wrapper::-webkit-scrollbar {
        display: none;
    }
    .carrusel-boton-item {
        flex-shrink: 0;
    }
    .carrusel-boton-icono svg {
        width: 28px;
        height: 28px;
    }
}