/* Galería styles — NOIR Invita */

.gal-hero {
    text-align: center;
    padding: 1rem 2rem 1rem;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.gal-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: bold;
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    color: #212121;
}

.gal-hero > p {
    color: #de5c9d;
    font-size: 1rem;
    margin-bottom: 2rem;
}


/* CTA */
.gal-cta {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gal-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gal-cta p {
    color: #999;
    margin-bottom: 1.5rem;
    font-size: 0.97rem;
}

/* ===== FILTROS ELEMENTOS ===== */
.elem-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.5rem 0.5rem;
    max-width: 1400px;
    margin: 1.5rem auto 0;
}

.elem-filtro {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #aaa;
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: 0.83rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-family: inherit;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.elem-filtro:hover,
.elem-filtro.activo {
    border-color: #c9a96e;
    color: #c9a96e;
}

/* Selector móvil */
.filtro-movil-select { display: none; }

@media (max-width: 640px) {
    .elem-filtros { display: none; }
    .filtro-movil-select {
        display: block;
        width: calc(100% - 3rem);
        max-width: 420px;
        margin: 1.5rem auto 0;
        box-sizing: border-box;
        padding: 0.4rem 2.2rem 0.4rem 1.1rem;
        background: transparent;
        border: 1px solid #3a3a3a;
        border-radius: 20px;
        color: #aaa;
        font-size: 0.83rem;
        font-family: inherit;
        letter-spacing: 0.05em;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaaaaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        transition: border-color 0.2s, color 0.2s;
    }
    .filtro-movil-select:focus {
        outline: none;
        border-color: #c9a96e;
        color: #c9a96e;
    }
    .filtro-movil-select option {
        background: #111;
        color: #aaa;
    }
}

/* ===== ELEMENTOS ===== */
.elem-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.5rem;
}

.elem-card {
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s;
}

.elem-card:hover {
    border-color: #c9a96e;
    transform: translateY(-4px);
}

.elem-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #111;
}

.elem-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.35s ease;
}

.elem-card:hover .elem-img-wrap img {
    transform: scale(1.04);
}

.elem-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.elem-card:hover .elem-overlay {
    opacity: 1;
}

.elem-overlay span {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid #fff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.elem-nombre {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    color: #e8e8e8;
    text-align: center;
    letter-spacing: 0.03em;
}

/* Responsive elem-grid */
@media (max-width: 1200px) {
    .elem-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 960px) {
    .elem-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .elem-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 1rem;
    }
}

@media (max-width: 460px) {
    .elem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0 0.75rem;
    }

    .elem-nombre {
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
    }
}
