/* ==========================================================================
   Widget - WD Item de cajas y texto
   ========================================================================== */

.fc-wd-boxes-text {
    position: relative;
    padding: clamp(72px, 8vw, 110px) 0;
    background: var(--fc-bg, #ffffff);
    color: var(--fc-text, #101828);
    overflow: hidden;
}

.fc-wd-boxes-text * {
    font-family: inherit;
}

.fc-wd-boxes-text__header {
    max-width: 760px;
    margin: 0 auto clamp(28px, 4vw, 42px);
    text-align: center;
}

.fc-wd-boxes-text__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;
    padding: 6px 13px;

    border: 1px solid color-mix(in srgb, var(--fc-accent, #ff8700) 22%, transparent);
    border-radius: 999px;

    color: var(--fc-accent, var(--fc-primary, #ff8700));
    background: color-mix(in srgb, var(--fc-accent, #ff8700) 10%, transparent);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fc-wd-boxes-text__header h2 {
    margin: 0;

    color: var(--fc-accent, var(--fc-primary, #ff8700));
    font-size: clamp(2.4rem, 4.3vw, 4.1rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.fc-wd-boxes-text__header p {
    max-width: 670px;
    margin: 14px auto 0;

    color: var(--fc-muted, #667085);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.45;
    font-weight: 500;
}

.fc-wd-boxes-text__group {
    margin-top: clamp(28px, 4vw, 46px);
}

.fc-wd-boxes-text__subtitle {
    margin: 0 0 20px;

    color: var(--fc-accent, var(--fc-primary, #ff8700));
    text-align: center;
    font-size: clamp(1.45rem, 2.2vw, 2.05rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
    font-weight: 900;
}

.fc-wd-boxes-text__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
    justify-content: center;
    gap: clamp(18px, 2vw, 30px);
    align-items: start;
}

.fc-wd-box-card {
    display: grid;
    gap: 15px;

    color: inherit;
    text-align: center;
    text-decoration: none;
}

.fc-wd-box-card__media {
    position: relative;
    overflow: hidden;

    width: 100%;
    aspect-ratio: 1.48 / 1;

    display: grid;
    place-items: center;

    border: 1px solid color-mix(in srgb, var(--fc-primary, #0f3d91) 14%, transparent);
    border-radius: 16px;

    background: var(--fc-surface, #ffffff);

    box-shadow: 0 12px 28px color-mix(in srgb, var(--fc-primary, #0f3d91) 8%, transparent);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.fc-wd-box-card__media img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}

.fc-wd-box-card__placeholder {
    display: grid;
    place-items: center;

    color: color-mix(in srgb, var(--fc-primary, #0f3d91) 72%, var(--fc-accent, #ff8700) 28%);
    opacity: 0.9;
}

.fc-wd-box-card__placeholder svg {
    width: 44px;
    height: 44px;
    display: block;
}

.fc-wd-box-card strong {
    display: block;

    color: var(--fc-text, #101828);
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.2;
    font-weight: 800;

    transition: color 0.25s ease;
}

.fc-wd-box-card:hover .fc-wd-box-card__media {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--fc-accent, #ff8700) 38%, transparent);
    background: var(--fc-surface, #ffffff);
    box-shadow: 0 18px 36px color-mix(in srgb, var(--fc-primary, #0f3d91) 14%, transparent);
}

.fc-wd-box-card:hover strong {
    color: var(--fc-accent, var(--fc-primary, #ff8700));
}

/* Responsive */
@media (max-width: 1180px) {
    .fc-wd-boxes-text__grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .fc-wd-boxes-text {
        padding: 58px 0;
    }

    .fc-wd-boxes-text__grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        justify-content: center;
        gap: 18px;
    }

    .fc-wd-boxes-text__header h2 {
        font-size: clamp(2.05rem, 10vw, 3rem);
    }

    .fc-wd-boxes-text__header p {
        font-size: 0.96rem;
    }

    .fc-wd-boxes-text__subtitle {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .fc-wd-boxes-text__grid {
        grid-template-columns: 1fr;
    }

    .fc-wd-box-card {
        max-width: 280px;
        margin: 0 auto;
    }
}