/* ── Widget: How It Works ───────────────────────────────────────────
   BEM block: .wgt-hiw
   3 pasos para consumidores. Mobile-first.
   ──────────────────────────────────────────────────────────────────── */

.wgt-hiw {
    background: var(--c-bg, #f5f4ef);
    padding: var(--space-7, 48px) var(--space-4, 16px);
}

.wgt-hiw__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.wgt-hiw__head {
    text-align: center;
    margin-bottom: var(--space-6, 32px);
}

.wgt-hiw__kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-accent, #e8702a);
    margin: 0 0 var(--space-2, 8px);
}

.wgt-hiw__title {
    font-family: var(--font-display, var(--font-sans));
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--c-text, #1c2128);
    margin: 0 0 var(--space-3, 12px);
    line-height: 1.15;
}

.wgt-hiw__subtitle {
    font-size: 1rem;
    color: var(--c-text-muted, #5a6470);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.5;
}

.wgt-hiw__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-5, 24px);
    counter-reset: step;
}

.wgt-hiw__step {
    background: var(--c-surface, #fff);
    border: 1px solid var(--c-line, #e3e0d8);
    border-radius: var(--radius-lg, 16px);
    padding: var(--space-5, 24px);
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wgt-hiw__step-top {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
}

.wgt-hiw__num {
    font-family: var(--font-display, var(--font-sans));
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-accent, #e8702a);
    line-height: 1;
    letter-spacing: -0.02em;
}

.wgt-hiw__step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md, 10px);
    background: var(--c-accent-soft, #fdeddf);
    color: var(--c-accent, #e8702a);
}

.wgt-hiw__step-icon svg {
    width: 20px;
    height: 20px;
}

/* Título en la misma línea que el número y el icono. */
.wgt-hiw__step-title {
    flex: 1;
    min-width: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text, #1c2128);
    margin: 0;
}

.wgt-hiw__step-desc {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--c-text-muted, #5a6470);
    margin: 0;
}

.wgt-hiw__cta {
    text-align: center;
    margin-top: var(--space-6, 32px);
}

.wgt-hiw__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    min-height: 48px;
    padding: 0 var(--space-5, 24px);
    border-radius: var(--radius-md, 10px);
    background: var(--c-primary, #14314a);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease;
}

.wgt-hiw__cta-btn:hover {
    background: var(--c-primary-hover, #0d2436);
}

.wgt-hiw__cta-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Tablet (≥768px): 3 columnas ─────────────────────────────────── */
@media (min-width: 768px) {
    .wgt-hiw {
        padding: var(--space-8, 64px) var(--space-5, 24px);
    }

    .wgt-hiw__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5, 24px);
    }

    .wgt-hiw__step:hover {
        border-color: var(--c-accent, #e8702a);
        box-shadow: var(--shadow-md, 0 8px 20px rgba(17, 24, 39, 0.06));
    }
}

/* ── Desktop (≥1024px) ───────────────────────────────────────────── */
@media (min-width: 1024px) {
    .wgt-hiw__step {
        padding: var(--space-6, 32px);
    }
}
