/* Botones compartidos. El botón primario reemplaza la combinación repetida de
   utilidades: bg-brand text-white text-bold h-[40px] px-6 rounded-pill ... */

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 40px;
    background-color: var(--color-brand);
    color: var(--color-white);
    font-family: 'Satoshi', 'Satoshi-Bold', sans-serif;
    font-weight: 700;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Variante de los formularios de contacto: al pasar el cursor solo oscurece el fondo */
.btn-primary.btn-primary--solid {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-duration: 200ms;
}

.btn-primary.btn-primary--solid:hover {
    background-color: var(--color-brand-dark);
    color: var(--color-white);
}

/* Variante grande (botón de envío del libro de reclamaciones) */
.btn-primary.btn-primary--lg {
    height: 44px;
    padding-left: 32px;
    padding-right: 32px;
}

/* Botón con borde: mismo tamaño que el primario; al pasar el cursor se rellena */
.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding-left: 24px;
    padding-right: 24px;
    border: 1px solid var(--color-brand);
    border-radius: 40px;
    background-color: transparent;
    color: var(--color-brand);
    font-family: 'Satoshi', 'Satoshi-Bold', sans-serif;
    font-weight: 700;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.btn-outline:hover {
    background-color: var(--color-brand);
    color: var(--color-white);
}

/* Botón de texto subrayado ("Leer más", "Ver todos los casos") */
.btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding-left: 12px;
    padding-right: 12px;
    color: var(--color-carbon);
    font-family: 'Satoshi', 'Satoshi-Bold', sans-serif;
    font-weight: 700;
    text-decoration: underline;
    transition: color 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-link:hover {
    color: var(--color-brand);
}

/* Estado deshabilitado de todos los botones (p. ej. mientras se envía un formulario) */
.btn-primary:disabled,
.btn-outline:disabled,
.btn-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    background-color: var(--color-brand);
    color: var(--color-white);
}

.btn-outline:disabled:hover {
    background-color: transparent;
    color: var(--color-brand);
}

.btn-link:disabled:hover {
    color: var(--color-carbon);
}
