/* ── Tokens de marca extraídos del SVG ── */
:root {
  --brand-navy:   #101E2E;
  --brand-blue:   #336FB6;
  --brand-gray:   #6E7888;

  --bg:           #0A0E17;
  --surface:      #101E2E;
  --surface-2:    #16253A;
  --border:       rgba(51, 111, 182, 0.18);
  --border-soft:  rgba(255, 255, 255, 0.06);

  --accent:       #336FB6;
  --accent-hover: #2A5C9A;
  --accent-glow:  rgba(51, 111, 182, 0.30);

  --text:         #EFF4FC;
  --text-muted:   #8BA0BE;
  --text-dim:     #4A607A;

  --success:      #22C55E;
  --success-bg:   rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.30);
  --error:        #EF4444;
  --error-bg:     rgba(239, 68, 68, 0.12);
  --error-border: rgba(239, 68, 68, 0.30);

  --radius-lg:    20px;
  --radius:       14px;
  --radius-sm:    8px;
  --topbar-h:     60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; -webkit-tap-highlight-color: transparent; }

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 0 16px;
}

.topbar-logo {
  height: 28px;
  width: auto;
}

.btn-home {
  position: fixed;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  transition: background 0.2s, color 0.2s;
}
.btn-home:hover { background: var(--accent); color: white; }
.btn-home.hidden { display: none; }

/* ── Contenedor principal ── */
#app {
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

/* ── Pantallas ── */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - var(--topbar-h));
  padding: 28px 20px 40px;
}
.screen.active {
  display: flex;
  animation: screenIn 0.22s ease;
}

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

/* ── Escudo / avatar central ── */
.escudo {
  width: 120px;
  height: auto;
  margin: 10px auto 28px;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(51, 111, 182, 0.25));
}

/* ── Tipografía ── */
h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 6px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
