:root {
  /* Fénix Electrónica — identidad: taller nocturno, ascua encendida */
  --bg: #0a0908;
  --bg-card: #15130f;
  --bg-card-raised: #1c1914;
  --bg-input: #1a1712;
  --line: #2b2620;
  --line-strong: #3d362c;

  --ink: #f5f1e8;
  --ink-soft: #a89e8f;
  --ink-faint: #6b6255;

  --orange: #f5820c;
  --orange-bright: #ff9d33;
  --orange-dim: #c4690a;

  --fire: #e8481f;       /* en reparación */
  --blue: #3b82f6;       /* terminado */
  --green: #22c55e;      /* entregado */
  --danger: #ef4444;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  --glow-orange: 0 0 0 1px rgba(245, 130, 12, 0.15), 0 0 24px rgba(245, 130, 12, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(245, 130, 12, 0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(232, 72, 31, 0.05), transparent 60%);
  background-attachment: fixed;
  background-color: var(--bg);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}

a { color: inherit; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
}

input, textarea, select {
  font-family: var(--font-body);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-input);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  width: 100%;
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 12, 0.15);
}

label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mono { font-family: var(--font-mono); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--espera { background: rgba(245, 130, 12, 0.13); color: var(--orange-bright); border-color: rgba(245, 130, 12, 0.25); }
.badge--reparacion { background: rgba(232, 72, 31, 0.14); color: #ff6b42; border-color: rgba(232, 72, 31, 0.28); }
.badge--terminado { background: rgba(59, 130, 246, 0.14); color: #60a5fa; border-color: rgba(59, 130, 246, 0.28); }
.badge--entregado { background: rgba(34, 197, 94, 0.14); color: #4ade80; border-color: rgba(34, 197, 94, 0.28); }

::selection { background: var(--orange); color: #1a0f00; }

/* Marca compartida: logo real de Fénix Electrónica. */
.logo-fenix {
  display: flex;
  align-items: center;
}

.logo-fenix-img {
  height: 44px;
  width: auto;
  display: block;
}

.fenix-ave {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 50px rgba(245, 130, 12, 0.22));
}

.fenix-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 40% 55%, rgba(245, 130, 12, 0.14), transparent 55%),
    radial-gradient(circle at 55% 75%, rgba(232, 72, 31, 0.09), transparent 45%);
  filter: blur(30px);
}

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