/* ==========================================================================
   SECCIÓN MODULAR: CARRUSEL LIQUIDACIÓN HOME (ALIMAR)
   ========================================================================== */

.alimar-home-liquidacion-section {
    width: 100% !important;
    background-color: #ffffff !important;
    padding: 40px 20px 60px 20px !important;
    box-sizing: border-box !important;
}

.liquidacion-section-container {
    max-width: 1300px !important;
    margin: 0 auto !important;
    position: relative !important;
}

/* ==========================================================================
   BANNER PROMOCIONAL COMPACTO
   ========================================================================== */
.liquidacion-promo-banner-wrapper {
    width: 100% !important;
    height: 140px !important;
    max-height: 140px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    position: relative !important;
}

.liquidacion-promo-banner-wrapper .banner-custom-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* BANNER NATIVO CON ESTILOS ALIMAR */
.alimar-native-banner {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #041833 0%, #020d1c 60%, #000000 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 50px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
}

.banner-accent-shape {
    position: absolute !important;
    top: -20px !important;
    left: -30px !important;
    width: 250px !important;
    height: 200px !important;
    background: var(--verde-alimar, #419B24) !important;
    opacity: 0.15 !important;
    transform: skewX(-20deg) !important;
}

.banner-text-content {
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.banner-small-tag {
    color: var(--verde-alimar, #419B24) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

.banner-main-title {
    color: #ffffff !important;
    font-size: 36px !important;
    font-style: italic !important;
    font-weight: 900 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.banner-subtitle {
    color: #a0aec0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin: 4px 0 0 0 !important;
    letter-spacing: 1.5px !important;
}

.banner-discount-badge {
    z-index: 2 !important;
    background: #041833 !important;
    border: 3px solid var(--verde-alimar, #419B24) !important;
    border-radius: 50% !important;
    width: 90px !important;
    height: 90px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    flex-shrink: 0 !important;
}

.badge-sub {
    color: #ffcc00 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.badge-num {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    line-height: 1.1 !important;
}

/* ==========================================================================
   CARRUSEL Y TARJETAS DEL PRODUCTO
   ========================================================================== */
.liquidacion-swiper-container {
    position: relative !important;
    padding: 15px 5px !important;
    overflow: hidden !important;
}

.liquidacion-swiper-container .swiper-slide {
    height: auto !important;
    display: flex !important;
}

/* MARCO ENMARCADO DE LA TARJETA */
.liquidacion-swiper-container .card-liquidacion {
    width: 100% !important;
    height: 380px !important;
    max-height: 380px !important;
    background-color: #ffffff !important;
    border: 2px solid var(--verde-alimar, #419B24) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.liquidacion-swiper-container .card-liquidacion:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(65, 155, 36, 0.25) !important;
}

.card-badge-header {
    margin-bottom: 6px !important;
}

.badge-sku {
    background-color: #ffcc00 !important;
    color: var(--azul-oscuro, #041833) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    display: inline-block !important;
}

.product-card-img-box {
    width: 100% !important;
    height: 150px !important;
    max-height: 150px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 5px 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.product-card-img-box a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.product-card-img-box img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

.card-info-bottom {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
}

.card-liquidacion .product-card-title {
    font-family: var(--fuente-titulos) !important;
    font-size: 17px !important;
    font-style: italic !important;
    line-height: 1.25 !important;
    margin: 0 0 6px 0 !important;
    height: 42px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.card-liquidacion .product-card-title a {
    color: var(--azul-oscuro, #041833) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.card-liquidacion .product-card-title a:hover {
    color: var(--verde-alimar, #419B24) !important;
}

.card-liquidacion .product-card-price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--verde-alimar, #419B24) !important;
    margin: 4px 0 10px 0 !important;
}

/* BOTÓN "VER DETALLES" INSTITUCIONAL VERDE ENMARCADO */
.liquidacion-swiper-container a.btn-product-card-details,
.liquidacion-swiper-container .btn-product-card-details {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background-color: var(--verde-alimar, #419B24) !important;
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 10px 0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    border: none !important;
    outline: none !important;
}

.liquidacion-swiper-container a.btn-product-card-details:hover,
.liquidacion-swiper-container .btn-product-card-details:hover {
    background-color: #337d1c !important;
    color: #ffffff !important;
    transform: scale(1.02) !important;
}

/* FLECHAS DE NAVEGACIÓN SWIPER */
.swiper-button-next.liq-next,
.swiper-button-prev.liq-prev {
    color: var(--azul-oscuro, #041833) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border: 1.5px solid #e2e8f0 !important;
}

.swiper-button-next.liq-next::after,
.swiper-button-prev.liq-prev::after {
    font-size: 18px !important;
    font-weight: bold !important;
}

.swiper-button-next.liq-next:hover,
.swiper-button-prev.liq-prev:hover {
    background: var(--verde-alimar, #419B24) !important;
    color: #ffffff !important;
    border-color: var(--verde-alimar, #419B24) !important;
}

/* RESPONSIVO */
@media (max-width: 991px) {
    .banner-main-title { font-size: 28px !important; }
    .alimar-native-banner { padding: 0 30px !important; }
}

@media (max-width: 767px) {
    .alimar-home-liquidacion-section { padding: 30px 15px !important; }
    .liquidacion-promo-banner-wrapper { height: 110px !important; max-height: 110px !important; }
    .alimar-native-banner { padding: 0 20px !important; }
    .banner-main-title { font-size: 22px !important; }
    .banner-subtitle { display: none !important; }
    .banner-discount-badge { width: 70px !important; height: 70px !important; }
    .badge-num { font-size: 13px !important; }
}

/* COLAPSAR ALTURA DEL CARRUSEL AL TAMAÑO DE LA TARJETA */
.alimar-home-liquidacion-section .liquidacion-swiper-container {
    height: auto !important;
    max-height: 400px !important; /* Límite para el contenedor general */
}

.alimar-home-liquidacion-section .swiper-wrapper {
    height: auto !important; /* Anula el height: 100% de la librería Swiper */
    max-height: 380px !important;
    align-items: flex-start !important; /* Evita que los slides se estiren en el eje vertical */
}

.alimar-home-liquidacion-section .swiper-slide {
    height: auto !important; /* Para que cada slide mida solo lo que mide la tarjeta */
}