.calc-pestanas {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.75rem;
}

.calc-pestana {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: .7rem 1rem;
    color: #0f2747;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
}

.calc-pestana:hover {
    border-color: #c8102e;
    color: #c8102e;
}

.calc-pestana.is-activa {
    border-color: #c8102e;
    background: #c8102e;
    color: #fff;
}

.calc-shell {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .calc-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
        align-items: start;
    }

    .calc-resultado {
        position: sticky;
        top: 6.5rem;
    }
}

.calc-campo {
    margin-bottom: 1.1rem;
}

.calc-campo label,
.calc-leyenda {
    display: block;
    margin-bottom: .45rem;
    color: #0f2747;
    font-size: .92rem;
    font-weight: 700;
}

.calc-ayuda {
    margin-top: .4rem;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.45;
}

.calc-segmento {
    display: flex;
    gap: .35rem;
    padding: .3rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.calc-segmento button {
    flex: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: .7rem .8rem;
    color: #334155;
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

.calc-segmento button.is-activa {
    background: #fff;
    color: #c8102e;
    box-shadow: 0 1px 4px rgba(15, 39, 71, .12);
}

.calc-fila {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: .95rem;
}

.calc-fila span:last-child {
    font-weight: 700;
    color: #0f2747;
    text-align: right;
}

.calc-fila.is-total {
    border-bottom: 0;
    margin-top: .35rem;
    padding-top: .9rem;
    font-weight: 800;
}

.calc-fila.is-total span:last-child {
    color: #c8102e;
    font-size: 1.35rem;
}

.calc-grupo {
    margin-top: 1.25rem;
}

.calc-grupo h3 {
    margin-bottom: .15rem;
    color: #0f2747;
    font-size: 1rem;
}

.calc-estado {
    border-radius: 1.25rem;
    padding: 1rem 1.1rem;
    font-weight: 700;
}

.calc-estado.is-ok {
    background: rgba(15, 39, 71, .06);
    color: #0f2747;
}

.calc-estado.is-error {
    background: rgba(200, 16, 46, .08);
    color: #c8102e;
}

.calc-aviso {
    margin-top: 1.25rem;
    color: #64748b;
    font-size: .85rem;
    line-height: 1.55;
}

.calc-herramienta {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 39, 71, .06);
}

.calc-herramienta:hover {
    border-color: rgba(200, 16, 46, .35);
}

.calc-envio {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
}

.calc-enviar {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #c8102e;
    padding: .9rem 1.2rem;
    color: #fff;
    font: inherit;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
}

.calc-enviar:hover {
    background: #a30d25;
}

.calc-enviar:disabled {
    opacity: .65;
    cursor: wait;
}

.calc-envio-estado {
    min-height: 1.3rem;
    margin-top: .75rem;
    font-size: .88rem;
    line-height: 1.45;
}

.calc-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0 0 1rem;
    color: #334155;
    font-size: .88rem;
    line-height: 1.45;
    cursor: pointer;
}

.calc-check input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .15rem;
    flex: 0 0 auto;
    accent-color: #c8102e;
}

.calc-envio-estado.is-ok {
    padding: .9rem 1rem;
    border-radius: 1rem;
    background: #ecfdf3;
    color: #166534;
    font-weight: 700;
}

.calc-envio-estado.is-error {
    color: #c8102e;
    font-weight: 700;
}
