.ri-widget {
    --ri-accent: #1769aa;
    --ri-dark: #172536;
    --ri-text: #617080;
    --ri-border: #e6ebf0;
    --ri-light: #f6f8fa;

    width: 100%;
    font-family: inherit;
}


/* CABECERA */

.ri-heading {
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
}

.ri-eyebrow {
    margin-bottom: 10px;
    color: var(--ri-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ri-heading h2 {
    margin: 0 0 15px;
    color: var(--ri-dark);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
}

.ri-heading p {
    margin: 0;
    color: var(--ri-text);
    font-size: 17px;
    line-height: 1.7;
}


/* SELECTOR */

.ri-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ri-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 88px;
    padding: 15px;

    border: 1px solid var(--ri-border);
    border-radius: 13px;

    background: #fff;
    color: var(--ri-dark);

    cursor: pointer;
    text-align: left;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;
}

.ri-tab:hover {
    transform: translateY(-3px);
    border-color: var(--ri-accent);
    box-shadow: 0 10px 28px rgba(25,40,60,.10);
}

.ri-tab.active {
    background: var(--ri-accent);
    border-color: var(--ri-accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(20,60,100,.20);
}

.ri-tab.active:after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--ri-accent);
    transform: translateX(-50%) rotate(45deg);
}

.ri-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    width: 46px;
    height: 46px;

    border-radius: 10px;

    background: color-mix(in srgb, var(--ri-accent) 10%, white);

    color: var(--ri-accent);
}

.ri-tab-icon svg {
    width: 23px;
    height: 23px;
}

.ri-tab.active .ri-tab-icon {
    color: #fff;
    background: rgba(255,255,255,.15);
}

.ri-tab-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ri-tab-copy strong {
    margin-bottom: 3px;
    font-size: 15px;
    line-height: 1.2;
}

.ri-tab-copy small {
    opacity: .65;
    font-size: 12px;
    line-height: 1.3;
}

.ri-tab.active small {
    opacity: .82;
}


/* PANEL */

.ri-panel {
    display: none;

    grid-template-columns: 1.15fr .85fr;
    gap: 45px;

    padding: 45px;

    border: 1px solid var(--ri-border);
    border-radius: 16px;

    background:
        radial-gradient(
            circle at 0 0,
            color-mix(in srgb, var(--ri-accent) 8%, transparent),
            transparent 42%
        ),
        #fff;

    box-shadow: 0 18px 45px rgba(20,40,65,.07);
}

.ri-panel.active {
    display: grid;
    animation: riFade .35s ease;
}

@keyframes riFade {

    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* PANEL IZQUIERDO */

.ri-panel-main {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.ri-big-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 76px;

    width: 76px;
    height: 76px;

    border-radius: 17px;

    background: var(--ri-accent);
    color: #fff;

    box-shadow: 0 10px 25px
        color-mix(in srgb, var(--ri-accent) 25%, transparent);
}

.ri-big-icon svg {
    width: 35px;
    height: 35px;
}

.ri-section-name {
    display: block;

    margin-bottom: 8px;

    color: var(--ri-accent);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.ri-panel h3 {
    margin: 0 0 15px;

    color: var(--ri-dark);

    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.ri-panel-main p {
    margin: 0;

    color: var(--ri-text);

    font-size: 16px;
    line-height: 1.75;
}


/* LISTADO */

.ri-panel-services ul {
    display: grid;
    gap: 11px;

    margin: 0 0 25px;
    padding: 0;

    list-style: none;
}

.ri-panel-services li {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 12px 14px;

    border-radius: 9px;

    background: var(--ri-light);

    color: var(--ri-dark);

    font-size: 14px;
}

.ri-panel-services li span {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background: var(--ri-accent);
    color: #fff;

    font-size: 12px;
    font-weight: 700;
}


/* BOTÓN */

.ri-button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 15px 18px;

    border-radius: 9px;

    background: var(--ri-accent);
    color: #fff !important;

    font-weight: 700;
    text-decoration: none !important;

    transition:
        transform .2s ease,
        filter .2s ease;
}

.ri-button:hover {
    transform: translateY(-2px);
    filter: brightness(.92);
}

.ri-button span {
    font-size: 22px;
    transition: transform .2s ease;
}

.ri-button:hover span {
    transform: translateX(4px);
}


/* TABLET */

@media (max-width: 1000px) {

    .ri-tabs {
        grid-template-columns: repeat(3, 1fr);
    }

    .ri-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}


/* MÓVIL */

@media (max-width: 650px) {

    .ri-tabs {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ri-tab {
        min-height: 68px;
    }

    .ri-tab.active:after {
        display: none;
    }

    .ri-panel {
        padding: 25px 20px;
    }

    .ri-panel-main {
        flex-direction: column;
    }

    .ri-big-icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }

    .ri-big-icon svg {
        width: 29px;
        height: 29px;
    }

}