﻿body {
    
}

:root {
    --primary: #2D6CDF; /* azul */
    --accent: #FF8C42; /* naranja suave */
    --bg: #F5F7FA;
}

#Logo > h1 {
    position: relative;
    text-align: center;
    left: 0;
    width: 100%;
    font-size: 50px; /* Aquí ajustas el tamaño que quieras */
    margin-bottom: 0px; /* Quitamos el espacio de abajo */
    line-height: 1; /* Reduce el espacio vertical de la letra */
}

#Logo > h3 {
    position: relative;
    text-align: center;
    left: 0;
    width: 100%;
    font-size: 20px;
    margin-top: -10px; /* ¡VALOR CLAVE! Un margen negativo sube el texto */
    line-height: 1;
}

.CajasAlmacen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Truco para centrar exacto */
    z-index: -1;
}

.PnlAcceso {
    position: absolute;
    top: 50%; /* Lo baja a la mitad de la pantalla */
    left: 50%; /* Lo mueve al centro horizontal */
    transform: translate(-50%, -50%); /* Lo centra exactamente sobre su propio eje */
    width: 450px; /* Mantén el ancho de tu cuadro azul */
}

.LblControl {
    position: absolute;
    top: 7px;
    left: 186px;
}

.PnlMensaje {
    position: absolute;
    top: 232px;
    left: 0px;
}

.LblMensaje {
    position: absolute;
    top: 10px;
    left: 10px;
}

.ImgCerradura {
    position: absolute;
    top: 92px;
    left: 13px;
}

.BtnAceptar {
    position: absolute;
    top: 177px;
    left: 418px;
}

.TxtUsuario {
    position: absolute;
    top: 73px;
    left: 250px;
}

.TxtClave {
    position: absolute;
    top: 133px;
    left: 250px;
}

.LblUsuario {
    position: absolute;
    top: 73px;
    left: 170px;
}

.LblClave {
    position: absolute;
    top: 133px;
    left: 170px;
}

/*Fin Login*/

/* ===================== HEADER (ENCABEZADO SUPERIOR) ===================== */
#cabecera {
    height: 70px;
    background: #F1F3F6;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Contenedor interno del header */
#contenidoCabecera {
    width: 960px;
    margin: auto;
}

/* ===================== MENÚ SUPERIOR MODERNO ===================== */
#barraHorizontal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    z-index: 999;
}

    /* Lista */
    #barraHorizontal ul {
        list-style: none;
        margin: 0;
        padding: 0 20px;
        display: flex;
        gap: 30px;
    }

    /* Items */
    #barraHorizontal li {
        position: relative;
    }

        /* Links */
        #barraHorizontal li a {
            text-decoration: none;
            color: #6b7280;
            font-weight: 500;
            font-size: 17px;
            padding: 10px 0;
            display: inline-block;
            transition: 0.3s;
        }

            /* Hover */
            #barraHorizontal li a:hover {
                color: #111827;
            }

        /* Activo (IMPORTANTE) */
        #barraHorizontal li.activo a {
            color: #111827;
        }

        /* Línea azul abajo (activo) */
        #barraHorizontal li.activo::after {
            content: "";
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #2563eb;
            border-radius: 2px;
        }

/* Menú de usuario compacto y centrado */
.user-menu {
    position: absolute;
    right: 20px;
    top: 50%; /* centra verticalmente */
    transform: translateY(-50%);
    font-family: inherit;
}

/* Botón usuario más pequeño */
.btn-user {
    background: #F1F3F6; /* mismo color que el header */
    border: 1px solid #e5e7eb;
    padding: 4px 10px; /* menos padding para hacerlo más compacto */
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px; /* menos espacio entre texto e icono */
    font-weight: 500;
    color: #6b7280;
    font-size: 14px; /* tamaño de letra más pequeño */
    line-height: 18px;
}

    /* Icono */
    .btn-user .icon {
        font-size: 10px;
    }

/* Dropdown */
.dropdown-user {
    display: none;
    position: absolute;
    right: 0;
    top: 100%; /* justo debajo del botón */
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 9999;
}

    /* Links del dropdown */
    .dropdown-user a {
        display: block;
        padding: 6px 10px; /* más compacto */
        text-decoration: none;
        color: #6b7280;
        font-weight: 500;
        font-size: 14px;
    }

        .dropdown-user a:hover {
            background-color: #f3f4f6;
            color: #111827;
        }

/* ===================== LOGO Y TÍTULO ===================== */
#logotipo {
    width: 35%;
    float: left;
    text-align: center;
    margin-top: 10px;
}

.img-responsive {
    width: 200px;
    height: 90px;
    position: absolute;
    margin-left: -307px;
}

#titulo {
    width: 60%;
    float: left;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

    #titulo > h1 {
        margin-top: 30px;
        margin-left: -100px;
        font-size: 34px;
        color: #444; /* Gris oscuro suave */
    }

/* ===================== CONTENEDOR GENERAL ===================== */
#bajo {
    background: var(--bg);
    box-shadow: none;
}

/* ===================== SIDEBAR (MENÚ IZQUIERDO) ===================== */
#columnIzq {
    width: 230px;
    height: 100vh;
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    padding-top: 20px;
}

/* Lista del menú lateral */
#menuContextual {
    list-style-type: none;
    padding: 0;
    margin: 3px 0;
}

    /* Items del menú lateral */
    #menuContextual li {
        list-style: none;
        padding: 12px 20px;
        cursor: pointer;
        transition: 0.3s;
        font-size: 17px;
    }

        /* Hover del menú lateral */
        #menuContextual li:hover {
            background: rgba(255,255,255,0.1);
        }

    /* Links del menú lateral */
    #menuContextual a {
        color: white;
        text-decoration: none;
        font-size: 17px;
    }

/* ===================== SUBMENU ===================== */
.sub {
    display: none;
    background: linear-gradient(180deg, #3c8dbc, #367fa9);
    border-radius: 10px;
    margin: 5px 0;
    padding: 5px 0;
}

    /* Items del submenu */
    .sub li {
        list-style: none;
    }

        /* Links del submenu */
        .sub li a {
            display: block;
            padding: 4px 15px; /* igual que el menú principal */
            color: #eaf6ff;
            text-decoration: none;
            font-size: 18px; /* mismo tamaño que "Mantenimiento" */
            font-weight: 500;
            transition: all 0.25s ease;
            border-left: 3px solid transparent;
        }

            /* Hover */
            .sub li a:hover {
                background-color: rgba(255, 255, 255, 0.1);
                color: #ffffff;
                padding-left: 28px;
                border-left: 3px solid #ffffff;
            }

/* ===================== CONTENIDO PRINCIPAL ===================== */
#columnCentro {
    margin-left: 230px;
    padding: 20px;
    min-height: 100vh;
    background-color: white;
}

    /* Imagen dentro del contenido */
    #columnCentro img {
        display: block;
        margin: 30px auto;
        width: 85%;
        max-width: 1000px;
        border-radius: 10px;
    }

/* ===================== FOOTER ===================== */
#pie {
    margin-left: 230px;
    position: relative;
    bottom: 0;
    width: calc(100% - 230px);
}

/* Texto de copyright */
#copy {
    position: relative;
    margin-top: 3px;
}

/* Label usuario (arriba derecha) */
.LblIdentificacion {
    position: relative;
    float: right;
    margin-right: 20px;
    margin-top: 3px;
}

/******************** FIN MAQUETACIÓN ********************/


/*************************** Mantenimiento botonera y mensaje ***********/
.PnlBotonera {
    position: absolute;
    margin-left: 860px;
    margin-top: -62px;
}

.ImgAceptar {
    position: absolute;
    margin-top: 17px;
    margin-left: 14px;
}

.ImbNuevo {
    position: absolute;
    margin-top: 87px;
    margin-left: 14px;
}

.ImbCancelar {
    position: absolute;
    margin-top: 157px;
    margin-left: 14px;
}

.ImbBuscar {
    position: absolute;
    margin-top: 227px;
    margin-left: 14px;
}

.ImbModificar {
    position: absolute;
    margin-top: 297px;
    margin-left: 14px;
}

.ImbPrinter {
    position: absolute;
    margin-top: 367px;
    margin-left: 14px;
}

.ImgBarraAzul {
    position: relative;
    margin-top: 276px;
    margin-left: 1px;
}

.LblMensaje2 {
    position: absolute;
    margin-top: -37px;
    margin-left: 74px;
}
/*************************** Fin Mantenimiento botonera y mensaje *****/
/*************************** FrmEmpresa *******************************/
.PnlDatos {
    position: absolute;
    margin-top: -298px;
    margin-left: 38px;
}

.ImgLogo {
    position: absolute;
    margin-top: -9px;
    margin-left: 77px;
}

.img-1 {
    border-color: black;
    border-style: solid;
    width: 180px;
    height: 100px;
    margin-left: 57px;
}

#file {
    cursor: pointer;
}

.file-wrapper {
    cursor: pointer;
    display: inline-block;
    position: relative;
    height: 50px;
    margin-left: 5px;
}

    .file-wrapper input {
        cursor: pointer;
        font-size: 100px;
        height: 100%;
        filter: alpha(opacity=1);
        opacity: 0.01;
        position: absolute;
        right: 0;
        top: 0;
    }

button {
    border: 0;
    background-image: linear-gradient(150deg, #9500FF, #09f, #00DDFF);
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-size: 18px;
    padding: 4px;
    cursor: pointer;
    transition: .3s;
}

    button span {
        background-color: #111;
        padding: 16px 24px;
        border-radius: 6px;
        transition: .3s;
    }

.LblNombre {
    position: absolute;
    margin-top: 60px;
    margin-left: 313px;
}

.LblDireccion {
    position: absolute;
    margin-top: 110px;
    margin-left: 313px;
}

.Telefono {
    position: absolute;
    margin-top: 160px;
    margin-left: 313px;
}

.RNC {
    position: absolute;
    margin-top: 210px;
    margin-left: 313px;
}

.TxtNombre {
    position: absolute;
    margin-top: 58px;
    margin-left: 393px;
}

.TxtDireccion {
    position: absolute;
    margin-top: 108px;
    margin-left: 393px;
}

.TxtTelefono {
    position: absolute;
    top: 325px;
    left: 393px;
}

.TxtRNC {
    position: absolute;
    top: 375px;
    left: 393px;
}

/*************************** Fin FrmEmpresa *******************************/

/*************************** FrmCajas y FrmBodegas ************************/

.LblCodigo {
    position: absolute;
    margin-top: 60px;
    margin-left: 225px;
}

.LblReferencia {
    position: absolute;
    margin-top: 110px;
    margin-left: 225px;
}

.LblDescripcion {
    position: absolute;
    margin-top: 160px;
    margin-left: 225px;
}

.TxtCodigo {
    position: absolute;
    margin-top: 58px;
    margin-left: 320px;
    text-align: right;
}
