/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #222;

    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* =========================================
   HEADER
========================================= */

.header {
    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    background-color: #ffffff;

    border-bottom: 1px solid #e5e5e5;
}


/* Logo */

.header-logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    
    max-height: 65px;
    width: auto;
    display: block;
}


/* Botón Ingresar */

.header-login {
    display: flex;
    align-items: center;
}

.btn-login {
    border: none;
    background-color: #222;
    color: #ffffff;

    padding: 12px 25px;

    border-radius: 8px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;

    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background-color: #444;
    transform: translateY(-1px);
}

/* =========================================
   LOGIN DESPLEGABLE
========================================= */

.login-desplegable {

    position: absolute;

    top: 80px;
    right: 40px;

    width: 320px;

    padding: 25px;

    background-color: #ffffff;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    z-index: 999;

    display: none;
}


/* Cuando está abierto */

.login-desplegable.activo {

    display: block;

    animation: aparecerLogin 0.25s ease;
}


.login-desplegable h3 {

    margin-bottom: 20px;

    font-size: 22px;

    text-align: center;
}


.login-desplegable form {

    display: flex;

    flex-direction: column;
}


.login-desplegable label {

    margin-bottom: 6px;

    font-weight: 600;
}


.login-desplegable input {

    padding: 11px;

    margin-bottom: 15px;

    border: 1px solid #ddd;

    border-radius: 7px;

    font-size: 15px;
}


.login-desplegable input:focus {

    outline: none;

    border-color: #222;
}


.login-boton {

    border: none;

    padding: 12px;

    border-radius: 8px;

    background-color: #222;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;
}


/* Botón X */

.login-cerrar {

    position: absolute;

    top: 8px;
    right: 12px;

    border: none;

    background: none;

    font-size: 25px;

    cursor: pointer;

    color: #777;
}


/* Animación */

@keyframes aparecerLogin {

    from {

        opacity: 0;

        transform: translateY(-10px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


/* CELULAR */

@media (max-width: 480px) {

    .login-desplegable {

        position: fixed;

        top: 85px;

        left: 15px;
        right: 15px;

        width: auto;
    }

}

/* =========================================
   PANEL DE ADMINISTRADOR
========================================= */

.admin-panel {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-panel h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 30px;
}

.admin-bienvenida {
    text-align: center;
    margin-bottom: 35px;
    color: #777;
}

.admin-opciones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.admin-opcion {
    padding: 30px 20px;
    background-color: #000000;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #fdfdfd;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.admin-opcion:hover {
    transform: translateY(-5px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.14);
}

.admin-opcion-icono {
    width: 65px;
    height: 65px;

    background-color: #ffffff;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 32px;

    margin: 0 auto 15px auto;
}

.admin-opcion h2 {
    margin-bottom: 10px;
    font-size: 21px;
}

.admin-opcion p {
    margin: 0;
    color: #cacaca;
    font-size: 14px;
    line-height: 1.4;
}


@media (max-width: 768px) {

    .admin-opciones {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 480px) {

    .admin-opciones {
        grid-template-columns: 1fr;
    }

    .admin-panel h1 {
        font-size: 25px;
    }

}

/* =========================================
   GESTIÓN DE USUARIOS
========================================= */

.usuarios-panel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.usuarios-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.usuarios-titulo h1 {
    margin: 0 0 5px 0;
    font-size: 30px;
}

.usuarios-titulo p {
    margin: 0;
    color: #777;
}

.usuarios-boton-agregar {
    background-color: #000000;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s ease;
}

.usuarios-boton-agregar:hover {
    transform: translateY(-2px);
}


/* TABLA */

.usuarios-tabla-contenedor {
    width: 100%;
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.usuarios-tabla {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.usuarios-tabla th {
    background-color: #000000;
    color: #ffffff;
    padding: 15px;
    text-align: left;
}

.usuarios-tabla td {
    padding: 15px;
    border-bottom: 1px solid #eeeeee;
}

.usuarios-tabla tbody tr:hover {
    background-color: #f7f7f7;
}

.usuario-password {
    letter-spacing: 3px;
}


/* ACCIONES */

.usuarios-acciones {
    display: flex;
    align-items: center;
    gap: 8px;
}

.usuarios-acciones form {
    margin: 0;
}

.usuario-editar,
.usuario-eliminar {
    border: none;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.usuario-editar {
    background-color: #eeeeee;
    color: #000000;
}

.usuario-eliminar {
    background-color: #000000;
    color: #ffffff;
}

.usuario-editar:hover,
.usuario-eliminar:hover {
    opacity: 0.75;
}


/* SIN USUARIOS */

.usuarios-vacio {
    text-align: center;
    padding: 30px !important;
    color: #777;
}


/* VOLVER */

.usuarios-volver {
    margin-top: 25px;
}

.usuarios-volver a {
    color: #000000;
    text-decoration: none;
}

.usuarios-volver a:hover {
    text-decoration: underline;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .usuarios-titulo {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .usuarios-titulo h1 {
        font-size: 25px;
    }

}

/* =========================================
   FORMULARIO DE USUARIOS
========================================= */

.usuario-form-panel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.usuario-form-panel h1 {
    margin: 0;
    text-align: center;
    font-size: 30px;
}

.usuario-form-descripcion {
    text-align: center;
    color: #777;
    margin: 10px 0 30px;
}

.usuario-form-error {
    background-color: #eeeeee;
    color: #000000;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.usuario-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usuario-form-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usuario-form-grupo label {
    font-weight: 600;
}

.usuario-form-grupo input,
.usuario-form-grupo select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 15px;
    background-color: #ffffff;
}

.usuario-form-grupo input:focus,
.usuario-form-grupo select:focus {
    outline: none;
    border-color: #000000;
}

.usuario-form-grupo small {
    color: #777;
    font-size: 13px;
}

.usuario-form-botones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.usuario-form-cancelar,
.usuario-form-guardar {
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.usuario-form-cancelar {
    background-color: #eeeeee;
    color: #000000;
}

.usuario-form-guardar {
    background-color: #000000;
    color: #ffffff;
    border: none;
}

.usuario-form-cancelar:hover,
.usuario-form-guardar:hover {
    opacity: 0.75;
}


@media (max-width: 600px) {

    .usuario-form-panel {
        padding: 25px 20px;
    }

    .usuario-form-panel h1 {
        font-size: 25px;
    }

    .usuario-form-botones {
        flex-direction: column;
    }

    .usuario-form-cancelar,
    .usuario-form-guardar {
        text-align: center;
    }

}

/* =========================================
   AVISO DE USUARIOS
========================================= */

.usuario-aviso {
    position: fixed;
    top: 110px;
    left: 25px;

    z-index: 1000;

    width: 350px;
    max-width: calc(100% - 50px);
}

.usuario-aviso-contenido {
    position: relative;

    background-color: #ffffff;

    padding: 25px;

    border-radius: 15px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18);
}

.usuario-aviso-contenido h3 {
    margin: 0 0 10px 0;
    font-size: 21px;
}

.usuario-aviso-contenido p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.4;
}

.usuario-aviso-cerrar {
    position: absolute;

    top: 10px;
    right: 12px;

    background: none;
    border: none;

    font-size: 25px;

    cursor: pointer;

    color: #555;
}

.usuario-aviso-boton {
    background-color: #000000;
    color: #ffffff;

    border: none;

    padding: 10px 18px;

    border-radius: 8px;

    cursor: pointer;
}

.usuario-aviso-boton:hover {
    opacity: 0.75;
}


@media (max-width: 500px) {

    .usuario-aviso {
        top: 100px;
        left: 15px;

        width: calc(100% - 30px);
        max-width: none;
    }

}

/* =========================
   MODAL ELIMINAR USUARIO
========================= */

.usuario-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: none;

    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.45);
}


.usuario-modal.activo {
    display: flex;
}


.usuario-modal-contenido {
    position: relative;

    width: 400px;
    max-width: calc(100% - 40px);

    background-color: #ffffff;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);

    text-align: center;
}

.usuario-modal-contenido h3 {
    margin: 0 0 10px 0;

    font-size: 23px;
}

.usuario-modal-contenido p {
    margin: 0 0 25px 0;

    color: #666;

    line-height: 1.5;
}

.usuario-modal-cerrar {
    position: absolute;

    top: 10px;
    right: 13px;

    background: none;
    border: none;

    font-size: 26px;

    color: #555;

    cursor: pointer;
}

.usuario-modal-botones {
    display: flex;

    justify-content: center;

    gap: 10px;
}

.usuario-modal-botones form {
    margin: 0;
}

.usuario-modal-cancelar,
.usuario-modal-eliminar {
    border: none;

    padding: 11px 18px;

    border-radius: 8px;

    font-size: 14px;

    cursor: pointer;

    text-decoration: none;
}

.usuario-modal-cancelar {
    background-color: #eeeeee;

    color: #000000;
}

.usuario-modal-eliminar {
    background-color: #000000;

    color: #ffffff;
}

.usuario-modal-cancelar:hover,
.usuario-modal-eliminar:hover {
    opacity: 0.75;
}


@media (max-width: 500px) {

    .usuario-modal-contenido {
        padding: 25px 20px;
    }

    .usuario-modal-botones {
        flex-direction: column;
    }

    .usuario-modal-cancelar,
    .usuario-modal-eliminar {
        width: 100%;
        box-sizing: border-box;
    }

}

/* =========================================
   CONTENIDO PRINCIPAL
========================================= */

.main-content {
    width: 100%;
    min-height: calc(100vh - 150px);

    padding: 30px 40px;
}


/* =========================================
   CATÁLOGO
========================================= */

.catalogo {
    max-width: 1100px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 35px;
}


/* =========================================
   TARJETAS DE CATEGORÍA
========================================= */

.categoria-card {
    width: 100%;
    height: 280px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #000000;

    border-radius: 15px;

    overflow: hidden;

    text-decoration: none;
    color: inherit;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.categoria-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}


/* Imagen */

.categoria-imagen {
    width: 100%;
    height: 110%;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.categoria-imagen img {
    width: 90%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;
}

.categoria-card:hover .categoria-imagen img {
    transform: scale(1.03);
}


/* Nombre */

.categoria-nombre {
    width: 100%;

    padding: 22px;

    text-align: center;
}

.categoria-nombre h2 {
    font-size: 24px;
    font-weight: 600;

    margin: 0;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    width: 100%;

    padding: 20px;

    text-align: center;

    background-color: #ffffff;

    border-top: 1px solid #e5e5e5;

    color: #777;

    font-size: 14px;
}


/* =========================================
   RESPONSIVE - TABLETS
========================================= */

@media (max-width: 768px) {

    .header {
        height: 80px;
        padding: 0 25px;
    }

    .header-logo img {
        max-height: 55px;
    }

    .main-content {
        padding: 40px 25px;
    }

    .catalogo {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .categoria-imagen {
        height: 280px;
    }

}


/* =========================================
   RESPONSIVE - CELULARES
========================================= */

@media (max-width: 480px) {

    .header {
        height: 70px;
        padding: 0 18px;
    }

    .header-logo img {
        max-height: 48px;
    }

    .btn-login {
        padding: 9px 17px;
        font-size: 14px;
    }

    .main-content {
        padding: 30px 18px;
    }

    .categoria-imagen {
        height: 120px !important; 
    }

    .categoria-nombre {
        padding: 18px;
    }

    .categoria-nombre h2 {
        font-size: 21px;
    }

}

/* =========================================
   VAMPI - AVISO DE INGRESO
   ========================================= */

.grow-ingreso {
    position: fixed;

    top: 115px;
    left: 35px;

    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 8px;

    animation: growAyudaEntrada 0.5s ease;
}

/* Caja del mensaje */

.grow-ingreso-contenido {
    position: relative;

    width: 350px;

    padding: 22px;

    background-color: #ffffff;

    border-radius: 15px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

    border: 2px solid #000000;
}


/* Título */

.grow-ingreso-contenido h3 {
    margin: 0 0 8px 0;

    font-size: 19px;

    color: #222;
}


/* Texto */

.grow-ingreso-contenido p {
    margin: 0 0 18px 0;

    font-size: 14px;

    line-height: 1.5;

    color: #555;
}


/* Botón cerrar */

.grow-ingreso-cerrar {
    position: absolute;

    top: 8px;
    right: 10px;

    border: none;

    background: none;

    font-size: 24px;

    color: #777;

    cursor: pointer;
}


/* Botón entendido */

.grow-ingreso-boton {
    border: none;

    background-color: #000000;

    color: #fafafa;

    padding: 9px 18px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: transform 0.2s ease,
                background-color 0.2s ease;
}

.grow-ingreso-boton:hover {
    background-color: #000000;

    transform: translateY(-2px);
}


/* Animación */

@keyframes growIngresoEntrada {

    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   CELULARES
   ========================================= */

@media (max-width: 480px) {

    .grow-ingreso {
        top: 85px;
        left: 18px;
        right: 18px;
        justify-content: center;
    }

    .grow-ingreso-contenido {
        width: 100%;
        max-width: 330px;
        padding: 20px;
    }

}


/* =========================================
   VAMPI GROW - AVISO DE NAVEGACIÓN
   ========================================= */

.grow-ayuda {
    position: fixed;

    top: 115px;
    left: 35px;

    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 8px;

    animation: growAyudaEntrada 0.5s ease;
}


/* Flecha que apunta al logo */

.grow-ayuda-flecha {
    position: absolute;

    top: -40px;
    left: 105px;

    font-size: 38px;
    font-weight: bold;

    color: #000000;

    transform: rotate(180deg);

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}


/* Caja del mensaje */

.grow-ayuda-contenido {
    position: relative;

    width: 280px;

    padding: 22px;

    background-color: #ffffff;

    border-radius: 15px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);

    border: 2px solid #000000;
}


/* Título */

.grow-ayuda-contenido h3 {
    margin: 0 0 8px 0;

    font-size: 19px;

    color: #222;
}


/* Texto */

.grow-ayuda-contenido p {
    margin: 0 0 18px 0;

    font-size: 14px;

    line-height: 1.5;

    color: #555;
}


/* Botón cerrar */

.grow-ayuda-cerrar {
    position: absolute;

    top: 8px;
    right: 10px;

    border: none;

    background: none;

    font-size: 24px;

    color: #777;

    cursor: pointer;
}


/* Botón entendido */

.grow-ayuda-boton {
    border: none;

    background-color: #000000;

    color: #fafafa;

    padding: 9px 18px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: transform 0.2s ease,
                background-color 0.2s ease;
}

.grow-ayuda-boton:hover {
    background-color: #000000;

    transform: translateY(-2px);
}


/* Animación */

@keyframes growAyudaEntrada {

    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================
   CELULARES
   ========================================= */

@media (max-width: 480px) {

    .grow-ayuda {
        top: 85px;
        left: 18px;
        right: 18px;
        justify-content: center;
    }

    .grow-ayuda-contenido {
        width: 100%;
        max-width: 330px;
        padding: 20px;
    }

    .grow-ayuda-flecha {
        top: -32px;
        left: 65%;
        font-size: 34px;
    }

}

/* =========================================
   VAMPI GROW - CATEGORÍAS
   ========================================= */

.grow-categorias {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.grow-categoria-card {
    width: 100%;
    height: 280px;

    display: flex;
    flex-direction: column;

    background-color: #000000;

    border-radius: 15px;
    overflow: hidden;

    text-decoration: none;
    color: #ffffff;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

.grow-categoria-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}


/* Imagen de la categoría */

.grow-categoria-imagen {
    width: 100%;
    height: 220px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.grow-categoria-imagen img {
    width: 90%;
    height: 90%;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;
}

.grow-categoria-card:hover .grow-categoria-imagen img {
    transform: scale(1.03);
}


/* Nombre de la categoría */

.grow-categoria-nombre {
    width: 100%;

    padding: 15px;

    text-align: center;
}

.grow-categoria-nombre h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 600;
}

/* =========================================
   VAMPI GROW - RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

    .grow-categorias {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .grow-categoria-card {
        height: 320px;
    }

    .grow-categoria-imagen {
        height: 260px !important
    }

}


@media (max-width: 480px) {

    .grow-categoria-card {
        height: 280px;
    }

    .grow-categoria-imagen {
        height: 190px !important
    }

    .grow-categoria-nombre {
        padding: 12px;
    }

    .grow-categoria-nombre h2 {
        font-size: 21px;
    }

}

/* =========================================
   VAMPI - PRODUCTOS
========================================= */


/* =========================================
   ENCABEZADO
========================================= */

.productos-header {
    max-width: 1100px;
    margin: 0 auto 45px;
    text-align: center;
}


/* Título */

.productos-titulo {
    display: flex;
    justify-content: center;
    align-items: center;    
    gap: 12px;
}


.productos-titulo span {
    display: block;

    width: 8px;
    height: 35px;

    background-color: #000000;

    border-radius: 3px;
}


.productos-header h1 {
    margin: 0;

    font-size: 38px;
    font-weight: 700;

    color: #000000;

    text-transform: uppercase;
}

.productos-header p {
    margin-top: 10px;

    font-size: 15px;

    color: #777;
}


/* =========================================
   GRID
========================================= */

.productos-grid {
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 18px;
}


/* =========================================
   CARD
========================================= */

.producto-card {
    width: 100%;
    background-color: #000000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

    border: 1px solid #eeeeee;
    color: white;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.producto-card:hover {
    transform: translateY(-5px);

    border-color: #030303;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.14);
}

.producto-card-empleado .producto-imagen {
    height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
}

.producto-card-empleado .producto-imagen img {
    width: auto;
    height: 195px;

    max-width: 75%;

    object-fit: contain;
}

/* =========================================
   IMAGEN
========================================= */

.producto-imagen {
    width: 95%;
    aspect-ratio: 1 / 0.85;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;

    margin: 0 auto;
}


.producto-imagen img {
    width: 95%;
    height: 90%;
    border-radius: 15px;

    object-fit: cover;

    display: block;

    transition:
        transform 0.3s ease;
}


.producto-imagen-empleado {
    width: 95%;
    aspect-ratio: 1 / 0.85;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;

    margin: 0 auto;
}

.producto-imagen-empleado img {
    width: 95%;
    height: 90%;
    border-radius: 15px;

    object-fit: cover;

    display: block;

    transition:
        transform 0.3s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.04);
}


/* =========================================
   INFORMACIÓN
========================================= */

.producto-info {
    padding: 18px 20px 20px;
}


.producto-nombre {
    margin: 0 0 10px;

    font-size: 18px;

    font-weight: 600;

    color: #ffffff;

    line-height: 1.3;
}


.producto-precio {
    display: block;

    font-size: 21px;

    font-weight: 700;

    color: #ffffff;
}


/* =========================================
   RESPONSIVE - TABLETS
========================================= */

@media (max-width: 800px) {

    .productos-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================
   RESPONSIVE - TABLETS PEQUEÑAS
========================================= */

@media (max-width: 768px) {

    .productos-header {
        margin-bottom: 35px;
    }

    .productos-header h1 {
        font-size: 32px;
    }

    .productos-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 20px;
    }

}


/* =========================================
   RESPONSIVE - CELULARES
========================================= */

@media (max-width: 480px) {

    .productos-header {
        margin-bottom: 30px;
    }

    .productos-titulo {
        gap: 9px;
    }

    .productos-titulo span {
        width: 6px;
        height: 28px;
    }

    .productos-header h1 {
        font-size: 27px;
    }

    .productos-header p {
        font-size: 14px;
    }

    .productos-grid {
        grid-template-columns:2, 1fr;

        gap: 20px;
    }

    .producto-info {
        padding: 16px 18px 18px;
    }

    .producto-nombre {
        font-size: 17px;
    }

    .producto-precio {
        font-size: 20px;
    }

}

/* =========================
   IMAGEN EN TABLA DE CATEGORÍAS
========================= */

.categoria-tabla-imagen {
    width: 70px;
    height: 70px;

    object-fit: cover;

    border-radius: 10px;

    display: block;
}

/* =========================================
   PRODUCTOS - MENÚ STOCK
========================================= */

.producto-stock {
    position: relative;
}


.producto-stock-boton {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


.producto-stock-boton span {
    font-size: 10px;

    transition:
        transform 0.2s ease;
}


.producto-stock.activo
.producto-stock-boton span {

    transform: rotate(180deg);

}


/* =========================================
   MENÚ DESPLEGABLE
========================================= */

.producto-stock-menu {

    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    z-index: 1000;

    min-width: 130px;

    background-color: #ffffff;

    border: 1px solid #dddddd;

    border-radius: 10px;

    padding: 6px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);

    display: none;
}


.producto-stock.activo
.producto-stock-menu {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.producto-stock-opcion {

    width: 100%;

    padding: 9px 12px;

    background-color: #ffffff;

    color: #000000;

    border: none;

    border-radius: 7px;

    text-align: left;

    font-size: 14px;

    cursor: pointer;

    transition:
        background-color 0.2s ease;

}


.producto-stock-opcion:hover {

    background-color: #eeeeee;

}


/* =========================================
   CANTIDAD STOCK
========================================= */

.producto-stock-cantidad {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 20px;

    text-align: left;

}


.producto-stock-cantidad label {

    font-size: 14px;

    font-weight: 600;

    color: #000000;

}


.producto-stock-cantidad input {

    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid #cccccc;

    border-radius: 8px;

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.producto-stock-cantidad input:focus {

    border-color: #000000;

    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.08);

}


/* =========================================
   RESPONSIVE STOCK
========================================= */

@media (max-width: 600px) {

    .producto-stock-menu {

        left: auto;

        right: 0;

    }

}


@media (max-width: 500px) {

    .producto-stock-menu {

        min-width: 120px;

    }

    .producto-stock-opcion {

        padding: 10px 12px;

    }

    .producto-stock-cantidad {

        margin-bottom: 15px;

    }

}

/* =========================================
   FILTROS DE PRODUCTOS
========================================= */

.productos-filtros {

    display: flex;

    align-items: flex-end;

    gap: 20px;

    margin-bottom: 30px;

    padding: 20px;

    background-color: #111111;

    border: 1px solid #2a2a2a;

    border-radius: 15px;

    flex-wrap: wrap;

    color: #faf7f7;

}


.productos-busqueda {

    flex: 1;

    min-width: 250px;

}


.productos-busqueda label,
.productos-seccion-filtro label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

}


.productos-busqueda-input {

    display: flex;

    gap: 10px;

}


.productos-busqueda-input input {

    width: 100%;

    padding: 12px 15px;

    border: 1px solid #333333;

    border-radius: 10px;

    background-color: #000000;

    color: #ffffff;

    font-size: 15px;

    outline: none;

}


.productos-busqueda-input input:focus {

    border-color: #666666;

}


.productos-busqueda-input button {

    white-space: nowrap;

}


.productos-seccion-filtro {

    min-width: 170px;

}


.productos-seccion-filtro select {

    width: 100%;

    padding: 12px 15px;

    border: 1px solid #333333;

    border-radius: 10px;

    background-color: #000000;

    color: #ffffff;

    font-size: 15px;

    outline: none;

}


.productos-seccion-filtro select:focus {

    border-color: #666666;

}


.productos-filtro-limpiar {

    display: flex;

    align-items: center;

    height: 44px;

}


/* =========================================
   FILTROS - CELULARES
========================================= */

@media (max-width: 600px) {

    .productos-filtros {

        flex-direction: column;

        align-items: stretch;

    }


    .productos-busqueda {

        width: 100%;

    }


    .productos-busqueda-input {

        flex-direction: column;

    }


    .productos-seccion-filtro {

        width: 100%;

    }


    .productos-filtro-limpiar {

        height: auto;

    }

}

/* =========================================
   ACCESO DENEGADO
========================================= */

.admin-acceso-denegado {

    max-width: 650px;

    margin: 40px auto 0;

    padding: 40px;

    text-align: center;

    background-color: #111111;

    border: 1px solid #2a2a2a;

    border-radius: 15px;

    color:#fdfdfd

}


.admin-acceso-icono {

    font-size: 55px;

    margin-bottom: 15px;

}


.admin-acceso-denegado h2 {

    margin-bottom: 15px;

}


.admin-acceso-denegado p {

    line-height: 1.6;

    margin-bottom: 10px;

}


.admin-acceso-denegado .btn-login {

    display: inline-block;

    margin-top: 20px;

    text-decoration: none;

}

/* =========================================
   MODAL REGISTRAR VENTA
========================================= */

.venta-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background-color: rgba(0, 0, 0, 0.75);

    color: #ffffff;

}


.venta-modal.activo {

    display: flex;

}


.venta-modal-contenido {

    position: relative;

    width: 100%;

    max-width: 550px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    background-color: #111111;

    border: 1px solid #333333;

    border-radius: 18px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);

}


.venta-modal-contenido h2 {

    margin: 0 0 25px;

    text-align: center;

}


.venta-modal-cerrar {

    position: absolute;

    top: 15px;

    right: 18px;

    border: none;

    background: none;

    color: #ffffff;

    font-size: 30px;

    cursor: pointer;

}


.venta-producto-info {

    margin-bottom: 25px;

    text-align: center;

}


.venta-producto-info h3 {

    margin: 0 0 5px;

    font-size: 22px;

}


.venta-producto-info p {

    margin: 0;

    opacity: 0.7;

}

.btn-registrar-venta {
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    background-color: white;
    color: black;
    gap: 10px;
}

.btn-registrar-venta:hover {
    transform: translateY(-2px);
}

.btn-registrar-venta:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   RESPONSIVE - TABLETS
========================================= */

@media (max-width: 1000px) {

    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* =========================================
   RESPONSIVE - CELULARES
========================================= */

@media (max-width: 480px) {

    .productos-grid {
        grid-template-columns:2, 1fr;
        gap: 20px;
    }

    .producto-card-empleado .producto-imagen {
        height: 160px;
    }

    .producto-card-empleado .producto-imagen img {
        height: 115px;
        max-width: 70%;
    }

    .producto-info {
        padding: 16px 18px 18px;
    }

    .producto-nombre {
        font-size: 17px;
    }

    .producto-precio {
        font-size: 20px;
    }

}
/* =========================================
   DATOS
========================================= */

.venta-datos {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 10px;

    margin-bottom: 25px;

}


.venta-dato {

    padding: 15px;

    text-align: center;

    background-color: #000000;

    border: 1px solid #292929;

    border-radius: 10px;

}


.venta-dato span {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    opacity: 0.7;

}


.venta-dato strong {

    font-size: 16px;

}


/* =========================================
   CANTIDAD
========================================= */

.venta-cantidad {

    margin-bottom: 25px;

}


.venta-cantidad label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

}


.venta-cantidad input {

    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    background-color: #000000;

    color: #ffffff;

    border: 1px solid #333333;

    border-radius: 10px;

    font-size: 16px;

    outline: none;

}


.venta-cantidad input:focus {

    border-color: #666666;

}


/* =========================================
   RESULTADOS
========================================= */

.venta-resultados {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-bottom: 20px;

}


.venta-resultados > div {

    padding: 15px;

    background-color: #000000;

    border: 1px solid #292929;

    border-radius: 10px;

}


.venta-resultados span {

    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    opacity: 0.7;

}


.venta-resultados strong {

    font-size: 18px;

}


/* =========================================
   ERROR
========================================= */

.venta-error {

    display: none;

    margin: 0 0 20px;

    padding: 12px;

    text-align: center;

    border-radius: 8px;

    background-color: #2a1111;

    border: 1px solid #5a2222;

}


.venta-error.visible {

    display: block;

}


/* =========================================
   BOTONES
========================================= */

.venta-botones {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

}


.venta-btn-cancelar,
.venta-btn-confirmar {

    padding: 12px 20px;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;

}


.venta-btn-cancelar {

    background-color: transparent;

    color: #ffffff;

    border: 1px solid #333333;

}


.venta-btn-confirmar {

    background-color: #ffffff;

    color: #000000;

    border: 1px solid #ffffff;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .venta-datos {

        grid-template-columns: 1fr;

    }


    .venta-resultados {

        grid-template-columns: 1fr;

    }


    .venta-botones {

        flex-direction: column;

    }


    .venta-btn-cancelar,
    .venta-btn-confirmar {

        width: 100%;

    }

}

/* =========================================
   NOTIFICACIÓN DE VENTA
========================================= */

.notificacion-venta {

    position: fixed;

    top: 30px;

    left: 50%;

    transform: translate(-50%, -150%);

    z-index: 10000;

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 320px;

    max-width: 500px;

    padding: 16px 22px;

    background-color: #111111;

    border: 1px solid #333333;

    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.45);

    opacity: 0;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;

    color: #ffffff;

}


/* MOSTRAR */

.notificacion-venta.visible {

    transform: translate(-50%, 0);

    opacity: 1;

}


/* ICONO */

.notificacion-venta-icono {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    flex-shrink: 0;

    border-radius: 50%;

    background-color: #ffffff;

    color: #000000;

    font-size: 20px;

    font-weight: bold;

}


/* TEXTO */

.notificacion-venta-texto {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.notificacion-venta-texto strong {

    font-size: 15px;

}


.notificacion-venta-texto span {

    font-size: 13px;

    opacity: 0.7;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 600px) {

    .notificacion-venta {

        top: 20px;

        min-width: 0;

        width: calc(100% - 40px);

        box-sizing: border-box;

    }

}

/* =========================================
   PRODUCTOS - PANEL DE EMPLEADO
========================================= */

.producto-card-empleado {
    width: 100%;
}

/* Grid de productos del empleado */
.productos-grid-empleado {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    column-gap: 15px;
    row-gap: 35px;
}


/* Imagen */
.producto-card-empleado .producto-imagen {
    width: 100%;
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
    margin: 0;
    overflow: hidden;
}

.producto-card-empleado .producto-imagen img {
    width: auto;
    height: 135px;
    max-width: 80%;

    object-fit: contain;
    display: block;
}


/* Información */
.producto-card-empleado .producto-info {
    padding: 18px 20px 20px;
}

.producto-card-empleado .producto-nombre {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;

    color: #fff;
}

.producto-card-empleado .producto-marca {
    margin: 0 0 12px;

    font-size: 14px;
    color: #aaa;
}

.producto-card-empleado .producto-precio {
    display: block;

    margin: 0 0 10px;

    font-size: 21px;
    font-weight: 700;

    color: #fff;
}

.producto-card-empleado .producto-stock {
    margin: 0;

    font-size: 14px;
    color: #ccc;
}

.producto-card-empleado .producto-stock strong {
    color: #fff;
}


/* =========================================
   BOTÓN REGISTRAR VENTA
========================================= */

.producto-card-empleado .btn-registrar-venta {
    width: 100%;

    display: block;

    margin-top: 18px;
    padding: 12px 18px;

    border: none;
    border-radius: 10px;

    background-color: #fff;
    color: #000;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.producto-card-empleado .btn-registrar-venta:hover {
    transform: translateY(-2px);
}

.producto-card-empleado .btn-registrar-venta:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}


/* =========================================
   RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 900px) {

    .productos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 25px;
        row-gap: 25px;
    }

}


/* Celular */
@media (max-width: 600px) {

    .productos-grid {
        grid-template-columns:3, 1fr;
        gap: 20px;
    }

    .producto-card-empleado .producto-imagen {
        height: 170px;
    }

    .producto-card-empleado .producto-imagen img {
        height: 125px;
        max-width: 75%;
    }

}

/* =========================================
   BOTONES MODAL DE VENTA
========================================= */

.venta-botones {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    margin-top: 25px;
}

.venta-btn-cancelar,
.venta-btn-confirmar,
.btn-cancelar-venta,
.btn-confirmar-venta {
    min-width: 170px;
    padding: 14px 24px;

    border: 1px solid #ffffff;
    border-radius: 10px;

    background-color: #ffffff;
    color: #000000;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover */
.venta-btn-cancelar:hover,
.venta-btn-confirmar:hover,
.btn-cancelar-venta:hover,
.btn-confirmar-venta:hover {
    background-color: #000000;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.25);
}

/* Click */
.venta-btn-cancelar:active,
.venta-btn-confirmar:active,
.btn-cancelar-venta:active,
.btn-confirmar-venta:active {
    transform: translateY(0);
}

/* =========================================
   BOTÓN CONFIRMAR DESHABILITADO
========================================= */

.btn-confirmar-venta:disabled,
.venta-btn-confirmar:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-confirmar-venta:disabled:hover,
.venta-btn-confirmar:disabled:hover {
    background-color: #ffffff;
    color: #000000;
    transform: none;
    box-shadow: none;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    .venta-botones {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 20px;
    }

    .venta-btn-cancelar,
    .venta-btn-confirmar,
    .btn-cancelar-venta,
    .btn-confirmar-venta {
        width: 100%;
        min-width: 0;

        padding: 15px 20px;

        font-size: 16px;
    }
}

/* =========================================
   VAMPI - HISTORIAL
========================================= */


/* =========================================
   CONTENIDO PRINCIPAL
========================================= */

.historial-main {

    width: 100%;
    min-height: calc(100vh - 150px);

    padding: 20px 40px;

    box-sizing: border-box;
}


/* =========================================
   ENCABEZADO
========================================= */

.historial-header {

    max-width: 1100px;

    margin: 0 auto 35px;

    text-align: center;
}


.historial-titulo {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;
}


.historial-titulo span {

    display: block;

    width: 8px;
    height: 35px;

    background-color: #000000;

    border-radius: 3px;
}


.historial-titulo h1 {

    margin: 0;

    font-size: 38px;

    font-weight: 700;

    color: #000000;

    text-transform: uppercase;
}


.historial-header p {

    margin: 10px 0 0;

    font-size: 15px;

    color: #777;
}


/* =========================================
   FILTROS
========================================= */

.historial-filtros {

    max-width: 1100px;

    margin: 0 auto 30px;

    padding: 25px;

    background-color: #000000;

    border-radius: 15px;

    border: 1px solid #eeeeee;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;

    color: #ffffff;
}


.historial-filtros form {

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr
        1fr
        auto;

    align-items: end;

    gap: 15px;
}


.historial-filtro-grupo {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.historial-filtro-grupo label {

    font-size: 14px;

    font-weight: 600;

    color: #ffffff;
}


.historial-filtro-grupo input,
.historial-filtro-grupo select {

    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid #cccccc;

    border-radius: 8px;

    background-color: #ffffff;

    color: #222;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;
}


.historial-filtro-grupo input:focus,
.historial-filtro-grupo select:focus {

    outline: none;

    border-color: #ffffff;
}


/* =========================================
   BOTONES
========================================= */

.historial-filtro-botones {

    display: flex;

    gap: 8px;

    align-items: center;
}


.historial-btn-filtrar,
.historial-btn-limpiar {

    padding: 11px 17px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.historial-btn-filtrar {

    border: none;

    background-color: #ffffff;

    color: #020202;
}


.historial-btn-limpiar {

    background-color: #eeeeee;

    color: #000000;
}


.historial-btn-filtrar:hover,
.historial-btn-limpiar:hover {

    opacity: 0.75;

    transform: translateY(-1px);
}


/* =========================================
   LISTA
========================================= */

.historial-lista {

    max-width: 1100px;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    gap: 15px;
}


/* =========================================
   ITEM
========================================= */

.historial-item {

    position: relative;

    display: grid;

    grid-template-columns: 105px 1fr auto;

    align-items: center;

    gap: 20px;

    padding: 20px;

    background-color: #000000;

    border: 1px solid #eeeeee;

    border-radius: 15px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.historial-item:hover {

    transform: translateY(-3px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);
}


/* =========================================
   TIPO
========================================= */

.historial-tipo {

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: 40px;

    padding: 8px 10px;

    border-radius: 8px;

    background-color: #fcfcfc;

    color: #000000;

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

    box-sizing: border-box;
}


.historial-tipo-producto {

    background-color: #ffffff;

    color: #000000;
}


.historial-tipo-categoria {

    background-color: #eeeeee;

    color: #000000;
}


/* =========================================
   INFORMACIÓN
========================================= */

.historial-info {

    min-width: 0;
}


.historial-info h2 {

    margin: 0 0 8px;

    font-size: 18px;

    font-weight: 700;

    color: #ffffff;

    word-break: break-word;
}


.historial-info h2 span {

    color: #c9c7c7;

    font-weight: 400;
}


.historial-info p {

    margin: 5px 0;

    font-size: 14px;

    color: #afafaf;
}


.historial-info strong {

    color: #ffffff;
}


/* =========================================
   ACCIÓN
========================================= */

.historial-accion {

    display: inline-block;

    margin-bottom: 5px;

    padding: 5px 9px;

    background-color: #eeeeee;

    border-radius: 6px;

    color: #222;

    font-size: 12px;

    font-weight: 600;
}


/* =========================================
   DETALLES
========================================= */

.historial-detalles {

    margin-top: 10px !important;

    padding-top: 8px;

    border-top: 1px solid #eeeeee;

    color: #777 !important;

    font-style: italic;
}


/* =========================================
   USUARIO / FECHA
========================================= */

.historial-meta {

    min-width: 145px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 5px;

    text-align: right;
}


.historial-meta strong {

    font-size: 14px;

    color: #ffffff;
}


.historial-meta span {

    font-size: 13px;

    color: #d6d5d5;
}


/* =========================================
   SIN RESULTADOS
========================================= */

.historial-vacio {

    padding: 50px 25px;

    background-color: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 15px;

    text-align: center;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08);
}


.historial-vacio h2 {

    margin: 0 0 8px;

    font-size: 21px;

    color: #222;
}


.historial-vacio p {

    margin: 0;

    color: #777;

    font-size: 14px;
}


/* =========================================
   TABLETS
========================================= */

@media (max-width: 900px) {

    .historial-filtros form {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .historial-filtro-botones {

        grid-column: span 2;
    }


    .historial-item {

        grid-template-columns: 90px 1fr;
    }


    .historial-meta {

        grid-column: 2;

        align-items: flex-start;

        text-align: left;
    }

}


/* =========================================
   CELULARES
========================================= */

@media (max-width: 600px) {

    .historial-main {

        padding: 40px 20px;
    }


    .historial-titulo h1 {

        font-size: 29px;
    }


    .historial-titulo span {

        width: 6px;

        height: 28px;
    }


    .historial-header {

        margin-bottom: 25px;
    }


    .historial-filtros {

        padding: 20px;
    }


    .historial-filtros form {

        grid-template-columns: 1fr;
    }


    .historial-filtro-botones {

        grid-column: auto;

        flex-direction: column;
    }


    .historial-btn-filtrar,
    .historial-btn-limpiar {

        width: 100%;

        text-align: center;

        box-sizing: border-box;
    }


    .historial-item {

        grid-template-columns: 1fr;

        gap: 12px;

        padding: 18px;
    }


    .historial-tipo {

        width: fit-content;

        min-width: 100px;
    }


    .historial-meta {

        grid-column: auto;

        padding-top: 10px;

        border-top: 1px solid #eeeeee;

        width: 100%;
    }

}

/* =========================================================
   PANEL DE EMPLEADO - FILTROS Y STOCK
========================================================= */

.empleado-filtros {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 25px;
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(150px, 1fr)) auto;
    gap: 15px;
    align-items: end;
    background-color: #111;
    padding: 15px;
    border-radius: 10px;
}

.empleado-filtro-busqueda,
.empleado-filtro-grupo {
    min-width: 0;
}

.empleado-filtros label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: #ffffff;
}

.empleado-filtros input,
.empleado-filtros select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 9px;
    background: #111;
    color: #fff;
    box-sizing: border-box;
}

.empleado-filtros input:focus,
.empleado-filtros select:focus {
    outline: none;
    border-color: #777;
}

.empleado-filtro-botones {
    display: flex;
    gap: 8px;
    align-items: center;
}

.empleado-filtro-botones .usuarios-boton-agregar,
.empleado-filtro-botones .usuario-editar {
    min-height: 44px;
    white-space: nowrap;
}

.empleado-resumen {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.empleado-resumen-item {
    padding: 16px 18px;
    border: 1px solid #292929;
    border-radius: 12px;
    background: #0b0b0b;
    text-align: center;
}

.empleado-resumen-item strong {
    display: block;
    font-size: 24px;
    color: #fff;
}

.empleado-resumen-item span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #999;
}

.empleado-producto-categoria {
    margin: 0 0 7px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #777;
}

.empleado-producto-botones {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
}

.empleado-btn-stock {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #444;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .25s ease, background-color .25s ease;
}

.empleado-btn-stock:hover {
    transform: translateY(-2px);
    background-color: #171717;
}

.empleado-stock-modal-dato {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 12px 14px;
    border-radius: 9px;
    background: #ffffff;
}

.empleado-stock-modal-dato span {
    color: #000000;
    font-size: 14px;
}

.empleado-stock-modal-dato strong {
    color: #000000;
    font-size: 18px;
}

.empleado-stock-modal-cantidad {
    margin: 18px 0;
}

.empleado-stock-modal-cantidad label {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
}

.empleado-stock-modal-cantidad input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #afafaf;
    border-radius: 9px;
    background: #ffffff;
    color: #020202;
}

@media (max-width: 1100px) {
    .empleado-filtros {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .empleado-filtro-busqueda {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .empleado-filtros,
    .empleado-resumen {
        grid-template-columns: 1fr;
    }

    .empleado-filtro-busqueda {
        grid-column: auto;
    }

    .empleado-filtro-botones {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================
   MODAL STOCK EMPLEADO
========================= */


.empleado-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: none;

    justify-content: center;
    align-items: center;

    background-color: rgba(0, 0, 0, 0.45);
}


.empleado-modal.activo {
    display: flex;
}


.empleado-modal-contenido {
    position: relative;

    width: 400px;
    max-width: calc(100% - 40px);

    background-color: #000000;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);

    text-align: center;
}

.empleado-modal-contenido h3 {
    margin: 0 0 10px 0;
    font-size: 23px;
    color: white !important;
}

.empleado-modal-contenido p {
    margin: 0 0 25px 0;

    color: #fdfdfd;

    line-height: 1.5;
}

.empleado-modal-cerrar {
    position: absolute;

    top: 10px;
    right: 13px;

    background: none;
    border: none;

    font-size: 26px;

    color: #555;

    cursor: pointer;
}

.empleado-modal-botones {
    display: flex;

    justify-content: center;

    gap: 10px;
}

.empleado-modal-botones form {
    margin: 0;
}

.empleado-modal-cancelar,
.empleado-modal-eliminar {
    border: none;

    padding: 11px 18px;

    border-radius: 8px;

    font-size: 14px;

    cursor: pointer;

    text-decoration: none;
}

.empleado-modal-eliminar {
    background-color: #eeeeee;

    color: #000000;
}

.empleado-modal-cancelar {
    background-color: #2c2c2c;

    color: #ffffff;

    border: 1px white;
}

.empleado-modal-cancelar:hover,
.empleado-modal-eliminar:hover {
    opacity: 0.75;
}


@media (max-width: 500px) {

    .empleado-modal-contenido {
        padding: 25px 20px;
    }

    .empleado-modal-botones {
        flex-direction: column;
    }

    .empleado-modal-cancelar,
    .empleado-modal-eliminar {
        width: 100%;
        box-sizing: border-box;
    }

}
