/* ── Drasanvi Necesidades – Bento Box ────────────────────────────────── */

.dsv-necesidades {
    padding: 24px 0 8px;
}

.dsv-necesidades__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 32px;
    line-height: 1.2;
    color: #000;
    font-family: 'Zilla Slab', serif;
}

.dsv-necesidades__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .dsv-necesidades__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dsv-necesidades__card {
        margin: 0 !important;
        padding: 0 !important;
    }

    .dsv-necesidades__card,
    .dsv-necesidades__card:nth-child(2),
    .dsv-necesidades__card:nth-child(4) {
        grid-column: span 1 !important;
    }

    .dsv-necesidades__bg,
    .dsv-necesidades__card:nth-child(2) .dsv-necesidades__bg,
    .dsv-necesidades__card:nth-child(4) .dsv-necesidades__bg {
        aspect-ratio: 1 / 1;
    }

    .dsv-necesidades__text,
    .dsv-necesidades__card:nth-child(2) .dsv-necesidades__text,
    .dsv-necesidades__card:nth-child(4) .dsv-necesidades__text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .dsv-necesidades__grid {
        grid-template-columns: 1fr;
    }
}

.dsv-necesidades__card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
}

.dsv-necesidades__link {
    display: flex;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.dsv-necesidades__bg {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: flex-end;
}

.dsv-necesidades__card:nth-child(2) .dsv-necesidades__bg {
    aspect-ratio: 2 / 1;
}

.dsv-necesidades__card:nth-child(4) .dsv-necesidades__bg {
    aspect-ratio: 2 / 1;
}

.dsv-necesidades__link:hover .dsv-necesidades__bg,
.dsv-necesidades__link:focus-visible .dsv-necesidades__bg {
    transform: scale(1.04);
}

.dsv-necesidades__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        transparent 100%
    );
}

.dsv-necesidades__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    z-index: 2;
}

.dsv-necesidades__text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Zilla Slab', serif;
}

.dsv-necesidades__card:nth-child(2) .dsv-necesidades__text {
    font-size: 1.5rem;
}

.dsv-necesidades__card:nth-child(4) .dsv-necesidades__text {
    font-size: 1.35rem;
}

.dsv-necesidades__cta {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: none;
    border-radius: 24px;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dsv-necesidades__link:hover .dsv-necesidades__cta,
.dsv-necesidades__link:focus-visible .dsv-necesidades__cta {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .dsv-necesidades__text {
        font-size: 1rem;
    }
    .dsv-necesidades__card:nth-child(2) .dsv-necesidades__text {
        font-size: 1.1rem;
    }
    .dsv-necesidades__card:nth-child(4) .dsv-necesidades__text {
        font-size: 1.05rem;
    }
    .dsv-necesidades__cta {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
}
