/* =========================================================
   DGB TIENDA VIRTUAL
   TIENDA PÚBLICA
========================================================= */


/* =========================================================
   GENERAL
========================================================= */

html {

    min-height: 100%;

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #ffffff;

    color: #171717;

}


a {

    color: inherit;

}


.btn {

    border-radius: 10px;

}


.form-control,
.form-select {

    border-radius: 10px;

}


.form-control:focus,
.form-select:focus {

    border-color: #212529;

    box-shadow:
        0 0 0
        0.2rem
        rgba(33, 37, 41, 0.10);

}


/* =========================================================
   TOP BAR
========================================================= */

.tienda-topbar {

    padding:
        8px
        0;

    background: #111111;

    color: #ffffff;

    font-size: 13px;

}


/* =========================================================
   NAVBAR
========================================================= */

.tienda-navbar {

    min-height: 76px;

}


.tienda-marca {

    display: flex;

    align-items: center;

    gap: 10px;

}


.tienda-logo {

    width: 46px;

    height: 46px;

    object-fit: contain;

}


.tienda-logo-placeholder {

    width: 44px;

    height: 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #111111;

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

}


.tienda-buscador {

    width: 100%;

}


@media (
    min-width: 992px
) {

    .tienda-buscador {

        width: 360px;

    }

}


/* =========================================================
   HERO
========================================================= */

.tienda-hero {

    padding:
        80px
        0;

    background:
        linear-gradient(
            135deg,
            #f7f7f7 0%,
            #ffffff 100%
        );

    border-bottom:
        1px solid
        #eeeeee;

}


.tienda-hero-etiqueta,
.tienda-seccion-etiqueta {

    display: inline-block;

    margin-bottom: 10px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.4px;

    color: #6c757d;

}


.tienda-hero-titulo {

    max-width: 700px;

    margin-bottom: 20px;

    font-size:
        clamp(
            2.3rem,
            6vw,
            4.5rem
        );

    line-height: 1;

    font-weight: 800;

}


.tienda-hero-texto {

    max-width: 580px;

    margin-bottom: 28px;

    font-size: 18px;

    color: #6c757d;

}


.tienda-hero-card {

    padding: 40px;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0
        20px
        50px
        rgba(0, 0, 0, 0.07);

}


/* =========================================================
   CARRUSEL
   NOVEDADES Y OFERTAS
========================================================= */

.tienda-carrusel-seccion {

    background: #fafafa;

    border-bottom:
        1px solid
        #eeeeee;

}


.tienda-carrusel {

    position: relative;

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0
        18px
        45px
        rgba(0, 0, 0, 0.08);

}


.tienda-carrusel-slide {

    min-height: 480px;

    background: #ffffff;

}


/* =========================================================
   IMAGEN DEL CARRUSEL
========================================================= */

.tienda-carrusel-imagen-contenedor {

    position: relative;

    display: block;

    width: 100%;

    height: 480px;

    overflow: hidden;

    background: #f4f4f4;

}


.tienda-carrusel-imagen {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.tienda-carrusel-imagen-contenedor:hover
.tienda-carrusel-imagen {

    transform:
        scale(1.025);

}


.tienda-carrusel-sin-imagen {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f4f4f4;

    color: #999999;

}


/* =========================================================
   ETIQUETAS DEL CARRUSEL
========================================================= */

.tienda-carrusel-etiqueta {

    position: absolute;

    top: 22px;

    left: 22px;

    z-index: 2;

    padding:
        8px
        13px;

    border-radius: 9px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.7px;

}


.tienda-carrusel-etiqueta.es-oferta {

    background: #dc3545;

}


.tienda-carrusel-etiqueta.es-nuevo {

    background: #111111;

}


.tienda-carrusel-descuento {

    position: absolute;

    top: 22px;

    right: 22px;

    z-index: 2;

    padding:
        8px
        12px;

    border-radius: 9px;

    background: #ffffff;

    color: #dc3545;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0
        4px
        14px
        rgba(0, 0, 0, 0.10);

}


/* =========================================================
   INFORMACIÓN DEL CARRUSEL
========================================================= */

.tienda-carrusel-contenido {

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 480px;

    padding:
        50px
        60px;

}


.tienda-carrusel-categoria {

    margin-bottom: 10px;

    color: #777777;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

}


.tienda-carrusel-titulo {

    max-width: 520px;

    margin-bottom: 18px;

    font-size:
        clamp(
            2rem,
            4vw,
            3.3rem
        );

    line-height: 1.05;

    font-weight: 800;

}


.tienda-carrusel-descripcion {

    display: -webkit-box;

    max-width: 520px;

    overflow: hidden;

    margin-bottom: 25px;

    color: #666666;

    font-size: 16px;

    line-height: 1.6;

    line-clamp: 3;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

}


.tienda-carrusel-precio {

    font-size:
        clamp(
            2rem,
            4vw,
            2.7rem
        );

    line-height: 1;

    font-weight: 800;

}


.tienda-carrusel-precio-anterior {

    margin-bottom: 5px;

    color: #999999;

    font-size: 18px;

    text-decoration: line-through;

}


.tienda-carrusel-stock {

    display: inline-flex;

    width: fit-content;

    align-items: center;

    padding:
        7px
        11px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 700;

}


.tienda-carrusel-stock.disponible {

    background:
        rgba(
            25,
            135,
            84,
            0.10
        );

    color: #198754;

}


.tienda-carrusel-stock.agotado {

    background:
        rgba(
            220,
            53,
            69,
            0.10
        );

    color: #dc3545;

}


/* =========================================================
   CONTROLES DEL CARRUSEL
========================================================= */

.tienda-carrusel-control {

    top: 50%;

    width: 44px;

    height: 44px;

    transform:
        translateY(-50%);

    border-radius: 50%;

    background:
        rgba(
            17,
            17,
            17,
            0.85
        );

    opacity: 1;

}


.tienda-carrusel-control:hover {

    background: #111111;

}


.tienda-carrusel-control-prev {

    left: 16px;

}


.tienda-carrusel-control-next {

    right: 16px;

}


.tienda-carrusel-control
.carousel-control-prev-icon,
.tienda-carrusel-control
.carousel-control-next-icon {

    width: 20px;

    height: 20px;

}


/* =========================================================
   INDICADORES DEL CARRUSEL
   CÁPSULA OSCURA CON ESTADO ACTIVO
========================================================= */

.tienda-carrusel-indicadores {

    position: absolute;

    right: auto;
    bottom: 12px;
    left: 50%;

    width: auto;

    margin: 0;

    padding:
        5px
        8px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    transform:
        translateX(-50%);

    border-radius: 999px;

    background:
        rgba(
            35,
            43,
            50,
            0.72
        );

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);

}


.tienda-carrusel-indicadores
[data-bs-target] {

    flex: 0 0 auto;

    width: 6px;

    height: 6px;

    margin: 0;

    padding: 0;

    border: 0;

    border-top: 0;
    border-bottom: 0;

    border-radius: 50%;

    background: #ffffff;

    opacity: 0.75;

    transition:
        width 0.25s ease,
        opacity 0.25s ease,
        border-radius 0.25s ease;

}


.tienda-carrusel-indicadores
[data-bs-target].active {

    width: 16px;

    border-radius: 999px;

    opacity: 1;

}


/* =========================================================
   SECCIONES DE PRODUCTOS EN PORTADA
========================================================= */

.tienda-seccion-productos,
.tienda-seccion-categorias-productos {

    padding:
        64px
        0;

}


.tienda-seccion-productos-suave {

    background: #fafafa;

    border-top:
        1px solid
        #eeeeee;

    border-bottom:
        1px solid
        #eeeeee;

}


.tienda-seccion-categorias-productos {

    border-top:
        1px solid
        #eeeeee;

    background: #ffffff;

}


.tienda-categoria-productos-bloque {

    padding:
        0
        0
        56px;

}


.tienda-categoria-productos-bloque
+ .tienda-categoria-productos-bloque {

    padding-top: 48px;

    border-top:
        1px solid
        #eeeeee;

}


.tienda-categoria-productos-bloque:last-child {

    padding-bottom: 0;

}


.tienda-producto-etiqueta-secundaria {

    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 2;

    padding:
        6px
        9px;

    border-radius: 8px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.5px;

    line-height: 1;

    box-shadow:
        0
        4px
        14px
        rgba(0, 0, 0, 0.10);

}


.tienda-producto-etiqueta-secundaria.es-nuevo {

    background: #111111;

    color: #ffffff;

}


.tienda-producto-etiqueta-secundaria.es-ventas {

    border:
        1px solid
        #111111;

    background: #ffffff;

    color: #111111;

}


/* =========================================================
   CATEGORÍAS
========================================================= */

.tienda-categoria-card {

    display: block;

    height: 100%;

    overflow: hidden;

    border:
        1px solid
        #e8e8e8;

    border-radius: 18px;

    background: #ffffff;

    color: #212529;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


.tienda-categoria-card:hover {

    transform:
        translateY(-3px);

    border-color: #cacaca;

    box-shadow:
        0
        12px
        30px
        rgba(0, 0, 0, 0.07);

}


.tienda-categoria-imagen {

    display: block;

    width: 100%;

    aspect-ratio: 1.25 / 1;

    object-fit: cover;

    background: #f6f6f6;

}


.tienda-categoria-placeholder {

    width: 100%;

    aspect-ratio: 1.25 / 1;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f4f4f4;

    color: #111111;

    font-size: 38px;

    font-weight: 800;

}


/* =========================================================
   PRODUCTOS
========================================================= */

.tienda-producto-card {

    position: relative;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        #e9e9e9;

    border-radius: 18px;

    background: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.tienda-producto-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0
        14px
        34px
        rgba(0, 0, 0, 0.07);

}


.tienda-producto-imagen-link {

    position: relative;

    display: block;

    overflow: hidden;

    background: #f5f5f5;

}


.tienda-producto-imagen {

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    transition:
        transform 0.35s ease;

}


.tienda-producto-card:hover
.tienda-producto-imagen {

    transform:
        scale(1.025);

}


.tienda-producto-sin-imagen {

    width: 100%;

    aspect-ratio: 1 / 1;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f5f5f5;

    color: #999999;

    font-size: 14px;

}


.tienda-oferta-badge {

    position: absolute;

    top: 12px;

    left: 12px;

    padding:
        6px
        9px;

    border-radius: 8px;

    background: #dc3545;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

}


.tienda-producto-categoria {

    margin-bottom: 5px;

    color: #808080;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.6px;

}


.tienda-producto-nombre {

    display: block;

    color: #161616;

    text-decoration: none;

    font-weight: 700;

    line-height: 1.3;

}


.tienda-producto-nombre:hover {

    color: #000000;

    text-decoration: underline;

}


.tienda-producto-descripcion {

    display: -webkit-box;

    overflow: hidden;

    margin:
        8px
        0
        0;

    color: #777777;

    font-size: 13px;

    line-height: 1.45;

    line-clamp: 2;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

}


.tienda-precio {

    font-size: 20px;

    font-weight: 800;

}


.tienda-precio-anterior {

    margin-bottom: 1px;

    color: #999999;

    font-size: 13px;

    text-decoration: line-through;

}


/* =========================================================
   VACÍO
========================================================= */

.tienda-vacio {

    padding:
        60px
        20px;

    border:
        1px dashed
        #d2d2d2;

    border-radius: 18px;

    text-align: center;

    background: #fafafa;

}


/* =========================================================
   CATEGORÍA
========================================================= */

.categoria-hero {

    padding:
        65px
        0;

    background: #f8f8f8;

    border-bottom:
        1px solid
        #ededed;

}


.categoria-total-card {

    padding: 30px;

    border-radius: 20px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0
        15px
        35px
        rgba(0, 0, 0, 0.05);

}


/* =========================================================
   DETALLE DEL PRODUCTO
========================================================= */

.tienda-galeria {

    overflow: hidden;

    border-radius: 20px;

    background: #f7f7f7;

}


.tienda-detalle-imagen {

    aspect-ratio: 1 / 1;

    object-fit: contain;

    background: #f7f7f7;

}


.tienda-detalle-sin-imagen {

    width: 100%;

    aspect-ratio: 1 / 1;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background: #f7f7f7;

    color: #999999;

}


.tienda-miniatura {

    width: 76px;

    height: 76px;

    padding: 0;

    overflow: hidden;

    border:
        1px solid
        #dddddd;

    border-radius: 10px;

    background: #ffffff;

}


.tienda-miniatura img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center;

    background: #f7f7f7;

}


.tienda-miniatura:hover {

    border-color: #111111;

}


.tienda-detalle-precio {

    font-size:
        clamp(
            2rem,
            5vw,
            2.8rem
        );

    font-weight: 800;

    line-height: 1;

}


.tienda-detalle-precio-anterior {

    margin-bottom: 5px;

    color: #999999;

    font-size: 18px;

    text-decoration: line-through;

}



.tienda-cantidad-input {

    max-width: 130px;

}

.tienda-descripcion-corta {

    color: #555555;

    line-height: 1.65;

}


.tienda-stock-box {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    padding: 15px;

    border-radius: 12px;

    background: #f8f9fa;

}


.tienda-stock-disponible {

    color: #198754;

    font-weight: 700;

}


.tienda-stock-agotado {

    color: #dc3545;

    font-weight: 700;

}


.tienda-descripcion-completa {

    padding-top: 10px;

    line-height: 1.7;

    color: #4e4e4e;

}


/* =========================================================
   PAGINACIÓN
========================================================= */

.pagination {

    gap: 4px;

}


.page-link {

    border-radius:
        8px
        !important;

    color: #212529;

}


.page-item.active
.page-link {

    border-color: #212529;

    background: #212529;

}


/* =========================================================
   FOOTER
========================================================= */

.tienda-footer {

    background: #f8f8f8;

    border-top:
        1px solid
        #eeeeee;

}


.tienda-footer-link {

    color: #666666;

    text-decoration: none;

}


.tienda-footer-link:hover {

    color: #111111;

    text-decoration: underline;

}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (
    max-width: 991.98px
) {

    .tienda-carrusel-slide {

        min-height: auto;

    }


    .tienda-carrusel-imagen-contenedor {

        height: 430px;

    }


    .tienda-carrusel-contenido {

        min-height: auto;

        padding:
            36px
            40px
            60px;

    }


    .tienda-carrusel-control {

        top: 215px;

    }

}


/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (
    max-width: 767.98px
) {

    .tienda-hero {

        padding:
            55px
            0;

    }


    .tienda-hero-card {

        padding: 28px;

    }


    .categoria-hero {

        padding:
            45px
            0;

    }


    .tienda-producto-nombre {

        font-size: 14px;

    }


    .tienda-precio {

        font-size: 17px;

    }


    .tienda-producto-card
    .p-3 {

        padding:
            12px
            !important;

    }


    /* CARRUSEL */

    .tienda-carrusel {

        border-radius: 18px;

    }


    .tienda-carrusel-imagen-contenedor {

        height: 360px;

    }


    .tienda-carrusel-contenido {

        padding:
            28px
            24px
            58px;

    }


    .tienda-carrusel-descripcion {

        font-size: 14px;

    }


    .tienda-carrusel-control {

        top: 180px;

        width: 38px;

        height: 38px;

    }


    .tienda-carrusel-control-prev {

        left: 10px;

    }


    .tienda-carrusel-control-next {

        right: 10px;

    }

}


/* =========================================================
   RESPONSIVE - CELULAR PEQUEÑO
========================================================= */

@media (
    max-width: 575.98px
) {

    .tienda-logo {

        width: 40px;

        height: 40px;

    }


    .tienda-logo-placeholder {

        width: 40px;

        height: 40px;

    }


    .tienda-miniatura {

        width: 60px;

        height: 60px;

    }


    /* CARRUSEL */

    .tienda-carrusel-imagen-contenedor {

        height: 310px;

    }


    .tienda-carrusel-contenido {

        padding:
            24px
            20px
            55px;

    }


    .tienda-carrusel-control {

        top: 155px;

    }


    .tienda-carrusel-etiqueta {

        top: 15px;

        left: 15px;

    }


    .tienda-carrusel-descuento {

        top: 15px;

        right: 15px;

    }

}

/* =========================================================
   RESPONSIVE - SECCIONES DE PORTADA
========================================================= */

@media (
    max-width: 767.98px
) {

    .tienda-seccion-productos,
    .tienda-seccion-categorias-productos {

        padding:
            48px
            0;

    }


    .tienda-categoria-productos-bloque {

        padding-bottom: 44px;

    }


    .tienda-categoria-productos-bloque
    + .tienda-categoria-productos-bloque {

        padding-top: 40px;

    }


    .tienda-producto-etiqueta-secundaria {

        top: 9px;
        right: 9px;

        padding:
            5px
            7px;

        font-size: 9px;

    }

}


/* =========================================================
   REDES SOCIALES - BARRA SUPERIOR
========================================================= */

.tienda-redes-superiores {

    display: flex;

    align-items: center;

    gap: 8px;

}


.tienda-red-superior {

    width: 30px;

    height: 30px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

}


.tienda-red-superior:hover {

    background:
        rgba(
            255,
            255,
            255,
            0.15
        );

    color: #ffffff;

    transform:
        translateY(-1px);

}


/* =========================================================
   REDES SOCIALES - FOOTER
========================================================= */


.tienda-redes-seccion {

    background: #ffffff;

    border-top:
        1px solid
        #eeeeee;

}

.tienda-redes-footer {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

}


.tienda-red-footer {

    width: 44px;

    height: 44px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        #dddddd;

    border-radius: 50%;

    background: #ffffff;

    color: #111111;

    text-decoration: none;

    font-size: 19px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

}


.tienda-red-footer:hover {

    background: #111111;

    color: #ffffff;

    transform:
        translateY(-2px);

}


/* =========================================================
   RESPONSIVE - BARRA SUPERIOR
========================================================= */

@media (
    max-width: 575.98px
) {

    .tienda-topbar {

        padding:
            10px
            0;

    }


    .tienda-topbar-mensaje {

        font-size: 12px;

    }


    .tienda-red-superior {

        width: 28px;

        height: 28px;

    }

}
/* =========================================================
   CHECKOUT - CUENTA DE CLIENTE
========================================================= */

.tienda-opcion-seleccionable {
    cursor: pointer;
}

.tienda-checkout-resumen-sticky {
    top: 110px;
}

.tienda-checkout-dato {
    padding: 16px;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fafafa;
}

/* =========================================================
   LOGIN DE CLIENTE - CONTENEDOR COMPACTO
========================================================= */

.tienda-login-card {

    width: 100%;
    max-width: 520px;
    margin: 0 auto;

    border: 1px solid #e9e9e9;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0
        12px
        34px
        rgba(0, 0, 0, 0.06);

}


@media (max-width: 575.98px) {

    .tienda-login-card {

        border-radius: 16px;

    }

}
