/* Hero */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(29, 95, 168, 0.35), transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 84px;
}

.hero h1 { color: #fff; max-width: 15ch; }
.hero__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--step1);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__meta {
  margin-top: 34px;
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.5);
}
.hero__meta strong { color: #fff; font-weight: 600; }

/* Panel de LEDs — elemento de firma visual */
.panel {
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.panel__head .dot-row { display: flex; gap: 6px; }
.panel__head .dot-row span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.led-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.led {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.led::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  opacity: 0;
  animation: led-flicker 4.5s ease-in-out infinite;
}

.led--open::after { background: var(--led-open); box-shadow: 0 0 10px 1px var(--led-open); }
.led--filtered::after { background: var(--led-filtered); box-shadow: 0 0 10px 1px var(--led-filtered); }
.led--closed::after { background: rgba(255,255,255,0.1); }

@keyframes led-flicker {
  0%, 100% { opacity: 0; }
  4%, 8% { opacity: 1; }
  60% { opacity: 1; }
  70% { opacity: 0.3; }
}

.panel__legend {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
}
.panel__legend span { display: inline-flex; align-items: center; gap: 6px; }
.panel__legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.panel__legend .c-open { background: var(--led-open); }
.panel__legend .c-filtered { background: var(--led-filtered); }
.panel__legend .c-closed { background: rgba(255,255,255,0.25); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; padding-block: 48px 56px; }
  .led-grid { grid-template-columns: repeat(10, 1fr); }
}

/* Cómo funciona */
.steps {
  padding-block: 88px;
}

.steps__head { max-width: 60ch; margin-bottom: 44px; }

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.step__num {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: var(--step-1);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.step h3 { font-size: var(--step1); margin-bottom: 8px; }
.step p { margin: 0; }

@media (max-width: 860px) {
  .steps__list { grid-template-columns: 1fr; }
}

/* Herramientas */
.tools {
  padding-block: 8px 96px;
}

.tools__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tools__head p { margin: 0; max-width: 52ch; }

.tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  display: block;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tool-card--active:hover { transform: translateY(-3px); border-color: var(--brand); }

.tool-card__icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.tool-card h3 { font-size: var(--step1); margin-bottom: 8px; }
.tool-card p { font-size: var(--step-1); margin-bottom: 0; }

.tool-card__tag {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--brand);
}

.tool-card--soon {
  background: var(--paper);
  border-style: dashed;
  cursor: default;
}
.tool-card--soon .tool-card__icon { background: var(--line-soft); color: var(--slate-mute); }
.tool-card--soon h3 { color: var(--slate); }
.tool-card--soon .tool-card__tag { color: var(--slate-mute); }

@media (max-width: 860px) {
  .tools__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .tools__grid { grid-template-columns: 1fr; }
}
