/* ==========================================================================
   DIGITIENDA DESIGN SYSTEM - CSS TOKENS & RESET
   ========================================================================== */

:root {
  /* Color de Realce Dinámico (Personalizable por el usuario) */
  --color-primary: #10b981;          /* Default Esmeralda */
  --color-primary-dark: #059669;
  --color-primary-light: #d1fae5;
  --header-gradient: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
  
  --color-accent: #f59e0b;           /* Ámbar cálido */
  --color-accent-light: #fef3c7;
  
  --color-danger: #ef4444;           /* Rojo para deudas y alertas */
  --color-danger-dark: #dc2626;
  --color-danger-light: #fee2e2;
  
  --color-success: #10b981;          /* Verde para abonos y cuentas saldadas */
  --color-success-light: #d1fae5;

  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;

  /* Fondos y Superficies */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  
  /* Textos */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Bordes & Sombras */
  --border-color: #e2e8f0;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Dimensiones */
  --nav-height: 68px;
  --header-height: auto;
  --max-content-width: 540px;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
}

#app-root {
  width: 100%;
  max-width: var(--max-content-width);
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.main-content {
  flex: 1;
  padding-bottom: calc(var(--nav-height) + 24px);
}

.view-container {
  padding: 16px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-main);
}

.font-bold { font-weight: 700; }
.font-small { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-debt { color: var(--color-danger-dark); }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary-dark); }
.text-whatsapp { color: var(--color-whatsapp-dark); }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }


#btn-view-instructions{
  display: none;
}