/* How It Works (Funciona) */

.how__hero {
    padding-top: 28px;
    text-align: center;
}

.how .cap {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf7f7;
    color: #0b766e;
    border: 1px solid #d5eeee;
    margin-bottom: 10px;
}

.how .lead {
    color: #475569;
    max-width: 720px;
    margin: 0 auto;
}

/* Sticky Subnav */
.how__subnav-wrap {
    position: sticky;
    top: var(--hdr-h, 64px);
    z-index: 60;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}

.how__subnav-wrap .wrap {
    padding-top: 20px;
    padding-bottom: 20px;
}

.how__subnav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 2px 0;
}

.how__subnav a {
    font-weight: 700;
    padding: 4px 8px;
    line-height: 1;
    font-size: 0.95rem;
    border-radius: 10px;
    color: #0f172a;
    opacity: .85;
    border: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.how__subnav a:hover {
    opacity: 1;
    background: #f1f5f9;
}

.how__subnav a.is-active {
    border-color: #c7f5f0;
    background: #e7fbf8;
    color: #0b766e;
}

/* Steps Grid */
.how__steps {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.how__steps .kard {
    position: relative;
    padding-top: 22px;
}

.how .badge {
    position: absolute;
    top: -14px;
    left: 16px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #0ea5a6;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(14, 165, 166, .25);
}

/* How Blocks */
.how__block {
    padding: 18px 0;
    scroll-margin-top: calc(var(--hdr-h) + 60px);
    /* Adjust for sticky nav */
}

.how__block.alt {
    background: #f8fafc;
    border-block: 1px solid #eef2f7;
}

.how__block .grid2 {
    align-items: center;
    gap: 28px;
}

.how__block .muted {
    color: #475569;
}

.how__block .ticks {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 6px;
}

.how__block .ticks li {
    padding-left: 24px;
    position: relative;
}

.how__block .ticks li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0ea5a6;
    box-shadow: 0 0 0 4px #e6faf9;
}

/* Image Placeholder/Illo */
.how .illo {
    height: 260px;
    border-radius: 16px;
    background: conic-gradient(from 180deg at 50% 50%, #e6faf9, #f8fafc, #e6faf9);
    border: 1px solid #d7ecea;
    box-shadow: var(--shadow);
}

.how .order1 {
    order: 1;
}

.how .order2 {
    order: 2;
}

/* CTA Footer */
.cta-row {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.how__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

@media (max-width: 980px) {
    .how__steps {
        grid-template-columns: 1fr 1fr;
    }

    .how__block .grid2 {
        grid-template-columns: 1fr;
    }

    .how .order1,
    .how .order2 {
        order: unset;
    }

    .how__cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .how__subnav {
        gap: 6px;
    }

    .how__subnav a {
        padding: 5px 9px;
    }

    .how__steps {
        grid-template-columns: 1fr;
    }
}