﻿

/*TOGGLE SWITCH INICIAL*/
.toggle-container {
    display: flex;
    background-color: #fff;
    border-radius: 30px;
    padding: 4px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.toggle-option {
    flex: 1;
    border: none;
    background-color: transparent;
    color: #aaa;
    padding: 10px 0;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .toggle-option.active {
        background-color: #000;
        color: #fff;
        /*border: 3px solid #FFDD05;*/
    }

    /* Hover en botones NO activos */
    .toggle-option:not(.active):hover {
        background-color: #f7f7f7;
        color: #000;
    }

.toggle-content {
    margin-top: 20px;
    text-align: center;
}

.content {
    display: none;
}

    .content.active {
        display: block;
    }



/*VERSIÓN 2*/
.radio-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 0.5rem;
    background-color: #EEE;
    box-sizing: border-box;
    box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
    padding: 0.25rem;
    /*width: 300px;*/
    /*min-width: 200px;*/
    font-size: 14px;
}

    .radio-inputs .radio {
        flex: 1 1 auto;
        text-align: center;
    }

        .radio-inputs .radio input {
            display: none;
        }

        .radio-inputs .radio .name {
            display: flex;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            border-radius: 0.5rem;
            border: none;
            padding: .3rem 0;
            color: rgba(51, 65, 85, 1);
            transition: all .15s ease-in-out;
        }

        .radio-inputs .radio input:checked + .name {
            background-color: #fff;
            font-weight: 600;
        }




/*CHECK PERSONALIZADO*/
.checkbox-container {
    display: inline-block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 4px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

    .checkmark:after {
        content: "";
        position: absolute;
        display: none;
        left: 10px;
        top: 6px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 3px 3px 0;
        transform: rotate(45deg);
    }

.custom-checkbox:checked ~ .checkmark {
    background-color: #ffdd05;
    /*box-shadow: 0 3px 7px rgba(33, 150, 243, 0.3);*/
    box-shadow: 0 3px 7px rgba(255, 221, 5, 0.3);
}

    .custom-checkbox:checked ~ .checkmark:after {
        display: block;
    }

@keyframes checkAnim {
    0% {
        height: 0;
    }

    100% {
        height: 10px;
    }
}

.custom-checkbox:checked ~ .checkmark:after {
    animation: checkAnim 0.2s forwards;
}
