﻿
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f3f1;
    color: #252525;
}

.pagina-login {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.encabezado-login {
    background: #ffffff;
    border-bottom: 1px solid #ddddda;
}

.encabezado-contenido {
    width: min(1120px, calc(100% - 40px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.marca {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #222222;
}

    .marca img {
        width: auto;
        max-width: 185px;
        max-height: 64px;
        display: block;
    }

.marca-texto {
    border-left: 1px solid #d6d6d2;
    padding-left: 16px;
}

    .marca-texto strong {
        display: block;
        font-size: 15px;
        line-height: 1.3;
    }

    .marca-texto span {
        display: block;
        margin-top: 3px;
        color: #77776f;
        font-size: 12px;
    }

.volver-sitio {
    color: #575751;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

    .volver-sitio:hover {
        color: #b18a41;
    }

.contenido-login {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
    padding: 55px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, 430px);
    align-items: center;
    gap: 70px;
}

.presentacion {
    max-width: 590px;
}

.etiqueta {
    margin: 0 0 16px;
    color: #a47d35;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.presentacion h1 {
    margin: 0;
    color: #20201e;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -2px;
}

    .presentacion h1 span {
        color: #a47d35;
    }

.descripcion {
    max-width: 530px;
    margin: 24px 0 0;
    color: #66665f;
    font-size: 17px;
    line-height: 1.7;
}

.beneficios {
    margin-top: 32px;
    display: grid;
    gap: 15px;
}

.beneficio {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #44443f;
    font-size: 14px;
}

.beneficio-icono {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #c8af7c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a47d35;
    font-size: 14px;
    font-weight: bold;
}

.tarjeta-login {
    background: #ffffff;
    border: 1px solid #dfdfdc;
    border-radius: 5px;
    padding: 38px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
}

    .tarjeta-login h2 {
        margin: 0;
        color: #252523;
        font-size: 25px;
    }

.subtitulo-login {
    margin: 8px 0 28px;
    color: #777770;
    font-size: 14px;
    line-height: 1.5;
}

.grupo-campo {
    margin-bottom: 19px;
}

    .grupo-campo label {
        display: block;
        margin-bottom: 8px;
        color: #3f3f3b;
        font-size: 13px;
        font-weight: bold;
    }

.campo-texto {
    width: 100%;
    height: 48px;
    border: 1px solid #cacac5;
    border-radius: 3px;
    padding: 0 14px;
    background: #ffffff;
    color: #252525;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .campo-texto:focus {
        border-color: #a47d35;
        box-shadow: 0 0 0 3px rgba(164, 125, 53, 0.12);
    }

.validacion {
    display: block;
    margin-top: 6px;
    color: #b33a32;
    font-size: 12px;
}

.mensaje-error {
    display: block;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 3px solid #b33a32;
    background: #fff1f0;
    color: #9b302a;
    font-size: 13px;
    line-height: 1.45;
}

.boton-ingresar {
    width: 100%;
    min-height: 49px;
    border: 0;
    border-radius: 3px;
    padding: 12px 18px;
    background: #20201e;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}

    .boton-ingresar:hover {
        background: #a47d35;
    }

    .boton-ingresar:active {
        transform: translateY(1px);
    }

.acciones-login {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e4e4e0;
    display: grid;
    gap: 11px;
    text-align: center;
}

.enlace-login {
    color: #676760;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

    .enlace-login:hover {
        color: #a47d35;
        text-decoration: underline;
    }

.registro-texto {
    margin: 0;
    color: #82827b;
    font-size: 12px;
}

.pie-login {
    padding: 22px 20px;
    border-top: 1px solid #ddddda;
    color: #777770;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 850px) {

    .encabezado-contenido {
        min-height: 80px;
    }

    .marca-texto {
        display: none;
    }

    .contenido-login {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 42px 0;
    }

    .presentacion {
        max-width: none;
        text-align: center;
    }

    .descripcion {
        margin-left: auto;
        margin-right: auto;
    }

    .beneficios {
        max-width: 410px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .tarjeta-login {
        width: 100%;
        max-width: 470px;
        margin: 0 auto;
    }
}

@media (max-width: 520px) {

    .encabezado-contenido,
    .contenido-login {
        width: min(100% - 28px, 1120px);
    }

    .encabezado-contenido {
        min-height: 72px;
    }

    .marca img {
        max-width: 145px;
        max-height: 52px;
    }

    .volver-sitio {
        font-size: 12px;
    }

    .contenido-login {
        padding: 32px 0;
        gap: 30px;
    }

    .presentacion h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .descripcion {
        margin-top: 17px;
        font-size: 15px;
    }

    .beneficios {
        display: none;
    }

    .tarjeta-login {
        padding: 28px 22px;
    }
}

/* =========================================================
   PANEL PRINCIPAL DEL PORTAL DE EMPRESAS
   ========================================================= */

.pagina-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient( 180deg, #f7f7f5 0, #f7f7f5 340px, #efefec 340px, #efefec 100% );
}

.encabezado-panel {
    background: #ffffff;
    border-bottom: 1px solid #ddddda;
}

.encabezado-panel-contenido {
    width: min(1120px, calc(100% - 40px));
    min-height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.marca-panel img {
    max-width: 165px;
    max-height: 58px;
}

.acciones-encabezado {
    display: flex;
    align-items: center;
    gap: 18px;
}

.usuario-encabezado {
    max-width: 270px;
    overflow: hidden;
    color: #62625c;
    font-size: 12px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.boton-cerrar-sesion {
    min-height: 38px;
    border: 1px solid #d4d4cf;
    border-radius: 3px;
    padding: 10px 15px;
    background: #ffffff;
    color: #555550;
    font-family: inherit;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s;
}

    .boton-cerrar-sesion:hover {
        border-color: #a47d35;
        background: #faf7f1;
        color: #a47d35;
    }

.contenido-panel {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 60px;
}

.bienvenida-panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.bienvenida-texto h1 {
    margin: 0;
    color: #222220;
    font-size: clamp(36px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.razon-social-principal {
    margin: 12px 0 0;
    color: #a47d35;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: bold;
    line-height: 1.3;
}

.descripcion-panel {
    max-width: 580px;
    margin: 14px 0 0;
    color: #6c6c65;
    font-size: 15px;
    line-height: 1.7;
}

.estado-sesion {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    border: 1px solid #d9e7da;
    border-radius: 999px;
    padding: 8px 12px;
    background: #f7fcf7;
    color: #557157;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.estado-indicador {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #57975d;
    box-shadow: 0 0 0 4px rgba(87, 151, 93, 0.12);
}

.datos-empresa {
    border: 1px solid #ddddda;
    border-radius: 5px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
}

.seccion-encabezado {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.etiqueta-seccion,
.accion-etiqueta {
    margin: 0 0 7px;
    color: #a47d35;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.seccion-encabezado h2 {
    margin: 0;
    color: #292927;
    font-size: 23px;
}

.empresa-identificador {
    color: #85857e;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: right;
    text-transform: uppercase;
}

    .empresa-identificador strong {
        display: block;
        margin-top: 5px;
        color: #343431;
        font-size: 15px;
        letter-spacing: 0;
    }

.grilla-datos-empresa {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e5e5e1;
    border-left: 1px solid #e5e5e1;
}

.dato-empresa {
    min-width: 0;
    padding: 20px;
    border-right: 1px solid #e5e5e1;
    border-bottom: 1px solid #e5e5e1;
    background: #ffffff;
}

.dato-empresa-destacado,
.dato-empresa-email {
    grid-column: 1 / -1;
}

.dato-empresa-destacado {
    background: #faf9f6;
}

.dato-etiqueta {
    display: block;
    margin-bottom: 7px;
    color: #85857e;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.dato-valor {
    display: block;
    overflow-wrap: anywhere;
    color: #363633;
    font-size: 14px;
    line-height: 1.45;
}

.acciones-panel {
    margin-top: 25px;
}

.accion-principal {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 23px;
    border: 1px solid #272725;
    border-radius: 5px;
    padding: 28px 30px;
    background: #232321;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.accion-icono {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(210, 177, 112, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d2b170;
    font-size: 27px;
    font-weight: bold;
}

.accion-contenido h2 {
    margin: 0;
    color: #ffffff;
    font-size: 23px;
}

.accion-contenido p:last-child {
    max-width: 620px;
    margin: 9px 0 0;
    color: #bebeb7;
    font-size: 13px;
    line-height: 1.6;
}

.boton-generar-boleta {
    min-width: 138px;
    min-height: 48px;
    border: 0;
    border-radius: 3px;
    padding: 12px 22px;
    background: #c09a50;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color .2s, transform .2s;
}

    .boton-generar-boleta:hover {
        background: #a47d35;
    }

    .boton-generar-boleta:active {
        transform: translateY(1px);
    }

.aviso-panel {
    margin-top: 22px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    border-left: 3px solid #b99551;
    padding: 15px 17px;
    background: #f9f6ef;
    color: #646057;
}

.aviso-icono {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border: 1px solid #b99551;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a47d35;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: bold;
}

.aviso-panel strong {
    display: block;
    color: #47443e;
    font-size: 12px;
}

.aviso-panel p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.pie-panel {
    margin-top: auto;
    padding: 22px 20px;
    border-top: 1px solid #d8d8d3;
    background: #ffffff;
    color: #777770;
    font-size: 11px;
    text-align: center;
}


/* =========================================================
   RESPONSIVE DEL PANEL
   ========================================================= */

@media (max-width: 800px) {

    .encabezado-panel-contenido {
        min-height: 76px;
    }

    .usuario-encabezado {
        display: none;
    }

    .contenido-panel {
        padding: 38px 0 48px;
    }

    .bienvenida-panel {
        display: block;
    }

    .estado-sesion {
        width: fit-content;
        margin-top: 18px;
    }

    .accion-principal {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .accion-icono {
        width: 56px;
        height: 56px;
    }

    .boton-generar-boleta {
        grid-column: 1 / -1;
        width: 100%;
    }
}


@media (max-width: 560px) {

    .encabezado-panel-contenido,
    .contenido-panel {
        width: min(100% - 28px, 1120px);
    }

    .marca-panel img {
        max-width: 142px;
        max-height: 49px;
    }

    .boton-cerrar-sesion {
        padding: 9px 11px;
        font-size: 11px;
    }

    .contenido-panel {
        padding-top: 31px;
    }

    .bienvenida-texto h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .razon-social-principal {
        font-size: 19px;
    }

    .datos-empresa {
        padding: 22px 18px;
    }

    .seccion-encabezado {
        display: block;
    }

    .empresa-identificador {
        margin-top: 18px;
        text-align: left;
    }

    .grilla-datos-empresa {
        grid-template-columns: 1fr;
    }

    .dato-empresa-destacado,
    .dato-empresa-email {
        grid-column: auto;
    }

    .accion-principal {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 24px 20px;
    }

    .accion-icono {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .accion-contenido h2 {
        font-size: 21px;
    }
}

.acciones-panel-grilla {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

    .acciones-panel-grilla .accion-principal {
        height: 100%;
    }

.accion-movimientos .accion-icono {
    font-size: 30px;
    line-height: 1;
}

@media (max-width: 820px) {

    .acciones-panel-grilla {
        grid-template-columns: 1fr;
    }
}