/* ================= GRID ================= */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 👈 4 columnas */
    gap: 25px;
    padding: 20px;
    justify-items: center;
}

/* ================= CARD ================= */
.crew-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
}

/* ================= IMAGE ================= */
.crew-img {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.crew-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* ================= HOVER ZOOM ================= */
.crew-card:hover img {
    transform: scale(1.1);
}

/* ================= OVERLAY ================= */
.crew-overlay {
    position: absolute;
    inset: 0;
    background: rgba(235, 230, 230, 0.6);
    color: #fff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 15px;
}

/* Mostrar overlay */
.crew-card:hover .crew-overlay {
    opacity: 1;
}

/* Texto */
.crew-overlay h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.crew-overlay p {
    font-size: 14px;
    margin-top: 5px;
    color: #ddd;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 992px) {
    .crew-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil */
@media (max-width: 576px) {
    .crew-grid {
        grid-template-columns: repeat(1, 1fr);
    }

  .crew-img {
        max-width: 250px;
    }
}
