/* ── HERO ─────────────────────────────────────────── */
.galeria-hero {
    background: #EFF6FF;
    text-align: center;
    padding: 60px 24px 40px;
    border-bottom: 1px solid #BFDBFE;
}
.galeria-hero h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1e1e2e;
    margin: 0 0 10px;
}
.galeria-hero p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* ── SECCIÓN ──────────────────────────────────────── */
.galeria-section {
    padding: 48px 0 80px;
    overflow: hidden;
    background: #ffffff;
}

/* ── FILTROS ──────────────────────────────────────── */
.galeria-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
    justify-content: center;
    padding: 0 24px;
}

.filtro-btn {
    padding: 8px 20px;
    border-radius: 999px;
    border: 2px solid #BFDBFE;
    background: #fff;
    color: #1D4ED8;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms;
}
.filtro-btn:hover { background: #EFF6FF; }
.filtro-btn.active {
    background: #1D4ED8;
    border-color: #1D4ED8;
    color: #fff;
}

/* ── COVERFLOW ────────────────────────────────────── */
.coverflow-wrap {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1600px;
}

.coverflow-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.cf-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 600px;
    transform-origin: center center;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    background: #ffffff;
}

.cf-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 400ms;
}

.cf-card .cf-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 32px 16px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: opacity 300ms;
}

.cf-card.active .cf-caption { opacity: 1; }
.cf-card.active img { transform: scale(1.04); }

/* ── NAVEGACIÓN ───────────────────────────────────── */
.cf-prev, .cf-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: #1D4ED8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
}
.cf-prev:hover, .cf-next:hover {
    background: #1D4ED8;
    color: #fff;
    box-shadow: 0 6px 24px rgba(29,78,216,0.35);
}
.cf-prev { left: 24px; }
.cf-next { right: 24px; }

/* ── DOTS ─────────────────────────────────────────── */
.cf-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.cf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 250ms;
    border: none;
}
.cf-dot.active {
    background: #1D4ED8;
    width: 24px;
    border-radius: 4px;
}

/* ── LIGHTBOX ─────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80vw;
    max-height: 85vh;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}
.lightbox-caption {
    color: #cbd5e1;
    font-size: 13px;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 20px; top: 50%; transform: translateY(-50%); }
