/* Informe consorcio: slider, destacados, mapa checkout */
.modern-slider-section .slider-container {
    overflow: hidden;
    box-shadow: none;
    background: #fff;
}
.modern-slider-section .slider-wrapper {
    width: 100%;
    overflow: visible;
}
.modern-slider-section .slide {
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
}
.modern-slider-section .slide-background img {
    object-fit: cover;
    object-position: center center;
}

/* Destacados: Ver todos arriba derecha; flechas en flancos centrados */
.elementor-widget-bacola-product-carousel .module-carousel {
    position: relative;
}
.elementor-widget-bacola-product-carousel .module-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 0;
    margin-bottom: 1rem;
}
.elementor-widget-bacola-product-carousel .module-header .column:last-child {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
    z-index: 2;
}
.elementor-widget-bacola-product-carousel .module-header .column:last-child .button {
    white-space: nowrap;
    margin-right: 0;
}
.elementor-widget-bacola-product-carousel .module-body {
    position: relative;
}
.elementor-widget-bacola-product-carousel .module-carousel > .slick-arrow,
.elementor-widget-bacola-product-carousel .module-carousel .slick-arrow {
    top: 50% !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 5;
    width: 2.5rem !important;
    height: 2.5rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(15, 32, 58, 0.18) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: 0 !important;
    overflow: visible !important;
}
.elementor-widget-bacola-product-carousel .module-carousel > .slick-arrow::before,
.elementor-widget-bacola-product-carousel .module-carousel .slick-arrow::before {
    position: absolute;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d7dde5;
    background: #fff;
    color: #1a3a5c !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.35rem !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 2.4rem !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    content: '9';
}
.elementor-widget-bacola-product-carousel .module-carousel .slick-next::before {
    content: 'A';
}
.elementor-widget-bacola-product-carousel .module-carousel .slick-prev {
    left: -0.35rem !important;
    right: auto !important;
}
.elementor-widget-bacola-product-carousel .module-carousel .slick-next {
    right: -0.35rem !important;
    left: auto !important;
}
.elementor-widget-bacola-product-carousel .module-carousel .slick-arrow:hover::before {
    background: #1a3a5c;
    color: #fff !important;
    border-color: #1a3a5c;
}
.elementor-widget-bacola-product-carousel .product-buttons {

.elementor-widget-bacola-product-carousel .product-buttons {
    display: none !important;
}

/* Misma proporción de imagen y filas alineadas */
.elementor-widget-bacola-product-carousel .module-carousel .products .product,
.elementor-widget-bacola-product-carousel .module-carousel .slick-slide {
    height: auto !important;
}
.elementor-widget-bacola-product-carousel .module-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}
.elementor-widget-bacola-product-carousel .module-carousel .slick-slide > .product,
.elementor-widget-bacola-product-carousel .module-carousel .products .product {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.elementor-widget-bacola-product-carousel .product-wrapper.product-type-4 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}
.elementor-widget-bacola-product-carousel .thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 200px;
    max-height: 260px;
    padding: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}
.elementor-widget-bacola-product-carousel .thumbnail-wrapper > a:not(.quick-view-button) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.elementor-widget-bacola-product-carousel .thumbnail-wrapper > a:not(.quick-view-button) img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
    display: block;
}
.elementor-widget-bacola-product-carousel .content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    text-align: left;
}
.elementor-widget-bacola-product-carousel .content-wrapper .product-title {
    min-height: 2.6em;
    margin-bottom: 0.35rem;
}
.elementor-widget-bacola-product-carousel .content-wrapper .product-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
}
.elementor-widget-bacola-product-carousel .content-wrapper .product-meta {
    min-height: 1.25rem;
    margin-bottom: 0.35rem;
}
.elementor-widget-bacola-product-carousel .content-wrapper .price {
    min-height: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem !important;
    font-size: 1.125rem !important;
}
.elementor-widget-bacola-product-carousel .content-wrapper .product-button-group {
    margin-top: auto !important;
    padding-top: 0.5rem;
}
.elementor-widget-bacola-product-carousel .content-wrapper .product-button-group .button,
.elementor-widget-bacola-product-carousel .content-wrapper .product-button-group .out-of-stock-label {
    width: 100%;
    text-align: center;
    justify-content: center;
}
@media screen and (max-width: 48rem) {
    .elementor-widget-bacola-product-carousel .module-header {
        padding-right: 5.75rem;
    }
    .elementor-widget-bacola-product-carousel .thumbnail-wrapper {
        min-height: 170px;
        max-height: 210px;
    }
}

/* Mapa por encima del header móvil */
.imperio-mapa-overlay {
    z-index: 100200 !important;
}
.imperio-mapa-modal {
    z-index: 100210 !important;
}


/* Ofertas exclusivas: misma proporción, centrado y filas alineadas */
.module-special-products .module-body.products {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.module-special-products .module-body .product {
    display: flex;
    flex-direction: column;
}

.module-special-products .module-body .product-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.module-special-products .module-body .thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 210px;
    max-height: 280px;
    margin: 0 auto;
    padding: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
}

.module-special-products .module-body .thumbnail-wrapper > a:not(.quick-view-button) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.module-special-products .module-body .thumbnail-wrapper > a:not(.quick-view-button) img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0 auto;
}

.module-special-products .module-body .content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    text-align: center;
    padding-top: 0.25rem;
}

.module-special-products .module-body .content-wrapper .price {
    min-height: 2.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem !important;
}

.module-special-products .module-body .content-wrapper .product-title {
    min-height: 2.6em;
    margin-bottom: 0.35rem;
}

.module-special-products .module-body .content-wrapper .product-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
    text-align: center;
    min-height: 2.6em;
}

.module-special-products .module-body .content-wrapper .product-meta,
.module-special-products .module-body .content-wrapper .product-rating {
    min-height: 1.25rem;
}

.module-special-products .module-body .content-wrapper .product-count {
    margin-top: auto !important;
    padding-top: 0.5rem;
}

.module-special-products .module-body .content-wrapper .product-fade-block {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0.5rem 0 0 !important;
    margin-top: 0.35rem;
}

@media screen and (max-width: 48rem) {
    .module-special-products .module-body .thumbnail-wrapper {
        min-height: 180px;
        max-height: 220px;
    }
}


/* Footer centrado (informe responsive) */
.site-footer .imperio-footer-contacts,
.site-footer .imperio-footer-grid,
.site-footer .imperio-footer-bottom,
.site-footer .footer-bottom {
    text-align: center;
}
.site-footer .imperio-footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.site-footer .imperio-footer-col {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.site-footer .footer-menu .menu {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

/* Slider móvil: controles debajo de la imagen, sin taparla */
@media (max-width: 768px) {
    .modern-slider-section .slider-container {
        display: flex;
        flex-direction: column;
    }
    .modern-slider-section .slider-wrapper {
        order: 1;
    }
    .modern-slider-section .slider-controls {
        position: static !important;
        order: 2;
        margin: 10px auto 4px;
        transform: none !important;
        bottom: auto !important;
        left: auto !important;
        background: rgba(15, 32, 58, 0.06);
        box-shadow: none;
    }
    .modern-slider-section .slide-content {
        max-height: 42%;
    }
}


/* Slider: evitar frame incompleto al refrescar */
.modern-slider-section .slider-wrapper {
    min-height: 220px;
}
.modern-slider-section .slide-background,
.modern-slider-section .slide-background img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}
.modern-slider-section .slide {
    opacity: 1;
}
@media (min-width: 769px) {
    .modern-slider-section .slider-wrapper,
    .modern-slider-section .slide-background img {
        min-height: 360px;
    }
}


/* Informe p5: footer más centrado en móvil + slider dots seguros */
@media (max-width: 768px) {
  .site-footer {
    text-align: center;
  }
  .site-footer .imperio-footer-grid,
  .site-footer .row {
    justify-content: center;
  }
  .site-footer .imperio-footer-col,
  .site-footer .footer-column,
  .site-footer .widget {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .modern-slider-section .slider-controls,
  .modern-slider-section .slider-nav,
  .modern-slider-section .slider-dots {
    position: static !important;
    order: 3;
    width: 100%;
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 12px;
    z-index: 2;
  }
  .modern-slider-section .slider-controls button,
  .modern-slider-section .slider-nav button {
    position: static !important;
    transform: none !important;
  }
}
