﻿.group {
    position: relative;
    margin-bottom: 10px;
    /*margin-left: 10px;*/
    height:auto;
}

.inputBox {
    font-family: 'Fuente Intitucional', 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-size: 18px;
    padding: 7px 7px 7px 10px;
    display: flex;
    width: 100% !important;
    /*height: 50px;*/
    border: 1.2px solid rgba(0,0,0,0.3);
    border-radius: 5px;
    color: #333;
    margin-bottom: 40px;
    border-radius: 5px;
    transition: all .4s;
    -moz-transition: all .4s;
    -ms-transition: all .4s;
    -o-transition: all .4s;
    -webkit-transition: all .4s;
}
.inputBox:focus {
    outline: none;
    border-radius: 5px 5px 0px 0px;
}
    .inputBox:hover {
        border: 1.2px solid rgb(255 120 0);
    }
    .inputBox:disabled {
        background: #f3f4f7;
    }

/* LABEL ======================================= */
.group label {
    font-family: 'Fuente Intitucional', 'Trebuchet MS', Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: normal;
    color: #999;
    padding-left: 10px;
    position: absolute;
    pointer-events: none;
    top: calc(50% - 0.6em); /* Ajustar según el tamaño del texto */
    left: 5px;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -ms-transition: 0.2s ease all;
    -o-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}
.inputBox:focus ~ label {
    margin-top: -40px;
    left: 0px;
    font-size: 17px;
    color: #006699;
}
.fijar {
    margin-top: -40px;
    left: 0px;
    font-size: 17px;
}
/* BOTTOM BARS ================================= */
.bar {
    position: relative;
    display: block;
    width: auto;
    bottom: 0px;
}
    .bar:before, .bar:after {
        content: '';
        height: 2px;
        width: 0;
        bottom: 40px;
        position: absolute;
        background: #4b62a8;
        opacity: 0.8;
        transition: 0.2s ease all;
        -moz-transition: 0.2s ease all;
        -webkit-transition: 0.2s ease all;
    }
.bar:before {
    left: 50%;
}
.bar:after {
    right: 50%;
}

/* active state */
.inputBox:focus ~ .bar:before, .inputBox:focus ~ .bar:after {
    width: 50%;
}
/* active state */
.inputBox:focus ~ .highlight {
    -webkit-animation: inputHighlighter 0.3s ease;
    -moz-animation: inputHighlighter 0.3s ease;
    animation: inputHighlighter 0.3s ease;
}
/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

@-moz-keyframes inputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

@keyframes inputHighlighter {
    from {
        background: #5264AE;
    }

    to {
        width: 0;
        background: transparent;
    }
}

.blanco{
    color:white;
}

/* ESTILOS PARA EL CHECKBOX */
.grupo_checked {
    line-height: 30px;
    font-size: 18px;
    font-family: 'Fuente Intitucional', 'Trebuchet MS', Arial, Helvetica, sans-serif;
    margin-top: 10px;
    min-height: 35px;
}

input[type=checkbox] {
    visibility: hidden;
}

.checkbox {
    display: inline-block;
    position: relative;
    width: 70px;
    height: 30px;
    background: #555;
    border-radius: 15px;
    box-shadow: inset 0px 1px 1px rgba(0,0,0,0.6), 0px 1px 0px rgba(255,255,255,0.3);
}

    .checkbox label {
        /* aspecto */
        display: block;
        width: 34px;
        height: 20px;
        border-radius: 17px;
        box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.35);
        background: #fcfff4;
        background: linear-gradient(to top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
        cursor: pointer;
        /* Posicionamiento */
        position: absolute;
        top: 5px;
        left: 5px;
        z-index: 1;
        /* Transición más suave para las propiedades left y right */
        transition: left 0.24s ease, right 0.24s ease;
        -moz-transition: left 0.24s ease, right 0.24s ease;
        -ms-transition: left 0.24s ease, right 0.24s ease;
        -o-transition: left 0.24s ease, right 0.24s ease;
        -webkit-transition: left 0.24s ease, right 0.24s ease;
        /* ocultar el posible texto que tenga */
        overflow: hidden;
        text-indent: 35px;
        transition: text-indent 0s;
    }

    /* estado activado */
    .checkbox input[type=checkbox]:checked + label {
        left: auto;
        right: 5px;
        /* Cambio de color de fondo cuando .checkbox-JASoft:before está activo */
        background: var(--color-institucional); /* Cambia este valor al color deseado */
        background: linear-gradient(to top, #3ab3c8 0%, #7abac9 40%, #a1ddeb 100%);
    }

    .checkbox:after {
        content: 'NO';
        font: 12px/30px 'Fuente Intitucional', 'Trebuchet MS', Arial, Helvetica, sans-serif;
        color: #AAA;
        position: absolute;
        right: 10px;
        z-index: 0;
        font-weight: bold;
        text-shadow: 1px 1px 0px rgba(255,255,255,.20);
    }

    .checkbox:before {
        content: 'SÍ';
        font: 12px/30px 'Fuente Intitucional', 'Trebuchet MS', Arial, Helvetica, sans-serif;
        color: white;
        position: absolute;
        left: 10px;
        z-index: 0;
        font-weight: bold;
    }

/* Radio Button*/
input[type="radio"] {
    display: none;
}

    input[type="radio"] + label {
        font-weight: 400;
        font-size: 14px;
    }

        input[type="radio"] + label span {
            display: inline-block;
            width: 30px;
            height: 30px;
            margin: -2px 10px 0 0;
            vertical-align: middle;
            cursor: pointer;
            -moz-border-radius: 50%;
            border-radius: 50%;
            border: 3px solid #555;
        }

        input[type="radio"] + label span {
            background-color: #555;
        }

    input[type="radio"]:checked + label {
        color: #333;
        font-weight: 700;
    }

        input[type="radio"]:checked + label span {
            background: var(--color-institucional);
            background: linear-gradient(to top, #3ab3c8 0%, #7abac9 40%, #a1ddeb 100%);
            border: 5px solid #555;
            box-shadow: 2px 2px 2px rgba(0,0,0,.1);
        }
/* input[type="radio"] + label span, input[type="radio"]:checked + label span {
    -webkit-transition: background 0.24s linear;
    -o-transition: background 0.24s linear;
    -moz-transition: background 0.24s linear;
    transition: background 0.24s linear;
} */
