/*alertas modal*/
#alertaerror.show{
    display: block;
    z-index: 20000;
    background-color: rgba(0,0,0,0.5);
}
#alertaerror .modal-dialog {
    max-width: 480px;
    margin: 0 auto;
}

#alertaerror .modal-dialog .modal-content{
    padding: 25px;
    border-radius: 25px;
}
#confirmarlogout .modal-dialog .modal-content .modal-cierre-icono, #nivelesces .modal-dialog .modal-content .modal-cierre-icono, #alertaerror .modal-dialog .modal-content .modal-alerta-icono{
    max-width: 45px;
    background-color: #FFEEDF;
    border-radius: 100%;
    padding: 5px;
    margin-bottom: 15px;
}
#alertaerror .modal-dialog .modal-content #modal-alerta-titulo{
    font-size: 24px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: bold;
    margin-bottom: 15px;
}
 #alertaerror .modal-dialog .modal-content #modal-alerta-texto{
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 35px;
}
#alertaerror .modal-dialog .modal-content #modal-alerta-texto a{
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 35px;
    font-weight: 700;
}
#alertaerror .modal-dialog .modal-content .modal-alerta-boton{
    background-color: white;
    border: 2px solid black;
    text-align: center;
    border-radius: 100px;
    padding: 12px 30px;
    font-size: 16px;
    margin-bottom: 10px;
    transition: 0.2s;
}
#alertaerror .modal-dialog .modal-content .modal-alerta-boton{
    display: inline-block;
    background-color: black;
    color: white;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}
/*fin alertas modal*/
#new-login-modal :not(.material-symbols-outlined) {
    /* Estilos para todos los elementos dentro de #new-login-modal excepto .material-symbols-outlined */
    font-family: "Plus Jakarta Sans", sans-serif;
}

#new-login-modal{
    padding-right: 12px;   
    padding-left: 12px;
    background: #030A2B36;
    overflow: hidden;
    align-items: center;
    justify-content: center;
} 


#new-login-modal.modal.show{
    display: flex!important;
} 

#new-login-modal .modal-content {
    background-color: #fff;
    border: none;
    border-radius: 20px;
    padding: 20px;
    max-width: 416px;
    min-height: 600px;
    font-family: "Plus Jakarta Sans", sans-serif;
}

#new-login-modal .modal-content .modal-text {
    font-size: 16px;
    color: black; 
    font-family: "Plus Jakarta Sans", sans-serif;
    padding-left: 10px;
}

#new-login-modal .modal-content .modal-text.modal-text-estimado {
    font-weight: bold;
    font-size: 20px;
    color: black;
    font-family: "Plus Jakarta Sans", sans-serif;
}
#new-login-modal .text-activo{
    font-weight: bold;
    color: black; 
    font-family: "Plus Jakarta Sans", sans-serif;
}

#new-login-modal .modal-close-btn {
    background-color: #2E3038;
    color: #fff;
    border: none;
    border-radius: 47px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    padding: 10px 20px;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 56px; 
}
#new-login-modal #user-login-form input#edit-name.valid {
    border-width: 2px;
    background: url("../img/new-ces/icon-setvalid.webp");
    background-repeat: no-repeat;
    background-position-x: 97%;
    background-position-y: center;
}


#new-login-modal #user-login-form input.error {
    border-width: 2px solid #DB5446;
    background: url("../img/new-ces/icon-seterror-icon.webp");
    background-repeat: no-repeat;
    background-position-x: 97%;
    background-position-y: center;
}
#new-login-modal label.error_label{
    color:#DB5446;
}

#new-login-modal input.error + .toggle-password {
    display: none;
}

#new-login-modal .close-modal {
    font-size: 24px;
    color: #5D606F;
    border: solid 1px #44475542;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50%;
    padding: 0px 0px 0px 1px;
    cursor: pointer;
    line-height: 1.3;
    transition: .3s;
}

#new-login-modal .close-modal:hover {
    color: #000;
    border: solid 1px #eee;
    background-color: #eee;
}

#new-login-modal .close-modal-container{
    padding-right: 0;
}

#new-login-modal .modal-close-btn:hover {
    background-color: #333; 
}

#new-login-modal .alert-triangle{
    width: 50px;
}

#new-login-modal .d-flex.justify-content-start.col-12 {
    padding-left: 0;
}

#new-login-modal .d-flex.justify-content-end.col-12 {
    padding-right: 0;
}
#new-login-modal .item-list a[href="/registro"] {
    display: none;
}
#new-login-modal .item-list li {
    list-style-type: none;
    text-align: end;
}
#new-login-modal .item-list li a {
    margin-right: 9px;
    padding-right: 20px;
    font-size: 16px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
}

#new-login-modal .material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24
}
#new-login-modal .form-actions .form-submit{
    width: 327px;
    border-radius: 30px;
    height: 56px;
    font-weight: 700;
    font-size: 16px;
    font-family: "Plus Jakarta Sans", sans-serif; 
}
#new-login-modal .form-actions{
    text-align: center;
    display: flex;
    justify-content: center;
}
.btn.btn-outline-dark.btn-crear {
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px;
    width: 327px;
    border-radius: 30px;
    height: 56px;
    font-weight: 700;
    font-size: 16px;
    font-family: "Plus Jakarta Sans", sans-serif;
}
#new-login-modal .form-item.form-type-textfield.form-item-name .form-text,
#new-login-modal .form-item.form-type-password.form-item-pass .form-text {
    width: 327px;
    height: 56px;
    padding-left: 16px;
    border: 2px solid #5d5d5d;
    border-radius: 8px;
    font-family: "Plus Jakarta Sans", sans-serif;
}
#new-login-modal .form-item.form-type-password.form-item-pass {
    display: flex;
    justify-content: center;
    position: relative;
}

#new-login-modal .toggle-password {
    position: absolute;
    right: 21px;
    top: 21px;
    cursor: pointer;
}
#new-login-modal .form-item.form-type-password.form-item-pass {
    position: relative;
}
#new-login-modal .flotante {
    position: absolute;
    z-index: 10;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    left: 24px;
    top: -8px;
    padding: 0 5px 0px 5px;
}
#new-login-modal .form-item.form-type-textfield.form-item-name {
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
    padding: 0 10px;
}
#new-login-modal .item-list {
    margin: 26px 0;
}
#new-login-modal .form-item.form-type-textfield.form-item-name .form-text:focus,
#new-login-modal .form-item.form-type-password.form-item-pass .form-text:focus {
    outline: none;
    border: 2px solid #353a51 !important;
}
#new-login-modal .item-list li a:hover, #new-login-modal .item-list li a:active {    
    text-transform: none;
    text-decoration: none;
    background: #e7e7e782;
    color: #000;
    padding: 5px 20px;
    border-radius: 26px;
}
#new-login-modal .form-actions .form-submit:hover {
    border: 1px solid #5c5d5d !important;
    background: #5c5d5d;
    color: #fff;
}

.botones-login-registro .btn.btn-dark.login-button {
    color: #fff;
}
.botones-login-registro .btn.btn-dark.login-button:hover {
    color: #fff;
    background: #353a51;
}

.botones-login-registro .btn.btn-dark.login-button {
    color: #fff;
    width: 165px;
    border-radius: 19px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}
.botones-login-registro .btn.btn-outline-dark {
    margin-left: 10px;
    width: 165px;
    border-radius: 19px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Plus Jakarta Sans", sans-serif;   
    font-size: 14px;
    border: solid 2px #2E3038;
    cursor: pointer;
    font-weight: bold;
}

.botones-login-registro .btn.btn-outline-dark.registrate {
    background: #fff;
    color: #000;
}
.botones-login-registro .btn.btn-outline-dark.registrate:hover  {
    background:#eee;;
    color: #000;
}
#new-login-modal .span-valid {
    font-size: 12px;
    /* position: absolute; -- removido: que el mensaje fluya bajo el input
       en lugar de quedar pegado al borde con z-index */
    top: 50px;
    color: #db5446;
    text-align: right;
    display: flex;
    background: #fff;
    width: max-content;
    padding: 0 3px;
    justify-content: flex-end;
    right: 0;
    left: 25px;
}

#new-login-modal #user-login-form .error {
    border: 2px solid #db5446;  
}

#new-login-modal img.header-modal{
    position: relative;
    height: 180px;
    top: 0;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}
#new-login-modal .primera-vista .close-modal {
    position: absolute;
    z-index: 1000;
    background: #fff;
    top: 8px;
    right: 8px;
}

#new-login-modal .primera-vista .modal-text.modal-text-estimado.mt-3 {
    font-size: 24px;
    margin-bottom: 5px;
}
#new-login-modal .primera-vista .btn.btn-dark.btn-continuar-login {
    color: #fff;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    border-radius: 100px;
    height: 56px;
    font-size: 16px;
}
#new-login-modal .primera-vista.t-659px {
    max-width: 659px;
    padding: 0;
    min-height: 526px;
}
#new-login-modal .primera-vista .btn.btn-dark.btn-continuar-login:hover {
    color: #eee;
}

.btn.btn-outline-dark.mi-cuenta {
    height: 40px;
    width: 148px;
    margin-right: 15px;
}
.btn.btn-outline-dark.mi-cuenta p {
    font-size: 16px;
    font-weight: 700;
}
.icono-cuenta{
    max-width: 24px;
    margin-right: 20px;
}
.btn.btn-outline-dark.registrate {
    margin-right: 20px;
}
.navbar.navbar-expand-lg.navbar-light .navbar-toggler {
    border-color: white;
    height: 40px;
    width: 40px;
    padding: 0;
    margin-right: 10px;
    margin-left: 10px;
}

.izq {
    display: flex;
    align-items: center;
}
.btn.btn-outline-dark.mi-cuenta:hover {
    background: #EFF0F3;
    color: #2E3038;
}
.navbar.navbar-light #logo {
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
}

.mobile .btn.btn-outline-dark.mi-cuenta {
    width: 40px;
    height: 40px;
    border: solid 1px rgba(26, 42, 86, 0.07);
}
.mobile .btn.btn-outline-dark.mi-cuenta .icono-cuenta {
    margin: 0;
}
.c-login {
    height: 56px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    transition: linear 100ms;
}

.navbar.navbar-expand-lg.navbar-light {   
    padding-left: 0;
    padding-right: 0;
}
.botones-login-registro.d-flex.mobile {
    margin: 0;
    padding: 0;
    cursor: pointer;
}
#navbarNavDropdown #logo.desktop {
    height: 56px;
    width: 56px;
    margin-left: 15px;
}

.navbar-toggler:hover {
    background: #EFF0F3;
    border-radius: 100px;
}
.img-responsive.burger{
    width: 24px;
    height: 24px;
}

@media (min-width: 991px) {
    .mobile{display: none!important;}
    .navbar.navbar-expand-lg.navbar-light .mobile {
        display: none !important;
    }

    
}

@media (max-width: 991px) {
    .desktop{display: none!important;
    }
    #menu-ces-2020 li a {
        display: flex;
        justify-content: space-between;
        margin-left: 8px;
        padding-left: 20px;
        margin-top: 5px;
        font-family: "Plus Jakarta Sans", sans-serif;
        font-size: 16px;
        font-weight: 600;
        width: 96%;
        margin-right: 8px;
        padding-right: 0;
        align-items: center;
    }
    #menu-ces-2020 li {
        height: 56px;
        align-items: center;
        display: flex;
    }
    #navbarNavDropdown {
        height: 100vh;
        height: 100vh;
        position: absolute;
        top: 0;
        width: 100%;
        background: #fff;
        transition: 0.5s;
    } 
    #navbarNavDropdown.fade-out-effect {
        display: block!important;
        -webkit-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
                animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    } 
    #navbarNavDropdown.collapsing.fade-in-effect{-webkit-animation:slide-in-top .5s cubic-bezier(.25,.46,.45,.94) both;animation:slide-in-top .5s cubic-bezier(.25,.46,.45,.94) both}
    @-webkit-keyframes slide-out-top{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}100%{-webkit-transform:translateY(-1000px);transform:translateY(-1000px);opacity:0}}@keyframes slide-out-top{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}100%{-webkit-transform:translateY(-1000px);transform:translateY(-1000px);opacity:0}}
    @-webkit-keyframes slide-in-top{0%{-webkit-transform:translateY(-1000px);transform:translateY(-1000px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slide-in-top{0%{-webkit-transform:translateY(-1000px);transform:translateY(-1000px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}
     

    #menu-ces-2020 li a::after {
        height: 17px;
        content: "";
        display: inline-block;
        width: 24px;
        background-image: url("../img/new-ces/arrow-right.webp");
        background-size: contain;
        background-repeat: no-repeat;
        margin-right: 15px;
    }
    #menu-ces-2020 li a:hover {
        height: 100%;
    }
    .c-menu.mobile {
        display: flex !important;
        justify-content: space-between;
        height: 55px;
        border-bottom: solid 1px #EFF0F3;
        width: 100%;
        /*! font-size: 18px; */
        align-items: center;
    }
   
    .btn.btn-outline-dark.mi-cuenta {
        margin-right: 15px;
    }
    .title-m {
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        margin-left: 20px;
    }
    .cerrar.menu {
        width: 24px;
        height: 24px;
        margin-right: 19px;
        cursor: pointer;
    }
 
    #menu-ces-2020 li {
        height: 56px;
    }
    #menu-ces-2020 {
        height: 58vh;
    }

    /* #new-login-modal{
        top: 6%;  
    }  
    */
    #new-login-modal { 
        padding: 0;
    }
    #new-login-modal .modal-content {
        max-width: 100vw;
        padding: 15px;
        min-height: 100vh;
    }
    #new-login-modal .form-item.form-type-textfield.form-item-name .form-text, #new-login-modal .form-item.form-type-password.form-item-pass .form-text {
        width:100%;
    }
    #new-login-modal .password-container {
        width:100%;
    }

    #new-login-modal .form-item.form-type-password.form-item-pass {      
        justify-content: flex-start;      
    }
    #new-login-modal .form-item.form-type-textfield.form-item-name {
        justify-content: flex-start;
        /* QA Antonio: en mobile el campo RUT quedaba 10px corrido y 20px mas
           angosto que el de contrasena. Causa: el `padding: 0 10px` de la regla
           base (L271) + el `width: 100%` que los inputs toman aca arriba (L589):
           el padding le come 20px de ancho al input y lo desplaza.
           En ESCRITORIO ese padding SI hace falta — compensa que este wrapper
           sea flex-column y el de contrasena flex-row con justify-content:
           center; sin el, el RUT se corre 10px a la izquierda. Por eso se anula
           solo aca, dentro del @media (max-width: 991px), y la regla base
           queda intacta.
           Medido en 414px: antes RUT 334px vs PASS 354px -> ahora los dos 354px,
           mismo x de inicio. Las etiquetas flotantes no se mueven. */
        padding: 0;
    }
    #new-login-modal .toggle-password {    
        right: 21px;
    }

    #new-login-modal .close-modal {
        margin: 10px 10px 0 0;
    }
}

/* Oculta el icono nativo de revelar contrasena (Edge/IE) para evitar
   duplicado con el toggle-password custom del modal de login. Solo afecta
   a Edge/IE, transparente en Chrome/Firefox/Safari. Ver CU13/CU17/CU19
   Sprint 2. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* ============================================================================
 * Sprint 2 — Banner de alerta + preloader del boton dentro del modal de
 * login (#new-login-modal). Estilos duplicados aquí (también existen en
 * forsend_login_bloqued/assets/login_lock.css) para garantizar que el modal
 * se vea bien aunque el orden de carga de CSS varíe.
 *
 * Banner: se muestra cuando el pre-check con la API /level + can_register
 * detecta una causal de bloqueo en Siebel.
 * Spinner: se muestra durante la consulta AJAX al pre-check.
 * ============================================================================ */
#new-login-modal .ces-login-banner-bloqueo {
    background: #FFEEDF;
    border: 1px solid #DB5446;
    color: #2E3038;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 16px 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}
#new-login-modal .ces-login-banner-bloqueo .ces-login-banner-titulo {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 6px 0;
    color: #2E3038;
}
#new-login-modal .ces-login-banner-bloqueo .ces-login-banner-cuerpo {
    margin: 0;
    color: #2E3038;
}
#new-login-modal .ces-login-banner-bloqueo a,
#new-login-modal .ces-login-banner-bloqueo a:hover,
#new-login-modal .ces-login-banner-bloqueo a:focus {
    color: #2E3038;
    text-decoration: underline;
}

#new-login-modal .ces-login-submit-loading {
    /* Estado loading segun diseno Figma: fondo GRIS CLARO + texto NEGRO
       (inverso al boton normal que es fondo negro + texto blanco). El
       spinner es amarillo (#F9DC0A). */
    background: #f4f4f4 !important;
    background-color: #f4f4f4 !important;
    color: #000 !important;
    border: 0 none !important;
    pointer-events: none;
    cursor: wait;
}
#new-login-modal .ces-login-submit-loading:hover,
#new-login-modal .ces-login-submit-loading:focus,
#new-login-modal .ces-login-submit-loading:active {
    background: #f4f4f4 !important;
    background-color: #f4f4f4 !important;
    color: #000 !important;
}
#new-login-modal .ces-login-submit-loading .ces-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #F9DC0A;       /* anillo amarillo */
    border-top-color: transparent;   /* abertura para efecto giro */
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: ces-spin 0.7s linear infinite;
}
@keyframes ces-spin {
    to { transform: rotate(360deg); }
}
