@import url('root.css');

.custom-wrapper {
    row-gap: 12px;
    column-gap: 12px;
}

/* Tamaño y estilo de las tarjetas */
.obra-card-test {
    width: calc(100% / 4 - 9px);
    /* para que entren 4 por fila con gap */
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    color: white;
}

.obra-card-test:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.obra-card-test h3 {
    z-index: 2;
    font-size: 1.0rem;
    text-align: center;
    visibility: hidden;
    padding: 15px;
    margin: 10px;
}

.obra-card-test::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, filter 0.3s ease;
    z-index: 1;
}

/* Hover: escala, blanco y negro, fondo azul */
.obra-card-test:hover h3 {
    font-size: 1.5rem;
    visibility: visible;
}

.obra-card-test:hover::before {
    background: rgba(45, 69, 131, 0.959);

}

@media (max-width: 1200px) {
    .obra-card-test:hover h3 {
        font-size: 1.3rem;

    }
}

/* Responsive */
@media (max-width: 992px) {
    .obra-card-test {
        width: calc(100% / 2 - 8px);
    }
}

@media (max-width: 768px) {
    .obra-card-test {
        width: calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .obra-card-test {
        width: 100%;
    }
}