
/*==================================================================================================*/
/* alerta_web - card moderna centrada. Ambito por ventana (absolute dentro de     */
/* .ventana_contenedor) o global (fixed, montada en <body>).                       */
/*==================================================================================================*/

.est_alerta
{
    z-index: 10002;
    display: flex;
    position: fixed;

    top: 50%;
    left: 50%;

    width: auto;
    min-width: 320px;
    max-width: 440px;
    height: auto;

    box-sizing: border-box;
    transform: translate(-50%, -50%);
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .30), 0 4px 12px -4px rgba(0, 0, 0, .12);
    padding: 0px 24px; /* top, right, bottom, left */
    overflow: hidden;

    flex-direction: column;

    animation: est_alerta_aparecer 150ms ease-out;
}

/* Ambito por ventana: la alerta de una ventana se centra DENTRO de su ventana. */
.ventana_contenedor > .est_alerta
{
    position: absolute;
}

.ventana_contenedor > .est_alerta_capaOscura
{
    position: absolute;
}

@keyframes est_alerta_aparecer
{
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.97); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.est_alerta_msg_sector
{
    display: flex;

    margin: 28px 0px 24px 0px; /* top, right, bottom, left */
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;

    align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

.est_alerta_input
{
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0px 0px 24px 0px; /* top, right, bottom, left */
    padding: 10px 12px;

    font-size: 14px;
    color: #2c3e50;

    border: 1px solid #d0d5dd;
    border-radius: 6px;
    outline: none;
}

.est_alerta_input:focus
{
    border-color: #038C3E;
    box-shadow: 0 0 0 3px rgba(3, 140, 62, 0.15);
}

.est_alerta_btns_sector
{
    display: flex;

    margin: 0px 0px 24px 0px; /* top, right, bottom, left */

    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Con 2+ botones se van a los extremos. */
.est_alerta_btns_sector:has(.myButton_est_alert ~ .myButton_est_alert)
{
    justify-content: space-between;
}

.est_alerta_btns_sector > .myButton
{
    width: 100px;
}

.est_alerta_capaOscura
{
    z-index: 10001;
    display: block;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(20, 28, 36, 0.45);
}

.est_alerta_load_bar
{
    display: block;
    width: 70%;
    top: -8px;
    position: relative;
}




/*==================================================================================================*/
/* Botones                                                                                          */
/*==================================================================================================*/

.myButton_est_alert {
    display: block;
    position: relative;
    color: #FAF9FD;
    background: #038C3E;
    text-align: center;
    min-width: 100px;
    padding: 12px 18px;
    border-radius: 6px;
    box-sizing: border-box;
    user-select: none;
    cursor: pointer;
    font-family: Nunito-SemiBold;
    font-size: 15px;
}

.myButton_est_alert:active {
    transform: scale(0.98);
}

.myButton_est_alert:hover {
    background: #229C56;
}

/* Colores por nombre (array_color). Aceptar verde / Cancelar-destructivo rojo. */
.myButton_est_alert.verde {
    background: #038C3E;
    color: #ffffff;
}

.myButton_est_alert.verde:hover {
    background: #229C56;
}

.myButton_est_alert.rojo {
    background: #f90d0d;
    color: #ffffff;
}

.myButton_est_alert.rojo:hover {
    background: #ff3535;
}



.est_alerta_input_foco
{
    width: 0;
    height: 0;
    outline: 0;
    opacity: 0;
    position: absolute;
    top:0;
    left: 0;
}

.est_alerta_mucho_texto
{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    text-align: left;
    width: min-content;
    max-width: 100%;
}

/*==================================================================================================*/
/*==================================================================================================*/
/*==================================================================================================*/
/* Animacion load bar*/
.anim_load_bar
{
    display: flex;
    position: relative;
    width: 100%;
    height: 25px;
    border: 2px solid rgb(8, 8, 8);
    justify-content: space-around;
    align-items: center;
    padding: 6px;
    box-sizing: border-box;
}

.anim_load_bar > div
{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.anim_load_bar > div > div
{
    display: block;
    width: 5px;
    height: 5px;
    background: #000;

    animation-name: load_bar;
    animation-iteration-count: infinite;
}

@keyframes load_bar
{
    0%   {width: 5px;height: 5px; background: #000;border-radius: 0%;}
    15%, 40% {width: 10px;height: 10px;background: #038C3E;border-radius: 50%;}
    40%, 45% {width: 5px;height: 5px;}
    45%, 100% {width: 5px;height: 5px; background: #000; border-radius: 0%;}
}
