*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Montserrat', sans-serif;
}

.contenedor-flex{
    display: flex;
    gap: 1.5em;
    height: 100% !important;
    flex: 1;
}

.contenedor-agregar-producto, .contenedor-listar-productos, .contenedor-listar-categorias, .contenedor-listado-ventas, .contenedor-panel-general, .contenedor-editar-perfil, .contenedor-listado-clientes, .contenedor-estadisticas, .contenedor-archivo, .contenedor-panel-web, .contenedor-mayoristas, .contenedor-descuentos-general{
    margin-right: 1%;
    padding: 20px;
    padding-left: 3em;
    width: 75%;
}

.contenedor-listado-ventas{
    margin-right: 1em;
}

.contenedor-agregar-producto h3{
    margin-bottom: 1em;
    margin-top: .5em;
}

.contenedor-listar-productos{
    margin-right: 10px;
    width: 100%;
    padding-left: 2em;
}

.sombra {
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.boton{
    padding: 10px 13px;
    background-color: #000;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border-radius: 5px;
    transition: all .3s ease;
    cursor: pointer;
    border: none;
}

.boton:hover{
    background-color: white;
    border: 1px solid #000;
    color: #000;
}

.btnCancelar{
    background-color: #dc3545;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all .3s ease;
    cursor: pointer;
}

.btnCancelar:hover{
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
}

/*ESTILOS PARA VER LA FUNCIÓN DE BOTONES*/
/* Contenedor para la descripción */
.archivar-btn, .abrirModalEditarProducto {
    position: relative;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: gray;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    position: absolute;
    top: -30px; /* Ajusta según la posición deseada */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-size: 12px;
    z-index: 10;
}

/* Mostrar la descripción al hacer hover */
.archivar-btn:hover .tooltip, .abrirModalEditarProducto:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ------------------------------ Barra lateral ---------------------------------*/

.barra-lateral .logo{
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barra-lateral .logo svg{
    display: none;
}

.barra-lateral .logo .logo-original{
    background: url('/public/img/logo.PNG');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 200px;
    height: 100px;
}

.barra-lateral span{
    margin-left: 7px;
    opacity: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.contenedor-barra-lateral{
    min-height: 100vh;
    position: relative;
}

.barra-lateral{
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
    width: 256px;
    height: 100%;
    padding: 20px 15px;
    overflow: hidden;
    position: relative;
}

.barra-lateral .panel-general{
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background-color: #000;
    color: white;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all .5s ease;
}

.barra-lateral .panel-general i{
    min-width: 30px;
    text-align: center;
}

.barra-lateral .panel-general span{
    font-size: 18px;
}

.barra-lateral .panel-general:hover{
    background-color: white;
    border: 1px solid #000;
    color: #000;
}

/*menú navegación*/

.barra-lateral .navegacion{
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
    margin-top: 1.5em;
}

.barra-lateral .navegacion::-webkit-scrollbar{
    width: 0;
}

.barra-lateral .navegacion li{
    list-style: none;
    margin-bottom: 1px;
}

.barra-lateral .navegacion li a{
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    color: #000;
    padding: 12px 8px;
}

.barra-lateral .navegacion li a i{
    min-width: 50px;
    font-size: 20px;
}

.submenu-toggle .modulo{
    flex: 1;
    text-align: left;
    transition: all .3s ease;
    font-weight: 550;
    font-size: 17px;
}

.barra-lateral .navegacion li a span:hover{
    color: #707070;
}


/*submenús*/ 

.barra-lateral .navegacion li .submenu a {
    font-size: 14px;
    color: #495057;
    background: none;
    padding: 5px 0;
}

.barra-lateral .navegacion li .submenu a:hover {
    color: #343a40;
}

.flecha {
    margin-left: auto; /* empuja la flecha al final */
    transition: transform 0.3s ease;
    font-size: 10px;
    color: #000;
}


/*submenús*/
.submenu{
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 20px;
    padding-left: 20px;
    padding-top: 5px;
    border-left: 1px solid #f6f6f6;
}

.submenu.no-transition { 
    transition: none; /* Deshabilita la transición */
}

.submenu li a{
    padding: 10px 8px;
    font-size: 12px;
} 

.submenu-toggle.active + .submenu{
    max-height: 500px;
    opacity: 1;
    padding-top: 5px;
}

.submenu-toggle .sitio-web{
    font-size: 20px;
}

.li-sitio-web{
    margin-bottom: 1em;
}

.li-sitio-web .web{
    font-size: 24px !important;
}

.barra-lateral .navegacion li .submenu a.active {
    color: #212529; 
    font-weight: bold; 
}

/* Barra lateral - usuarios */
.barra-lateral .usuario {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; 
    gap: 5px; 
    margin-top: auto;
}

/* Icono de usuario */
.barra-lateral .usuario .contenedor-icono-usuario {
    width: 35px;
    height: 35px;
    background-color: #000;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.barra-lateral .usuario .contenedor-icono-usuario i {
    font-size: 18px;
}

/* Información del usuario */
.barra-lateral .usuario .info-usuario {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.barra-lateral .usuario .nombre-email {
    display: flex;
    flex-direction: column;
    gap: 2px; 
    margin-left: 10px;
}

.barra-lateral .usuario .nombre-email .nombre {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 0;
}

.barra-lateral .usuario .nombre-email .email {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 0;
}

/* Ícono de logout */
.logout {
    width: 100%;
    text-align: right;
}

.btn-logout {
    text-decoration: none;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    transition: all .3s ease;
}
.btn-logout:hover{
    color: #707070;
}

.barra-lateral .acciones-usuario{
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 15px;
    left: 10px;
    z-index: 10;
    background: white;
    width: 230px;
}

/* --------------------------- AGREGAR PRODUCTOS ------------------------------*/

.row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.col-md-12{
    flex: 0 100%;
    max-width: 100%;
    width: 100%;
    padding: 0 0.5rem;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 0.5rem;
}

.col-md-4 {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 0.5rem;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 0.5rem;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column; /*para que el label aparezca después del input*/
    margin-top: 16px; 
}

.form-group label {
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: white;
    padding: 0 10px;
    font-size: 14px;
    color: #555;
    font-weight: 400;
    z-index: 1;
}

.form-group input {
    width: 100%;
    border: 2px solid #ccc; 
    border-radius: 4px;
    padding: 13px 12px; 
    font-size: 14px; 
}

.form-group input:focus {
    outline: none; /*Elimina el contorno azul predeterminado */
    border-color: #007bff; /*Borde azul al enfocar*/
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.25); 
}

.contenedor-agregar-producto h1{
    margin-bottom: 1em;
    font-size: 25px;
}

.primeros-datos-form{
    padding: 25px;
    margin-bottom: 2em;
}

.contenedor-selects select{
    width: 100% !important;
    border: 2px solid #ccc; 
    border-radius: 4px;
    padding: 13px 12px; 
    font-size: 14px; 
}

.form-group select:focus {
    outline: none; 
    border-color: #007bff; 
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.25); 
}

.form-group textarea{
    width: 100%;
    border: 2px solid #ccc; 
    border-radius: 4px;
    padding: 12px 12px 56px 12px; 
    font-size: 14px; 
}

.form-group textarea:focus {
    outline: none; 
    border-color: #007bff; 
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.25); 
}

.agregarProductoForm .contenedor-selects{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 45%;
}

#openModalAddVariant{
    padding: 12px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background: #000;
    color: white;
    border: none;
    border-radius: 5px;
}

.contenedor-dimensiones{
    padding: 20px;
    margin-top: 1.8em;
}

.contenedor-guardarBtn{
    left: 10px;
}

.guardarBtn{
    margin-top: 2em;
    padding: 15px 22px;
    font-size: 20px;
}

/* Dimensiones inputs */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding-right: 30px; 
    text-align: left; 
}

.input-group .unit {
    position: absolute;
    right: 10px; 
    font-size: 14px;
    color: #555;
    pointer-events: none; /* Evita interacción con el texto */
}

.input-group input[type="number"]::-webkit-inner-spin-button,
.input-group input[type="number"]::-webkit-outer-spin-button {
    margin-right: 5px; 
}

.contenedor-dimensiones h3{
    color: #949494;
    margin-bottom: 1em;
}

/*Agregar producto - cargar img*/

.contenedor-imagenes-producto {
    display: flex;
    flex-wrap: wrap;
    gap: 4em;
    justify-content: flex-start;
    margin-top: 20px;
    padding: 10px;
    box-sizing: border-box;
}

.contenedor-imagenes-producto .contenedor-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
    width: calc(25% - 40px);
}

.contenedor-imagenes-producto .contenedor-img .imagen {
    position: relative;
    width: 100%;
    height: 150px;
    border: 2px dashed #d3d3d3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.contenedor-imagenes-producto .contenedor-img .imagen:hover {
    border-color: #007bff; /* Cambia el color del borde al pasar el mouse */
    background-color: rgba(0, 123, 255, 0.1);
}

/* Ícono de carga dentro del contenedor */
.contenedor-imagenes-producto .contenedor-img .imagen i {
    font-size: 40px;
    color: #777;
    transition: color 0.3s ease;
}

.contenedor-imagenes-producto .contenedor-img .imagen:hover i {
    color: #007bff;
}

/* Botón cargar imagen */
.contenedor-imagenes-producto .btn-cargar {
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.contenedor-imagenes-producto .btn-cargar:hover {
    background-color: #0056b3; /* Color más oscuro al hacer hover */
}

/* Ocultar input de carga de archivo */
.contenedor-imagenes-producto .input-file {
    display: none;
}

/* Label del ícono */
.contenedor-imagenes-producto .contenedor-img .file-label {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Para cuando se muestra una imagen cargada */
.contenedor-imagenes-producto .contenedor-img .imagen img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Estilos para el encabezado del modal */
.editarProducto .header-editar-producto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.editarProducto .header-editar-producto h2 {
    font-size: 25px;
    color: #333;
}

/* Estilos para el botón de cerrar */
.editarProducto .header-editar-producto .close {
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}
.editarProducto .header-editar-producto .close:hover {
    color: #d9534f;
}


/*Modal de agregar atributos*/

.modalAgregarAtributos {
    display: none;
    position: fixed; 
    z-index: 1;
    padding-top: 100px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modalAgregarAtributos .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 40px 30px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
}

.modalAgregarAtributos .modal-content .modal-content-inputs{
    margin-top: 1.5em;
}

.modalAgregarAtributos .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.modalAgregarAtributos .close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modalAgregarAtributos .modal-variantes-acciones{
    margin-top: 2em;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modalAgregarAtributos .modal-variantes-acciones .boton{
    font-size: 18px;
    padding: 14px 19px;
    margin-right: 8px;
}

/* Estilo para mensajes de error */
.input-error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/*Contenedor de variantes agregadas*/

.variant {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.btn-danger {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 5px;
    border-radius: 5px;
}

.btn-danger:hover {
    background-color: #e60000;
    color: white;
}

#agregarMasBtn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1em;
}

#agregarMasBtn:hover {
    background-color: #0056b3;
}


/*--------------------Listado de productos----------------------------*/

.encabezado-listado{
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}

.encabezado-listado a{
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 18px;
}

.listado-acciones{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 2em;
    margin-top: 2em;
    margin-bottom: 2em;
}

.buscador-container{
    position: relative;
    width: 100%;
    max-width: 400px;
}

.buscador-container .buscador-input{
    width: 100%;
    padding: 10px 16px;
    padding-right: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.buscador-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.buscador-icono {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 18px;
    pointer-events: none;
}

.listado-acciones button{
    font-size: 16px;
}

#filterButton{
    background-color: #606060;
    margin-right: 2em;
}

#selectButton, #preciosPorCategoria{
    background-color: white;
    border: 1px solid #000;
    color: #000;
    font-weight: 600;
}

/*Tabla - listado productos*/
.contenedor-tabla-listado {
    margin-top: 20px;
    overflow-x: auto; /*Para manejar tablas grandes en pantallas pequeñas */
    background-color: white;
    padding: 16px;
    border-radius: 8px;
}

.tabla-productos {
    width: 100%;
    border-collapse: collapse;
}

.tabla-productos thead {
    border-bottom: 2px solid #ddd;
}

.tabla-productos thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase; /* Letras mayúsculas para un estilo moderno */
}

.tabla-productos tbody tr {
    border-bottom: 1px solid #ddd; /* Línea inferior visible */
    transition: background-color 0.3s ease; /* Transición para hover */
}

.tabla-productos tbody tr:hover {
    background-color: #f1f1f1; /* Efecto hover: gris claro */
}

.tabla-productos tbody td {
    padding: 12px 16px;
    font-size: 15px;
    color: #555;
    text-align: left;
    vertical-align: middle; 
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis;
}

.tabla-productos tbody td:last-child {
    text-align: center; /* Alinea las acciones al centro */
}

.tabla-productos tbody button.btn {
    padding: 6px 12px;
    font-size: 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: white;
}

.tabla-productos tbody button.btn:hover{
    color: #007bff;
    background-color: #f1f1f1;
}


.tabla-productos tbody .dimensiones {
    text-align: left;
}

.tabla-productos tbody .dimensiones span {
    display: inline-block; 
    margin-right: 8px;
}

.tabla-productos tbody .dimensiones .dim {
    margin-right: 4px; 
}

.tabla-productos tbody .dimensiones .x-separador {
    display: inline-block;
    margin-right: 8px;
    font-weight: bold;
}


.tabla-nombre{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* Contenedor de la paginación */
.paginacion {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

/* Estilos para los enlaces de la paginación */
.paginacion a {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #555;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Estilos cuando el enlace está activo */
.paginacion a.active {
    background-color: #000;
    color: white;
    font-weight: bold;
}

.paginacion a:hover {
    background-color: white;
    color: #000;
}

/* Estilo para el botón "Anterior" y "Siguiente" */
.paginacion a:first-child, .paginacion a:last-child {
    font-weight: bold;
}

/* Estilo para los enlaces cuando no están activos */
.paginacion a:not(.active):disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Estilo para los botones de navegación (anterior y siguiente) */
.paginacion a:hover, .paginacion a.active {
    background-color: #000;
    color: white;
}

/*Modal de filtros de productos*/
.modal-filtro {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -3px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.modal-filtro .modal-contenido {
    display: flex;
    flex-direction: column;
    gap: 3em;
    height: 95%;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.modal-filtro .cerrar-modal {
    align-self: flex-end;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-filtro .input-modal {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-filtro.open {
    right: 0;
}

.modal-filtro .acciones-filtro{
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1em;
    margin-top: 2em;
    font-size: 25px !important;
}

.modal-filtro .header-filtros{
    text-align: left;
    margin-top: 1em;
    font-size: 20px;
}

#clearFilters{
    background-color: #c82333;
    color: white;
    border: none;
}

#clearFilters:hover{
    background-color: #dc3545;
}

.modal-filtro #filterForm{
    display: flex;
    flex-direction: column;
    gap: 1em;
}


/*MODAL DE EDITAR PRODUCTO*/

.editarProducto {
    display: none; /* Oculta el modal por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Contenedor del contenido del modal */
.editarProducto .modal-contenido {
    background-color: white;
    border-radius: 10px;
    padding: 2em;
    padding-bottom: 4em;
    width: 1000px;
    max-width: 90%;
    max-height: 80vh; 
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
    margin: 1em auto; 
}

.editarProducto select{
    width: 100% !important;
    border: 2px solid #ccc; 
    border-radius: 4px;
    padding: 13px 12px; 
    font-size: 14px; 
}

/* Botón de cerrar */
.close {
    float: right;
    font-size: 50px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

/* Clase para abrir el modal */
.abrirModalEditar {
    display: flex; 
}

.guardarEdición{
    float: right;
    margin-top: 1em;
}

.header-editar-producto{
    display: flex;
    gap: 1em;
    justify-content: flex-start;
    align-items: center;
}

/*Modal de editar precios por categoría*/

.modalPreciosCategoria {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px); 
    display: none; 
    z-index: 1000;
    transition: opacity 0.3s ease; 
}

  /* Contenido del modal */
.modal-categorias-contenido {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Centrar completamente */
}

  .btn-cerrar-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }
  
  .btn-abrir-modal {
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }


/* PANEL ADMIN - CATEGORIAS */

.listado-categorias{
    margin-top: 2em;
}

.categoria-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 1em;
    background-color: #f7f7f7;
    border: 1px solid #333;
}

.categoria-item h3{
    font-weight: 600;
    font-size: 20px;
}

.categoria-item button{
    background: none;
    border: none;
    cursor: pointer;
    font-size: 25px;
}

.categoria-item button i{
    color: #444444;
    transition: all .3s ease;
}

.categoria-item button i:hover{
    color: #007BFF;
}

.categoria-item .categoria-acciones{
    display: flex;
    gap: 1em;
    justify-content: center;
}

.categoria-acciones .btn-toggle-subcategorias{
    margin-left: 1em;
}
.categoria-acciones .btn-toggle-subcategorias i{
    color: #000;
}

.subcategorias{
    margin-bottom: 1em;
}

.subcategoria-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ccc;
}

.subcategoria-item span {
    font-size: 17px;
    font-weight: 500;
}

.subcategoria-item i {
    margin-left: 10px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
    font-size: 20px;
}

.subcategoria-item i:hover {
    color: #007BFF; /* Cambia al color que desees */
}


.modalAgregarCategoria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modalAgregarCategoria .modal-contenido {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modalAgregarCategoria .cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modalAgregarCategoria .campo {
    margin-bottom: 15px;
}

.modalAgregarCategoria .acciones {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1em;
}

.modalAgregarCategoria .boton {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modalAgregarCategoria .boton.guardar {
    background-color: #000;
    color: white;
}

.modalAgregarCategoria .boton.cancelar {
    background-color: white;
    color: #000;
    border: 1px solid #000;
}

/*Subcategoria*/

.modalAgregarSubcategoria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modalAgregarSubcategoria .modal-contenido {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modalAgregarSubcategoria  .cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.modalAgregarSubcategoria  .modal-contenido h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    color: #333;
}

.modalAgregarSubcategoria  .acciones {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modalAgregarSubcategoria  .acciones .boton {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modalAgregarSubcategoria  .boton.guardar {
    background-color: #000;
    color: white;
}

.modalAgregarSubcategoria  .boton.cancelar {
    background-color: white;
    color: #000;
}

/* Estilo cuando el modal está activo */
.modalAgregarSubcategoria.active {
    display: flex;
}



/*MODAL EDITAR CATEGORÍA*/

.modalEditarCategoria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modalEditarCategoria .modal-contenido {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modalEditarCategoria  .cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.modalEditarCategoria  .modal-contenido h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
    color: #333;
}

.modalEditarCategoria  .acciones {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modalEditarCategoria  .acciones .boton {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modalEditarCategoria  .boton.guardar {
    background-color: #000;
    color: white;
}

.modalEditarCategoria  .boton.cancelar {
    background-color: white;
    color: #000;
}


/*MODAL EDITAR SUBCATEGORÍA*/

.modalEditarSubcategoria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modalEditarSubcategoria .modal-contenido {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modalEditarSubcategoria  .cerrar {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.modalEditarSubcategoria  .modal-contenido h2 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 20px;
    color: #333;
}

.modalEditarSubcategoria  .acciones {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modalEditarSubcategoria  .acciones .boton {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modalEditarSubcategoria  .boton.guardar {
    background-color: #000;
    color: white;
}

.modalEditarSubcategoria  .boton.cancelar {
    background-color: white;
    color: #000;
}

.modalEditarSubcategoria select{
    width: 100% !important;
    border: 2px solid #ccc; 
    border-radius: 4px;
    padding: 13px 12px; 
    font-size: 14px; 
}


/*LISTADO DE VENTAS*/


/* Estilos generales de la tabla */
.tabla-listado-ventas {
    width: 100%;
    border-collapse: separate;
    background-color: #fff;
    border-spacing: 0 15px;
}

.tabla-listado-ventas thead {
    background-color: #f4f4f4;
    color: #333;
    font-weight: bold;
    text-align: left;
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
}

.tabla-listado-ventas th,
.tabla-listado-ventas td {
    padding: 12px 20px;
    text-align: left;
}

.tabla-listado-ventas tbody tr {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    height: 70px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 2em;
}

.tabla-listado-ventas tbody tr:hover {
    background-color: #f7f7f7;
    transform: scale(1.02);
}

/* Estilo para las celdas */
.tabla-listado-ventas td {
    border-bottom: 1px solid #eee;
}

/* Botones dentro de las celdas */
.tabla-listado-ventas button {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all .3s ease;
    font-size: 22px;
    margin-right: 16px;
}

.tabla-listado-ventas .btnAprobarPago {
    color: #000;
}

.tabla-listado-ventas .btnAprobarPago:hover {
    color: #218838;
}

.tabla-listado-ventas .btnCancelarVenta {
    color: #000;
}

.tabla-listado-ventas .btnCancelarVenta:hover {
    color: #c82333;
}

/* Contenedor del ícono de mensaje */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-top: 8px; /* Espacio entre el texto del cliente y el ícono */
}

/* Estilo del ícono de mensaje */
.notas-pedido-icon {
    margin-left: 8px;
    color: #007bff;
    cursor: pointer;
    position: relative;
}

/* Estilo del texto del tooltip */
.tooltip-text {
    visibility: hidden; 
    background: #333; 
    color: #fff; 
    text-align: left; 
    border-radius: 5px; 
    padding: 8px 12px; 
    position: absolute;
    left: 50%;
    bottom: 100%; 
    transform: translateX(-50%); 
    font-size: 14px; 
    z-index: 9999; 
    max-width: 250px; 
    white-space: normal; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
    height: auto; 
    line-height: 1.5; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; 
}

/* Triángulo decorativo superior del tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%);
    border-width: 6px; 
    border-style: solid;
    border-color: #333 transparent transparent transparent; 
}

/* Mostrar el tooltip al pasar el mouse */
.tooltip-container:hover .tooltip-text {
    visibility: visible; 
    opacity: 1; 
}

/* Estilo para el encabezado de las columnas */
.tabla-listado-ventas th {
    background-color: white;
}


/*Paginador*/
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    gap: 10px;
}

.pagination a {
    padding: 8px 16px;
    background-color: #f0f0f0;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    font-size: 14px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.per-page-selector select {
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


/*Filtros y buscador*/

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 1em;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options label {
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.extra-filters {
    display: flex;
    align-items: center;
}

#show-filters-modal {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#show-filters-modal i {
    margin-right: 5px;
}

/* Estilos del buscador */

.search-bar{
    width: 300px;
}

.search-bar form {
    display: flex;
    position: relative;
}

.search-bar input {
    padding: 13px 35px 13px 15px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    width: 100%;
}

.buscador-icono {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
}


/* Modal de productos de una venta */

/* Estilos básicos para el modal */
#productsModal {
    display: none; /* Ocultar el modal por defecto */
    position: fixed; /* Hacer que el modal se quede fijo en la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con opacidad */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Asegura que el modal esté por encima de otros elementos */
}

/* Mostrar el modal cuando se le agrega la clase .show */
#productsModal.show {
    display: flex; /* Cambia a flex para mostrar el modal */
}

/* Estilos para el contenido del modal */
#productsModal .modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px; /* Borde redondeado */
    width: 900px; /* Establecer un tamaño cuadrado */
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra suave */
    position: relative;
}

/* Estilos para el encabezado del modal */
#productsModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#productsModal .modal-header h2 {
    font-size: 18px;
    color: #333;
}

/* Estilos para el botón de cerrar */
#productsModal #closeProductsModal {
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

#productsModal #closeProductsModal:hover {
    color: #d9534f; /* Color rojo al pasar el ratón */
}

/* Estilos para la lista de productos */
#productsModal .tabla-productos {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#productsModal .tabla-productos th, #productsModal .tabla-productos td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

#productsModal .tabla-productos th {
    background-color: #f4f4f4;
    font-weight: bold;
}

#productsModal .tabla-productos td {
    background-color: #fafafa;
}

#productsModal .tabla-productos tr:hover {
    background-color: #f1f1f1; /* Efecto hover en filas */
}

#productsModal .hidden {
    display: none;
}

#productsModal .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#productsModal .tab-button {
    padding: 8px 16px;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Montserrat', 'sans-serif';
    font-size: 16px;
    border-radius: 5px;
}

#productsModal .tab-button.active {
    background-color: #007bff;
    color: white;
}

#productsModal .tab-content {
    display: none; 
}

#productsModal .tab-content.active {
    display: block; /* Solo la pestaña activa se mostrará */
}

.btn-imprimir{
    float: right;
}

/*------------------------PANEL GENERAL ----------------------------*/

.acciones-general a{
    text-decoration: none;
    color: white;
}

.acciones-general a:hover{
    color: #000;
}

.contenedor-tablas-general {
    display: flex;
    justify-content: space-between;
    gap: 20px; 
    margin-top: 20px;
    width: 100%;
}

/* Estilos generales para ambas tablas */
.contenedor-tabla-productos-general,
.contenedor-tabla-ventas-general {
    width: 48%; 
    text-align: center;
    margin-top: 2em;
}

.contenedor-tabla-ventas-general h3{
    text-align: left;
    margin-bottom: 1.3em;
    font-size: 20px;
}

.contenedor-tabla-productos-general,
.contenedor-tabla-ventas-general thead th{
    color: #000;
    font-weight: 600;
    text-align: left;
}

.contenedor-tablas-general table {
    width: 100%;
    border-collapse: collapse;
}

.contenedor-tablas-general td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.contenedor-tablas-general tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.contenedor-tabla-productos-general .boton a,
.contenedor-tabla-ventas-general .boton a {
    color: white;
    text-decoration: none;
}

.contenedor-tabla-productos-general .boton,
.contenedor-tabla-ventas-general .boton{
    margin-top: 1em;
}

.contenedor-tablas-general td.acciones {
    font-size: 20px;
    text-align: center;
}

.contenedor-tabla-ventas-general{
    width: 40%;
}

/*Para destacar los estados de pago y de envío de las ventas*/
.fondo-pendiente {
    background-color: #ffecac; /* Color amarillo claro */
}

/* ----------------------------- LISTADO DE CLIENTES ----------------------------- */

/*Modal detalles de clientes*/

.modal-detalles-cliente {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-detalles-cliente .modal-content {
    background: white;
    padding: 1em 3em 3em 3em;
    border-radius: 8px;
}

.modal-detalles-cliente h5{
    font-size: 20px;
    margin-bottom: 1.5em;
    margin-top: 1em;
}

.modal-detalles-cliente .cerrar-modal-detalles{
    background: none;
    border: none;
    cursor: pointer;
    font-size: 40px;
}

.modal-detalles-cliente .cerrar-modal-detalles:hover{
    color: #444444;
}

.modal-detalles-cliente.visible {
    display: flex;
}

.modal-detalles-cliente .detalles-cliente{
    display: flex;
    flex-direction: column;
    gap: .5em;
}

/*Modal editar cliente*/

.modal-editar-cliente {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-editar-cliente h5{
    font-size: 24px;
    margin-top: 1em;
    margin-bottom: .5em;
}

.modal-editar-cliente .modal-content {
    background: white;
    padding: 1em 3em 3em 3em;
    border-radius: 8px;
    width: 80%;
}

.modal-editar-cliente.visible {
    display: flex;
}

.modal-editar-cliente .cerrar-modal-editar {
    align-self: flex-end;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-editar-cliente .cerrar-modal-editar:hover{
    color: #555;
}

.modal-editar-cliente .guardar{
    display: block;
    margin: 0 auto;
    font-size: 20px;
}

/*Modal de filtros de clientes*/
.modal-filtros-clientes {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1000;
    transition: right 0.3s ease;
}
.modal-filtros-clientes h3{
    margin-bottom: 1em;
    font-size: 20px;
}
.modal-filtros-clientes .modal-content {
    display: flex;
    flex-direction: column;
    /* gap: 3em; */
}
.modal-filtros-clientes .close {
    align-self: flex-end;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.modal-filtros-clientes button {
    margin-top: 10px;
}

.modal-filtros-clientes select{
    width: 100% !important;
    border: 2px solid #ccc; 
    border-radius: 4px;
    padding: 13px 12px; 
    font-size: 14px; 
}

.modal-filtros-clientes .acciones-filtro{
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
    font-size: 25px !important;
}

.modal-filtros-clientes .acciones-filtro button{
    width: 45%;
}

.modal-filtros-clientes .acciones-filtro #clearFilters{
    background-color: #c82333;
    color: white;
    border: none;
}

.modal-filtros-clientes .acciones-filtro #clearFilters:hover{
    background-color: #dc3545;
}

.modal-filtros-clientes .estado-cliente{
    margin-top: 1em;
    font-size: 18px;
    margin-bottom: .5em;
}


/* Estilo para clientes bloqueados */
.bloqueado {
    background-color: #f8d7da;  /* Fondo rojo claro */
    color: #721c24;  /* Texto rojo oscuro */
}

.bloqueado td {
    font-weight: bold; /* Poner en negrita el texto */
}

/*estilos del "alert" para el formulario de recuperar contraseña, del ADMIN */
.oculto {
    display: none;
}

#modal-recuperar-admin {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px); 
}

#modal-recuperar-admin .formulario-recuperar-contenido {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
}

#modal-recuperar-admin .formulario-recuperar-contenido h2 {
    text-align: center;
    margin-bottom: 1em;
}

#modal-recuperar-admin .close { /*esta es la cruz para cerrar el formulario de recuperar contra*/
    top: 2px;
    right: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    text-align: start;
}

#modal-recuperar-admin .close:hover {
    color: #007bff;
}

.formulario-recuperar-admin .solicitar-cambio{
    background: #000;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.formulario-recuperar-admin .contenedor-input {
    position: relative;
    margin-bottom: 1.5em;
}

.formulario-recuperar-admin .contenedor-input input {
    width: 100%;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 15px 12px;
    padding-left: 40px; /* Espacio a la izquierda para el ícono */
    font-size: 14px;
}

.formulario-recuperar-admin .contenedor-input .icono {
    position: absolute;
    top: 50%;
    left: 12px; /* Coloca el ícono dentro del input, al principio */
    transform: translateY(-50%);
    font-size: 18px;
    color: #aaa;
    transition: opacity 0.3s ease;
}

.formulario-recuperar-admin .contenedor-input input::placeholder {
    color: #aaa;
}


.formulario-recuperar-admin .formulario-recuperar-contenido input {
    width: 100%;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 15px 12px;
    font-size: 14px;
}


/*Ojo del password*/
.password-container {
    position: relative;
    width: 100%;
}

#password {
    width: 100%;
}

#togglePassword {
    position: absolute;
    right: 12px; 
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px; 
    color: #555;
}


/*ESTILOS PARA ESTADÍSTICAS -------------------------------------------*/

/* Contenedor de la cabecera */
.contenedor-estadisticas .titulo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.contenedor-estadisticas .titulo-container h2 {
    font-size: 28px;
}

.contenedor-estadisticas .titulo-container select {
    padding: 5px 10px;
    font-size: 16px;
}

/* Contenedor de estadísticas generales */
.estadisticas-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.estadistica-card {
    flex: 1;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: left;
    border-radius: 8px;
}

.estadistica-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.estadistica-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Contenedor del gráfico */
.contenedor-estadisticas .ventas-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.contenedor-estadisticas .grafico {
    flex: 3;
}

.contenedor-estadisticas .metodos-pago {
    flex: 1;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
}

.contenedor-estadisticas .metodos-pago h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.contenedor-estadisticas .metodo-card {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contenedor-estadisticas .metodo-card p {
    margin-bottom: 5px;
    color: #3f3f3f;
}

.contenedor-estadisticas .metodo-card h4 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/*Estadísticas de clientes*/
.contenedor-clientes {
    margin-top: 40px;
}

.filtros-clientes {
    margin-bottom: 20px;
    margin-top: 1em;
}

.filtros-clientes label {
    margin-right: 15px;
    font-size: 16px;
}

.clientes-listado-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.clientes-listado {
    flex: 3;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.clientes-listado ul {
    list-style: none;
    padding: 0;
}

#clientesListado li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.clientes-listado li:first-child {
    font-weight: bold;
    margin-bottom: 15px;
}

.clientes-estadisticas {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.estadistica-card .datos-cliente{
    font-weight: 500;
}

.estadistica-card .listado-ciudades-frecuentes{
    list-style: none;
    color: #3f3f3f;
    font-weight: 500;
}

.estadistica-card p{
    color: #3f3f3f;
    font-weight: 500;
}

/*Estadísticas de productos y variantes*/
.productos-variantes-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.productos-listado, .variantes-listado {
    flex: 1;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.productos-listado h4, .variantes-listado h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.productos-listado ul, .variantes-listado ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.productos-listado li, .variantes-listado li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.productos-listado li:last-child, .variantes-listado li:last-child {
    border-bottom: none;
}

.filtros-estadisticas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filtros-estadisticas select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 200px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.filtros-estadisticas select:hover,
.filtros-estadisticas select:focus {
    border-color: #007bff;
}

#borrarFiltros {
    padding: 0.6rem 1.2rem;
    background-color: #ff4d4d;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#borrarFiltros:hover {
    background-color: #ff1a1a;
}

.fila-pendiente {
    background-color: #d9f1ff; /* Celeste claro */
    transition: background-color 0.3s ease-in-out;
}

tr {
    background-color: #ffffff; /* Fondo blanco por defecto */
}

/*Indicadores del estado de la venta*/
.status-indicators {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
}

.status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-yellow {
    background-color: #ffecac;
}

.circle-blue {
    background-color: #d9f1ff; 
}

.status-container span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 5px; 
}



/*MODAL DE AGREGAR PROMO*/

.botonAgregarProducto{
    color: #007BFF;
    font-weight: 600;
    transition: all .3s ease;
}

.botonAgregarProducto:hover{
    color: #00438b;
}

.modalPromocion {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 1000; 
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px); 
    transition: opacity 0.3s ease-in-out; 
}

.modalPromocion .modal-contenido {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff; 
    padding: 2em;
    width: 400px;
    border-radius: 10px; 
    transition: transform 0.3s ease-in-out;
}

.modalPromocion .icono-porcentaje {
    position: absolute;
    top: -30px; /*Ajusta la posición del círculo hacia afuera del modal */
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 65px;
    background-color: #000; 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001; /*Para que aparezca por encima del contenido del modal */
}

.modalPromocion .icono-porcentaje i {
    font-size: 1.5rem; 
    color: #ffffff; 
}

.cerrarModalPromocion {
    align-self: flex-end;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.cerrarModalPromocion:hover{
    color: #555;
}

.modalPromocion h2 {
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5em;
}

.modalPromocion .form-group {
    margin-bottom: 25px;
}

.modalPromocion .form-group label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Verdana', sans-serif;
    color: #555555;
}

.modalPromocion input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out;
}

.modalPromocion input:focus, select:focus {
    border-color: #007bff; 
    outline: none;
}

.btn-guardar-promo{
    font-size: 17px;
}

#abrirModalPromocion {
    background-color: white; 
    color: #000;
    padding: 10px 20px;
    height: max-content;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 1em;
}

#abrirModalPromocion:hover {
    background-color: #000;
    color: white;
    border: none; 
}

.modalPromocion .boton-contenedor {
    text-align: center;
    margin-top: 20px; 
}

.modalPromocion .input-porcentaje {
    position: relative;
}

.modalPromocion .input-porcentaje input {
    width: 100%;
    padding-right: 35px; 
    box-sizing: border-box;
}

.modalPromocion .input-porcentaje::after {
    content: "%"; 
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #575757; 
    font-size: 1.4rem; 
    pointer-events: none; 
}

/*Modal de variantes de producto*/
.modalVariantes {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; 
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(3px); 
    justify-content: center;
    align-items: center;
}

.modalVariantes .modal-contenido {
    background: #ffffff;
    padding: 2em;
    border-radius: 10px;
    width: 85%;
    max-width: 900px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    position: relative; 
}

.modalVariantes .tabla-variantes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    text-align: left;
    background-color: #f9f9f9;
}

.modalVariantes .tabla-variantes thead th {
    background-color: #d7d7d7;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: 500;
}

.modalVariantes .tabla-variantes tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: middle;
    text-align: center;
}

.modalVariantes .tabla-variantes tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.modalVariantes .tabla-variantes tbody tr:hover {
    background-color: #efefef; /* Color de hover */
    transition: background-color 0.3s ease;
}

.modalVariantes .editarVariante {
    background-color: #000;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 17px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modalVariantes .editarVariante i {
    margin-right: 5px; 
}

.editarVariante:hover {
    background-color: #0056b3;
}

.cerrarModalVariantes {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 35px;
    color: #999;
    cursor: pointer;
}

.cerrarModalVariantes:hover {
    color: #333;
}

/*Modal para editar variante*/

.modalEditarVariante {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; 
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modalEditarVariante h2{
    margin-bottom: 1em;
}

.modalEditarVariante .modal-contenido {
    background: #ffffff;
    padding: 2em;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cerrarModalEditarVariante {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 45px;
    cursor: pointer;
    color: #444;
    transition: all .3s ease;
}

.cerrarModalEditarVariante:hover{
    color: #d61a2d;
}

.swal2-container {
    z-index: 100000 !important; /* SweetAlert estará por encima del modal */
}

.modalEditarVariante button{
    margin-top: 1em;
}

/*Modal de agregar nuevas variantes a un producto*/

.modalVariantes .btn-agregar {
    margin-top: 2em;
}

/* Modal para agregar variante */
.modalAgregarVariante {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001; 
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modalAgregarVariante .modal-contenido {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    height: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow-y: auto;
}

.modalAgregarVariante button{
    margin-top: 1em;
}

.cerrarModalAgregarVariante {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 35px;
    color: #999;
    cursor: pointer;
}

.cerrarModalAgregarVariante:hover {
    color: #333;
}

.archivarVariante{
    background-color: #ff1a1a;
    color: white;
    transition: all .3s ease;
}
.archivarVariante:hover{
    background-color: #ba0d0d;
    color: white;
}

/*ARCHIVO -------------------------------------------------*/

.contenedor-archivo {
    background: #fff;
    padding: 3em 2em;
    font-family: 'Montserrat', sans-serif;
}

.contenedor-archivo h1 {
    text-align: center;
    margin-bottom: .5em;
}

.contenedor-archivo .tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.contenedor-archivo .tab-button {
    padding: 10px 20px;
    border: none;
    background-color: #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: background-color 0.3s;
}

.contenedor-archivo .tab-button.active {
    background-color: #007bff;
    color: #fff;
}

.contenedor-archivo .tab-button:hover {
    background-color: #007bff;
    color: #fff;
}

.contenedor-archivo .tab-content {
    display: none;
    padding: 10px 20px;
}

.contenedor-archivo .tab-content.active {
    display: block;
}

.contenedor-archivo ul {
    list-style: none;
    padding: 0;
}

.contenedor-archivo li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fafafa;
}

.contenedor-archivo li:hover {
    background-color: #f0f8ff;
}

.contenedor-archivo .btn-desarchivar {
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.contenedor-archivo .btn-desarchivar:hover {
    background-color: #0056b3;
}

.contenedor-archivo section h2{
    margin-bottom: 1em;
}

.contenedor-archivo .acciones i{
    color: red;
    font-size: 20px;
    cursor: pointer;
    margin-left: 1em;
}

#password[readonly] {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border: 1px solid #ccc;
}

/*PANEL PARA ADMINSITRAR LA WEB ------------------------------*/

#tab-home h3{
    margin-bottom: 1em;
    margin-top: 2em;
}

.form-home {
    width: 90%;
    border-radius: 10px;
}

.form-home .carrusel-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 20px; /* Espacio entre contenedores */
    width: 100%; /* Ajustar al ancho del formulario */
    justify-content: center;
    align-items: center;
}

.form-home .imagen-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1; /* Mantener formato cuadrado */
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: #f1f1f1;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-home .imagen-container:hover {
    border-color: #007bff;
    background-color: #f7f9ff;
}

.form-home .imagen-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-home .imagen-container .preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    font-size: 24px;
    color: #bbb;
}

.form-home .imagen-container .preview img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.form-home .imagen-container .cargar-btn{
    margin-bottom: 10px;
}

.form-home .delete-icon {
    position: absolute;
    top: 5px; /* Colocarlo arriba del contenedor */
    right: 10px; /* Alineado a la derecha */
    font-size: 18px;
    color: #ff3333;
    cursor: pointer;
    z-index: 2;
    padding: 5px;
    transition: background-color 0.3s, color 0.3s ease;
}

.form-home .delete-icon:hover {
    color: #cc0000;
}

#tab-home .sobre-nosotros-container{
    display: flex;
    margin-top: 1em;
    gap: 20px;
}

.form-home .guardar-form{
    background-color: #007BFF;
    margin-top: 1em;
    font-size: 20px;
    float: right;
}

.form-home .guardar-form:hover{
    background-color: #00438b;
    color: white;
    border: none;
}

.noticias-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Siempre habrá 2 columnas */
    justify-content: space-between;
    border-radius: 8px;
    gap: 3em;
}

.noticias-container .noticia-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 1em;
}

.noticias-container .noticia-item h4 {
    font-size: 20px;
    color: #333;
    text-align: center;
}

.noticias-container input[type="text"], textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.noticias-container textarea {
    height: 80px;
    resize: vertical;
}

.noticias-container .imagen-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    position: relative;
}

.noticias-container .imagen-container img {
    width: 100%; /* La imagen ocupará todo el contenedor */
    object-fit: cover; 
    border-radius: 5px;
}

.noticias-container .btn-vaciar-noticia {
    background: #dc3545;
    width: 200px;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-end;
    font-size: 16px;
}

.noticias-container .btn-vaciar-noticia:hover {
    background: #c82333;
}


/*Tab - Academia*/

/* Estilo general para el tab */
#tab-academia {
    padding: 20px;
    font-family: Arial, sans-serif;
}

#tab-academia .tab-title{
    margin-bottom: 1em;
}

#tab-academia .section-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Estilos para el formulario de agregar cursos */
.form-agregar-curso {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.curso {
    margin-bottom: 20px;
}

.input-file {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Estilos para la lista de cursos */
.cursos-list {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.curso-card {
    position: relative;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contenedor del ícono */
.curso-header {
    position: absolute;
    top: 10px;
    right: 10px;
}

.curso-card .btn-delete-curso {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 25px; 
    color: #d33; 
    transition: transform 0.2s ease, color 0.2s ease;
}

.curso-card .btn-delete-curso:hover {
    color: #a00; 
    transform: scale(1.2);
}

.curso-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.curso-descripcion {
    font-size: 14px;
    margin-bottom: 10px;
}

.curso-imagen {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.curso-no-imagen {
    font-style: italic;
    color: #666;
}


/*Tab contacto*/
.form-contacto {
    width: 90%;
    border-radius: 10px;
}

.form-contacto .carrusel-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 20px; /* Espacio entre contenedores */
    width: 100%; /* Ajustar al ancho del formulario */
    justify-content: center;
    align-items: center;
}

.form-contacto .imagen-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1; /* Mantener formato cuadrado */
    border: 2px dashed #ccc;
    border-radius: 10px;
    background: #f1f1f1;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-contacto .imagen-container:hover {
    border-color: #007bff;
    background-color: #f7f9ff;
}

.form-contacto .imagen-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-contacto .imagen-container .preview {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    font-size: 24px;
    color: #bbb;
}

.form-contacto .imagen-container .preview img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.form-contacto .imagen-container .cargar-btn{
    margin-bottom: 10px;
}

.form-contacto .delete-icon {
    position: absolute;
    top: 5px; /* Colocarlo arriba del contenedor */
    right: 10px; /* Alineado a la derecha */
    font-size: 18px;
    color: #ff3333;
    cursor: pointer;
    z-index: 2;
    padding: 5px;
    transition: background-color 0.3s, color 0.3s ease;
}

.form-contacto .delete-icon:hover {
    color: #cc0000;
}


/*Tab de ayuda*/

#tab-ayuda {
    padding: 20px;
}

/* Formulario de Ayuda */
#tab-ayuda .form-ayuda {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 30px;
}

#tab-ayuda #faq-container .faq {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
}

.btn {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* Lista de FAQs */
#faq-list {
    margin-top: 20px;
}

.faq-card {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.faq-title {
    font-size: 18px;
    font-weight: bold;
}

.faq-descripcion {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.btn-delete-faq {
    background-color: transparent;
    border: none;
    color: #d33;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-delete-faq:hover {
    color: #a00;
    transform: scale(1.2);
}

/* ---------------------------- MAYORISTAS --------------------------------------- */

.contenedor-mayoristas h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    margin-top: 2em;
    color: #222;
    text-align: center;
}

.contenedor-mayoristas .formulario {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}


.contenedor-mayoristas input[type="number"] {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contenedor-mayoristas input[type="number"]:focus {
    border-color: #0077cc;
    outline: none;
}

.contenedor-mayoristas .btn-guardar {
    padding: 0.75rem 1rem;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contenedor-mayoristas .btn-guardar:hover {
    background-color: #005fa3;
}

.contenedor-mayoristas .tabla-wrapper {
    overflow-x: auto;
}

.contenedor-mayoristas .tabla-descuentos-mayoristas {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.contenedor-mayoristas .tabla-descuentos-mayoristas th,
.contenedor-mayoristas .tabla-descuentos-mayoristas td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.contenedor-mayoristas .tabla-descuentos-mayoristas thead {
    background-color: #f0f4f8;
}

.contenedor-mayoristas .btn-eliminar {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contenedor-mayoristas .btn-eliminar:hover {
    background-color: #c0392b;
}


/* DESCUENTOS GENERALES */

.contenedor-descuentos-general h2{
    margin: 2em 0 1em 0;
}

.tabla-descuentos {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 0.95rem;
    margin-top: 2em;
}


.tabla-descuentos thead th {
    background-color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.tabla-descuentos tbody tr {
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

.tabla-descuentos tbody tr:hover {
    background-color: #f0f8ff;
}

.tabla-descuentos td {
    padding: 12px 16px;
    color: #444;
}

.tabla-descuentos button {
    padding: 6px 12px;
    font-size: 0.85rem;
    border: none;
    background-color: #e74c3c;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tabla-descuentos button:hover {
    background-color: #c0392b;
}

.header-descuentos-generales{
    display: flex;
    justify-content: space-between;
    align-items: c;
}