/* ============================
   FUENTE CORPORATIVA ITAÚ
============================ */
@font-face {
    font-family: "Itau Text Pro";
    src: url(fonts/ItauTextPro_Lt.woff2) format("woff2"),
         url(fonts/ItauTextPro_Lt.woff) format("woff"),
         url(fonts/ItauTextPro_Lt.ttf) format("truetype");
    font-weight: 300;
    font-style: normal;
}

* {
    font-family: "Itau Text Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box;
}

/* ============================
   BASE
============================ */
body {
    margin: 0;
    background: #e8eaf0;
    color: #546576;
    padding: 20px;
}

/* ============================
   HEADER CON LOGO
============================ */
.itau-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: transparent;
    margin-bottom: 30px;
}

.logo-header {
    height: 60px;
    width: auto;
    max-width: 150px;
}

/* ============================
   CONTENEDOR PRINCIPAL
============================ */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
}

/* ============================
   PANEL DE LOGIN
============================ */
.login-panel {
    width: 320px;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================
   TÍTULO EXACTO
============================ */
.welcome-title {
    text-align: center;
    font-weight: 400;
    font-size: 0.95rem;
    color: #4a4a4a;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.welcome-bold {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1e3a5f;
    margin-top: 4px;
}

/* ============================
   CAJAS DE ENTRADA
============================ */
.box-input {
    background: #ffffff;
    border: none;
    padding: 0 0 12px 0;
    margin-bottom: 16px;
}

.box-title {
    font-weight: 500;
    font-size: 0.85rem;
    color: #5a5a5a;
    margin-bottom: 6px;
    display: block;
}

.input-itau {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d4db;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    color: #2c2c2c;
    transition: border-color 0.2s ease;
}

.input-itau:focus {
    outline: none;
    border-color: #ec7000;
    box-shadow: 0 0 0 3px rgba(236, 112, 0, 0.1);
}

/* ============================
   CLAVE - BOTÓN MOSTRAR DENTRO
============================ */
.clave-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid #d0d4db;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    padding: 0 10px;
}

.clave-wrapper:focus-within {
    border-color: #ec7000;
    box-shadow: 0 0 0 3px rgba(236, 112, 0, 0.1);
}

.input-clave {
    flex: 1;
    border: none;
    padding: 10px 0;
    font-size: 0.9rem;
}

.input-clave:focus {
    outline: none;
    box-shadow: none;
}

.btn-mostrar {
    background: transparent;
    border: none;
    color: #5a5a5a;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0 0 0 10px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.btn-mostrar:hover {
    color: #ec7000;
}

/* ============================
   BOTÓN INGRESAR — NARANJO CORPORATIVO
============================ */
.btn-itau-empresa {
    width: 100%;
    padding: 12px;
    background: #ec7000;
    border: none;
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
}

.btn-itau-empresa:hover {
    background: #d97d00;
}

.btn-itau-empresa:active {
    background: #bc5900;
}

/* ============================
   BOTÓN PROBLEMAS CON TU CLAVE
============================ */
.btn-problemas-clave {
    display: block;
    text-align: center;
    color: #0078d4;
    font-weight: 600;
    margin-top: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px;
    transition: color 0.2s ease;
}

.btn-problemas-clave:hover {
    color: #005a9e;
    text-decoration: underline;
}

/* ============================
   BOTÓN NUEVO USUARIO — BLANCO CON NARANJA HOVER
============================ */
.btn-primer-ingreso {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 2px solid #ec7000;
    color: #ec7000;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-primer-ingreso:hover {
    background: #ec7000;
    color: #ffffff;
    border-color: #ec7000;
}

/* ============================
   PANEL DE SEGURIDAD
============================ */
.security-panel {
    width: 320px;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.panel-title {
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-list li {
    color: #5a5a5a;
    font-size: 0.8rem;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.security-list li:last-child {
    margin-bottom: 0;
}

.security-list strong {
    color: #2c2c2c;
    font-weight: 700;
}

.icon-sec {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    stroke: #ec7000;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================
   FOOTER
============================ */
.itau-footer {
    background: transparent;
    color: #5a5a5a;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.85rem;
    margin-top: 40px;
}

.itau-footer p {
    margin: 0;
    line-height: 1.5;
}

/* ============================
   VERSIÓN TABLET
============================ */
@media (max-width: 1100px) {

    .main-container {
        flex-direction: column;
        gap: 20px;
    }

    .login-panel,
    .security-panel {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* ============================
   VERSIÓN MÓVIL
============================ */
@media (max-width: 768px) {

    body {
        padding: 15px;
    }

    .itau-header {
        padding: 15px;
        margin-bottom: 20px;
    }

    .logo-header {
        height: 50px;
    }

    .main-container {
        flex-direction: column;
        max-width: 100%;
        gap: 20px;
    }

    .login-panel {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }

    .security-panel {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }

    .welcome-title {
        font-size: 0.9rem;
    }

    .welcome-bold {
        font-size: 1.1rem;
    }

    .box-title {
        font-size: 0.8rem;
    }

    .input-itau,
    .clave-wrapper {
        font-size: 0.85rem;
    }

    .btn-itau-empresa {
        padding: 11px;
        font-size: 0.9rem;
    }

    .btn-problemas-clave,
    .btn-primer-ingreso {
        font-size: 0.8rem;
    }

    .security-list li {
        font-size: 0.75rem;
        margin-bottom: 15px;
    }

    .icon-sec {
        width: 18px;
        height: 18px;
    }

    .itau-footer {
        padding: 25px 15px;
        font-size: 0.8rem;
    }
}

/* ============================
   VERSIÓN MÓVIL PEQUEÑO
============================ */
@media (max-width: 480px) {

    body {
        padding: 10px;
    }

    .itau-header {
        padding: 10px;
        margin-bottom: 15px;
    }

    .logo-header {
        height: 45px;
    }

    .login-panel {
        padding: 20px 15px;
        width: 100%;
    }

    .security-panel {
        padding: 20px 15px;
        width: 100%;
    }

    .welcome-title {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .welcome-bold {
        font-size: 1rem;
    }

    .box-input {
        margin-bottom: 14px;
    }

    .box-title {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }

    .input-itau {
        padding: 9px 10px;
        font-size: 0.8rem;
    }

    .clave-wrapper {
        padding: 0 8px;
    }

    .input-clave {
        padding: 9px 0;
    }

    .btn-mostrar {
        font-size: 0.75rem;
        padding: 0 0 0 8px;
    }

    .btn-itau-empresa {
        padding: 10px;
        font-size: 0.85rem;
        margin-top: 18px;
    }

    .btn-problemas-clave {
        margin-top: 12px;
        padding: 6px;
    }

    .btn-primer-ingreso {
        margin-top: 8px;
        padding: 9px 10px;
    }

    .panel-title {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .security-list li {
        font-size: 0.7rem;
        margin-bottom: 12px;
        gap: 8px;
    }

    .icon-sec {
        width: 16px;
        height: 16px;
    }

    .itau-footer {
        padding: 20px 10px;
        font-size: 0.75rem;
        margin-top: 30px;
    }
}
/* ============================
   LOGO DENTRO DEL FORM
============================ */
.logo-itau-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-itau {
    width: 85px;      /* tamaño idéntico al login real */
    height: auto;
    display: block;
}
.confirmacion-itau {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.confirmacion-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    border: 3px solid #ec7000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.confirmacion-box h3 {
    margin: 0 0 10px 0;
    color: #1e3a5f;
    font-size: 1rem;
    font-weight: 700;
}

.confirmacion-box p {
    margin: 0 0 20px 0;
    color: #546576;
    font-size: 0.85rem;
}

.confirmacion-btn {
    background: #ec7000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    font-size: 0.9rem;
}

.confirmacion-btn:hover {
    background: #d97d00;
}

@media (max-width: 768px) {

    /* Oculta el panel de seguridad moviéndolo hacia abajo */
    .security-panel {
        position: absolute;
        bottom: -500px; /* lo empuja fuera de la vista */
        width: 100%;
    }

    /* Encierra el formulario justo en la pantalla */
    .login-panel {
        margin-top: 10px; /* pequeño margen arriba */
        margin-bottom: 0;
        padding-bottom: 20px;
    }

    /* Ajusta el main para que no deje espacio extra */
    .main-container {
        position: relative;
        min-height: 100vh; /* ocupa toda la pantalla */
        overflow: hidden;  /* evita que se vea el panel de seguridad */
    }
}
