body {
    background-image: url("images/login/fondo_2025.png");
    background-size: cover;
    /* La imagen siempre cubre toda la pantalla */
    background-position: center;
    /* Centrada en todos los dispositivos */
    background-repeat: no-repeat;
    /* Evita que se repita */
    background-attachment: fixed;
    /* Efecto elegante en PC */
}

/* Evita problemas en celulares con background-attachment */
@media (max-width: 768px) {
    body {
        background-image: url("images/login/fondo_movil_2025.png");
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center;
    }
}

.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    left: 83%;
    /* Ajusta la posición izquierda del icono */
    top: 50%;
    /* Alinea verticalmente el icono */
    transform: translateY(-50%);
    /* Centra verticalmente el icono */
}

.bandera-modal {
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.bandera-modal:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.btn-primary {
    background-color: #e6f9ff !important;
    border-color: #005094 !important;
    border-radius: 15px !important;
    color: #005094 !important;
}


/* ----------- CONTENEDOR GENERAL ----------- */

/* Ajuste de inputs */
.form-control {
    height: 36px;
    font-size: 13px;
}

/* Icono dentro del input */
.input-icon .icon {
    right: 15px !important;
    left: auto !important;
}

/* ----------- BOTONES ----------- */
.btn {
    height: 45px;
    font-size: 16px;
    border-radius: 10px !important;
    margin-bottom: 10px;
}

/* ----------- BANDERAS ----------- */
.flags-box {
    max-width: 420px;
    margin: 20px auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
}

.banderas img {
    width: 48px;
    height: auto;
    transition: transform 0.2s;
}

.banderas img:hover {
    transform: scale(1.12);
}

/* ----------- MODALES ----------- */
.modal-body iframe {
    max-width: 100%;
    height: 350px;
}

/* Imagen dentro de modal teléfonos */
.bandera_modal {
    width: 100px;
    max-width: 100%;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 480px) {
    #login {
        padding: 10px;
        margin-top: 10px;
    }

    #login .form-control {
        font-size: 15px;
        height: 40px;
    }

    .input-icon .icon {
        right: 10px !important;
    }

    .btn {
        height: 42px;
        font-size: 15px;
    }

    .flags-box {
        max-width: 100px;
        margin: 60px 10px;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 12px;
    }

    .banderas img {
        width: 40px;
    }

    .modal-dialog {
        margin: 10px !important;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    #login {
        max-width: 440px;
    }

    .banderas img {
        width: 50px;
    }
}

#help {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: larger;
}

#login {
    display: flex;
    flex-direction: column;
    background: #ffffff5e;
    padding: 5%;
    border: 2px solid black;
    border-radius: 20px;
}

/* ============================================
   CONTENEDOR GENERAL
   ============================================ */
.container-fluid {
    max-width: 100%;
    margin: 0 auto;
}

/* ============================================
   LOGO PRINCIPAL
   ============================================ */
#login_index {
    display: block;
    margin: 0px auto;
    max-width: 250px;
    width: 13%;
}

/* ============================================
   COLUMNA IZQUIERDA (LOGIN)
   ============================================ */
#form_log {
    width: 50%;
    margin: 0 auto;
}

#login {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.form-control {
    height: 45px;
    font-size: 16px;
}

.input-icon .icon {
    right: 15px;
    top: 12px;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    height: 45px;
    font-size: 16px;
    border-radius: 10px !important;
    margin-bottom: 10px;
}

/* ============================================
   COLUMNA DERECHA (IMÁGENES LATERALES)
   ============================================ */
.col-xs-6 img {
    max-width: 100%;
    width: 66%;
    height: auto;
    margin-bottom: 20px;
}

/* ============================================
   BANDERAS
   ============================================ */



.flags-box .banderas img {
    width: 48px;
    max-width: 100%;
    transition: transform 0.2s;
}

.flags-box .banderas img:hover {
    transform: scale(1.12);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablets --- */
@media (max-width: 992px) {
    #login_index {
        max-width: 300px;
        width: 38%;
    }

    #login {
        max-width: 380px;
    }

    #productos {
        display: none;
    }

    .col-xs-6 img {
        max-width: 100%;
        width: 100%;
        height: auto;
        margin-bottom: 26px;
    }

    .flags-box {
        max-width: 500px;
        margin: 0px auto;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
}

/* --- Celulares grandes e intermedios --- */
@media (max-width: 768px) {

    /* Logo */
    #login_index {
        max-width: 180px;
        margin-top: 10px;
    }

    /* Columnas se apilan */
    .col-xs-6,
    .col-sm-6,
    .col-md-6 {
        width: 100%;
    }

    /* Centrar formulario */
    #login {
        max-width: 100%;
        padding: 0 20px;
    }

    .col-xs-6 img {
        width: 100%;
    }

    /* Ocultar imágenes grandes en móvil (opcional, recomendado) */
    .col-xs-6:last-child img {
        max-width: 90%;
        margin: 0 auto 20px;
        display: block;
    }

    #productos {
        display: none;
    }
}

/* --- Celulares pequeños --- */
@media (max-width: 480px) {

    #login_index {
        max-width: 150px;
    }

    #form_log {
        width: 90%;
        margin: 0 auto;
    }

    .form-control {
        height: 42px;
        font-size: 15px;
    }

    .btn {
        height: 42px;
        font-size: 15px;
    }

    .flags-box .banderas img {
        width: 40px;
    }

    #login {
        padding: 20px 15px;
    }
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 100px;
    font-size: 17px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}