/*************************************/
/*    TEMPLATE SLIDESHOW PRINCIPAL   */
/*************************************/
.template-slideshow-principal {
    width: 100%;
    padding: 0;
}

.template-slideshow-principal .slideshow-contenedor {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.template-slideshow-principal .slide {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    aspect-ratio: 16/9;
}

.template-slideshow-principal .slide.activo {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.template-slideshow-principal .slide>img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.template-slideshow-principal .contenido-slide {
    position: absolute;
    top: 0%;
    width: 100%;
    height: 100%;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
    padding-bottom: 63px;
}

.template-slideshow-principal .boton-slide {
    padding: 0.7rem 1rem;
    background-color: rgba(0, 0, 0, 0.35);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.template-slideshow-principal .boton-slide:hover {
    background-color: white;
    color: #3A3A34;
}

.template-slideshow-principal .titulo-slide {
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05em;
}

.template-slideshow-principal .enlace-slide {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: white;
    transition: opacity 0.3s ease;
}

.template-slideshow-principal .enlace-slide:hover {
    opacity: 0.8;
}

.template-slideshow-principal .navegacion-slideshow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.template-slideshow-principal .punto-navegacion {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.template-slideshow-principal .punto-navegacion:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.template-slideshow-principal .punto-navegacion.activo {
    background-color: white;
}

@media (max-width: 768px) {
    .template-slideshow-principal .slide {
        aspect-ratio: 4/3;
    }

    .template-slideshow-principal .titulo-slide {
        font-size: 2rem;
    }

    .template-slideshow-principal .navegacion-slideshow {
        bottom: 1rem;
    }
}

/*************************************/
/*         TEMPLATE CARRUSEL         */
/*************************************/

.template-categorias-slider {
    width: 100%;
    padding: 0;
    background-color: white;
    padding-bottom: 1.1rem;
    padding-top: 1.3rem;
}

.template-categorias-slider .categorias-slider-titulo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: #7E7E7C;
    margin: 0 0 10px 50px;
    text-align: left;
}

.template-categorias-slider .categorias-slider-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    padding-left: 50px;
    padding-right: 15px;
    -webkit-overflow-scrolling: touch;
}

.template-categorias-slider .categorias-slider-container::-webkit-scrollbar {
    height: 7px;
    background: rgba(0, 0, 0, 0);
    cursor: pointer;
}

:root {
    --scrollbar-track-start: 27%;
    --scrollbar-track-end: 63%;
    --scrollbar-thumb-start: 29%;
    --scrollbar-thumb-end: 60%;
}

/* Responsive scrollbar variables */
@media (max-width: 767px) {
    :root {
        --scrollbar-track-start: 10%;
        --scrollbar-track-end: 91%;
        --scrollbar-thumb-start: 25%;
        --scrollbar-thumb-end: 75%;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    :root {
        --scrollbar-track-start: 16%;
        --scrollbar-track-end: 84%;
        --scrollbar-thumb-start: 25%;
        --scrollbar-thumb-end: 75%;
    }
}

@media (min-width: 1280px) {
    :root {
        --scrollbar-track-start: 16%;
        --scrollbar-track-end: 84%;
        --scrollbar-thumb-start: 25%;
        --scrollbar-thumb-end: 75%;
    }
}

.template-categorias-slider .categorias-slider-container::-webkit-scrollbar-track {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) var(--scrollbar-track-start),
            #efefef var(--scrollbar-track-start),
            #efefef var(--scrollbar-track-end),
            rgba(0, 0, 0, 0) var(--scrollbar-track-end),
            rgba(0, 0, 0, 0) 100%);
}

.template-categorias-slider .categorias-slider-container::-webkit-scrollbar-thumb {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) var(--scrollbar-thumb-start),
            #cccc var(--scrollbar-thumb-start),
            #cccc var(--scrollbar-thumb-end),
            rgba(0, 0, 0, 0) var(--scrollbar-thumb-end),
            rgba(0, 0, 0, 0) 100%);
    border-radius: 0;
    cursor: pointer;
}

.template-categorias-slider .categorias-slider-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) var(--scrollbar-thumb-start),
            #7E7E7C var(--scrollbar-thumb-start),
            #7E7E7C var(--scrollbar-thumb-end),
            rgba(0, 0, 0, 0) var(--scrollbar-thumb-end),
            rgba(0, 0, 0, 0) 100%);
}

/* Tarjeta de categoría */
.template-categorias-slider .categorias-card {
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Contenedor de imagen con overflow hidden para el zoom */
.template-categorias-slider .categorias-card .categorias-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.template-categorias-slider .categorias-card .categorias-image>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover: zoom + sombra */
.template-categorias-slider .categorias-card:hover .categorias-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-categorias-slider .categorias-card:hover .categorias-image>img {
    transform: scale(1.05);
}

/* Nombre de categoría */
.template-categorias-slider .categorias-card .category-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: #7E7E7C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* ====
   RESPONSIVE: Mobile (2 imágenes + media)
   ==== */

@media (max-width: 767px) {
    .template-categorias-slider .categorias-card {
        width: calc((100% - 16px) / 2.5);
    }
}

/* ====
   RESPONSIVE: Tablet/Desktop (4 imágenes + media)
   ==== */

@media (min-width: 768px) and (max-width: 1279px) {
    .template-categorias-slider .categorias-card {
        width: calc((100% - 32px) / 4.5);
    }
}

/* ====
   RESPONSIVE: Large Desktop (6 imágenes + media)
   ==== */

@media (min-width: 1280px) {
    .template-categorias-slider .categorias-card {
        width: calc((100% - 40px) / 4.5);
    }
}

/*************************************/
/*       TEMPLATE DOS IMAGENES       */
/*************************************/

.template-dos-imagenes {
    display: flex;
    width: 100%;
    padding: 0;
}

.template-dos-imagenes .imagen-enlace {
    position: relative;
    flex: 1;
    overflow: hidden;
    text-decoration: none;
    display: block;
    aspect-ratio: 4/5;
}

.template-dos-imagenes .imagen-enlace>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-dos-imagenes .contenido-superpuesto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.template-dos-imagenes .titulo {
    font-size: 2.6rem;
    font-weight: 400;
    /*margin-bottom: 1rem;*/
    letter-spacing: 0.05em;
}

.template-dos-imagenes .enlace-texto {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-decoration: underline;
    text-underline-offset: 4px;
}


.template-dos-imagenes .boton-slide {
    padding: 0.35rem 0.6rem;
    background-color: rgba(0, 0, 0, 0.20);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.template-dos-imagenes .boton-slide:hover {
    background-color: white;
    color: #3A3A34;
}


@media (max-width: 768px) {
    .template-dos-imagenes {
        flex-direction: column;
    }

    .template-dos-imagenes .titulo {
        font-size: 2rem;
    }
}

/*************************************************/
/* TEMPLATE IMAGEN PRINCIPAL CON CUATRO DETALLES */
/*************************************************/

.template-imagen-principal-cuatro-detalles {
    width: 100%;
    padding: 1rem;
}

.template-imagen-principal-cuatro-detalles .encabezado {
    margin-bottom: 0.3rem;
    padding-left: calc(50px - 1rem);
}

.template-imagen-principal-cuatro-detalles .subtitulo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: #7E7E7C;
    margin-bottom: 0.5rem;
}

.template-imagen-principal-cuatro-detalles .titulo {
    font-size: 2.2rem;
    color: #7E7E7C;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
    line-height: 1.7rem;
}

.template-imagen-principal-cuatro-detalles .contenedor-principal {
    display: flex;
    gap: 34px;
    padding-left: calc(50px - 1rem);
    padding-right: calc(50px - 1rem);
}

.template-imagen-principal-cuatro-detalles .imagen-principal {
    position: relative;
    flex: 1;
    aspect-ratio: 4/5;
}

.template-imagen-principal-cuatro-detalles .imagen-principal>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-imagen-principal-cuatro-detalles .boton-ver-todo {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    padding: 0.45rem 1.2rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.template-imagen-principal-cuatro-detalles .boton-ver-todo:hover {
    background-color: white;
    color: #3A3A34;
}

.template-imagen-principal-cuatro-detalles .grid-detalles {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 13px;
}

.template-imagen-principal-cuatro-detalles .tarjeta-producto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.template-imagen-principal-cuatro-detalles .contenedor-imagen {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: #f5f5f5;
}

.template-imagen-principal-cuatro-detalles .contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-imagen-principal-cuatro-detalles .boton-favorito {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
}

.template-imagen-principal-cuatro-detalles .icono-corazon {
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: #3A3A34;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.template-imagen-principal-cuatro-detalles .icono-corazon.marcado {
    content: url('../assets/corazon_fav_marcado.svg');
}

.template-imagen-principal-cuatro-detalles .boton-favorito:hover .icono-corazon {
    transform: scale(1.1);
}

.template-imagen-principal-cuatro-detalles .info-producto {
    padding: 0.05rem 0 0 0;
}

.template-imagen-principal-cuatro-detalles .linea-principal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0rem;
}

.template-imagen-principal-cuatro-detalles .nombre-producto {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3A3A34;
    margin: 0;
    padding-right: 5px;
    line-height: 0.9rem;
}

.template-imagen-principal-cuatro-detalles .precios {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.template-imagen-principal-cuatro-detalles .precio-anterior {
    font-size: 0.85rem;
    color: #7E7E7C;
    text-decoration: line-through;
    line-height: 0.9rem;
}

.template-imagen-principal-cuatro-detalles .precio-actual {
    font-size: 0.85rem;
    color: #3A3A34;
    font-weight: 600;
    padding-right: 0.3rem;
    line-height: 0.9rem;
}

.template-imagen-principal-cuatro-detalles .descripcion {
    font-size: 0.85rem;
    color: #7E7E7C;
    margin: 0;
}

.template-imagen-principal-cuatro-detalles .colores {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.2rem;
    min-height: 12px;
}

.template-imagen-principal-cuatro-detalles .color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .template-imagen-principal-cuatro-detalles .contenedor-principal {
        flex-direction: column;
    }

    .template-imagen-principal-cuatro-detalles .imagen-principal {
        aspect-ratio: 4/5;
    }

    .template-imagen-principal-cuatro-detalles .titulo {
        font-size: 1.5rem;
    }

    .template-imagen-principal-cuatro-detalles .boton-ver-todo {
        bottom: 50%;
        right: 50%;
        transform: translate(50%, 50%);
    }
}


/*************************************************/
/*            TEMPLATE TRES IMAGENES             */
/*************************************************/

.template-tres-imagenes {
    width: 100%;
    padding: 20px 50px;
}

.template-tres-imagenes .titulo-seccion {
    font-size: 2.2rem;
    color: #7E7E7C;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
    line-height: 1.7rem;
}

.template-tres-imagenes .contenedor-imagenes {
    display: flex;
    gap: 0.7rem;
}

.template-tres-imagenes .imagen-enlace {
    flex: 1;
    display: block;
    overflow: hidden;
    border-radius: 1.3rem;
    aspect-ratio: 4/5;
}

.template-tres-imagenes .imagen-enlace>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.template-tres-imagenes video.imagen-enlace {

    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.template-tres-imagenes .imagen-enlace:hover>img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .template-tres-imagenes .contenedor-imagenes {
        flex-direction: column;
    }

    .template-tres-imagenes .titulo-seccion {
        font-size: 1.5rem;
    }

    .template-tres-imagenes .imagen-enlace {

        border-radius: 1.8rem;
    }

}

/*************************************************/
/*         TEMPLATE CARRUSEL PRODUCTOS            */
/*************************************************/

.template-carrusel-productos {
    width: 100%;
    padding: 0 50px 0 50px;
}

.template-carrusel-productos .titulo-seccion {
    font-size: 2.2rem;
    color: #7E7E7C;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
    line-height: 1.7rem;
}

.template-carrusel-productos .carrusel-contenedor {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.template-carrusel-productos .carrusel-contenedor::-webkit-scrollbar {
    display: none;
}

.template-carrusel-productos .carrusel-track {
    display: flex;
    gap: 0.5rem;
    width: fit-content;
}

.template-carrusel-productos .tarjeta-producto {
    flex-shrink: 0;
    width: calc((100vw - 4rem - 5.5rem) / 6.5);
    min-width: 150px;
}

.template-carrusel-productos .enlace-producto {
    text-decoration: none;
    color: inherit;
    display: block;
}

.template-carrusel-productos .contenedor-imagen {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: #f5f5f5;
}

.template-carrusel-productos .contenedor-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-carrusel-productos .imagen-principal {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.template-carrusel-productos .imagen-secundaria {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-carrusel-productos .contenedor-imagen:has(.imagen-secundaria):hover .imagen-principal {
    opacity: 0;
}

.template-carrusel-productos .contenedor-imagen:hover .imagen-secundaria {
    opacity: 1;
}

.template-carrusel-productos .boton-favorito {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    z-index: 10;
}

.template-carrusel-productos .icono-oferta-naranja {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}


.template-carrusel-productos .info-producto {
    padding: 0.75rem 0;
}

.template-carrusel-productos .linea-principal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0rem;
}

.template-carrusel-productos .nombre-producto {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3A3A34;
    margin: 0;
    padding-right: 5px;
    line-height: 0.9rem;
}

.template-carrusel-productos .precios {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.template-carrusel-productos .precio-anterior {
    font-size: 0.85rem;
    color: #7E7E7C;
    text-decoration: line-through;
    line-height: 0.9rem;
}

.template-carrusel-productos .precio-actual {
    font-size: 0.85rem;
    color: #3A3A34;
    font-weight: 600;
    padding-right: 0.3rem;
    line-height: 0.9rem;
}

.template-carrusel-productos .descripcion {
    font-size: 0.85rem;
    color: #7E7E7C;
    margin: 0;
}


@media (min-width: 769px) {
    .template-carrusel-productos .carrusel-contenedor {
        cursor: grab;
        user-select: none;
    }

    .template-carrusel-productos .carrusel-contenedor.arrastrando {
        cursor: grabbing;
    }

    .template-carrusel-productos .carrusel-contenedor.arrastrando * {
        /*      pointer-events: none;*/
    }
}

@media (max-width: 1400px) {
    .template-carrusel-productos .tarjeta-producto {
        width: calc((100vw - 4rem - 3.5rem) / 4.5);
    }
}

@media (max-width: 768px) {
    .template-carrusel-productos .titulo-seccion {
        font-size: 1.5rem;
    }

    .template-carrusel-productos .tarjeta-producto {
        width: calc((100vw - 4rem - 1.5rem) / 2.5);
    }
}



/*************************************************/
/*      TEMPLATE TRES IMAGENES CON BOTON         */
/*************************************************/

.template-tres-imagenes-con-boton {
    width: 100%;
    padding: 10px 50px;
}

.template-tres-imagenes-con-boton .encabezado-tres-imagenes {
    margin-bottom: 0.25rem;
}

.template-tres-imagenes-con-boton .subtitulo-tres-imagenes {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: #7E7E7C;
    margin-bottom: 0.5rem;
}

.template-tres-imagenes-con-boton .titulo-tres-imagenes {
    font-size: 2.2rem;
    color: #7E7E7C;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.3rem;
    line-height: 1.7rem;
}

.template-tres-imagenes-con-boton .contenedor-imagenes-con-boton {
    display: flex;
    gap: 0.6rem;
    overflow-x: hidden;
}

.template-tres-imagenes-con-boton .tarjeta-imagen-con-boton {
    flex: 1;
    min-width: 0;
}

.template-tres-imagenes-con-boton .enlace-imagen-con-boton {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 4/5;
}

.template-tres-imagenes-con-boton .enlace-imagen-con-boton>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-tres-imagenes-con-boton .overlay-imagen-con-boton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.template-tres-imagenes-con-boton .titulo-imagen-con-boton {
    font-size: min(5vw, 3rem);
    font-weight: 400;
    color: white;
    margin: 0;
    letter-spacing: 0.05em;
}

.template-tres-imagenes-con-boton .boton-comprar-ahora {
    padding: 0.6rem 0.8rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.template-tres-imagenes-con-boton .boton-comprar-ahora:hover {
    background-color: white;
    color: #3A3A34;
}

@media (max-width: 768px) {
    .template-tres-imagenes-con-boton .titulo-tres-imagenes {
        font-size: 1.5rem;
    }

    .template-tres-imagenes-con-boton .contenedor-imagenes-con-boton {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
    }

    .template-tres-imagenes-con-boton .contenedor-imagenes-con-boton::-webkit-scrollbar {
        display: none;
    }

    @media (pointer: coarse) {

        .template-tres-imagenes-con-boton .tarjeta-imagen-con-boton {
            flex: 0 0 calc(70% - 0.25rem);
            min-width: calc(70% - 0.25rem);
        }
    }

    .template-tres-imagenes-con-boton .titulo-imagen-con-boton {
        font-size: min(5vw, 2rem);
    }
}



/*************************************************/
/*      TEMPLATE CUATRO IMAGENES EN LINEA        */
/*************************************************/

.template-cuatro-imagenes-linea {
    width: 100%;
    padding: 1rem 50px;
}

.template-cuatro-imagenes-linea .contenedor-imagenes-linea {
    display: flex;
    gap: 1rem;
    overflow-x: hidden;
}

.template-cuatro-imagenes-linea .tarjeta-imagen-linea {
    flex: 1;
    min-width: 0;
}

.template-cuatro-imagenes-linea .enlace-imagen-linea {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    border-radius: 2rem;
    /*   aspect-ratio: 3/4;*/
}

.template-cuatro-imagenes-linea .enlace-imagen-linea>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-cuatro-imagenes-linea .overlay-imagen-linea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.template-cuatro-imagenes-linea .boton-comprar-linea {
    padding: 0.6rem 0.8rem;
    margin-bottom: 15%;
    background-color: rgba(0, 0, 0, 0.20);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 25px;
    font-size: 0.575rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.template-cuatro-imagenes-linea .boton-comprar-linea:hover {
    background-color: white;
    color: #3A3A34;
}

@media (max-width: 768px) {
    .template-cuatro-imagenes-linea .contenedor-imagenes-linea {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
    }

    .template-cuatro-imagenes-linea .contenedor-imagenes-linea::-webkit-scrollbar {
        display: none;
    }

    .template-cuatro-imagenes-linea .contenedor-imagenes-linea {
        flex-direction: column;
    }

    @media (pointer: coarse) {
        .template-cuatro-imagenes-linea .tarjeta-imagen-linea {
            flex: 0 0 calc(83.33% - 0.42rem);
            min-width: calc(83.33% - 0.42rem);
        }

        .template-cuatro-imagenes-linea .contenedor-imagenes-linea {
            flex-direction: row;

        }

    }

    .template-cuatro-imagenes-linea .boton-comprar-linea {
        padding: 0.5rem 1.3rem;
        margin-bottom: 15%;
        background-color: transparent;
        color: white;
        text-decoration: none;
        border: 2px solid white;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.05em;
    }
}

@media (hover: none) {
    .template-slideshow-principal .boton-slide:hover {
        background-color: rgba(0, 0, 0, 0.35);
        color: white;
    }
    
    .template-slideshow-principal .enlace-slide:hover {
        opacity: 1;
    }
    
    .template-slideshow-principal .punto-navegacion:hover {
        background-color: rgba(0, 0, 0, 0.2);
        transform: scale(1);
    }
    
    .template-categorias-slider .categorias-slider-container::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) var(--scrollbar-thumb-start),
            #cccc var(--scrollbar-thumb-start),
            #cccc var(--scrollbar-thumb-end),
            rgba(0, 0, 0, 0) var(--scrollbar-thumb-end),
            rgba(0, 0, 0, 0) 100%);
    }
    
    .template-categorias-slider .categorias-card:hover .categorias-image {
        box-shadow: none;
    }
    
    .template-categorias-slider .categorias-card:hover .categorias-image>img {
        transform: scale(1);
    }
    
    .template-dos-imagenes .boton-slide:hover {
        background-color: rgba(0, 0, 0, 0.20);
        color: white;
    }
    
    .template-imagen-principal-cuatro-detalles .boton-ver-todo:hover {
        background-color: rgba(0, 0, 0, 0.2);
        color: white;
    }
    
    .template-imagen-principal-cuatro-detalles .boton-favorito:hover .icono-corazon {
        transform: scale(1);
    }
    
    .template-tres-imagenes .imagen-enlace:hover>img {
        transform: scale(1);
    }
    
    .template-carrusel-productos .contenedor-imagen:has(.imagen-secundaria):hover .imagen-principal {
        opacity: 1;
    }
    
    .template-carrusel-productos .contenedor-imagen:hover .imagen-secundaria {
        opacity: 0;
    }
    
    .template-tres-imagenes-con-boton .boton-comprar-ahora:hover {
        background-color: rgba(0, 0, 0, 0.2);
        color: white;
    }
    
    .template-cuatro-imagenes-linea .boton-comprar-linea:hover {
        background-color: rgba(0, 0, 0, 0.20);
        color: white;
    }
}