/* ==========================================
   CARRUSEL
   ========================================== */

.sr-categorias-carrusel {
    position: relative;
    width: 100%;
    padding: 10px 55px;
    box-sizing: border-box;
}


/* ==========================================
   CONTENEDOR
   ========================================== */

.sr-categorias-contenedor {
    width: 100%;
    overflow: hidden;
}


/* ==========================================
   TRACK
   ========================================== */

.sr-categorias-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 22px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.5s ease;
}


/* ==========================================
   TARJETA
   ========================================== */

.sr-categorias-carrusel .sr-categoria-card {

    flex: 0 0 calc((100% - 66px) / 4) !important;

    width: auto !important;
    min-width: 0 !important;

    height: 280px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    position: relative;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08);

    opacity: 1 !important;

    visibility: visible !important;

    transform: translateY(0);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* ==========================================
   HOVER TARJETA
   ========================================== */

.sr-categorias-carrusel .sr-categoria-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12);

}


/* ==========================================
   LINK
   ========================================== */

.sr-categorias-carrusel .sr-categoria-link {

    position: relative;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-height: 0 !important;

    overflow: hidden;

    text-decoration: none !important;

    visibility: visible !important;
}


/* ==========================================
   IMAGEN
   ========================================== */

.sr-categorias-carrusel .sr-categoria-imagen {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;
}


.sr-categorias-carrusel .sr-categoria-imagen img {

    width: 100% !important;
    height: 100% !important;

    display: block !important;

    object-fit: cover;

    visibility: visible !important;

    transition:
        transform 0.4s ease;
}


/* ==========================================
   ZOOM
   ========================================== */

.sr-categorias-carrusel
.sr-categoria-card:hover
.sr-categoria-imagen img {

    transform: scale(1.05);

}


/* ==========================================
   OVERLAY
   ========================================== */

.sr-categorias-carrusel .sr-categoria-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.05)
        );

    pointer-events: none;

}


/* ==========================================
   INFORMACIÓN
   ========================================== */

.sr-categorias-carrusel .sr-categoria-info {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 60px 18px 18px;

    color: #ffffff;

    z-index: 2;
}


/* ==========================================
   TÍTULO
   ========================================== */

.sr-categorias-carrusel .sr-categoria-info h3 {

    margin: 0 0 5px !important;

    color: #ffffff !important;

    font-size: 20px !important;

    line-height: 1.2;

    font-weight: 600;

    text-transform: none;

}


/* ==========================================
   CANTIDAD
   ========================================== */

.sr-categorias-carrusel .sr-categoria-cantidad {

    display: block;

    color: rgba(255, 255, 255, 0.85);

    font-size: 13px;

    font-weight: 400;

}


/* ==========================================
   FLECHA DE LA TARJETA
   ========================================== */

.sr-categorias-carrusel .sr-categoria-flecha {

    position: absolute;

    right: 18px;
    bottom: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border:
        1px solid rgba(255, 255, 255, 0.65);

    border-radius: 50%;

    color: #ffffff;

    font-size: 18px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}


.sr-categorias-carrusel
.sr-categoria-card:hover
.sr-categoria-flecha {

    transform: translateX(4px);

    background: #A32929;

    border-color: #A32929;

}


/* ==========================================
   BOTONES DEL CARRUSEL
   ========================================== */

.sr-categorias-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 80px;
    height: 80px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 0;

    background: transparent !important;

    color: #A32929 !important;

    font-size: 40px;

    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


.sr-categorias-btn:hover {

    background: transparent !important;

    color: #A32929 !important;

    transform:
        translateY(-50%)
        scale(1.08);
}


/* ==========================================
   POSICIÓN BOTONES
   ========================================== */

.sr-categorias-anterior {
    left: -5px;
}


.sr-categorias-siguiente {
    right: -5px;
}


/* ==========================================
   BOTÓN DESACTIVADO
   ========================================== */

.sr-categorias-btn:disabled {

    opacity: 0.25;

    cursor: default;
}


.sr-categorias-btn:disabled:hover {

    transform: translateY(-50%);
}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 1100px) {

    .sr-categorias-carrusel .sr-categoria-card {

        flex: 0 0 calc((100% - 44px) / 3) !important;

    }

}


/* ==========================================
   TABLET PEQUEÑA
   ========================================== */

@media (max-width: 800px) {

    .sr-categorias-carrusel {

        padding: 10px 45px;

    }


    .sr-categorias-carrusel .sr-categoria-card {

        flex: 0 0 calc((100% - 22px) / 2) !important;

        height: 260px !important;

    }


    .sr-categorias-btn {

        width: 55px;
        height: 55px;

        font-size: 32px;

    }

}


/* ==========================================
   CELULAR
   ========================================== */

@media (max-width: 600px) {

    .sr-categorias-carrusel {

        padding: 10px 42px;

    }


    .sr-categorias-carrusel .sr-categoria-card {

        flex: 0 0 100% !important;

        height: 250px !important;

    }


    .sr-categorias-btn {

        width: 45px;
        height: 45px;

        font-size: 28px;

    }


    .sr-categorias-anterior {

        left: -3px;

    }


    .sr-categorias-siguiente {

        right: -3px;

    }

}


/* ==========================================
   REDUCIR MOVIMIENTO
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .sr-categoria-card,
    .sr-categoria-imagen img,
    .sr-categoria-flecha,
    .sr-categorias-btn {

        transition: none !important;

    }

}

/* ==========================================
   ANIMACIÓN DE ENTRADA
   ========================================== */

.sr-categoria-animada {

    opacity: 0 !important;

    transform:
        translateY(30px) !important;

    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        box-shadow 0.25s ease !important;

}


.sr-categoria-animada.sr-categoria-visible {

    opacity: 1 !important;

    transform:
        translateY(0) !important;

}


.sr-categoria-animada:nth-child(1) {
    transition-delay: 0.05s !important;
}


.sr-categoria-animada:nth-child(2) {
    transition-delay: 0.13s !important;
}


.sr-categoria-animada:nth-child(3) {
    transition-delay: 0.21s !important;
}


.sr-categoria-animada:nth-child(4) {
    transition-delay: 0.29s !important;
}


.sr-categoria-animada:nth-child(5) {
    transition-delay: 0.37s !important;
}


.sr-categoria-animada:nth-child(6) {
    transition-delay: 0.45s !important;
}


.sr-categoria-animada:nth-child(7) {
    transition-delay: 0.53s !important;
}


.sr-categoria-animada:nth-child(8) {
    transition-delay: 0.61s !important;
}


/* ==========================================
   HOVER
   ========================================== */

.sr-categorias-carrusel
.sr-categoria-card:hover {

    transform:
        translateY(-4px) !important;

}


/* ==========================================
   ZOOM IMAGEN
   ========================================== */

.sr-categorias-carrusel
.sr-categoria-imagen img {

    transition:
        transform 0.5s ease;

}


.sr-categorias-carrusel
.sr-categoria-card:hover
.sr-categoria-imagen img {

    transform:
        scale(1.06);

}


/* ==========================================
   ARRASTRE
   ========================================== */

.sr-categorias-track {

    cursor: grab;

}


.sr-categorias-track.sr-categorias-arrastrando {

    cursor: grabbing;

}


/* ==========================================
   FLECHAS
   ========================================== */

.sr-categorias-btn {

    opacity: 0.75;

}


.sr-categorias-btn:hover {

    opacity: 1;

}


/* ==========================================
   MEJORAR FLECHAS EN CELULAR
   ========================================== */

@media (max-width: 600px) {

    .sr-categorias-btn {

        opacity: 0.85;

    }

}