

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;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 20px 0;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
}

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

.anuncio-slide,
.categoria-slide,
.texto-slide {
    flex-shrink: 0;
    width: calc((100% - 40px) / 3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 2px 4px 12px #00000014;
    scroll-snap-align: start;
}

.slide-inner-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s cubic-bezier(0, 0, .5, 1);
    background-color: #fff;
}

.anuncio-slide:hover .slide-inner-wrapper,
.categoria-slide:hover .slide-inner-wrapper,
.texto-slide:hover .slide-inner-wrapper {
    transform: scale3d(1.01, 1.01, 1.01);
}

.anuncio-slide:hover,
.categoria-slide:hover,
.texto-slide:hover {
     box-shadow: 2px 4px 16px #00000029;
     cursor: pointer;
}

.anuncio-slide .slide-inner-wrapper {
    background-color: #fafafa;
}
.anuncio-slide { height: 30rem; }

.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 .slide-inner-wrapper {
    align-items: center;
    justify-content: space-between;
}
.categoria-slide img,
.categoria-slide .woocommerce-placeholder {
    width: 100%;
    height: auto;
    max-height: 15rem;
    display: block;
    mix-blend-mode: multiply;
    object-fit: contain;
    padding-top: 2rem; 
}

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

.categoria-precio {
    color: #1d1d1f;
    display: block;
    margin-top: 0.5em;
    padding-bottom: 1rem;
}

.categoria-placeholder {
    height: 15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    text-align: center;
    width: 100%;
}
.categoria-title {
    color: #FFE;
    white-space: normal;
    font-weight: 600;
    text-align: center;
    font-size: 0.95em;
    background: #3F51B5;
    display: block;
    line-height: 1.3em;
    padding: 1em;
    min-height: 50px;
    border-radius: 0;
}

/* --- NUEVA REGLA PARA TÍTULOS DE PRODUCTO --- */
.producto-title {
    color: #1d1d1f;
    white-space: normal;
    font-weight: 600;
    text-align: center;
    font-size: 1.2rem;
    display: block;
    padding: 1em;
}


.texto-slide { height: 30rem; }
.texto-slide .slide-inner-wrapper {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: #f0f0f0;
}

.texto-slide.texto-blanco .slide-inner-wrapper {
    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, .producto-title { 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: flex-start;
    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: 5px; 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; }


.categorias-slider .slide-info {
        padding:0;
}
.categorias-slider .categoria-slide img{
padding-top: 0rem;
    max-height: 10rem;

}







.categorias-slider .categoria-slide {
height:fit-content;
}