﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* Asegura que no haya scroll horizontal */
body, html {
    overflow-x: hidden;
}
table {
    width: 100%;
    table-layout: fixed;
}

.label-gold {
    color: #e7ba3a;
}

.bg-blue-atk {
    background-color: #0A2A5D;
}

#txtCorreo::placeholder,
#txtCorreoConfirma::placeholder,
#txtPassword::placeholder,
#txtConfirmaPassword::placeholder,
#txtTelefono::placeholder {
    color: #03204a;
}

#txtNombres::placeholder,
#txtApellidos::placeholder,
#txtDNI::placeholder,
#txtNumeroWhatsapp::placeholder,
#txtCodigoPromocional::placeholder,
#txtDireccion::placeholder,
#txtNumeroDocumento::placeholder,
#txtCorreoElectronico,
#cboTipoDocumento,
#cboDepartamento,
#cboProvincia,
#cboDistrito {
    color: #03204a;
    font-style: italic;
}
/*#txtCorreo::placeholder,
#txtDireccion::placeholder {
    color: #D3D3D3;
    font-style: italic;
    text-align: center;
}*/

body {
    background-color: #0A2A5D;
    display: flex;
    min-height: 100vh;
}

.right-section {
    flex: 1;
    background-color: #03204A;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.bg-atk {
    /*background-color: #03204A;*/
    background-color: #04214B;
}

.login-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px white;
    padding: 2.5rem;
    width: 100%;
}

.input-gold {
    border: 2px solid #e7ba3a !important;
    box-shadow: none !important;
    background-color: white;
    color: #03204a;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #0A2A5D;
    font-size: 0.9rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

    input:focus {
        outline: none;
        border-color: #0d6efd;
    }

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

    .forgot-password a {
        color: #0d6efd;
        text-decoration: none;
        font-size: 0.85rem;
    }

.bg-gold {
    width: 100%;
    /*padding: 0.75rem;*/
    background-color: #e7ba3a; /*
    color: #03204a;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;*/
    transition: background-color 0.3s;
}

.btn-gold {
    width: 100%;
    padding: 0.75rem;
    background-color: #e7ba3a;
    color: #03204a;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #0A2A5D;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

    .register-link a {
        color: #0d6efd;
        text-decoration: none;
        font-weight: 500;
    }
/************************ Left ************************/
.left-section {
    flex: 1;
    background-color: #03204A;
    /* background: linear-gradient(160deg, #001e4f, #283c86);*/
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

    .logo img {
        width: 60px;
        margin-right: 10px;
    }

    .logo span {
        font-size: 36px;
        font-weight: bold;
    }

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

    .step img {
        width: 40px;
        margin-right: 15px;
    }

.step-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.step-text p {
    font-size: 14px;
    line-height: 1.4;
}

    .step-text p span {
        color: #00e3d3;
    }

.form-link {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

    .form-link a {
        color: #555;
        text-decoration: none;
    }
/************************************************************************/
@media (min-width: 768px) {
    .left-section {
        display: flex;
    }
}

.mobile-title {
    display: none;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.75rem; /* Espacio entre inputs */
    margin: 1rem auto;
    max-width: 100%;
    /*display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;*/
}

.code-input {
    width: 40px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: 2px solid #e7ba3a;
    border-radius: 8px;
    background-color: white;
    color: #4CAF50;
    transition: all 0.2s ease;
    /*width: 50px;*/
    /*height: 40px;
    text-align: center;
    font-size: 24px;
    border-radius: 5px;
    transition: all 0.3s;
    border: 2px solid #e7ba3a !important;
    background-color: white;
    color: #4CAF50;*/
}

    .code-input:focus {
        /*border-color: white;
        outline: none;
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);*/
        outline: none;
        border-color: white;
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
    }

    .code-input.filled {
        border-color: white;
    }
/* Responsive: en pantallas pequeñas, reduce el tamaño */
@media (max-width: 576px) {
    .code-input {
        width: 36px;
        height: 45px;
        font-size: 1.1rem;
    }

    .code-inputs {
        gap: 0.5rem;
    }
}
.title-gold {
    color: #F7BC26;
}
/* Mostrar el título solo en móviles */
@media only screen and (max-width: 600px) {
    .mobile-title {
        display: block;
    }
}

.label-atk {
    font-family: Sharp Grotesk;
    color: white;
}

.logo-responsive {
    max-width: 100%;
    height: auto;
    width: 200px; /* tamaño base */
}

@media (max-width: 600px) {
    .logo-responsive {
        width: 120px; /* más pequeño en celulares */
    }
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

.file-input {
    display: none;
}

.custom-file-label {
    background-color: white;
    color: #03204a;
    /*padding: 10px 20px;*/
    cursor: pointer;
    border-radius: 4px;
    font-family: sans-serif;
    display: inline-block;
}

    .custom-file-label:hover {
        background-color: white;
    }

.resaltado {
    color: #FEC107;
    font-weight: bold;
}

.border-card {
    border-width: 5px;
    border-style: solid;
    border-color: #FEC107;
}

#imgCard {
    cursor: pointer;
    transition: opacity 0.2s;
}

    #imgCard:hover {
        opacity: 0.8;
    }

.error {
    border: 2px solid red;
}

/* Ancho del modal */

.modal-dialog.modal-90w {
    max-width: 90%;
}

.modal-90vh {
    height: 90vh;
}

.modal-content {
    height: 100%;
}

.modal-body {
    overflow-y: auto;
}

/* Oculta completamente el input nativo */
#btnDocumentoFrontal,
#btnDocumentoPosterior,
#btnDocumentoSelfie {
    display: none;
}

/* Estilo personalizado para el label que simula el botón */
.file-label-simulado {
    display: inline-block;
    /*background-color: white;*/
    border: 0px solid #ccc;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

    .file-label-simulado:hover {
        background-color: #f0f0f0;
    }
/* Estilo para ver la imagen ampliada */
.modal-imagen {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px #000;
}

.cerrar {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
.oculto {
    display: none;
}
/********************************** Spinner *****************************/
/* Mejora del fondo del modal */
/*.modal-backdrop.show {
    opacity: 0.85;
    background-color: #000;
}*/

/* Texto legible en modal transparente */
/*.modal-body p {
    color: #f0f0f0;
    font-size: 1.1rem;
}*/

/* Spinner responsive (autoajuste en móviles) */
/*@media (max-width: 576px) {
    .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
    }

    .modal-body p {
        font-size: 1rem;
    }
}*/
/* Fondo del modal más oscuro */
.modal-backdrop.show {
    opacity: 0.85;
    background-color: #000;
}

/* Animación del logo: pulsar o rotar */
.logo-spinner {
    width: 80px;
    height: auto;
    animation: pulseLogo 1.5s infinite;
    filter: drop-shadow(0 0 5px #e7ba3a);
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .logo-spinner {
        width: 60px;
    }

    .modal-body p {
        font-size: 1rem;
    }
}