/* src/views/pages/css/base.css */
:root {
  --app-height: 100dvh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #09101d;
  color: #f1f5f9;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: var(--app-height);
  width: 100vw;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: var(--app-height);
  z-index: 1;
  display: block;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, #1e3a5f 0%, #132338 55%, #09101d 100%);
}

.portal-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: var(--app-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--safe-top) + 24px) clamp(16px, 4vw, 32px) calc(var(--safe-bottom) + 20px) clamp(16px, 4vw, 32px);
}

/* Selector multilingüe con banderas (idéntico a ALBA y NORA) */
.lang-switch-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s, transform 0.1s;
}

.lang-btn:hover {
  opacity: 0.95;
  transform: scale(1.08);
}

.lang-btn.active {
  opacity: 1;
  border-color: #2da44e;
  background: rgba(45, 164, 78, 0.14);
}

.lang-btn svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}