/* ══════════════════════════════════════
   SoporteHero.css — hero de /soporte: un equipo dañado llega a SMED y
   sale reparado (3D en soporteHero.js). Dos modos: Empresarial y Gaming.
   Prefijo sh-.
══════════════════════════════════════ */
.sh-hero {
  --sh-accent: #1a5fd0;
  --sh-accent-2: #5fd8ff;
  position: relative;
  padding: 130px 32px 80px;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 75% 45%, rgba(26,95,208,0.12), transparent 70%),
    linear-gradient(rgba(8,27,59,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,27,59,0.045) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  transition: background 0.6s ease;
}
.sh-hero[data-mode="game"] {
  --sh-accent: #7c3aed;
  --sh-accent-2: #e879f9;
  background:
    radial-gradient(55% 60% at 75% 45%, rgba(124,58,237,0.14), transparent 70%),
    linear-gradient(rgba(8,27,59,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,27,59,0.045) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
}

.sh-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Texto ── */
.sh-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sh-accent);
}
.sh-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; }

.sh-switch {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-bottom: 26px;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(8,27,59,0.1);
  box-shadow: 0 12px 30px -20px rgba(8,27,59,0.4);
}
.sh-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f2347;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}
.sh-switch button em { font-style: normal; font-size: 0.68rem; font-weight: 500; opacity: 0.7; }
.sh-switch button i { font-size: 1.15rem; }
.sh-switch button[aria-selected="true"] { color: #fff; }
.sh-switch button:focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 2px; }
.sh-switch-pill {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: 10px;
  background: linear-gradient(135deg, #0e3478, #1a5fd0);
  transition: transform 0.45s cubic-bezier(0.22, 1.2, 0.36, 1), background 0.45s ease;
}
.sh-hero[data-mode="game"] .sh-switch-pill { transform: translateX(100%); background: linear-gradient(135deg, #4c1d95, #7c3aed); }

/* Los dos textos ocupan la misma celda: el bloque toma la altura del más
   alto y la sección no salta al cambiar de modo */
.sh-texts { display: grid; }
.sh-text { grid-area: 1 / 1; animation: shIn 0.5s ease; }
.sh-text[hidden] { display: block; visibility: hidden; animation: none; }
@keyframes shIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sh-h1 {
  margin: 0 0 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.5px;
  color: #081b3b;
}
.sh-h1 span {
  background: linear-gradient(90deg, var(--sh-accent), var(--sh-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sh-p { margin: 0 0 22px; max-width: 560px; font-size: 1rem; line-height: 1.75; color: rgba(8,27,59,0.7); }

.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; max-width: 580px; }
.sh-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(8,27,59,0.1);
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f2347;
}
.sh-chips i { font-size: 1rem; color: var(--sh-accent); }

.sh-iso {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 4px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #0e3478;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.sh-iso i { font-size: 1.2rem; color: #8fd8ff; }
.sh-iso b { color: #fff; }

.sh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid #c9d4e6;
  color: #0f2347;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sh-btn i { font-size: 1.2rem; }
.sh-btn:hover { border-color: var(--sh-accent); color: var(--sh-accent); }
.sh-btn--primary { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; }
.sh-btn--primary:hover { color: #fff; filter: brightness(1.1); }

/* ── Escena 3D ── */
.sh-stage { position: relative; aspect-ratio: 1 / 0.92; }
.sh-floor {
  position: absolute;
  left: 18%; right: 18%; bottom: 17%;
  height: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8,27,59,0.3), transparent);
  filter: blur(6px);
}
.sh-canvas { position: absolute; inset: 0; }
.sh-canvas canvas { display: block; width: 100%; height: 100%; }
.sh-fallback {
  position: absolute; left: 50%; top: 45%;
  translate: -50% -50%;
  font-size: 7rem;
  color: var(--sh-accent);
  opacity: 0.25;
}
.has-sh-3d .sh-fallback { display: none; }

.sh-status {
  position: absolute;
  top: 6%;
  left: 50%;
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(8,27,59,0.1);
  box-shadow: 0 14px 30px -18px rgba(8,27,59,0.5);
  font-size: 0.84rem;
  white-space: nowrap;
  color: #0f2347;
  transition: border-color 0.3s ease;
}
.sh-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; transition: background 0.3s ease; }
.sh-status[data-state="bad"] .sh-status-dot { background: #ef4444; animation: shBlink 0.7s ease-in-out infinite; }
.sh-status[data-state="scan"] .sh-status-dot { background: #f59e0b; animation: shBlink 0.9s ease-in-out infinite; }
.sh-status[data-state="fix"] .sh-status-dot { background: var(--sh-accent); animation: shBlink 0.9s ease-in-out infinite; }
.sh-status[data-state="ok"] .sh-status-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.2); }
.sh-status[data-state="bad"] { border-color: rgba(239,68,68,0.4); }
.sh-status[data-state="ok"] { border-color: rgba(34,197,94,0.45); }
@keyframes shBlink { 50% { opacity: 0.35; } }

.sh-steps {
  position: absolute;
  left: 4%; right: 4%; bottom: 2%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sh-steps li {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(8,27,59,0.45);
  transition: color 0.3s ease;
}
.sh-steps li + li::before {
  content: '';
  position: absolute;
  top: 17px;
  right: calc(50% + 22px);
  width: calc(100% - 36px);
  height: 2px;
  background: rgba(8,27,59,0.12);
}
.sh-steps li i {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(8,27,59,0.12);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.sh-steps li.is-on { color: #0f2347; }
.sh-steps li.is-on i { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--sh-accent) 18%, transparent); }
.sh-steps li.is-past i { background: #e8eef8; color: var(--sh-accent); }
.sh-steps li.is-past + li::before, .sh-steps li.is-on::before { background: var(--sh-accent); }
.sh-steps li[data-sh-step="3"].is-on i { background: #22c55e; border-color: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,0.2); }

@media (max-width: 1000px) {
  .sh-inner { grid-template-columns: 1fr; }
  .sh-stage { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .sh-hero { padding: 110px 16px 56px; }
  .sh-switch button { padding: 9px 12px; font-size: 0.82rem; }
  .sh-switch button em { display: none; }
  .sh-steps li { font-size: 0.64rem; }
  .sh-steps li i { width: 30px; height: 30px; }
  .sh-steps li + li::before { top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-status-dot { animation: none !important; }
  .sh-text { animation: none; }
}
