/* Thrive Preliminares PWA Stylesheet */
:root {
  --thrive-blue: #1B365D;
  --thrive-blue-dark: #0F1E33;
  --thrive-orange: #FF8200;
  --thrive-orange-hover: #e67600;
  --thrive-green: #10B981;
  --thrive-action-green: #70B82C;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Thrive Brand Specific Utility Classes */
.bg-thrive-blue { background-color: #1B365D !important; }
.bg-thrive-dark { background-color: #0F1E33 !important; }
.bg-thrive-orange { background-color: #FF8200 !important; }
.bg-thrive-orange:hover { background-color: #e67600 !important; }
.text-thrive-blue { color: #1B365D !important; }
.text-thrive-orange { color: #FF8200 !important; }
.border-thrive-orange { border-color: #FF8200 !important; }
.focus\:border-thrive-blue:focus { border-color: #1B365D !important; }

/* Botón Verde Acción Thrive */
button.bg-thrive-green-btn,
.bg-thrive-green-btn {
  background-color: #70B82C !important;
  color: #ffffff !important;
  border: 1px solid #609F25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
button.bg-thrive-green-btn:hover,
.bg-thrive-green-btn:hover {
  background-color: #609F25 !important;
  color: #ffffff !important;
}

/* Tarjeta Dimensionamiento Técnico */
.card-dimensionamiento {
  background: linear-gradient(135deg, #1B365D 0%, #0F1E33 100%) !important;
  color: #ffffff !important;
}

/* Círculos numerados de pasos */
.step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: #ecf7e4;
  color: #558d1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Badge Prueba Interactiva */
.badge-prueba {
  background-color: #eaf5db;
  color: #487a19;
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

/* Banner Informativo */
.banner-aviso {
  background-color: #fff9eb;
  border: 1px solid #fde8bb;
  color: #855913;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Cuadro SYS */
.box-sys {
  background-color: #f8fafc;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #f1f5f9;
}

/* Dropzone Carga de Archivos */
.dropzone-card {
  border: 2px dashed #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  background-color: #f8fafc;
  text-align: center;
  transition: all 0.2s ease-in-out;
}
.dropzone-card:hover {
  border-color: #cbd5e1;
}

/* Micro Typography & Responsive Helpers */
.text-\[10px\] { font-size: 10px !important; line-height: 14px !important; }
.text-\[11px\] { font-size: 11px !important; line-height: 15px !important; }
.active\:scale-\[0\.99\]:active { transform: scale(0.99) !important; }

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 90vw;
  width: 24rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFFFFF;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease-in-out;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success { background-color: #059669; border-left: 5px solid #34D399; }
.toast-danger  { background-color: #DC2626; border-left: 5px solid #F87171; }
.toast-warning { background-color: #D97706; border-left: 5px solid #FBBF24; }
.toast-info    { background-color: #2563EB; border-left: 5px solid #60A5FA; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(1rem) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(1rem) scale(0.95); }
}

/* Glassmorphism Accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

/* Custom Scrollbar for mobile */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* Bloqueo estricto de scroll en fondo para modales móviles (Scroll Chaining Fix) */
body.modal-open,
html.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
}

.modal-sheet-scroll {
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}
