.slider-fade img {
    width: 100%;
    height: calc(100vh - 100px);
    object-fit: cover;
}

.slider-fade.slick-slider {
    position: relative;
}

.slider-fade .slick-prev,
.slider-fade .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 9999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.slider-fade .slick-prev {
    left: 16px !important;
}

.slider-fade .slick-next {
    right: 16px !important;
}

.slider-fade .slick-prev:before,
.slider-fade .slick-next:before {
    color: #fff;
    font-size: 24px;
}

/* Hero Section - Imagen principal */
.hero-image-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.default-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Sección de Ofertas Header */
.ofertas-header-section h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* Sección WhatsApp */
.whatsapp-section {
    position: relative;
    overflow: hidden;
}

.whatsapp-phone-image {
    max-height: 350px;
    border-radius: 15px;
}

.whatsapp-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

/* Tu Tienda - Galería Grid */
.galeria-grid-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.galeria-grid-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.galeria-item-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Mapa e Información */
.mapa-info-section {
    min-height: auto;
}

.mapa-container {
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.mapa-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mapa-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.mapa-fallback {
    background-color: #f8f9fa;
}

.info-sucursal-container {
    min-height: 70vh;
    background: #2e7d32;
    padding: 2rem;
}

.sucursal-nombre {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.info-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.info-section:last-child {
    border-bottom: none;
}

.info-header i {
    font-size: 1.2rem;
}

.info-content {
    font-size: 1rem;
    line-height: 1.4;
}

/* Botones */
.btn-success {
    background: #25d366;
    border-color: #25d366;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-success:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #000 !important;
    text-decoration: none;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Modal */
.modal-lg {
    max-width: 90%;
}

.galeria-modal-slider .slick-prev,
.galeria-modal-slider .slick-next {
    z-index: 1000;
    width: 40px;
    height: 40px;
}

.galeria-modal-slider .slick-prev {
    left: 10px;
}

.galeria-modal-slider .slick-next {
    right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-image-container {
        min-height: 300px;
    }

    .ofertas-header-section h2 {
        font-size: 1.8rem;
    }

    .whatsapp-phone-image {
        max-height: 250px;
    }

    .galeria-grid-img {
        height: 200px;
    }

    .mapa-container {
        height: 40vh;
        min-height: 300px;
    }

    .info-sucursal-container {
        min-height: auto;
        padding: 1.5rem;
    }

    .sucursal-nombre {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .whatsapp-section .container .row {
        text-align: center;
    }

    .whatsapp-section .col-lg-7 {
        text-align: center;
    }

    /* En móvil, info arriba y mapa abajo */
    .col-lg-4.order-1.order-lg-2 {
        order: 1;
    }

    .col-lg-8.order-2.order-lg-1 {
        order: 2;
    }
}

@media (max-width: 576px) {
    .hero-image-container {
        min-height: 250px;
    }

    .ofertas-header-section h2 {
        font-size: 1.3rem;
        padding: 0 1rem;
    }

    .info-sucursal-container {
        padding: 1rem;
    }

    .sucursal-nombre {
        font-size: 1.2rem;
    }

    .info-header h5 {
        font-size: 0.9rem;
    }

    .info-content {
        font-size: 0.85rem;
    }
}

/* Galería con Proporciones Mantenidas */
.galeria-grid-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.galeria-grid-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.galeria-item-card {
    border-radius: 10px;
    overflow: hidden;
}

/* Mapa Fullwidth con Overlay */
.mapa-info-section {
    position: relative;
}

.mapa-fullwidth-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
}

.mapa-container-full {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.mapa-iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.mapa-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.mapa-fallback {
    background-color: #f8f9fa;
}

/* Info Overlay */
.info-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 350px;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.info-overlay-content {
    width: 100%;
}

.info-overlay .sucursal-nombre {
    font-size: 1.1rem;
    letter-spacing: 0.33px;
}

.info-overlay .info-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.info-overlay .info-section:last-child {
    border-bottom: none;
}

.info-overlay .info-header i {
    font-size: 0.8rem;
    width: 16px;
}

.info-overlay .info-content {
    line-height: 1.1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mapa-fullwidth-container {
        height: auto;
        min-height: auto;
    }

    .mapa-container-full {
        height: 50vh;
        min-height: 300px;
    }

    .info-overlay {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin: 20px;
        border-radius: 10px;
        padding: 15px;
    }

    .info-overlay .sucursal-nombre {
        font-size: 1.1rem;
    }

    .galeria-grid-img {
        aspect-ratio: 1/1;
    }
}

@media (max-width: 576px) {
    .mapa-fullwidth-container {
        height: auto;
        min-height: auto;
    }

    .mapa-container-full {
        height: 40vh;
        min-height: 250px;
    }

    .info-overlay {
        padding: 12px;
        margin: 10px;
    }

    .info-overlay .sucursal-nombre {
        font-size: 1rem;
    }

    .info-overlay .info-header h6 {
        font-size: 0.8rem;
    }

    .info-overlay .info-content {
        font-size: 0.75rem;
    }
}

/* Botón Naranja Merco en Overlay */
.info-overlay .btn.fondo-naranja-merco {
    background-color: #E64A19 !important;
    border-color: #ff6600 !important;
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: none;
}

.info-overlay .btn.fondo-naranja-merco:hover {
    background-color: #e55a00 !important;
    border-color: #e55a00 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    text-decoration: none;
}

.info-overlay .btn.fondo-naranja-merco:focus,
.info-overlay .btn.fondo-naranja-merco:active {
    background-color: #cc4400 !important;
    border-color: #cc4400 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
}

/* Mejoras visuales para la galería */
.galeria-grid .col-lg-3,
.galeria-grid .col-md-4,
.galeria-grid .col-sm-6 {
    padding: 0.5rem;
}

/* Animación suave para las imágenes de la galería */
.galeria-grid-img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-grid-img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.info-content a {
    color: white !important;
}

.info-content {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}