/* ============================================================
   main.css — estilos base de Seguimiento de Regiones
   ============================================================ */
:root {
  --brand-900: #003057;
  --brand-700: #0055a5;
  --brand-500: #0072CE;
  --brand-100: #e6f0fa;
  --bg: #f1f5f9;
  --surface: #fff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0,85,165,.35); border-radius: 6px; }
a { color: var(--brand-700); }

/* Navbar */
.navbar {
  background: var(--brand-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.navbar-brand { display: flex; flex-direction: column; }
.navbar-title { font-size: 14px; font-weight: 700; line-height: 1.2; }
.navbar-sub { font-size: 10.5px; opacity: .7; }
.navbar-user { display: flex; align-items: center; gap: 14px; }

.nav-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link--active { background: rgba(255,255,255,.15); color: #fff; }

.btn-login {
  background: #fff;
  color: var(--brand-700);
  border: none;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-login:hover { background: var(--brand-100); }

/* User avatar dropdown */
.user-center { position: relative; }
.user-avatar-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 220px;
  padding: 10px 0;
  color: var(--text);
  z-index: 200;
}
.user-dropdown-name { padding: 6px 16px; font-weight: 700; font-size: 13px; }
.user-dropdown-email { padding: 0 16px 8px; font-size: 12px; color: var(--text-muted); }
.user-dropdown-divider { border-top: 1px solid var(--border); margin: 6px 0; }
.user-dropdown-meta { display: flex; justify-content: space-between; padding: 4px 16px; font-size: 12px; color: var(--text-muted); }
.user-dropdown-label { font-weight: 600; }
.user-dropdown-logout {
  width: 100%; text-align: left;
  padding: 8px 16px;
  background: none; border: none;
  font-size: 13px; color: #b91c1c;
  cursor: pointer;
}
.user-dropdown-logout:hover { background: #fef2f2; }

/* Container */
.container { max-width: 1280px; margin: 0 auto; padding: 24px 22px 64px; }

/* Messages */
.alert { padding: 10px 14px; border-radius: 7px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff;
}

/* Login */
.login-gate {
  min-height: calc(100vh - 56px - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.login-logo { font-size: 48px; margin-bottom: 16px; }
.login-box h1 { font-size: 22px; color: var(--brand-900); margin-bottom: 10px; }
.login-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--brand-700);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .14s;
}
.btn-google:hover { background: var(--brand-900); color: #fff; }
.btn-google svg { flex-shrink: 0; background: #fff; border-radius: 3px; padding: 1px; }
.login-error { color: #b91c1c; font-size: 12px; margin-top: 12px; }
