/* RESET COMPLETO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* IMÁGENES RESPETANDO CONTENEDOR PADRE DESKTOP */
.gallery-container {
    width: 100%;
    display: flex;
    gap: 15px;
}

/* Configuración para 4 imágenes (por defecto) */
.gallery-item {
    flex: 1;
    aspect-ratio: 4/5;
    overflow: hidden;
}

/* Configuración para 3 imágenes */
.gallery-container.three-images .gallery-item {
    flex: 1;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* OCULTAR EN MÓVIL */
@media (max-width: 768px) {
    .gallery-container {
        display: none;
    }
}

/* ===== MÓDULO MÓVIL ===== */
.mobile-module {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    display: none;
    overflow: visible;
    padding-top: calc(10vw * 0.12);
}

/* Contenedor de imágenes móvil */
.mobile-images-container {
    position: relative;
    width: 100%;
    height: calc(100vw * 0.85);
    max-height: none;
    min-height: none;
}

.mobile-main-image {
    position: absolute;
    left: calc(100vw * 0.04);
    top: 0;
    width: calc(100vw * 0.68);
    height: 100%;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 calc(100vw * 0.01) calc(100vw * 0.04) rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.mobile-preview-image {
    position: absolute;
    left: calc(100vw * 0.76);
    right: 0;
    top: 0;
    height: 100%;
    overflow: hidden;
    background: #eee;
    box-shadow: 0 calc(100vw * 0.005) calc(100vw * 0.02) rgba(0, 0, 0, 0.08);
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-main-image img,
.mobile-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-preview-image img {
    object-position: left center;
    filter: brightness(0.85);
    transition: all 0.3s ease;
}

.mobile-preview-image:hover img {
    filter: brightness(1);
    transform: scale(1.05);
}

/* ===== FLECHAS FUERA DEL CONTENEDOR ===== */
.mobile-arrows-container {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: calc(100vw * 0.002);
    z-index: 10;
    width: auto;
    /* Eliminar cualquier posición o transformación fija */
}

/* Contenedor de flechas ARRIBA */
.mobile-arrows-top {
    position: static !important;
    margin-bottom: 10px;
}

/* Contenedor de flechas ABAJO */
.mobile-arrows-bottom {
    position: static !important;
    margin-top: 20px;
}

/* Posición predeterminada para las flechas */
.mobile-arrows-container.default-position {
    margin-top: calc(100vw * -0.06);
}

.mobile-nav-btn {
    background: transparent !important;
    border: none !important;
    border-radius: 50%;
    width: calc(100vw * 0.18);
    height: calc(100vw * 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    outline: none;
}

.mobile-nav-btn:hover {
    background: transparent !important;
    transform: scale(1.1);
}

.mobile-nav-btn:active {
    background: transparent !important;
    transform: scale(0.95);
}

.mobile-nav-btn:focus {
    background: transparent !important;
    outline: none;
}

.mobile-nav-btn svg {
    width: calc(100vw * 0.08);
    height: calc(100vw * 0.08);
    color: black;
    filter: none;
    stroke-width: 0.8;
}

/* MOSTRAR SOLO MÓVIL */
@media (max-width: 768px) {
    .mobile-module {
        display: block !important;
    }
}
