/* ============================================
   ESTILOS COMPLETOS - BANCA PROMERICA
   CARRUSEL IZQUIERDA | LOGIN DERECHA
   RESPONSIVO PARA MÓVIL
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', Arial, Helvetica, sans-serif;
    background-color: #e8ecf1;
    margin: 0;
    padding: 0;
}

/* ============================================
   HEADER - LOGO MÁS GRANDE
   ============================================ */
.Login_header_bg {
    background-color: #ffffff;
    height: 120px;
    border-bottom: 3px solid #00703c;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: 30px center;
    background-size: auto 85px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.Login_headerline {
    display: none;
}

/* ============================================
   SECCIÓN PRINCIPAL
   ============================================ */
section {
    max-width: 1024px;
    margin: 25px auto;
    padding: 0 15px;
}

section h1 {
    color: #00703c;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 0.5px;
}

section h1 strong {
    font-weight: 700;
}

article {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    margin: 0 auto;
    height: 400px;
    width: 100%;
    max-width: 780px;
    border: 1px solid #e0e0e0;
}

/* ============================================
   CARRUSEL - IZQUIERDA - IMÁGENES MÁS GRANDES
   ============================================ */
.carrusel {
    width: 470px;
    min-width: 470px;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #f7f7f7;
    flex-shrink: 0;
}

#wowslider-container1 {
    width: 100%;
    height: 100%;
    position: relative;
}

.ws_images {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ws_images ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.ws_images ul li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.ws_images ul li.active {
    opacity: 1;
    z-index: 2;
}

.ws_images ul li img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    display: block;
    transition: transform 0.8s ease-in-out;
}

/* EFECTO ZOOM SUAVE AL CAMBIAR */
.ws_images ul li.active img {
    animation: zoomIn 0.8s ease-in-out;
}

@keyframes zoomIn {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   TEXTO SOBRE EL CARRUSEL
   ============================================ */
.slide-text {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 15px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: white;
    z-index: 5;
    text-align: center;
}

.slide-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.slide-text p {
    font-size: 12px;
    color: #e0e0e0;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* BULLETS / INDICADORES */
.ws_bullets {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.ws_bullets div {
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.40);
    padding: 5px 12px;
    border-radius: 20px;
}

.ws_bullets div a {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-indent: -9999px;
}

.ws_bullets div a.active {
    background: #00703c;
    border-color: #ffffff;
    transform: scale(1.2);
}

/* ============================================
   ASIDE LOGIN - DERECHA
   ============================================ */
#PlaceHolder_pbLoginUC_asideLogin {
    width: 310px;
    min-width: 310px;
    padding: 25px 28px 20px;
    background: #fafbfc;
    border-left: 1px solid #e8e8e8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

#PlaceHolder_pbLoginUC_asideLogin h2 {
    font-size: 17px;
    color: #00703c;
    margin-bottom: 5px;
    font-weight: 600;
}

#PlaceHolder_pbLoginUC_asideLogin p {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* CAMPOS DE FORMULARIO */
.row {
    margin-bottom: 10px;
    clear: both;
}

.row .label {
    display: block;
    margin-bottom: 3px;
}

.row .label label {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.row .input {
    display: block;
}

.logintextfield {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    background: #ffffff;
}

.logintextfield:focus {
    border-color: #00703c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,112,60,0.12);
}

.logintextfield::placeholder {
    color: #aaa;
    font-size: 13px;
}

/* BOTONES */
.BtnLogin {
    width: 100%;
    padding: 10px;
    background: #00703c;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.BtnLogin:hover {
    background: #005a30;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,112,60,0.25);
}

/* OPCIONES */
.opciones {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
}

.opciones p {
    margin-bottom: 6px;
}

.opciones a {
    color: #00703c;
    text-decoration: none;
    display: inline-block;
    margin: 2px 0;
    font-size: 11px !important;
}

.opciones a:hover {
    text-decoration: underline;
}

/* MENSAJES DE ERROR */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid #f5c6cb;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid #ffeeba;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    max-width: 780px;
    margin: 8px auto 0;
    padding: 10px 20px 8px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.footer h3 {
    color: #00703c;
    font-size: 13px;
    margin-bottom: 3px;
    font-weight: 600;
}

.footer p {
    color: #555;
    font-size: 11px;
    margin: 2px 0;
    line-height: 1.5;
}

/* FOOTER INFERIOR */
.Login_footerbg {
    background: #003d22;
    padding: 16px 0;
    margin-top: 25px;
}

.Login_footerbg .FooterLinks {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.LogoFooter {
    width: 150px;
    height: 50px;
    background: url('../images/logo-white.png') no-repeat center;
    background-size: contain;
}

.FooterText {
    color: #c8e6c9;
    font-size: 11px;
    text-align: right;
    line-height: 1.6;
}

.FooterText a {
    color: #8bc34a;
    text-decoration: none;
}

.FooterText a:hover {
    text-decoration: underline;
}

/* LOADING */
.backDiv {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.loadingDiv {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   RESPONSIVE - TABLETS
   ============================================ */
@media (max-width: 800px) {
    article {
        height: auto;
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .carrusel {
        width: 100%;
        min-width: 100%;
        height: 250px;
        order: 1;
    }
    
    .ws_images ul li img {
        width: 85%;
        height: 85%;
    }
    
    #PlaceHolder_pbLoginUC_asideLogin {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e8e8e8;
        padding: 20px 25px;
        order: 2;
    }
    
    .Login_header_bg {
        height: 90px;
        background-size: auto 60px;
        background-position: 20px center;
    }
    
    section h1 {
        font-size: 20px;
    }
    
    .footer {
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE - MÓVILES
   ============================================ */
@media (max-width: 480px) {
    .Login_header_bg {
        height: 70px;
        background-size: auto 45px;
        background-position: 15px center;
    }
    
    section {
        margin: 12px auto;
        padding: 0 10px;
    }
    
    section h1 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .carrusel {
        height: 180px;
    }
    
    .ws_images ul li img {
        width: 80%;
        height: 80%;
    }
    
    .slide-text {
        bottom: 50px;
        padding: 10px 15px;
    }
    
    .slide-text h3 {
        font-size: 13px;
    }
    
    .slide-text p {
        font-size: 10px;
    }
    
    .ws_bullets div {
        padding: 4px 10px;
        gap: 6px;
    }
    
    .ws_bullets div a {
        width: 8px;
        height: 8px;
    }
    
    #PlaceHolder_pbLoginUC_asideLogin {
        padding: 15px 18px;
    }
    
    #PlaceHolder_pbLoginUC_asideLogin h2 {
        font-size: 15px;
    }
    
    #PlaceHolder_pbLoginUC_asideLogin p {
        font-size: 11px;
    }
    
    .logintextfield {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .BtnLogin {
        padding: 9px;
        font-size: 14px;
    }
    
    .opciones a {
        font-size: 10px !important;
    }
    
    .footer {
        padding: 8px 15px;
    }
    
    .footer h3 {
        font-size: 12px;
    }
    
    .footer p {
        font-size: 10px;
    }
    
    .Login_footerbg .FooterLinks {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .LogoFooter {
        width: 120px;
        height: 40px;
    }
    
    .FooterText {
        text-align: center;
        font-size: 10px;
    }
}

/* ============================================
   RESPONSIVE - MÓVILES MUY PEQUEÑOS
   ============================================ */
@media (max-width: 360px) {
    .Login_header_bg {
        height: 60px;
        background-size: auto 35px;
        background-position: 10px center;
    }
    
    section h1 {
        font-size: 14px;
    }
    
    .carrusel {
        height: 150px;
    }
    
    .slide-text {
        bottom: 40px;
        padding: 8px 12px;
    }
    
    .slide-text h3 {
        font-size: 11px;
    }
    
    .slide-text p {
        font-size: 9px;
    }
    
    #PlaceHolder_pbLoginUC_asideLogin {
        padding: 12px 14px;
    }
    
    #PlaceHolder_pbLoginUC_asideLogin h2 {
        font-size: 13px;
    }
    
    .logintextfield {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .BtnLogin {
        padding: 7px;
        font-size: 12px;
    }
}