.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-wrapper,
.radio-wrapper input[type="radio"],
#terminos,
#terminos_gr #verTerminos,
.cerrar-modal,
select:hover {
    cursor: pointer;
}

.radio-wrapper {
    position: relative;
    padding-left: 30px;
    user-select: none;
    font-size: var(--font-size-desktop);
    color: var(--color-text-main);
    font-weight: 500;
}

.radio-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--color-bg);
    border-radius: 50%;
    border: 2px solid var(--color-text-main);
    transition: background 0.3s, border-color 0.3s;
}

.radio-wrapper:hover .radio-custom {
    border-color: var(--color-input-txt);
}

.radio-wrapper input:checked~.radio-custom {
    border-color: var(--color-text-main);
}

.radio-custom::after {
    content: "";
    position: absolute;
    display: none;
}

.radio-wrapper input:checked~.radio-custom::after {
    display: block;
}

.radio-wrapper .radio-custom::after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-main);
}

#terminos_gr {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 1rem;
}

#check_gr {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#check_gr label {
    margin-right: auto;
    display: flex;
    align-items: center;
    font-size: var(--font-size-desktop);
    color: var(--color-input-txt);
}

#terminos_gr #verTerminos {
    background: transparent;
    border: none;
    font-size: var(--font-size-desktop);
    color: var(--color-input-txt);
    text-decoration: underline;
}

#terminos {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    border: 2px solid var(--color-input-txt);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    margin-right: 0.5rem;
    position: relative;
    background-color: var(--color-bg);
    border-radius: 5px;
    padding: 6px;
}

#terminos:checked::after {
    background-color: var(--color-input-txt);
    border-radius: 3px;
    padding: 5px;
    opacity: 1;
}

#terminos::after {
    background-color: var(--color-text-main);
    opacity: 0;
}

#terminos:checked::after,
#terminos::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 1023px) {
    #terminos_gr {
        display: flex;
        flex-direction: row;
    }

    .modal-scroll p {
        padding: 0.1rem !important;
    }
}

@media (max-width: 439px) {
    .radio-group {
        flex-direction: column;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out forwards;
}

.modal-content {
    background: var(--color-bg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.2s ease-out forwards;
    position: relative;
}

.modal-scroll {
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
    margin: 2rem 0;
}

.modal-scroll h2 {
    color: var(--color-text-main);
    font-weight: 700;
    margin-left: 1rem;

}

.modal-scroll p {
    padding: 1rem;
}

.cerrar-modal {
    display: block;
    margin: 10px auto 20px;
    padding: 10px 20px;
    background: var(--color-text-main);
    color: var(--color-bg);
    border: none;
    border-radius: 6px;
    width: 90%;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        display: flex;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* solo selects del formulario de donación */
#formularioDonacion select {
    height: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('../img/arrow-bottom-menu.svg');
    background-repeat: no-repeat;
    background-position: 95% center;
    background-size: 12px 12px;
}