/* INPUTS INICIO */

.textInputWrapper {
    position: relative;
    width: 100%;
    margin: 12px 0px;
    --accent-color: #32244a;
    --transition-duration: 0.75s; /* Duplica la duración de la transición */
}

.textInputWrapper:before {
    transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.textInputWrapper:before,
.textInputWrapper:after {
    content: "";
    left: 0;
    right: 0;
    position: absolute;
    pointer-events: none;
    bottom: -1px;
    z-index: 4;
    width: 100%;
    transition: transform var(--transition-duration) cubic-bezier(0, 0, 0.2, 1) 0ms, border-bottom-color var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1) 0ms; /* Añade una transición a los estados por defecto */
}

.textInputWrapper:focus-within:before {
    border-bottom: 1px solid var(--accent-color);
    transform: scaleX(1);
}

.textInputWrapper:focus-within:after {
    border-bottom: 2px solid var(--accent-color);
    transform: scaleX(1);
}

.textInputWrapper:after {
    content: "";
    transform: scaleX(0);
    border-bottom: 2px solid var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.textInput::placeholder {
    opacity: 1;
    user-select: none;
    color: rgba(0, 0, 0, 0.582);
    transition: opacity var(--transition-duration) cubic-bezier(0, 0, 0.2, 1) 0ms; /* Aumenta la duración de la transición */
}

.textInputWrapper .textInput {
    border-radius: 5px 5px 0px 0px;
    background-color: #f1f6f6;
    color: #000;;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    height: 35px;
    margin: 0;
    /* padding-left: 10px; */
    border: 0px;
    transition: background-color var(--transition-duration) cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid #503b74;
}

.textInputWrapper .textInput:focus,
.textInputWrapper .textInput:active {
    outline: none;
}

.textInputWrapper:focus-within .textInput,
.textInputWrapper .textInput:focus,
.textInputWrapper .textInput:active {
    background-color: #d5d5d5;
    transition: background-color var(--transition-duration) cubic-bezier(0.25, 0.8, 0.25, 1); /* Aumenta la duración de la transición al foco */
}

.textInputWrapper:focus-within .textInput::placeholder {
    opacity: 0;
}

.inputContainer {
    position: relative;
    display: inline-block;
}

.input-helper {
    font-size: 10px;
    position: absolute;
    left: 0;
    top: calc(100% - 10px);
    opacity: 0;
    transform: translateY(-5px);
    transition: all .4s ease-in-out;
    margin-left: 10px;
}

.textInputWrapper:focus-within ~ .input-helper {
    opacity: 1;
    transform: translateY(0px);
}

.inputContainer {
    width: 100%;
}

/* Si es readonly se aplican los efectos como si estuviera activo */
.textInputWrapper.readonly:before,
.textInputWrapper.readonly:after,
.textInputWrapper:focus-within.readonly:before,
.textInputWrapper:focus-within.readonly:after {
    border-bottom: 1px solid var(--accent-color);
    transform: scaleX(1);
}

.textInputWrapper.readonly .textInput,
.textInputWrapper.readonly .textInput:active {
    background-color: #f1f6f6;
}

.textInputWrapper.readonly .textInput::placeholder {
    opacity: 0;
}



/* INPUTS FINAL */

/* TEXTAREA GLOBAL */

.textAreaWrapper {
    position: relative;
    width: 100%;
    margin: 12px 0px;
    --accent-color: #255a95;
    --transition-duration: 0.75s; 
}

.textAreaWrapper:before,
.textAreaWrapper:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px; /* Ajusta la línea para que esté justo debajo del textarea */
    z-index: 4;
    width: 100%;
    transition: transform var(--transition-duration) cubic-bezier(0, 0, 0.2, 1) 0ms, border-bottom-color var(--transition-duration) cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.textAreaWrapper:before {
    border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.textAreaWrapper:after {
    transform: scaleX(0);
    border-bottom: 2px solid var(--accent-color);
    border-bottom-color: var(--accent-color);
}

textarea#internalNotes.textArea {
    box-sizing: border-box;
    border-radius: 5px 5px 0px 0px;
    background-color: white; /* Cambia el color de fondo a blanco */
    color: #000;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    margin: 0;
    padding: 10px;
    border: none;
    resize: none;
    outline: none;
    transition: background-color 0.3s ease; /* Añade transición al color de fondo */
}

.textAreaWrapper:focus-within:before {
    border-bottom: 1px solid var(--accent-color);
    transform: scaleX(1);
}

.textAreaWrapper:focus-within:after {
    border-bottom: 2px solid var(--accent-color);
    transform: scaleX(1);
}

textarea#internalNotes:focus {
    background-color: #e1e1e1;
}

/* TEXTAREA FIN */

/* div que simula ser un input */
.simulatedInput {
    background-color: #f1f6f6;
    border-radius: 5px 5px 0 0;
    padding: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 36px;
}

