*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-ink-soft);
  background: var(--color-surface);
  overflow-x: clip;
  min-width: 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-drawer);
  background: var(--color-accent); color: #000; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
}
.skip-link:focus { top: var(--space-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Notificaciones Toast flotantes */
.b2b-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
}

.b2b-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  border-left: 4px solid var(--color-brand);
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.b2b-toast--error {
  border-left-color: #ef4444;
}

.b2b-toast__link {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.b2b-toast__link:hover {
  color: #7dd3fc;
}

.b2b-toast__close {
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.b2b-toast__close:hover {
  color: #ffffff;
}

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

