/* ═══════════════════════════════════════════════════════════
   atmosphere-gallery.css
   Carrusel de imágenes interactivo para sección atmósfera
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper general del lado derecho ──────────────────── */
.atmosphere-images-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Badge flotante */
.atmosphere-badge {
    position: absolute;
    top: -1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: linear-gradient(135deg, #D4AF37, #F1D279);
    color: #000;
    font-size: .6rem;
    font-weight: 900;
    letter-spacing: .25em;
    text-transform: uppercase;
    padding: .45rem 1.4rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5);
}

/* ── Carrusel principal ─────────────────────────────────── */
.atm-gallery {
    position: relative;
    border-radius: 1.1rem;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(212, 175, 55, 0.12);
    background: #111;
    cursor: grab;
    user-select: none;
}

.atm-gallery:active {
    cursor: grabbing;
}

/* Marco dorado decorativo */
.atm-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 10;
    pointer-events: none;
}

/* Track de slides */
.atm-gallery-track {
    display: flex;
    height: 100%;
    transition: transform .55s cubic-bezier(.23, 1, .32, 1);
    will-change: transform;
}

/* Cada slide */
.atm-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
}

.atm-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.23, 1, .32, 1);
    filter: brightness(.88) contrast(1.06) saturate(.9);
}

.atm-slide.is-active img {
    filter: brightness(.95) contrast(1.06) saturate(1);
}

/* Gradient inferior sobre cada foto */
.atm-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Caption de cada slide */
.atm-slide-caption {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    right: 1.2rem;
    z-index: 3;
    color: rgba(255, 255, 255, .8);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s, transform .4s;
}

.atm-slide.is-active .atm-slide-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Número de slide */
.atm-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: rgba(255, 255, 255, .9);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: .35rem .75rem;
    border-radius: 999px;
}

.atm-counter span {
    color: #D4AF37;
}

/* Flechas */
.atm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
    opacity: 0;
    pointer-events: none;
}

.atm-gallery:hover .atm-arrow {
    opacity: 1;
    pointer-events: all;
}

.atm-arrow:hover {
    background: rgba(212, 175, 55, .85);
    border-color: transparent;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.atm-arrow-prev {
    left: .75rem;
}

.atm-arrow-next {
    right: .75rem;
}

.atm-arrow .material-symbols-outlined {
    font-size: 1.2rem;
}

/* ── Thumbnails strip ───────────────────────────────────── */
.atm-thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.atm-thumbs::-webkit-scrollbar {
    display: none;
}

.atm-thumb {
    flex: 0 0 calc(25% - .4rem);
    aspect-ratio: 1;
    border-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .25s, opacity .25s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
    opacity: .5;
    position: relative;
}

.atm-thumb.is-active {
    border-color: #D4AF37;
    opacity: 1;
    transform: scale(1.06);
}

.atm-thumb:hover:not(.is-active) {
    opacity: .8;
    transform: scale(1.03);
}

.atm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.85);
    transition: filter .25s;
}

.atm-thumb.is-active img,
.atm-thumb:hover img {
    filter: brightness(1);
}

/* ── Dots ───────────────────────────────────────────────── */
.atm-dots {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: .25rem;
}

.atm-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    border: none;
    cursor: pointer;
    transition: background .25s, width .25s, border-radius .25s;
    padding: 0;
}

.atm-dot.is-active {
    background: #D4AF37;
    width: 20px;
    border-radius: 3px;
}

/* ── Scroll hint (primera vez) ──────────────────────────── */
.atm-scroll-hint {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .6);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: hintFade 2.5s ease-in-out 1.5s forwards;
    opacity: 0;
}

.atm-scroll-hint .material-symbols-outlined {
    font-size: .9rem;
}

@keyframes hintFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .atm-gallery {
        aspect-ratio: 3/4;
    }

    .atm-arrow {
        opacity: 1;
        pointer-events: all;
    }

    .atm-thumb {
        flex: 0 0 calc(33.33% - .35rem);
    }
}
/* ── atmosphere-gallery-fix (fusionado) ────────────────── */
/* ═══════════════════════════════════════════════════════════
   atmosphere-gallery-fix.css
   Fix: 1 foto a la vez en desktop, altura compacta en mobile
   Agregar DESPUÉS de atmosphere-gallery.css
   ═══════════════════════════════════════════════════════════ */

/* ── Galería principal — contención correcta ─────────────── */
.atm-gallery {
    position: relative;
    overflow: hidden;
    /* ← clave: corta las fotos que se salen */
    border-radius: 1.1rem;
    aspect-ratio: 4/5;
    width: 100%;
    max-width: 100%;
}

/* ── Track: las fotos van en fila pero solo se ve 1 ─────── */
.atm-gallery-track {
    display: flex;
    flex-direction: row;
    /* fotos en fila horizontal */
    width: 100%;
    height: 100%;
    transition: transform .55s cubic-bezier(.23, 1, .32, 1);
    will-change: transform;
}

/* ── Cada slide ocupa exactamente el 100% del contenedor ── */
.atm-slide {
    flex: 0 0 100%;
    /* ← nunca se encoge ni crece */
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.atm-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Wrapper de imágenes — columna derecha ───────────────── */
.atmosphere-images-wrap {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    /* evita que desborde el grid */
}

/* ── Thumbnails: fila compacta ───────────────────────────── */
.atm-thumbs {
    display: flex;
    flex-direction: row;
    gap: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.atm-thumbs::-webkit-scrollbar {
    display: none;
}

.atm-thumb {
    flex: 0 0 calc(20% - .35rem);
    /* 5 thumbs visibles */
    aspect-ratio: 1;
    border-radius: .45rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .25s, opacity .25s, transform .2s;
    opacity: .5;
}

.atm-thumb.is-active {
    border-color: #D4AF37;
    opacity: 1;
    transform: scale(1.05);
}

.atm-thumb:hover:not(.is-active) {
    opacity: .8;
}

.atm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ══════════════════════════════════════════════════════════
   MOBILE — sección atmósfera compacta
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Sección más corta */
    .atmosphere-section {
        padding: 3.5rem 0 !important;
    }

    /* Grid: columna única apilada */
    .atmosphere-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Galería más baja en mobile */
    .atm-gallery {
        aspect-ratio: 16/10 !important;
        /* más ancha y baja */
        border-radius: .75rem;
    }

    /* Thumbnails más pequeños */
    .atm-thumb {
        flex: 0 0 calc(20% - .32rem);
    }

    /* Dots más grandes para tocar fácil */
    .atm-dot {
        width: 7px !important;
        height: 7px !important;
    }

    .atm-dot.is-active {
        width: 22px !important;
    }

    /* Flechas siempre visibles en mobile */
    .atm-arrow {
        opacity: 1 !important;
        pointer-events: all !important;
        width: 32px !important;
        height: 32px !important;
    }

    /* Texto de atmósfera más compacto */
    .atmosphere-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    .atmosphere-desc {
        font-size: .85rem !important;
        margin-bottom: 1.25rem !important;
    }

    .atmosphere-list {
        margin-bottom: 1.5rem !important;
    }

    .atmosphere-list li {
        font-size: .82rem !important;
        padding: .75rem 1rem !important;
    }

    /* Badge reposicionado */
    .atmosphere-badge {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: inline-block;
        margin-bottom: .5rem;
        align-self: flex-start;
    }

    /* Ocultar decoraciones que consumen espacio */
    .atmosphere-section::before {
        display: none !important;
    }
}

/* ── Tablet intermedio ───────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    .atmosphere-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .atm-gallery {
        aspect-ratio: 16/9 !important;
    }
}