* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #222;
}

/* ============================================================
   ENCABEZADO
   ============================================================ */

.encabezado {
    background: #1f2937;
    color: white;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.usuario-conectado {
    display: flex;
    align-items: center;
    gap: 20px;
}

.usuario-info {
    text-align: right;
    font-size: 14px;
}

.usuario-info strong {
    display: block;
    font-size: 15px;
}


/* ============================================================
   BOTON SALIR
   ============================================================ */

.btn-salir {
    color: white;
    text-decoration: none;
    border: 1px solid #9ca3af;
    padding: 7px 14px;
    border-radius: 5px;
}

.btn-salir:hover {
    background: #374151;
}


/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.contenedor {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}


/* ============================================================
   NAVEGACION
   ============================================================ */

.menu {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0 30px;
}

.menu a {
    display: inline-block;
    padding: 14px 18px;
    color: #374151;
    text-decoration: none;
}

.menu a:hover {
    background: #f3f4f6;
}


/* ============================================================
   TARJETAS
   ============================================================ */

.tarjeta {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}


/* ============================================================
   TITULOS
   ============================================================ */

h1 {
    margin-top: 0;
    font-size: 26px;
}

h2 {
    font-size: 20px;
}


/* ============================================================
   MENSAJES
   ============================================================ */

.mensaje {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.mensaje-error {
    background: #fee2e2;
    color: #991b1b;
}

.mensaje-ok {
    background: #dcfce7;
    color: #166534;
}


/* ============================================================
   FORMULARIOS
   ============================================================ */

.form-grupo {
    margin-bottom: 18px;
}

.form-grupo label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    max-width: 600px;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 14px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}


/* ============================================================
   BOTONES
   ============================================================ */

.btn {
    display: inline-block;
    border: 0;
    border-radius: 5px;
    padding: 9px 16px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-principal {
    background: #2563eb;
    color: white;
}

.btn-principal:hover {
    background: #1d4ed8;
}

.btn-secundario {
    background: #6b7280;
    color: white;
}

.btn-peligro {
    background: #dc2626;
    color: white;
}

.btn-exito {
    background: #16a34a;
    color: white;
}

.btn-info {
    background: #27b4f5;
    color: white;
}


/* ============================================================
   TABLAS
   ============================================================ */

.tabla {
    width: 100%;
    border-collapse: collapse;
}

.tabla th,
.tabla td {
    padding: 11px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.tabla th {
    background: #f8fafc;
    font-weight: bold;
}

.tabla tr:hover {
    background: #f8fafc;
}


/* ============================================================
   PIE
   ============================================================ */

.pie {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    padding: 30px;
}

/* ============================================================
   SOLICITUD DE ARCHIVOS
   ============================================================ */

.ayuda {
    color: #6b7280;
    font-size: 13px;
}


/* ============================================================
   RESULTADO DE SOLICITUD
   ============================================================ */

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.resultado-header h2 {
    margin-top: 0;
    margin-bottom: 8px;
}


.resumen {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.resumen span {
    padding: 7px 12px;
    background: #f3f4f6;
    border-radius: 5px;
    font-size: 13px;
}


/* ============================================================
   ARCHIVOS
   ============================================================ */

.archivo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 15px 0;

    border-top: 1px solid #e5e7eb;
}


.archivo-info {
    display: flex;
    align-items: center;
    gap: 12px;
}


.icono {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: bold;
}


.icono.ok {
    background: #dcfce7;
    color: #166534;
}


.icono.no {
    background: #fee2e2;
    color: #991b1b;
}


.nombre {
    font-weight: bold;
}


.detalle {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}


/* ============================================================
   LOGIN E-SASA
   ============================================================ */

.login-body {
    margin: 0;
    min-height: 100vh;
    background: #071b49;
}


/* ============================================================
   CONTENEDOR PRINCIPAL
   ============================================================ */

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(420px, 0.85fr);

}


/* ============================================================
   PANEL IZQUIERDO
   ============================================================ */

.login-hero {

    position: relative;

    min-height: 100vh;

    background-image:
        url("../images/login-hero.png");

    background-size: cover;

    background-position: center;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

}


.login-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(4, 24, 70, 0.15),
            rgba(4, 24, 70, 0.45)
        );

}


.login-hero-content {

    position: relative;

    z-index: 2;

    padding: 80px 70px 30px;

    max-width: 650px;

}


.login-hero-content h1 {

    margin: 0 0 18px;

    color: white;

    font-size: 38px;

    font-weight: 700;

    letter-spacing: 0.5px;

}


.login-hero-content p {

    margin: 0;

    color: white;

    font-size: 20px;

    line-height: 1.5;

    max-width: 560px;

}


/* ============================================================
   CARACTERISTICAS
   ============================================================ */

.login-features {

    position: relative;

    z-index: 2;

    display: flex;

    gap: 0;

    padding: 24px 55px;

    background:
        rgba(4, 25, 75, 0.94);

}


.login-feature {

    flex: 1;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 25px;

    color: white;

    border-right:
        1px solid
        rgba(255,255,255,0.25);

}


.login-feature:first-child {

    padding-left: 0;

}


.login-feature:last-child {

    border-right: 0;

}


.feature-icon {

    width: 42px;

    height: 42px;

    border:
        1px solid
        rgba(255,255,255,0.65);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 20px;

}


.login-feature strong {

    display: block;

    color: #28a9ff;

    font-size: 14px;

    margin-bottom: 4px;

}


.login-feature span {

    display: block;

    font-size: 12px;

    color: #e5e7eb;

}


/* ============================================================
   PANEL DERECHO
   ============================================================ */

.login-panel {

    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef3f9
        );

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;

}


/* ============================================================
   TARJETA
   ============================================================ */

.login-card {

    width: 100%;

    max-width: 520px;

    background: white;

    border-radius: 18px;

    padding: 42px 48px;

    box-shadow:
        0 20px 55px
        rgba(7, 27, 73, 0.18);

}


/* ============================================================
   LOGO
   ============================================================ */

.login-logo {

    text-align: center;

    margin-bottom: 24px;

}


.login-logo img {

    width: 100%;

    max-width: 360px;

    height: auto;

    display: inline-block;

}


/* ============================================================
   TITULO
   ============================================================ */

.login-title {

    text-align: center;

    margin-bottom: 28px;

}


.login-title h2 {

    margin: 0 0 7px;

    color: #071b49;

    font-size: 30px;

}


.login-title p {

    margin: 0;

    color: #64748b;

    font-size: 15px;

}


/* ============================================================
   ERROR
   ============================================================ */

.login-error {

    background: #fee2e2;

    color: #991b1b;

    border:
        1px solid
        #fecaca;

    border-radius: 7px;

    padding: 11px 13px;

    margin-bottom: 20px;

    font-size: 14px;

}


/* ============================================================
   CAMPOS
   ============================================================ */

.login-field {

    margin-bottom: 21px;

}


.login-field label {

    display: block;

    margin-bottom: 7px;

    color: #172554;

    font-size: 14px;

    font-weight: 700;

}


.login-input {

    position: relative;

    display: flex;

    align-items: center;

}


.login-input input {

    width: 100%;

    height: 52px;

    box-sizing: border-box;

    padding:
        0 48px 0 45px;

    border:
        1px solid
        #cbd5e1;

    border-radius: 8px;

    font-size: 15px;

    color: #172554;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;

}


.login-input input:focus {

    border-color: #168cf5;

    box-shadow:
        0 0 0 3px
        rgba(22, 140, 245, 0.12);

}


.input-icon {

    position: absolute;

    left: 14px;

    z-index: 2;

    font-size: 17px;

}


/* ============================================================
   MOSTRAR PASSWORD
   ============================================================ */

.password-toggle {

    position: absolute;

    right: 10px;

    top: 50%;

    transform:
        translateY(-50%);

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 17px;

    padding: 7px;

}


/* ============================================================
   BOTON INGRESAR
   ============================================================ */

.login-button {

    width: 100%;

    height: 54px;

    margin-top: 7px;

    border: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            #071b49,
            #123fa4
        );

    color: white;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition:
        transform 0.15s,
        box-shadow 0.15s;

}


.login-button span {

    margin-right: 8px;

    font-size: 20px;

}


.login-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 18px
        rgba(7, 27, 73, 0.25);

}


/* ============================================================
   MENSAJE DE SEGURIDAD
   ============================================================ */

.login-security {

    margin-top: 26px;

    padding-top: 20px;

    border-top:
        1px solid
        #e2e8f0;

    text-align: center;

    color: #64748b;

    font-size: 13px;

}


.login-security span {

    margin-right: 5px;

}


/* ============================================================
   PIE
   ============================================================ */

.login-footer {

    margin-top: 28px;

    text-align: center;

    color: #64748b;

    font-size: 12px;

    line-height: 1.8;

}


.login-footer strong {

    color: #536987;

    font-size: 14px;

}


.login-footer span {

    color: #123fa4;

    font-weight: 600;

}


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

@media (max-width: 900px) {

    .login-page {

        grid-template-columns: 1fr;

    }


    .login-hero {

        min-height: 330px;

    }


    .login-hero-content {

        padding:
            45px 35px 25px;

    }


    .login-hero-content h1 {

        font-size: 30px;

    }


    .login-features {

        display: none;

    }


    .login-panel {

        min-height: auto;

        padding: 35px 20px;

    }

}


@media (max-width: 500px) {

    .login-card {

        padding:
            30px 22px;

        border-radius: 12px;

    }


    .login-logo img {

        max-width: 300px;

    }


    .login-title h2 {

        font-size: 26px;

    }

}

/* ============================================================
   LOGIN E-SASA
   ============================================================ */

.login-body {

    margin: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

    background: #e5e7eb;

}


/* ============================================================
   FONDO COMPLETO
   ============================================================ */

.login-background {

    position: fixed;

    inset: 0;

    width: 100vw;

    height: 100vh;

    background-image:
        url("../images/login-hero.png");

    background-size: 100% 100%;

    background-position: center center;

    background-repeat: no-repeat;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    padding: 35px 5vw;

    box-sizing: border-box;

}


/* ============================================================
   FORMULARIO
   ============================================================ */

.login-card {

    width: 100%;

    max-width: 520px;

    background: #ffffff;

    border-radius: 18px;

    padding: 42px 48px;

    box-sizing: border-box;

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.25);

}


/* ============================================================
   LOGO
   ============================================================ */

.login-logo {

    text-align: center;

    margin-bottom: 24px;

}


.login-logo img {

    width: 100%;

    max-width: 360px;

    height: auto;

    display: inline-block;

}


/* ============================================================
   TITULO
   ============================================================ */

.login-title {

    text-align: center;

    margin-bottom: 28px;

}


.login-title h2 {

    margin: 0 0 7px;

    color: #071b49;

    font-size: 30px;

}


.login-title p {

    margin: 0;

    color: #64748b;

    font-size: 15px;

}


/* ============================================================
   ERROR
   ============================================================ */

.login-error {

    background: #fee2e2;

    color: #991b1b;

    border: 1px solid #fecaca;

    border-radius: 7px;

    padding: 11px 13px;

    margin-bottom: 20px;

    font-size: 14px;

}


/* ============================================================
   CAMPOS
   ============================================================ */

.login-field {

    margin-bottom: 21px;

}


.login-field label {

    display: block;

    margin-bottom: 7px;

    color: #172554;

    font-size: 14px;

    font-weight: 700;

}


.login-input {

    position: relative;

    display: flex;

    align-items: center;

}


.login-input input {

    width: 100%;

    height: 52px;

    padding: 0 48px 0 45px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 15px;

    color: #172554;

    outline: none;

    box-sizing: border-box;

}


.login-input input:focus {

    border-color: #168cf5;

    box-shadow:
        0 0 0 3px
        rgba(22, 140, 245, 0.12);

}


.input-icon {

    position: absolute;

    left: 14px;

    z-index: 2;

    font-size: 17px;

}


/* ============================================================
   MOSTRAR PASSWORD
   ============================================================ */

.password-toggle {

    position: absolute;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    cursor: pointer;

    font-size: 17px;

    padding: 7px;

}


/* ============================================================
   BOTON
   ============================================================ */

.login-button {

    width: 100%;

    height: 54px;

    margin-top: 7px;

    border: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            #071b49,
            #123fa4
        );

    color: white;

    font-size: 16px;

    font-weight: 700;

    letter-spacing: 0.5px;

    cursor: pointer;

}


.login-button span {

    margin-right: 8px;

    font-size: 20px;

}


.login-button:hover {

    box-shadow:
        0 8px 18px
        rgba(7, 27, 73, 0.25);

}


/* ============================================================
   SEGURIDAD
   ============================================================ */

.login-security {

    margin-top: 26px;

    padding-top: 20px;

    border-top: 1px solid #e2e8f0;

    text-align: center;

    color: #64748b;

    font-size: 13px;

}


.login-security span {

    margin-right: 5px;

}


/* ============================================================
   PIE
   ============================================================ */

.login-footer {

    margin-top: 28px;

    text-align: center;

    color: #64748b;

    font-size: 12px;

    line-height: 1.8;

}


.login-footer strong {

    color: #536987;

    font-size: 14px;

}


.login-footer span {

    color: #123fa4;

    font-weight: 600;

}


/* ============================================================
   PANTALLAS PEQUEÑAS
   ============================================================ */

@media (max-width: 900px) {

    .login-background {

        justify-content: center;

        padding: 20px;

        background-position: left center;

    }


    .login-card {

        max-width: 480px;

    }

}


@media (max-width: 500px) {

    .login-background {

        padding: 15px;

        background-position: center center;

    }


    .login-card {

        padding: 30px 22px;

        border-radius: 12px;

    }


    .login-logo img {

        max-width: 300px;

    }


    .login-title h2 {

        font-size: 26px;

    }

}

/* ============================================================
   BASE - ENCABEZADO E-SASA
   ============================================================ */

.encabezado {

    height: 70px;

    padding: 0 32px;

    background:
        linear-gradient(
            135deg,
            #071b49,
            #123b88
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-sizing: border-box;

}


/* ============================================================
   MARCA
   ============================================================ */

.marca {

    display: flex;

    align-items: baseline;

    gap: 12px;

}


.marca .logo {

    font-size: 24px;

    font-weight: 700;

    letter-spacing: 0.3px;

}


.marca-subtitulo {

    font-size: 13px;

    color: #cbd5e1;

}


/* ============================================================
   USUARIO CONECTADO
   ============================================================ */

.usuario-conectado {

    display: flex;

    align-items: center;

    gap: 10px;

}


.usuario-indicador {

    display: flex;

    align-items: center;

    justify-content: center;

    margin-right: 3px;

}


.indicador-online {

    width: 9px;

    height: 9px;

    background: #22c55e;

    border-radius: 50%;

    box-shadow:
        0 0 0 3px
        rgba(34,197,94,0.15);

}


.usuario-info {

    text-align: right;

    line-height: 1.35;

    margin-right: 12px;

}


.usuario-info strong {

    display: block;

    font-size: 14px;

}


.usuario-info span {

    display: block;

    color: #cbd5e1;

    font-size: 12px;

}


/* ============================================================
   BOTON SALIR
   ============================================================ */

.btn-salir {

    color: white;

    text-decoration: none;

    border:
        1px solid
        rgba(255,255,255,0.55);

    padding: 8px 15px;

    border-radius: 6px;

    font-size: 14px;

    transition:
        background 0.15s,
        border-color 0.15s;

}


.btn-salir:hover {

    background:
        rgba(255,255,255,0.12);

    border-color: white;

}


/* ============================================================
   MENU
   ============================================================ */

.menu {

    background: white;

    border-bottom:
        1px solid
        #e2e8f0;

    box-shadow:
        0 1px 3px
        rgba(0,0,0,0.04);

}


.menu-contenido {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;

}


.menu a {

    position: relative;

    display: inline-block;

    padding: 15px 20px;

    color: #334155;

    text-decoration: none;

    font-size: 14px;

    transition:
        color 0.15s,
        background 0.15s;

}


.menu a:hover {

    color: #123fa4;

    background:
        #f8fafc;

}


.menu a::after {

    content: "";

    position: absolute;

    left: 18px;

    right: 18px;

    bottom: 0;

    height: 2px;

    background: #2563eb;

    transform:
        scaleX(0);

    transition:
        transform 0.15s;

}


.menu a:hover::after {

    transform:
        scaleX(1);

}


/* ============================================================
   CONTENEDOR
   ============================================================ */

.contenedor {

    max-width: 1200px;

    margin: 30px auto;

    padding: 0 20px;

    min-height: calc(100vh - 155px);

}


/* ============================================================
   PIE
   ============================================================ */

.pie {

    text-align: center;

    color: #64748b;

    font-size: 12px;

    padding: 25px;

    border-top:
        1px solid
        #e2e8f0;

    background: #f8fafc;

}


.pie strong {

    color: #123fa4;

}


.pie span {

    margin-left: 8px;

    color: #94a3b8;

}


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

@media (max-width: 700px) {

    .encabezado {

        height: auto;

        min-height: 70px;

        padding:
            12px 18px;

    }


    .marca-subtitulo {

        display: none;

    }


    .usuario-info {

        display: none;

    }


    .menu-contenido {

        padding: 0 10px;

    }


    .menu a {

        padding:
            14px 12px;

    }


    .contenedor {

        margin-top: 20px;

        padding:
            0 12px;

    }

}

/* ============================================================
   CAMPO PASSWORD CON BOTON MOSTRAR
   ============================================================ */

.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.password-wrapper .form-control {
    width: 100%;
    max-width: none;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;

    padding: 4px 6px;
    margin: 0;

    cursor: pointer;

    font-size: 18px;
    line-height: 1;

    z-index: 2;
}
