.boton {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0 1.9rem;
    border: 1px solid transparent;
    border-radius: var(--radio-pildora);
    font-size: var(--texto-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition:
        transform 0.35s var(--curva-suave),
        background-color 0.35s var(--curva-suave),
        border-color 0.35s var(--curva-suave),
        color 0.35s var(--curva-suave);
}

.boton__texto {
    position: relative;
    z-index: 1;
}

.boton:hover {
    transform: scale(1.05);
}

.boton:active {
    transform: scale(1.02);
}

.boton--principal {
    background-color: var(--color-naranja);
    color: var(--color-carbon);
}

.boton--texto {
    overflow: visible;
    padding: 0 0.35rem;
    border-color: transparent;
    background-color: transparent;
    color: var(--color-texto);
    transition: color 0.35s var(--curva-suave);
}

.boton--texto .boton__texto::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -0.35rem;
    height: 1px;
    background-color: currentColor;
    scale: 0 1;
    transform-origin: left center;
    transition: scale 0.45s var(--curva-entrada);
}

.boton--texto:hover,
.boton--texto:focus-visible {
    transform: none;
    color: var(--color-blanco);
}

/* Sobre fondo claro no se blanquea: con el subrayado alcanza. */
[data-tema-fondo="claro"] .boton--texto:hover,
[data-tema-fondo="claro"] .boton--texto:focus-visible {
    color: var(--color-carbon);
}

.boton--texto:active {
    transform: none;
}

.boton--texto:hover .boton__texto::after,
.boton--texto:focus-visible .boton__texto::after {
    scale: 1 1;
}
