/* ===========================
   Category Filter Buttons
   =========================== */
   .category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.btn-category {
    position: relative;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: var(--secondary);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-category:hover {
    background: var(--primary);
    color: #000 !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-category.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-category::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

/* ===========================
   Gallery Item
   =========================== */
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover .video-indicator {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-indicator i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* ===========================
   Lightbox (SIN TEXTO ENCIMA)
   =========================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
    pointer-events: none;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    z-index: 1;
    transform: scale(0.8);
    transition: transform var(--transition-speed) ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-media-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 1;
    pointer-events: auto;
}

.lightbox-media {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.75rem;
}

/* OCULTAMOS TOTALMENTE la info para que no tape controles del video */
.lightbox-info {
    display: none !important;
}

/* Botones lightbox por encima del video */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
    z-index: 10005;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-btn i {
    font-size: 1.5rem;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* ===========================
   Animation classes
   =========================== */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* ===========================
   Responsive adjustments
   =========================== */
@media (max-width: 768px) {
    .lightbox-btn i {
        font-size: 1.25rem;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 0.5rem;
    }
}

/* =========================
   CAROUSEL CONTROLS CIRCLE
========================= */

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  background-size: 50% 50%;
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.85);
}