/* GEVCA Projects Widget Styles v1.3.0 - Mosaico de 4 imágenes */

.gevca-projects-wrapper {
    width: 100%;
    padding: 20px 0;
}

/* Título Principal */
.gevca-main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    line-height: 1.2;
}

/* Botones de Filtro */
.gevca-filter-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.gevca-filter-btn {
    padding: 12px 24px;
    background-color: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

.gevca-filter-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gevca-filter-btn.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Grid de Proyectos - Mosaico */
.gevca-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 15px;
    width: 100%;
}

/* Patrón de Mosaico - 4 imágenes */
.gevca-project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Proyecto 1: Grande - ocupa 2 columnas y 2 filas (izquierda) */
.gevca-mosaic-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Proyecto 2: Mediano - ocupa 2 columnas y 1 fila (arriba derecha) */
.gevca-mosaic-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

/* Proyecto 3: Pequeño - ocupa 1 columna y 1 fila */
.gevca-mosaic-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Proyecto 4: Pequeño - ocupa 1 columna y 1 fila */
.gevca-mosaic-4 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* Animación de filtrado */
.gevca-project-item.hidden {
    display: none;
}

.gevca-project-item.filtering {
    opacity: 0;
    transform: scale(0.95);
}

.gevca-project-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* Imagen del Proyecto */
.gevca-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Overlay del Proyecto */
.gevca-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gevca-project-item:hover .gevca-project-overlay {
    opacity: 1;
}

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

/* Contenido del Overlay */
.gevca-project-content {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gevca-project-item:hover .gevca-project-content {
    transform: translateY(0);
}

.gevca-project-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.gevca-project-specialty {
    font-size: 16px;
    color: #fff;
    margin: 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Responsive Design */

/* Tablets Grandes (1024px - 1200px) */
@media (max-width: 1200px) {
    .gevca-mosaic-grid {
        grid-template-rows: repeat(2, 280px);
    }
    
    .gevca-project-title {
        font-size: 24px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .gevca-main-title {
        font-size: 40px;
        margin-bottom: 25px;
    }

    .gevca-filter-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .gevca-mosaic-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 250px);
        gap: 12px;
    }

    .gevca-project-title {
        font-size: 22px;
    }

    .gevca-project-specialty {
        font-size: 14px;
    }
}

/* Tablets Pequeños y Mobile Landscape (600px - 768px) */
@media (max-width: 768px) {
    .gevca-main-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .gevca-filter-buttons {
        margin-bottom: 30px;
        gap: 8px;
    }

    .gevca-filter-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Grid 2 columnas en tablets pequeños */
    .gevca-mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 12px;
    }

    /* Imágenes más grandes en tablet */
    .gevca-mosaic-1,
    .gevca-mosaic-2,
    .gevca-mosaic-3,
    .gevca-mosaic-4 {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 240px;
    }

    .gevca-project-title {
        font-size: 20px;
    }

    .gevca-project-specialty {
        font-size: 13px;
    }
}

/* Mobile (menos de 600px) - Columna única */
@media (max-width: 600px) {
    .gevca-projects-wrapper {
        padding: 15px 0;
    }

    .gevca-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .gevca-filter-buttons {
        margin-bottom: 25px;
        gap: 8px;
    }

    .gevca-filter-btn {
        font-size: 13px;
        padding: 10px 18px;
        border-radius: 20px;
    }

    /* Columna única en móvil - imágenes grandes */
    .gevca-mosaic-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    /* Todas las imágenes ocupan 1 columna y altura automática */
    .gevca-mosaic-1,
    .gevca-mosaic-2,
    .gevca-mosaic-3,
    .gevca-mosaic-4 {
        grid-column: 1 / 2;
        grid-row: auto;
        min-height: 280px;
    }

    .gevca-project-title {
        font-size: 22px;
    }

    .gevca-project-specialty {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .gevca-project-content {
        padding: 20px;
    }
}

/* Mobile Pequeño (menos de 480px) */
@media (max-width: 480px) {
    .gevca-main-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .gevca-filter-buttons {
        margin-bottom: 20px;
        gap: 6px;
    }

    .gevca-filter-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .gevca-mosaic-grid {
        gap: 12px;
    }

    .gevca-mosaic-1,
    .gevca-mosaic-2,
    .gevca-mosaic-3,
    .gevca-mosaic-4 {
        min-height: 250px;
    }

    .gevca-project-title {
        font-size: 20px;
    }

    .gevca-project-specialty {
        font-size: 13px;
    }

    .gevca-project-content {
        padding: 18px;
    }
}

/* Mobile Extra Pequeño (menos de 360px) */
@media (max-width: 360px) {
    .gevca-main-title {
        font-size: 22px;
    }

    .gevca-filter-btn {
        font-size: 11px;
        padding: 7px 14px;
    }

    .gevca-mosaic-grid {
        gap: 10px;
    }

    .gevca-mosaic-1,
    .gevca-mosaic-2,
    .gevca-mosaic-3,
    .gevca-mosaic-4 {
        min-height: 220px;
    }

    .gevca-project-title {
        font-size: 18px;
    }

    .gevca-project-specialty {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .gevca-project-content {
        padding: 15px;
    }
}

/* Animaciones de entrada */
@keyframes fadeInMosaic {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gevca-project-item.visible {
    animation: fadeInMosaic 0.4s ease forwards;
}

.gevca-project-item:nth-child(1).visible {
    animation-delay: 0.1s;
}

.gevca-project-item:nth-child(2).visible {
    animation-delay: 0.2s;
}

.gevca-project-item:nth-child(3).visible {
    animation-delay: 0.3s;
}

.gevca-project-item:nth-child(4).visible {
    animation-delay: 0.4s;
}

/* Loading State */
.gevca-projects-grid.loading .gevca-project-item {
    opacity: 0.5;
    pointer-events: none;
}

/* Efecto de hover mejorado */
.gevca-project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gevca-project-item:hover::before {
    opacity: 1;
}

.gevca-project-overlay {
    z-index: 2;
}
