/* ==========================================================================
   Washido HDS™ — Shared Styles
   Elementos compartidos, tipografía, botones, badges y utilidades
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 45%),
    linear-gradient(rgba(56, 189, 248, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 45px 45px, 45px 45px;
  transition: background-color .3s ease, color .3s ease;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
  background-size: 100% 100%, 100% 100%;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: none; cursor: pointer; }
ul { list-style: none; }

input, select, textarea {
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-sizing: border-box;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px var(--primary-light);
}
select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
}

:focus-visible { outline: 2px solid var(--primary-accent); outline-offset: 2px; border-radius: 6px; }

.mono { font-family: var(--font-mono); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── Botones de Alto Nivel ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: .2px;
  transition: var(--transition); white-space: nowrap;
}
.btn-lg { padding: 14px 24px; font-size: 15.5px; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--cyan-accent));
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow), 0 4px 12px rgba(0,0,0,.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px var(--primary-glow), 0 6px 18px rgba(0,0,0,.3);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1324;
  font-weight: 800;
  box-shadow: 0 0 16px var(--gold-glow);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 24px var(--gold-glow);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-accent), #059669);
  color: #fff;
  box-shadow: 0 0 16px var(--emerald-glow);
}
.btn-emerald:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}

.icon-btn {
  width: 42px; height: 42px; border-radius: var(--radius-full);
  border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-sub);
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
  transition: var(--transition); position: relative; flex-shrink: 0;
}
.icon-btn:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

/* ─── Badges & Chips ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-xs);
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
}
.badge-cyan { background: rgba(14, 165, 233, 0.16); color: var(--primary-accent); border: 1px solid rgba(14, 165, 233, 0.35); }
.badge-gold { background: rgba(245, 158, 11, 0.16); color: var(--gold-accent); border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-emerald { background: rgba(16, 185, 129, 0.16); color: var(--emerald-accent); border: 1px solid rgba(16, 185, 129, 0.35); }
.badge-purple { background: rgba(168, 85, 247, 0.16); color: var(--purple-accent); border: 1px solid rgba(168, 85, 247, 0.35); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: 12px;
  background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-sub);
}
.chip strong { color: var(--text-main); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--primary-accent);
  margin-bottom: 12px;
}
