/* THE MAZON · tema compartido (dark premium, títulos naranja neón) */
:root {
  --bg: #060608;
  --surface: #101216;
  --elevated: #171a20;
  --line: rgba(255, 107, 0, .22);
  --line-strong: rgba(255, 95, 31, .55);
  --text: #f5f6f8;
  --muted: #9aa3ae;
  --neon: #FF5F1F;
  --neon-2: #FF6B00;
  --amber: #FFA726;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #ef4444;
  --wa: #25D366;
  --grad: linear-gradient(135deg, #FF5F1F 0%, #FF6B00 55%, #FFA726 100%);
  --glow: 0 0 6px rgba(255, 95, 31, .55), 0 0 18px rgba(255, 107, 0, .35);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh;
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(255, 95, 31, .12), transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Encabezados principales y de sección: naranja neón con glow sutil */
h1, h2, h3, .neon-title {
  color: var(--neon); text-shadow: var(--glow); letter-spacing: -.01em; line-height: 1.2;
}
h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; }
h2 { font-size: clamp(21px, 3vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 800; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Tarjetas / superficies */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: 14px; text-decoration: none; transition: transform .12s, filter .12s, opacity .12s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(255, 95, 31, .35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--neon); color: var(--neon); }
.btn-wa { background: var(--wa); color: #06260f; }
.btn-danger { background: transparent; color: var(--err); border: 1px solid rgba(239, 68, 68, .5); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; background: var(--elevated); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; min-height: 44px; }
.input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(255, 95, 31, .18); }
.input::placeholder { color: rgba(245, 246, 248, .35); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pill-ok { background: rgba(34, 197, 94, .14); color: #4ade80; }
.pill-warn { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.pill-err { background: rgba(239, 68, 68, .14); color: #f87171; }
.pill-neon { background: rgba(255, 95, 31, .14); color: var(--neon); }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(6, 6, 8, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: #0b0b0b; border: 2px solid var(--neon); box-shadow: var(--glow);
  display: grid; place-items: center; font-size: 9px; line-height: 1; color: var(--neon); font-weight: 900; text-align: center; }
.brand-name { color: var(--neon); text-shadow: var(--glow); }

/* Toasts */
#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--elevated); border: 1px solid var(--line-strong); border-left: 4px solid var(--neon); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; animation: tin .2s ease-out; }
.toast.err { border-left-color: var(--err); }
.toast.ok { border-left-color: var(--ok); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Skeleton de carga */
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--elevated) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 200; display: grid; place-items: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
