/* Importación de tipografías premium */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Chakra+Petch:wght@400;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Paleta de Colores Oscuro Cyber Sport (Volt Teal & Pink) */
  --bg: #07080d;
  --bg-card: #0d0f1a;
  --bg-input: #141727;
  --bg-active: #1c2037;
  
  --border: #1a1e32;
  --border-focus: #00f5d4;
  
  --text: #ffffff;
  --text-muted: #8b92b6;
  --text-dark: #4b5275;
  
  /* Colores de Acento (Cyber Neon Mint / Teal) */
  --accent: #00f5d4; 
  --accent-rgb: 0, 245, 212;
  --accent-dim: #00d4b8;
  --accent-soft: rgba(0, 245, 212, 0.05);
  --accent-border: rgba(0, 245, 212, 0.15);
  
  /* IA Coach Accent (Cyber Neon Pink / Magenta) */
  --purple: #ff007f; 
  --purple-soft: rgba(255, 0, 127, 0.06);
  --purple-border: rgba(255, 0, 127, 0.2);
  
  --red: #ff4d6d;
  --red-soft: rgba(255, 77, 109, 0.1);
  --green: #00f5a0;
  --green-soft: rgba(0, 245, 160, 0.1);
  --blue: #00bfff;
  --blue-soft: rgba(0, 191, 255, 0.1);
  
  /* Geometría y bordes */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  
  /* Zonas de seguridad para PWA */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, .card-subtitle, .drawer-title, .section-title, .ob-slide div[style*="font-size:24px"] {
  font-family: 'Chakra Petch', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea, select, button {
  font-family: inherit;
  color: inherit;
}

/* Enrutador principal de vistas SPA */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  padding-bottom: calc(80px + var(--safe-bottom));
}

.view::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.view.hidden {
  display: none !important;
}

/* Animación de entrada para vistas */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Clases utilitarias */
.font-mono {
  font-family: 'DM Mono', monospace;
}

.text-accent {
  color: var(--accent);
}

.text-purple {
  color: var(--purple);
}

.text-muted {
  color: var(--text-muted);
}

.w-full {
  width: 100%;
}
