/* BOMBCRETO - Galería Styles */

/* HERO SECTION */

.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}



/* Hero Buttons - Standardized in basee.css */

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-white);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--color-white);
    text-decoration: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PROJECTS FILTERS */

.projects-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-dark-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
}

/* PROJECTS GRID */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.projects-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #f0f0f0;
    /* Ensure items are visible by default before JS loads */
    display: block;
}

.projects-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projects-item:hover img {
    transform: scale(1.1);
}

.projects-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 47, 47, 0.8);
    /* Using dark gray with opacity */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--color-white);
}

.projects-item:hover .projects-overlay {
    opacity: 1;
}

.projects-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-orange);
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hiding filtered items */
.projects-item.filtered-out,
.gallery-item.filtered-out,
.hidden-item {
    display: none !important;
}

/* GALLERY ITEM (same as projects-item) */
.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #f0f0f0;
    border-radius: 12px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 47, 47, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--color-white);
    border-radius: 12px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-orange);
}

.gallery-tag {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Also add border-radius to projects-item */
.projects-item {
    border-radius: 12px;
}

.projects-item img {
    border-radius: 12px;
}

.projects-overlay {
    border-radius: 12px;
}

.projects-tag {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 20px;
    /* Updated: more rounded corners */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    color: white;
    font-size: 0.95rem;
    position: absolute;
    bottom: 30px;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 30px;
    /* Rounded capsule shape */
    backdrop-filter: blur(5px);
    z-index: 10002;
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.4);
    /* Darker, more subtle background */
    border: none;
    /* No border as requested */
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--color-orange);
    /* Updated to orange on hover */
    transform: rotate(90deg);
}

.lightbox-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    /* Subtle background */
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-arrow:hover {
    background: var(--color-orange);
    /* Updated to orange on hover */
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* PAGINATION */
.projects-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.pagination-numbers {
    display: flex;
    gap: 15px;
    align-items: center;
}

.pagination-btn,
.pagination-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-dark-gray);
    outline: none;
    flex-shrink: 0;
}

/* Hover state */
.pagination-num:hover:not(.active),
.pagination-btn:hover:not(:disabled) {
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Active state */
.pagination-num.active {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
    transform: scale(1.05);
}

/* Previous/Next Buttons */
.pagination-btn {
    color: var(--color-orange);
    border-color: var(--color-orange);
    font-size: 1rem;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e0e0e0;
    color: #ccc;
    transform: none;
}

/* CTA SECTION */
.cta-section {
    background-color: var(--color-orange);
    color: var(--color-white);
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-section .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-section .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-orange);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Mobile Pagination - prevent cut off */
    .projects-pagination {
        gap: 8px;
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .pagination-btn,
    .pagination-num {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .pagination-numbers {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero section - ensure image shows */
    .hero {
        background-attachment: scroll;
    }

    /* Hero buttons - match other pages */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 80%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* CTA Section móvil - reducir espacios */
    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .cta-section .btn {
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 0.85rem;
        width: auto;
    }

    .cta-section .hero-buttons {
        gap: 10px;
    }
}