﻿/* Contenedor del RadioButtonList */
.radio-toolbar {
    display: grid;
    gap: .75rem;
    padding: 0;
    margin: 0;
    border: 0;
}

/* 3 columnas en desktop, 2 en tablet, 1 en móvil */
@media (min-width: 992px) {
    .radio-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .radio-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .radio-toolbar {
        grid-template-columns: 1fr;
    }
}

/* Oculta el radio real */
.radio-toolbar input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* El label queda como botón */
.radio-toolbar label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border: 1px solid var(--bs-secondary);
    border-radius: .5rem;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    /* Hover */
    .radio-toolbar label:hover {
        background-color: rgba(193, 28, 46, 0.10);
        border-color: #C11C2E;
    }

/* Checked */
.radio-toolbar input[type="radio"]:checked + label {
    background-color: #C11C2E;
    border-color: #C11C2E;
    color: #fff;
}

/* Enfocado */
.radio-toolbar input[type="radio"]:focus + label {
    box-shadow: 0 0 0 .25rem rgba(193, 28, 46, .25);
}
