@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta de Colores (Tema Oscuro Premium) */
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --border-glass: rgba(255, 255, 255, 0.07);
  --shadow-glass: rgba(0, 0, 0, 0.3);
  
  --color-primary: #6366f1;       /* Indigo */
  --color-primary-hover: #4f46e5;
  --color-accent: #06b6d4;        /* Cyan */
  --color-accent-hover: #0891b2;
  
  --color-success: #10b981;       /* Esmeralda */
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-warning: #f59e0b;       /* Ámbar */
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-danger: #ef4444;        /* Rojo */
  --color-danger-bg: rgba(239, 68, 68, 0.15);
  --color-info: #3b82f6;          /* Azul */
  --color-info-bg: rgba(59, 130, 246, 0.15);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  
  /* Fuentes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Radios de borde */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Estilos PWA y Contenedores */
#app-container {
  width: 100%;
  max-width: 480px; /* Tamaño máximo simulando pantalla móvil */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Animación de Transición de Pantallas */
.view-section {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 20px;
  padding-bottom: 90px; /* Espacio para el bottom nav */
  animation: fadeIn var(--transition-normal);
}

.view-section.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}
