/* ==============================
	SECCIÓN DESTACADOS 
============================== */
.seccion-destacados {
    background: #f5f6f8;
}

.encabezado-destacados {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.encabezado-destacados h2 {
    font-size: 25px;
    font-weight: 700;
    color: #063556;
    margin: 5px 0;
}

.encabezado-destacados p {
    color: #777;
    margin: 0;
    font-size: 14px;
}

.etiqueta-destacados {
    color: #309f38;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* CONTROLES */
.controles-destacados {
    display: flex;
    gap: 8px;
}

.controles-destacados button {
    width: 38px;
    height: 38px;
    border: 1px solid #dce2e8;
    background: #fff;
    color: #063556;
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s ease;
}

.controles-destacados button:hover {
    background: #063556;
    color: #fff;
}

/* CARRUSEL */
.destacados-ventana {
    overflow: hidden;
    width: 100%;
}

.destacados-carril {
    display: flex;
    gap: 15px;
    transition: transform .5s ease;
    will-change: transform;
}

.destacado-item {
    flex: 0 0 calc(25% - 11.25px);
    min-width: 0;
}

/* TARJETA */
.destacado-card {
    display: block;
    height: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid #edf0f2;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all .25s ease;
}

.destacado-card:hover {
    transform: translateY(-4px);
    border-color: #d7e0e8;
    box-shadow: 0 8px 22px rgba(0,0,0,.07);
}

/* IMAGEN CUADRADA */
.destacado-foto {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.destacado-foto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.destacado-card:hover .destacado-foto img {
    transform: scale(1.05);
}

/* INFORMACIÓN */
.destacado-datos {
    padding: 13px 3px 3px;
}

.destacado-datos span {
    display: block;
    color: #309f38;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    margin-bottom: 7px;
}

.destacado-datos h3 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #263746;
    margin: 0 0 12px;
    height: 40px;
    overflow: hidden;
}

.destacado-enlace {
    font-size: 12px;
    color: #063556;
    font-weight: 600;
}

.destacado-enlace i {
    margin-left: 5px;
    transition: transform .2s ease;
}

.destacado-card:hover .destacado-enlace i {
    transform: translateX(4px);
}

/* TABLET */
@media (max-width: 991px) {
    .destacado-item {
        flex: 0 0 calc(33.333% - 10px);
    }
}

/* MÓVIL */
@media (max-width: 575px) {
    .encabezado-destacados h2 {
        font-size: 21px;
    }

    .encabezado-destacados p {
        font-size: 12px;
    }

    .destacado-item {
        flex: 0 0 calc(50% - 7.5px);
    }

    .destacado-card {
        padding: 10px;
    }

    .destacado-datos h3 {
        font-size: 12px;
    }

    .destacado-enlace {
        font-size: 11px;
    }
}

/*FIN DE SECCIÓN DESTACADOS */



/* ==============================
	INICIO DE LAS PROMOCIONES 
============================== */

.promociones-home {
    background: #f5f6f8;
}

.promociones-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.titulo-promociones {
    font-size: 25px;
    font-weight: 600;
    color: #222;
}

.titulo-promociones i {
    color: #f5b800;
}

.promociones-header p {
    font-size: 14px;
    color: #777;
}

/* BANNERS */

.promo-banner {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all .25s ease;
}

.promo-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.promo-banner:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.promo-banner:hover img {
    transform: scale(1.025);
}

/* BANNER PRINCIPAL */

.promo-principal {
    height: 100%;
    min-height: 300px;
}

/* BANNERS DERECHOS */

.promo-secundarias {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.promo-secundarias .promo-banner {
    flex: 1;
    min-height: 145px;
}

/* TABLET Y CELULAR */

@media (max-width: 991px) {

    .promo-principal {
        min-height: auto;
        height: auto;
    }

    .promo-principal img {
        height: auto;
    }

    .promo-secundarias {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 0;
    }

    .promo-secundarias .promo-banner {
        min-height: auto;
    }

    .promo-secundarias img {
        height: auto;
    }
}

@media (max-width: 575px) {

    .promociones-home {
        padding-top: 25px !important;
    }

    .titulo-promociones {
        font-size: 22px;
    }

    .promociones-header p {
        font-size: 13px;
    }

    .promo-secundarias {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* fIM DEL CONTENEDOR DE LAS PORMOCIONES*/

/* ==============================
	SECCIÓN BOTONES DE NUEVO, EN OFERTA ETC 
============================== */
.menu-button {
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 25px;
    padding: 10px 20px;
    margin: 5px;
    transition: all 0.3s ease;
}

.menu-button.active {
    background-color: #ffc107; /* Color activo (amarillo) */
    color: #000; /* Texto oscuro */
    border-color: #ffc107;
}

.menu-button:hover {
    background-color: #0056b3; /* Color más oscuro al pasar el mouse */
    transform: translateY(-2px);
}

.btn-group {
    background-color: #f8f9fa; /* Fondo del grupo */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-button i {
    margin-right: 8px; /* Espaciado entre el ícono y el texto */
}

@media (max-width: 576px) {
    .menu-button {
        font-size: 1em;
         padding: 8px 15px;
    }
}
/* fIN SECCIÓN BOTONES DE NUEVO, EN OFERTA ETC */

/* ==============================
	SECCIÓN CATEGORÍAS 
============================== */
.categorias-home {
    background: #f5f6f8;
}

.categorias-encabezado {
    text-align: left;
}

.categorias-encabezado span {
    color: #309f38;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.categorias-encabezado h2 {
    color: #063556;
    font-size: 27px;
    font-weight: 700;
    margin: 6px 0;
}

.categorias-encabezado p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

/* TARJETAS */
.categoria-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid #e9edf1;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all .25s ease;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 9px 24px rgba(0,0,0,.08);
    border-color: #d5e0e9;
}

/* IMAGEN */
.categoria-imagen {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}

.categoria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.categoria-card:hover .categoria-imagen img {
    transform: scale(1.05);
}

/* INFORMACIÓN */
.categoria-info {
    padding: 15px;
}

.categoria-info h3 {
    color: #063556;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 7px;
}

.categoria-info p {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
    min-height: 36px;
    margin-bottom: 12px;
}

.categoria-info span {
    color: #309f38;
    font-size: 12px;
    font-weight: 700;
}

.categoria-info span i {
    margin-left: 4px;
    transition: transform .2s ease;
}

.categoria-card:hover .categoria-info span i {
    transform: translateX(4px);
}

/* MÓVILES */
@media (max-width: 575px) {

    .categorias-home {
        padding-top: 30px !important;
        padding-bottom: 20px !important;
    }

    .categorias-encabezado h2 {
        font-size: 22px;
    }

    .categorias-info {
        padding: 10px;
    }

    .categoria-info {
        padding: 10px;
    }

    .categoria-info h3 {
        font-size: 13px;
    }

    .categoria-info p {
        font-size: 11px;
    }

    .categoria-info span {
        font-size: 10px;
    }
}