:root {
  --primary-color: #d9c2b2;
  --secondary-color: #a88f7d;
  --dark-accent: #5a3d2b;
  --light-bg: #f3f3f9;
  --menu-bg: #2e3b8e;
  --border-radius: 49px;
  --shadow: 0 4px 13px rgba(0, 0, 0, 0.1);
}
@font-face {
    font-family: 'Badhorse';
    src: url('../fonts/badhorse.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
/* ESTILOS PARA EL FORMULARIO DE LOGIN */
.login-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 350px;
}

.login-container h2 {
  font-family: 'Badhorse', sans-serif;
  margin-bottom: 20px;
  color: #4d3e3e;
}

.login-container input {
  width: 50%;
  padding: 12px;
  margin: 10px 10px 10px 10px;
  border: 4px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.login-container button {
  width: 100%;
  padding: 12px;
  background: var(--dark-accent);
  color: white;
  border: none;
  border-radius: 22px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-container button:hover {
  background: #432d20;
}

.error-message {
  color: red;
  margin-top: 10px;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  padding: 10px 15px; /* Reducimos el padding */
  box-shadow: var(--shadow);
  z-index: 100;
  display: flex;
  flex-direction: row; /* Asegura que los elementos estén alineados en fila */
  align-items: center;
  justify-content: space-between; /* Distribuye el contenido */
  height: 44px; /* Ajustamos la altura */
}
.logo img {
    height: 63px; /* Ajusta el tamaño del logo */
}
.logologin img {
    height: 121px; /* Ajusta el tamaño del logo */
}

/* Ajuste de los botones del header */
.header-buttons {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;     /* Centra verticalmente, si es necesario */
  gap: 13px;

}

/* Asegurar que el título y los botones se alineen correctamente */
.header-container {
  display: flex;
  align-items: center;
  gap: 33px;
}

/* BODY */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding-top: 66px; /* Ajustado para que el header no tape el contenido */
  padding-bottom: 70px; /* Espacio para el menú inferior */
  background-color: var(--light-bg); 
}
h3 {
    font-family: 'Badhorse', sans-serif;
    font-size: 24px; /* Ajusta el tamaño según necesites */
    font-weight: normal;
}


/* CONTENEDORES */
.container {
  max-width: 600px;
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 13px;
  gap: 4px; /* Más espacio entre elementos */
}

.agregar {
  background: white;
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
  width: 90%; /* Ocupa el 90% en pantallas pequeñas */
  max-width: 600px; /* No más de 600px en pantallas grandes */
  margin: 22px auto; /* Centrar horizontalmente */
  text-align: center; /* Centrar contenido */
}



/* Contenedor flex para Select y Saldo */
.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* Ajuste para el saldo */
#saldoMonedero {
  font-size: 16px;
  font-weight: bold;
  color: var(--dark-accent);
  white-space: nowrap;
}

/* Ajuste para el input y botón juntos */
.input-group input {
  flex: 1;
}

.input-group button {
  padding: 12px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* Resaltar la opción activa */
.bottom-menu a.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-bottom: 3px solid white;
  font-weight: bold;
}

/* ETIQUETAS MÁS GRANDES Y SEPARADAS */
label {
  font-size: 18px;
  font-weight: bold;
  color: var(--dark-accent);
  display: block;
  margin-bottom: 10px;
}

/* CAMPOS DE ENTRADA MÁS GRANDES Y REDONDEADOS */
input, select, textarea {
  width: 80%;
  padding: 13px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border 0.3s ease, box-shadow 0.3s ease;
  margin: 2px;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 8px rgba(168, 143, 125, 0.5);
  outline: none;
}

/* TABLAS MEJORADAS */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
  background: white;

  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 4px; /* Más separación */
}



td {
  padding: 14px;
  border-bottom: 1px solid #ddd;
}

/* Encabezado de la tabla (thead) se mantiene igual */
table thead th {
  background: var(--secondary-color); /* o el color que tengas definido */
  color: white;
  padding: 14px;
  text-align: left;
}

/* Cuerpo de la tabla (tbody) fondo blanco */
table tbody {
  background: white;
}

/* Filas del pie de tabla (tfoot) fondo gris claro */
table tfoot tr {
  background-color: #f0f0f0;
}

table tfoot td {
  padding: 14px;
  font-weight: bold;
}



.session-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px auto; /* Centra la tabla */
}

.session-table th,
.session-table td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: center; /* Centrar texto */
}

.session-table th {
  background: #a88f7d; /* Color de fondo para los títulos */
  color: white;
  width: 40%;
  font-weight: bold;
}

.session-table td {
  background: #ffffff; /* Color de fondo para las celdas */
  font-size: 16px;
}


/* MÁS SEPARACIÓN ENTRE LISTAS Y BOTONES */
.lista-container {
  margin-bottom: 40px;
}

/* LISTAS SCROLLABLES CON MÁS ESPACIO Y BORDES REDONDEADOS */
#listaClientes, #listaProductos, #resumenSesion {
  max-height: 300px;
  overflow-y: auto;
  border: 13px solid #ddd;
  padding: 15px;
  margin-top: 15px;
  background: white;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
}

/* BOTONES MEJORADOS */
button {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 16px 20px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  font-size: 16px;
  font-weight: bold;
  margin: 10px; /* Más separación */
}

button:hover {
  background: #8c7665;
}

button:active {
  transform: scale(0.95);
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  position: relative;
  text-align: center;
  max-height: 80vh;    /* 80% de la altura de la ventana */
  overflow-y: auto;    /* Activa scroll vertical si es necesario */
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: red;
}

.close-btn:hover {
    color: darkred;
}
#listaClientesModal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#listaClientesModal th,
#listaClientesModal td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

#listaClientesModal th {
  background: var(--secondary-color);
  color: white;
  font-weight: bold;
}

.modal img {
    width: 100px; /* Ajusta el tamaño según necesites */
    height: auto;
    object-fit: cover;
}

/* MENÚ INFERIOR */
.bottom-menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff; /* Fondo blanco */
  box-shadow: 0 -6px 10px rgba(0, 0, 0, 0.1); /* Sombra para distinguir el menú */
  display: flex;
  justify-content: space-around;
  padding: 1px 0;
  z-index: 1000;
}


/* Estilo para los elementos del menú */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4d3e3e;
    font-family: 'Badhorse', sans-serif;
    font-size: 14px;
    position: relative;
}

/* Solo el item activo muestra el texto y escala el icono */
.menu-item.active lottie-player {
  transform: scale(1.2);
  transition: transform 0.3s ease-in-out;
}

/* Por defecto, el texto (span) está oculto */
.menu-item span {
    display: none;
    margin-top: 4px;
    font-size: 13px;
}

.menu-item.active span {
    display: block;
}

/* Si deseas mantener las clases de iconos para uso en otros elementos (por ejemplo, background-image), puedes conservarlas: */
.clientes-icon {
    background-image: url('icon-clientes.svg');
}
.pedidos-icon {
    background-image: url('icon-pedidos.svg');
}
.sesiones-icon {
    background-image: url('icon-sesiones.svg');
}

/* Pestaña oculta por defecto */
.oculto {
  display: none;
}

/* Contenedor de la lista de productos */
#contenedorProductos {
  position: fixed;
  right: -400px; /* Fuera de la pantalla al inicio */
  top: 50px;
  width: 350px;
  background: white;
  border-radius: 10px 0 0 10px;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
  padding: 15px;
  transition: right 0.3s ease-in-out;
}

/* Mostrar cuando está activo */
#contenedorProductos.mostrar {
  right: 0;
}

/* Encabezado con título y botón de cerrar */
.productos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  color: white;
  padding: 10px;
  border-radius: 10px 0 0 0;
}

/* Botón cerrar dentro de la pestaña */
.productos-header .close {
  font-size: 20px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

.productos-header .close:hover {
  color: red;
}


/* Estilos para cada "card" de producto dentro del modal */
.producto-item {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.producto-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.producto-item h4 {
  margin: 10px 0 5px;
}

.producto-item p {
  margin: 5px 0;
}

.producto-item button {
  background: #a88f7d;
  border: none;
  color: #fff;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.producto-item button:hover {
  background: #8c7665;
}



/* MEDIA QUERIES PARA TELÉFONOS */
@media (max-width: 768px) {
  .panel {
    width: 93%;
    
  }
  body {
  padding-top: 63px; /* Ajustado para que el header no tape el contenido */
  background-color: var(--light-bg);
}

  table {
    font-size: 12px;
    width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 20px;
  border: 1px solid #ccc;
  }

  button {
    padding: 12px 8px;
    font-size: 14px;
    margin: 8px;
  }

  label {
    font-size: 16px;
  }

  input, select, textarea {
    font-size: 14px;
    padding: 14px;
    margin: 2px;
  }
  header h1 {
    font-size: 18px;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header {
    padding: 8px 10px; /* Ajusta el padding en pantallas pequeñas */
  }

   .agregar {
    width: 95%; /* Más ancho en móviles */
    padding: 15px;
  }
}

 


/* Ajuste extra para móviles más pequeños (menor a 480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 13px; /* Aún más pequeño en móviles */
    max-width: 70%; /* Reduce el ancho para evitar desbordes */
    padding: -10px;
  }

}




