/* =====================================================================
   GA · Sistema visual (rediseño 2026)
   Tokens y componentes compartidos por la pagina comercial, el acceso
   y el panel. Todo lo nuevo vive bajo body.ga-v3 para no chocar con
   los estilos anteriores (styles.css) que siguen cargados.
   ===================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/legacy/fonts/Inter-Variable-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/legacy/fonts/Manrope-VariableFont_wght.woff2) format("woff2");
}

:root {
  --ga-blue: #0866f5;
  --ga-blue-bright: #1685ff;
  --ga-blue-hover: #0657d4;
  --ga-navy: #071b3d;
  --ga-navy-2: #102e62;
  --ga-navy-3: #0b2650;
  --ga-blue-soft: #eaf3ff;
  --ga-bg: #f5f8fd;
  --ga-white: #ffffff;
  --ga-text: #10213d;
  --ga-text-2: #64748b;
  --ga-text-3: #94a3b8;
  --ga-line: #dfe8f4;
  --ga-line-2: #edf2f9;
  --ga-success: #10b981;
  --ga-success-soft: #e7f8f1;
  --ga-warning: #f59e0b;
  --ga-warning-soft: #fff4e0;
  --ga-error: #ef4444;
  --ga-error-soft: #fdecec;
  --ga-violet: #8b5cf6;
  --ga-violet-soft: #f1ecfe;

  --ga-font: "Inter", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ga-r-sm: 8px;
  --ga-r: 12px;
  --ga-r-lg: 14px;
  --ga-r-xl: 20px;
  --ga-shadow-sm: 0 1px 2px rgba(16, 33, 61, 0.05);
  --ga-shadow: 0 1px 2px rgba(16, 33, 61, 0.04), 0 6px 20px rgba(16, 33, 61, 0.06);
  --ga-shadow-lg: 0 24px 60px rgba(7, 27, 61, 0.18);
  --ga-ring: 0 0 0 3px rgba(8, 102, 245, 0.22);
  --ga-t: 180ms ease;
}

body.ga-v3 {
  margin: 0;
  background: var(--ga-bg);
  color: var(--ga-text);
  font-family: var(--ga-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.ga-v3 h1, body.ga-v3 h2, body.ga-v3 h3, body.ga-v3 h4 {
  font-family: var(--ga-font);
  color: var(--ga-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
body.ga-v3 a { color: var(--ga-blue); }
body.ga-v3 *, body.ga-v3 *::before, body.ga-v3 *::after { box-sizing: border-box; }

/* Iconos */
.ga-ico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }

/* Texto solo para lectores de pantalla */
.ga-sr {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Marca GA */
.ga-logo-mark {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(145deg, var(--ga-blue-bright), var(--ga-blue));
  color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(8, 102, 245, 0.32);
}
.ga-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ga-text); }
.ga-brand strong { display: block; color: var(--ga-navy); font-size: 15px; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.ga-brand strong small { display: block; font-size: 15px; font-weight: 800; color: inherit; }

/* Botones */
body.ga-v3 .ga-btn, body.ga-v3 .primary-btn, body.ga-v3 .msa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--ga-blue); background: var(--ga-blue); color: #fff;
  font: 600 14px/1 var(--ga-font); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(8, 102, 245, 0.22);
  transition: background var(--ga-t), box-shadow var(--ga-t), transform var(--ga-t), border-color var(--ga-t);
}
body.ga-v3 .ga-btn:hover, body.ga-v3 .primary-btn:hover, body.ga-v3 .msa-btn:hover { background: var(--ga-blue-hover); border-color: var(--ga-blue-hover); }
body.ga-v3 .ga-btn:active, body.ga-v3 .primary-btn:active { transform: translateY(1px); }
body.ga-v3 .ga-btn.light, body.ga-v3 .msa-btn.light, body.ga-v3 .outline-inline {
  background: #fff; color: var(--ga-blue); border: 1px solid #b9d3fb; box-shadow: none;
}
body.ga-v3 .ga-btn.light:hover, body.ga-v3 .msa-btn.light:hover, body.ga-v3 .outline-inline:hover { background: var(--ga-blue-soft); border-color: var(--ga-blue); }
body.ga-v3 button:disabled, body.ga-v3 .primary-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Foco visible */
body.ga-v3 :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none; box-shadow: var(--ga-ring); border-radius: 8px;
}

/* Campos */
body.ga-v3 :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  font: 400 14px/1.4 var(--ga-font); color: var(--ga-text);
  background: #fff; border: 1px solid var(--ga-line); border-radius: 10px;
  transition: border-color var(--ga-t), box-shadow var(--ga-t);
}
body.ga-v3 :is(input, select, textarea)::placeholder { color: var(--ga-text-3); }
body.ga-v3 :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus {
  outline: none; border-color: var(--ga-blue); box-shadow: var(--ga-ring);
}
body.ga-v3 input[type=checkbox], body.ga-v3 input[type=radio] { accent-color: var(--ga-blue); }

/* Avisos (sustituyen a las ventanas de alerta del navegador) */
.ga-toasts { position: fixed; z-index: 1000; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.ga-toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--ga-navy); color: #fff; font: 500 13.5px/1.45 var(--ga-font);
  box-shadow: var(--ga-shadow-lg); animation: ga-toast-in 200ms ease;
}
.ga-toast .ga-ico { width: 18px; height: 18px; margin-top: 1px; }
.ga-toast.is-error { background: #7f1d1d; }
.ga-toast.is-ok { background: #065f46; }
.ga-toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: 0.7; cursor: pointer; padding: 0; }
@keyframes ga-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  body.ga-v3 *, body.ga-v3 *::before, body.ga-v3 *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
