* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  min-height: 100%;
  height: auto;
  position: relative;
  background-color: #f8f9fa;
  color: #292929;
  overflow-x: hidden;
}

#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

#mouse-illumination {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
  transition: background 0.15s;
}

header {
  background-color: #292929;
  padding: 1rem 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  height: 50px;
  transition: box-shadow 0.3s, filter 0.3s;
  border-radius: 12px;
  cursor: pointer;
}

.logout-option,
.login-option,
.register-option {
  cursor: pointer;
}

#custom-message-viewer{
  display:none;
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  min-width:320px;
  max-width:90vw;
  padding:24px 32px 56px 32px;
  border-radius:18px;
  border:1.5px solid rgba(255,255,255,0.35);
  background:rgba(255,255,255,0.18);
  box-shadow:0 8px 32px 0 rgba(31,38,135,0.37);
  color:#222;
  z-index:1000;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  overflow:hidden;
}

#custom-message-text{
  color: #003cff;
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  word-spacing: 2px;
  display:block;
  max-height:300px;        /* Adjust as needed */
  overflow-y:auto;
  margin-bottom:16px;
  padding-right:8px;       /* For scrollbar space */
}

.custom-message-close{
  position:absolute;
  bottom:16px;
  right:24px;
  padding:8px 18px;
  border:none;
  border-radius:8px;
  background:rgb(255, 255, 255);
  color:#222;
  font-weight:bold;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(31,38,135,0.12);
  transition:background 0.2s linear;
}

.custom-message-close:hover{
  background:rgba(255, 255, 255, 0.489);
} 

.whatsapp-image,
.instagram-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
  transition: box-shadow 0.3s, filter 0.3s;
  width: 70px;
  height: 70px;
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.whatsapp-image{
  bottom: 20px;
  right: 20px;
}

.instagram-image{
  bottom: 100px;
  right: 20px;
}

header img:hover,
.whatsapp-image:hover,
.instagram-image:hover {
  box-shadow: 0 0 15px 4px #0d6efd, 0 0 20px 5px #0dcaf0;
  filter: brightness(1.15) drop-shadow(0 0 4px #0d6efd);
}

.sidebar-logo {
  display: none;
  width: 64px;      /* Adjust as needed */
  height: auto;
  margin: 24px auto 32px 24px; /* Top, right, bottom, left */
  z-index: 1000;
}

.nav-title{
flex: 1;
text-align: center;
color: #ffffff;
font-size: 1.2rem;
font-weight: 700;
letter-spacing: 0.02em;
z-index: 1;
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: #00a3ff;
  text-decoration: underline;
}

.nav-item:hover {
  text-decoration: underline;
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: #e9ecef;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.download-btn {
  background: #00a3ff;
  padding: 1rem 2rem;
  color: white;
  border: none;
  font-size: 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s linear;
  display: inline-block;
}

section {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
}

h2 {
  margin-bottom: 1rem;
  color: #007bff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

footer {
  background: #292929;
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.service-card:hover {
  background: rgb(210, 235, 255);
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dl:hover {
  background-color: #015cbc;
  transform: scale(1.2);
  box-shadow: black 0px 2px 2px 1px;
}

.download-btn:hover {
  background-color: #015cbc;
}

.download-btn:active {
  background-color: #5c91c9;
  box-shadow: black 0px 0px 0px 0px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #0d6efd;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 12px 10px 12px 0;
  cursor: pointer;
  margin: 10px 0 0 8px;
  transition: color 0.2s;
}
.back-btn:hover {
  color: #0a58ca;
  text-decoration: underline;
}
.back-btn svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
#modalOverlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.35);
  justify-content: center;
  align-items: center;
  overflow:hidden;
}
#modalBox {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px 18px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  min-width: 280px;
  max-width: 90vw;
  text-align: center;
  position: relative; /* Make sure this is set */
}

#modalClose {
  position: absolute;
  top: 2px;
  right: 2px; /* Change from 12px to 8px or 0px for tighter fit */
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #888;
  cursor: pointer;
  z-index: 10;
}
#modalBox input[type="number"] {
  width: 80px;
  padding: 6px;
  font-size: 1.1rem;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#modalBox button {
  margin: 10px 8px 0 8px;
  padding: 7px 18px;
  border: none;
  border-radius: 5px;
  background: #0d6efd;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s linear;
}
#modalBox button:hover {
  background: #0a58ca;
}
#modalResult {
  margin-top: 12px;
  font-weight: 500;
  color: #0d6efd;
}

.glass-card {
  --glass-x: 50%;
  --glass-y: 50%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 32px 24px;
  transition: box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  color: #222;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s, background 0s;
  opacity: 0.18;
  background: radial-gradient(circle at var(--glass-x, 50%) var(--glass-y, 50%), #0dcaf0 0%, transparent 70%);
}

.glass-card:hover {
  box-shadow: 0 0 24px 4px #0d6efd, 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-color: #0dcaf0;
}

.glass-card:hover::before {
  opacity: 0.35;
}

.glass-card * {
  position: relative;
  z-index: 1;
}

.table-responsive {
  margin: 24px 0;
  padding: 0;
  border-radius: 18px;
  overflow-x: auto;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(13, 202, 240, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  transition: box-shadow 0.3s, border-color 0.3s;
  max-width: 100vw;
}

.table-responsive:hover {
  box-shadow: 0 0 24px 4px #0d6efd33, 0 8px 32px 0 rgba(31, 38, 135, 0.13);
  border-color: #0dcaf0;  
}

#inventario {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
  }
  #inventario thead {
    background: linear-gradient(90deg, #0d6efd 0%, #0dcaf0 100%);
    color: #fff;
  }
  #inventario th, #inventario td {
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
  }
  #inventario tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s linear;
  }
  #inventario tbody tr:nth-child(even) {
  background: #f6fafd;
  }
  #inventario tbody tr:hover {
    background: #a1c8f5;
  }
  #inventario th:first-child, #inventario td:first-child {
    border-left: none;
  }
  #inventario th:last-child, #inventario td:last-child {
    border-right: none;
  }

.desc-cell {
  word-break: break-word;
  hyphens: auto;
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 1rem;
  z-index: 1101;
}

#global-loader {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#global-loader .loader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2px);
}

#global-loader .loader-content {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
}
#global-loader .loader-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #2196f3;
  border-top: 5px solid #e3e3e3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#global-loader .loader-message {
  font-size: 1.1rem;
  color: #222;
  text-align: center;
}
@media (max-width: 1100px) {
  .navbar {
    flex-direction: column;      /* Stack items vertically */
    align-items: flex-start;     /* Align to left */
    padding: 10px;
  }
  .navbar-logo {
    margin-bottom: 10px;
  }
  .navbar-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 40vw;
    max-width: 320px;
    height: 100vh;
    background: #292929;;
    z-index: 1100;
    box-shadow: 2px 0 24px 4px #0d6efd33;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    padding-left: 2rem;
    padding-top: 3rem;
  }
  .navbar-menu.open {
    transform: translateX(0);
  }
  .navbar-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 1200;
  }
  header {
    flex-wrap: nowrap;
  }
  .navbar-menu a {
    font-size: 14px;
    padding: 6px 0;
  }
  .whatsapp-image,
  .instagram-image{
  width: 30px;
  height: 30px;
  border-radius: 19.5px;
  cursor: pointer;
  }
  .instagram-image{
  bottom: 70px;
  }
  .table-responsive {
    border-radius: 6px;
    margin: 12px 0;
    max-width: 100vw;
    overflow-x: auto;
  }
  #inventario {
    width: 100%;
    min-width: unset;
    max-width: 100vw;
    font-size: 0.97rem;
  }
  #inventario thead {
    display: none;
  }
  #inventario tr {
    margin-bottom: 18px;
    background: #d9dcdc;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border-radius: 6px;
    padding: 10px 0;
    box-sizing: border-box;
  }
  #inventario td {
    position: relative;
    min-height: 40px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }
  #inventario td:before {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: #0d6efd;
    content: attr(data-label);
  }  
  #inventario td, #inventario th {
    padding-left: 8px;
    padding-right: 2px;
    font-size: 0.97rem;
  }
  
  #loader {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 2rem;
    color: #0d6efd;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: none;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    animation: loaderFade 1.2s infinite alternate;
  }
  @keyframes loaderFade {
    from { opacity: 0.6; }
    to   { opacity: 1; }
  }
  #error {
    color: #dc3545;
    font-weight: bold;
    margin: 20px 0;
  }
  
  .back-btn {
    font-size: 1rem;
    padding: 10px 0 10px 0;
    margin-left: 2px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}