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

/* Prevenir auto-zoom molesto en iOS Safari al tocar inputs */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

:root {
  /* Dynamic spring curves for buttery smooth animations */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);

  --bg-color: #050505;
  /* Tech glowing orb effect on the background */
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(5, 5, 5, 0) 60%);

  --surface: rgba(20, 20, 22, 0.6);
  --surface-border: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;

  /* Modern brand colors */
  --brand: #6366f1;
  --brand-glow: rgba(99, 102, 241, 0.4);
  --brand-gradient: linear-gradient(135deg, #6366f1, #a855f7);

  --error: #ef4444;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
}

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* Base button resets */
button {
  font-family: inherit;
}

/* Premium Glass Panel used across the app */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-border);
  /* Inner highlight and drop shadow for depth */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

/* Icon Buttons */
.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: transform 300ms var(--ease-spring), color 300ms var(--ease-smooth), background 300ms var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-btn:active {
  transform: scale(0.85);
}

@media(hover:hover) {
  .icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
  }
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--brand-gradient);
}