/* =========================================================
   ==== MODAL INTERNO - CONTENIDO ====
   ========================================================= */

.modal-proyecto-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.modal-img {
    margin: 60px 16px 0 16px;
    height: 202px;
    border-radius: 16px;
    overflow: hidden;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.modal-proyecto-container h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 16px 8px;
}

/* =========================================================
   ==== TABS ====
   ========================================================= */

.tabs {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.tab {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #2b2b2b;
    padding: 6px 12px;
    border-radius: 8px;
}

.tab.active {
    background-color: #e56700;
    color: white;
}

.tab-content {
    display: none;
    padding: 12px 16px;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* =========================================================
   ==== GALERÍA Y DETALLES ====
   ========================================================= */

.galeria img {
    max-width: 100px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.proyecto-datos {
    margin-top: 16px;
    font-size: 14px;
    color: #2a2a2a;
}

.proyecto-datos p {
    margin: 16px 0 0 0;
}

/* =========================================================
   ==== BOTÓN CERRAR MODAL ====
   ========================================================= */

.btn-cerrar-modal {
    width: 100%;
    margin: 24px auto;
    padding: 12px;
    background-color: #e56700;
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    display: block;
}

/* =========================================================
   ==== Filtros Ctegorias ====
   ========================================================= */
.filtros-categorias {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.filtro-categoria {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 999px;
    font-size: 1.25rem;
    font-weight: 600;
    background-color: #f0f0f0;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filtro-categoria:hover {
    background-color: #e0e0e0;
}

.filtro-categoria.active {
    background-color: #e56700;
    color: #ffffff;
}

@media (width<768px) {
    .modal-proyecto-container {
        overflow-y: auto;
    }

    .modal-img {
        overflow: initial;
    }

    .tabs {
        white-space: nowrap;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overflow-x: auto;
    }

    .filtro-categoria {
        white-space: nowrap;
    }

    .filtros-categorias {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: initial;
    }

    .filtros-categorias::-webkit-scrollbar {
        display: none;
        /* Safari/Chrome */
    }

}
