/* ==========================================================================
   SISTEMA DE DISEÑO - PORTAL JARVIS (UI PREMIUM GLASSMORPHIC)
   ========================================================================== */

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

:root {
  /* Paleta de Colores */
  --bg-dark: #090a0f;
  --bg-card: rgba(18, 20, 29, 0.5);
  --bg-card-hover: rgba(26, 29, 41, 0.7);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 229, 255, 0.5);
  
  --primary-glow: linear-gradient(135deg, #00e5ff 0%, #7d2ae8 100%);
  --primary-accent: #00e5ff;
  --secondary-accent: #7d2ae8;
  --text-primary: #f0f2f5;
  --text-secondary: #90a0b7;
  --text-muted: #5e6b7e;
  
  --danger-color: #ff3b30;
  --success-color: #34c759;
  --warning-color: #ff9500;
  
  /* Sombras y Efectos */
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --accent-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
  --blur-amount: 16px;
  
  /* Fuentes */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Degradados de fondo decorativos en movimiento */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(125, 42, 232, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* Tipografía general */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Estilo contenedor general */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ==========================================================================
   ESTILOS DE COMPONENTES COMUNES
   ========================================================================== */

/* Efecto Glassmorphic base */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Inputs Premium */
.input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-field {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: var(--accent-shadow);
  background: rgba(255, 255, 255, 0.06);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 2.4rem;
  color: var(--text-muted);
  width: 1.2rem;
  height: 1.2rem;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-field:focus + .input-icon {
  color: var(--primary-accent);
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-glow);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4), 0 0 10px rgba(125, 42, 232, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.btn-danger {
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #ff453a;
}

.btn-danger:hover {
  background: rgba(255, 59, 48, 0.3);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.2);
}

/* Modales / Formularios emergentes */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Notificaciones visuales (Toast) */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  background: rgba(18, 20, 29, 0.9);
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.toast.success {
  border-left: 4px solid var(--success-color);
}

.toast.error {
  border-left: 4px solid var(--danger-color);
}

.toast.warning {
  border-left: 4px solid var(--warning-color);
}

/* Animaciones globales */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
  50% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); }
  100% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
}
