/* style.css - Estilos personalizados */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2 {
  color: #007bff; /* azul primario */
  font-weight: 600;
}


#app { 
  padding: 1rem 0.5rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.content-bottom {
  margin-bottom: 150px;
}

.swal2-popup {
    font-size: 0.8rem;
}

.presentacionTitulo {
  font-size: 35px;
  font-weight: 600;
  color: #007bff; /* azul primario */
}

.presentacionTituloLow {
  font-size: 25px;
  font-weight: 500;
  color: #007bff; /* azul primario */
}

.navTitulo {
  font-weight: 700;
  color: #007bff; /* azul primario */
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.text-muted {
  font-size: 0.9rem;
  color: #6c757d !important;
}

/* 🌟 Animaciones SPA */

.view {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.view.show {
  opacity: 1;
  transform: translateY(0);
}

#loader {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  background-color: var(--loader-bg-color);
  transition: opacity 0.4s ease;
  opacity: 0;
}

#loader.show {
  display: flex;
  opacity: 1;
}

#loader.fade-out {
  opacity: 0;
}

/* Spinner más grande para pantallas pequeñas */
#loader .spinner-border {
  width: 4rem;
  height: 4rem;
  border-width: 0.4em;
}

html[data-bs-theme="light"] #loader {
  --loader-bg-color: rgba(255, 255, 255, 0.8);
  --loader-spinner-color: #0d6efd;
}

html[data-bs-theme="dark"] #loader {
  --loader-bg-color: rgba(0, 0, 0, 0.85);
  --loader-spinner-color: #ffc107;
}

#loader .spinner-border {
  color: var(--loader-spinner-color);
}

/* 🌟 Toast iOS */
html[data-bs-theme="dark"] #iosToast {
  background-color: rgba(255, 255, 255, 0.95); /* muestro los colores opuestos al tema para que resalte */
  color: #212529;
}

html[data-bs-theme="light"] #iosToast {
  background-color: rgba(33, 37, 41, 0.95); /* muestro los colores opuestos al tema para que resalte */
  color: #f8f9fa;
}

/* 🌟 Label Sin Definir */
html[data-bs-theme="dark"] #spnSinDefinir {
  color: #EDE85A;
  font-size: 12px;
}

html[data-bs-theme="light"] #spnSinDefinir {
  color: #941515;
  font-size: 12px;
}

.fs-item-list {
  font-size: 14px; 
  font-weight: 600;
}

.fs-alerta-cantidad {
  font-size: 15px; 
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 2px;
  color: #E32700;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s ease-in-out;
  border: 2px solid red !important;
  border-radius: 5px;
}

.offcanvas-bottom,
.offcanvas-top {
  --bs-offcanvas-height: 50vh;
}


/* Navbar siempre con el tema contrario */
html[data-bs-theme="light"] .navbar-contrario {
  background-color: #212529 !important; /* dark */
  color: #f8f9fa !important;
}

html[data-bs-theme="dark"] .navbar-contrario {
  background-color: #f8f9fa !important; /* light */
  color: #212529 !important;
}

/* Asegurar color de los links/botón */
html[data-bs-theme="light"] .navbar-contrario .navbar-brand,
html[data-bs-theme="light"] .navbar-contrario .btn {
  color: #f8f9fa !important;
}

html[data-bs-theme="dark"] .navbar-contrario .navbar-brand,
html[data-bs-theme="dark"] .navbar-contrario .btn {
  color: #212529 !important;
}


.menu-inferior {
  position: fixed; 
  background: rgb(255, 255, 255); 
  margin-top: 20px; 
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.753);
  width: 100%;
  bottom: 0; 
  left: 0;
  z-index: 990;
  cursor: pointer;
  color: #444; 
  font-size: 14px;
}

 
.menu-inferior-btn-plus {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0d6efd;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: none;
  margin-top: -30px;
  font-size: 28px;
}

.menu-inferior-btn-plus:hover {
  background-color: #0d6efd80;
}

/* parche para scroll en lista productos */
#lista-productos {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  height: calc(100vh - 200px);
}