#miModal {
    width: 80%;
    max-width: 900px;
    padding: 0;
    background: #003351;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    /* Centrado Absoluto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#miModal::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

#miModal .carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #000;
    aspect-ratio: 16 / 9;
}

#miModal .carousel-track {
    display: flex;
    overflow-x: hidden; /* Oculta scroll manual */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
}

#miModal .carousel-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    flex-shrink: 0; /* EVITA QUE LAS FOTOS SE ENCOJAN */
    background: #111;
}

/* Flechas */
#miModal .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

#miModal .nav-btn:hover { background: rgba(255, 255, 255, 0.4); }
#miModal .prev { left: 0; border-radius: 0 5px 5px 0; }
#miModal .next { right: 0; border-radius: 5px 0 0 5px; }

/* Tu botón personalizado */
#miModal .btn-galeria {
    border-radius: 20px;
    border: none;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 15px auto;
    padding: 8px 30px;
    background-color: #298387;
    color: white;
    font-family: 'FuturaPTCondensed-Bold', sans-serif;
    font-size: clamp(14px, 4vw, 20px);
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

#miModal .btn-galeria:hover { transform: scale(1.1); }