html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
dl,
dt,
dd,
ol,
nav ul,
nav li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.clearfix {
    clear: both;
}

/*--start editing from here--*/

a {
    text-decoration: none;
}

.txt-rt {
    text-align: right;
}

.txt-lt {
    text-align: left;
}

.txt-center {
    text-align: center;
}

.float-rt {
    float: right;
}

.float-lt {
    float: left;
}

.pos-relative {
    position: relative;
}

.pos-absolute {
    position: absolute;
}

.vertical-base {
    vertical-align: baseline;
}

.vertical-top {
    vertical-align: top;
}

nav.vertical ul li {
    display: block;
}

nav.horizontal ul li {
    display: inline-block;
}

img {
    max-width: 100%;
}

/*--end reset--*/

* {
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;     /* Firefox */
}

*::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
            background-image: url('../images/banner3.jpg');
            background-position: center center;
            background-size: cover;
            background-repeat: no-repeat;
            background-attachment: fixed;
            /* Eliminado el overlay oscuro */
            position: relative;
        }
        
        /* Overlay más suave y limpio */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3); /* Reducido de 0.877 a 0.3 para más claridad */
            z-index: 0;
        }
/* Asegurar que la imagen de fondo se vea nítida */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            body {
                background-image: url('../images/banner3.jpg');
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
}

/* Asegurar que el contenido esté por encima del overlay */
.w3ls-pos {
    position: relative;
    z-index: 2; /* por encima del lienzo de partículas */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto; /* Permitir scroll solo si es necesario en pantallas muy pequeñas */
}

 /* Estilos para indicadores de seguridad */
        .medidor-fortaleza {
            height: 5px;
            margin-top: 5px;
            border-radius: 3px;
            transition: all 0.3s;
        }
        .fortaleza-debil { background: #ff4d4d; width: 33%; }
        .fortaleza-media { background: #ffa500; width: 66%; }
        .fortaleza-fuerte { background: #5cb85c; width: 100%; }
        
        .mensaje-validacion {
            font-size: 12px;
            margin-top: 5px;
            min-height: 20px;
            font-family: 'Verdana', sans-serif;
        }
        
        .mensaje-validacion.exito {
            color: #5cb85c;
        }
        
        .mensaje-validacion.error {
            color: #ff4d4d;
        }
        
        .mensaje-validacion.advertencia {
            color: #ffa500;
        }
        
        .w3ls-login input.valido {
            border-color: #5cb85c !important;
        }
        
        .w3ls-login input.invalido {
            border-color: #ff4d4d !important;
        }
        
        .btn-iniciar-sesion {
            color: #ffffff;
            font-weight: 600;
            width: 100%;
            padding: 15px;
            font-size: 1em;
            letter-spacing: 2px;
            cursor: pointer;
            border: 2px solid rgba(92, 184, 92, 0.8);
            border-radius: 8px;
            outline: none;
            background: rgba(92, 184, 92, 0.3);
            font-family: 'Verdana', sans-serif;
            transition: all 0.3s ease;
            text-transform: uppercase;
        }
        
        .btn-iniciar-sesion:hover:not(:disabled) {
            background: rgba(92, 184, 92, 0.6);
            box-shadow: 0 8px 25px rgba(92, 184, 92, 0.3);
            transform: translateY(-2px);
        }
        
        .btn-iniciar-sesion:disabled {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.5);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        #rueda-carga {
            display: inline-block;
            animation: girar 1s linear infinite;
        }
        
        @keyframes girar {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }			
			
			
/* Asegurar que las partículas cubran todo */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.w3ls-login {
    display: -webkit-flex;
    display: -webkit-box;
    display: -moz-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

h1 {
    font-size: 2.8em;
    font-weight: 400;
    text-transform: capitalize;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    margin: 0.5em 1vw;
    text-align: center;
    font-family: 'Verdana', sans-serif;
}

.w3ls-login form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.agile-field-txt {
    flex-basis: 100%;
    -webkit-flex-basis: 100%;
    margin-bottom: 1.3em;
}

/* Campos de entrada transparentes con texto blanco Verdana */
.w3ls-login input[type="number"],
.w3ls-login input[type="password"],
.w3ls-login input[type="text"] {
    width: 100%;
    color: #ffffff;
    outline: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    -webkit-appearance: none;
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
    font-family: 'Verdana', sans-serif;
    background: transparent;
    transition: all 0.3s ease;
}

/* Chrome, Safari, Edge, Opera */
.w3ls-login input[type="number"]::-webkit-inner-spin-button,
.w3ls-login input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.w3ls-login input[type="number"] {
    -moz-appearance: textfield;
}

/* También para el input RUC específico */
#ruc-login {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

#ruc-login::-webkit-inner-spin-button,
#ruc-login::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.w3ls-login input[type="number"]:focus,
.w3ls-login input[type="password"]:focus,
.w3ls-login input[type="text"]:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Placeholder en blanco */
.w3ls-login ::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Verdana', sans-serif;
}

.w3ls-login :-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Verdana', sans-serif;
}

.w3ls-login ::-moz-placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Verdana', sans-serif;
}

.w3ls-login :-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Verdana', sans-serif;
}

.check1 {
    text-align: left;
}

label.check {
    color: #ffffff;
    letter-spacing: 1px;
    font-size: 16px;
    display: inline-block;
    font-family: 'Verdana', sans-serif;
}

.agile_label {
    text-align: left;
    margin: 10px 0 0;
}

.w3ls-login.w3l-sub {
    margin-top: 1em;
    flex-basis: 100%;
    -webkit-flex-basis: 100%;
}

.w3ls-login input[type=submit] {
    color: #ffffff;
    font-weight: 600;
    width: 100%;
    padding: 15px;
    font-size: 1em;
    letter-spacing: 2px;
    cursor: pointer;
    border: 2px solid rgba(92, 184, 92, 0.8);
    border-radius: 8px;
    outline: none;
    background: rgba(92, 184, 92, 0.3);
    font-family: 'Verdana', sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.w3ls-login input[type=submit]:hover {
    background: rgba(92, 184, 92, 0.6);
    box-shadow: 0 8px 25px rgba(92, 184, 92, 0.3);
    transform: translateY(-2px);
}

.w3ls-login input[type=submit]:disabled {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.w3ls-bot {
    margin-top: 1em;
    width: 100%;
}

#particles-js {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    /* Por encima del overlay body::before (z-index 0) y por debajo de la tarjeta.
       Antes estaba en z-index -1 y el overlay tapaba el lienzo, por eso el ratón
       no producía ningún efecto en esta página. */
    z-index: 1;
    /* El puntero se sigue desde window (ver login.php), el lienzo no necesita
       recibir clics: así tampoco tapa enlaces ni botones. */
    pointer-events: none;
}

/* Mensajes de validación */
.agile-field-txt span {
    font-family: 'Verdana', sans-serif;
    font-size: 13px;
    display: block;
    height: 20px;
    margin-top: 5px;
}

/*--copyright--*/

.copy-wthree {
    margin: 2em 0 1em;
    padding: 0 20px;
}

.copy-wthree p {
    color: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.5;
    font-family: 'Verdana', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.copy-wthree p a {
    color: #fff;
    transition: 0.5s all ease;
    -webkit-transition: 0.5s all ease;
    -moz-transition: 0.5s all ease;
    -o-transition: 0.5s all ease;
    -ms-transition: 0.5s all ease;
    text-decoration: underline;
    font-weight: 600;
}

.copy-wthree p a:hover {
    color: #5cb85c;
    text-shadow: 0 0 10px rgba(92, 184, 92, 0.5);
}

/*--//copyright--*/

/*--responsive--*/

@media screen and (max-width: 1200px) {
    .w3ls-pos {
        max-width: 550px;
        padding: 15px;
    }
}

@media(max-width:1024px) {
    h1 {
        font-size: 2.5em;
    }
    .w3ls-login form {
        max-width: 450px;
    }
}

@media(max-width:768px) {
    h1 {
        font-size: 2.2em;
        margin: 0.3em 1vw;
    }
    .w3ls-pos {
        max-width: 100%;
        padding: 15px;
    }
    .w3ls-login form {
        max-width: 400px;
        padding: 15px;
    }
    .w3ls-login input[type="number"],
    .w3ls-login input[type="password"],
    .w3ls-login input[type="text"] {
        padding: 12px 15px;
        font-size: 15px;
    }
}

@media(max-width:600px) {
    h1 {
        font-size: 2em;
    }
    .w3ls-pos {
        padding: 10px;
    }
    .w3ls-login form {
        padding: 20px 15px;
    }
    .copy-wthree p {
        font-size: 14px;
    }
}

@media(max-width:480px) {
    h1 {
        font-size: 1.8em;
    }
    .w3ls-login form {
        padding: 15px;
    }
    .w3ls-login input[type="number"],
    .w3ls-login input[type="password"],
    .w3ls-login input[type="text"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    .w3ls-login input[type=submit] {
        padding: 12px;
        font-size: 0.9em;
    }
    label.check {
        font-size: 14px;
    }
    .copy-wthree p {
        font-size: 12px;
    }
}

@media(max-width:320px) {
    h1 {
        font-size: 1.5em;
    }
    .w3ls-login form {
        padding: 12px;
    }
    .w3ls-login input[type="number"],
    .w3ls-login input[type="password"],
    .w3ls-login input[type="text"] {
        padding: 8px 10px;
        font-size: 13px;
    }
    .w3ls-login input[type=submit] {
        padding: 10px;
        font-size: 0.85em;
    }
    .agile-field-txt {
        margin-bottom: 1em;
    }
}


/*--//responsive--*/