/* Taller Inicial — extras sobre el design system Ableton de intermedio */

:root {
  --coral: #e07a5f;
  --coral-dim: rgba(224, 122, 95, 0.18);
  --auto-line: #ff4a3d;
  --auto-fill: rgba(255, 74, 61, 0.28);
  --clip-magenta: #e84ad8;
  --arr-lane: #2a2a2a;
}

.lead-wide {
  max-width: 46ch;
}

#reservar,
#cupo {
  scroll-margin-top: 5.5rem;
}

.when-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold);
  background: var(--gold-dim);
  max-width: 22rem;
}

.when-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.when-chip b {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.when-place {
  font-size: 0.8rem;
  color: var(--text);
}

.when-online {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.65rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.when-online:hover {
  border-color: var(--gold);
  color: var(--gold);
}

#taller .course-text h2 {
  margin-bottom: 0;
}

.rack-chain-4 {
  grid-template-columns: repeat(4, 1fr);
}

.rack-chain-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rack-chain-2 {
  grid-template-columns: repeat(2, 1fr);
}

.rack-chain-1 {
  grid-template-columns: minmax(220px, 280px);
}

/* Clase individual — Return tab → ventana desplegable */
.return-expand .rack-chain-1 {
  border-bottom: none;
}

.return-expand.is-open .rack-chain-1 {
  border-bottom: 1px solid var(--line);
}

.return-window {
  overflow: hidden;
}

.return-expand.is-open .return-window {
  animation: return-deploy 0.38s ease;
}

@keyframes return-deploy {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rack-individual .device {
  padding: 1.35rem 1.15rem 1.45rem;
  min-height: 8.5rem;
  width: 100%;
}

.rack-individual .device-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.65rem;
}

.rack-individual .device-num {
  font-size: 0.68rem;
}

.rack-individual .device-title {
  font-size: 0.95rem;
}

.rack-individual .device-sub {
  font-size: 0.78rem;
}

.rack-individual .rack-stage {
  min-height: 440px;
}

.rack-individual .rack-display {
  min-height: 440px;
}

.rack-individual .rack-icon-stage {
  min-height: 320px;
}

.rack-individual .stage-icon {
  width: 220px;
  height: 220px;
}

.rack-individual .display-title {
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.rack-individual .rack-pane h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.rack-individual .ind-lead {
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 38ch;
}

@media (max-width: 900px) {
  .rack-chain-1 {
    grid-template-columns: 1fr;
  }

  .rack-individual .rack-stage,
  .rack-individual .rack-display {
    min-height: 0;
  }

  .rack-individual .rack-icon-stage {
    min-height: 280px;
  }

  .rack-individual .stage-icon {
    width: 200px;
    height: 200px;
  }
}

.device-icon.icon-warp,
.device-icon.icon-delay,
.device-icon.icon-arr {
  overflow: visible;
}

.device.accent-cyan[aria-selected="true"] {
  background: var(--cyan);
  box-shadow: inset 0 2px 0 #7ad8e4;
}

.device.accent-lime[aria-selected="true"] {
  background: var(--lime);
  box-shadow: inset 0 2px 0 #b6e07a;
}

.device.accent-coral[aria-selected="true"] {
  background: var(--coral);
  box-shadow: inset 0 2px 0 #f0a08a;
}

.device.accent-cyan .device-icon { color: var(--cyan); }
.device.accent-lime .device-icon { color: var(--lime); }
.device.accent-coral .device-icon { color: var(--coral); }

.device[aria-selected="true"].accent-cyan .device-icon,
.device[aria-selected="true"].accent-lime .device-icon,
.device[aria-selected="true"].accent-coral .device-icon,
.device[aria-selected="true"].accent-gold .device-icon {
  color: #0e0e0e;
}

.prog-topics {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.prog-topics li {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--gold-dim);
  border: 1px solid transparent;
}

.prog-topics.cyan li { background: var(--cyan-dim); }
.prog-topics.lime li { background: var(--lime-dim); }
.prog-topics.coral li { background: var(--coral-dim); }

.cycle-note {
  margin: 0;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.cycle-note b {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 0.65rem;
}

.cycle-note a {
  margin-left: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.ind-lead {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 42ch;
}

.alt-paths {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.path-rack {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.contact-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 204, 0, 0.06);
}

.contact-head-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--gold);
  margin-top: 0.1rem;
}

.contact-head-copy h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-head-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 42ch;
}

.path-clips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--bg);
}

.path-clip {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 4.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-left-width: 3px;
  background: var(--gold-dim);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.path-clip.gold {
  background: rgba(255, 204, 0, 0.14);
  border-left-color: var(--gold);
}
.path-clip.cyan {
  background: rgba(94, 184, 196, 0.16);
  border-left-color: var(--cyan);
}
.path-clip.lime {
  background: rgba(163, 209, 73, 0.16);
  border-left-color: var(--lime);
}
.path-clip.coral {
  background: rgba(224, 122, 95, 0.18);
  border-left-color: var(--coral);
}

.path-clip[aria-selected="true"] {
  background: var(--gold);
  color: #0e0e0e;
  border-left-color: #0e0e0e;
}

.path-clip.cyan[aria-selected="true"] {
  background: var(--cyan);
  color: #0e0e0e;
}
.path-clip.lime[aria-selected="true"] {
  background: var(--lime);
  color: #0e0e0e;
}
.path-clip.coral[aria-selected="true"] {
  background: var(--coral);
  color: #0e0e0e;
}

.path-clip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.path-clip-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.path-clip-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.path-clip-sub {
  font-size: 0.72rem;
  opacity: 0.75;
}

.path-stage {
  padding: 1.4rem 1.35rem 1.6rem;
}

.path-pane[hidden] { display: none; }

.path-pane h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.5rem;
}

.path-pane > p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 58ch;
  margin-bottom: 1.15rem;
}

.lab-body {
  grid-template-columns: minmax(0, 1fr) 16.5rem;
}

.lab-monitor .monitor-aside {
  max-width: none;
  justify-content: flex-start;
  padding: 1.25rem 1.2rem 1.35rem;
}

.lab-screen {
  position: relative;
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  aspect-ratio: auto;
  overflow: hidden;
  background: #111;
}

.lab-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #111;
}

body[data-page="inicial"] .plan-row-compact {
  grid-template-columns: 1fr;
  width: min(22rem, 100%);
}

body[data-page="inicial"] .arm-actions-mail {
  width: min(22rem, 100%);
  margin-inline: auto;
}

body[data-page="laboratorio"] .hero {
  min-height: calc(100vh - var(--header));
  grid-template-columns: 1fr;
  align-items: end;
  padding: 4rem var(--pad) 4.5rem;
}

body[data-page="comunidad"] .hero.comunidad-hero {
  min-height: 0;
  height: auto;
  grid-template-columns: minmax(0, 34rem) minmax(16rem, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  max-width: 72rem;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

body[data-page="comunidad"] .comunidad-hero .lab-hero-photo {
  inset: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  border-left: 1px solid var(--line);
}

body[data-page="comunidad"] .comunidad-hero .hero-overlay {
  inset: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 48%;
  background:
    linear-gradient(90deg, rgba(14, 14, 14, 0.55) 0%, rgba(14, 14, 14, 0.15) 55%, transparent 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%);
}

body[data-page="comunidad"] .comunidad-hero .hero-copy {
  position: relative;
  z-index: 1;
  grid-column: 1;
  max-width: none;
  padding: 2.75rem clamp(1.25rem, 3vw, 2.5rem) 2.5rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-page="comunidad"] .comunidad-hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin-bottom: 1rem;
  max-width: 14ch;
}

body[data-page="comunidad"] .hero-story {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  max-width: 38ch;
}

body[data-page="comunidad"] .hero-story p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

body[data-page="comunidad"] .hero-copy .btn {
  margin-top: 0.15rem;
  align-self: flex-start;
}

/* Compra clara · Taller Inicial */
.panel-buy .buy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
}

.panel-buy .buy-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--bg-2);
}

.panel-buy .buy-chip span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-buy .buy-chip b {
  font-size: 0.95rem;
  font-weight: 700;
}

.panel-buy .buy-chip-gold {
  background: var(--gold-dim);
}

.panel-buy .buy-chip-gold b {
  color: var(--gold);
}

.panel-buy .arm-box-buy {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.panel-buy .plan-option {
  min-height: 6.5rem;
}

.panel-buy .plan-option-featured {
  transform: none;
}

@media (max-width: 800px) {
  .panel-buy .buy-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  body[data-page="comunidad"] .hero.comunidad-hero {
    grid-template-columns: 1fr;
    max-width: none;
    border-left: none;
    border-right: none;
    min-height: min(70vh, 34rem);
  }

  body[data-page="comunidad"] .comunidad-hero .lab-hero-photo,
  body[data-page="comunidad"] .comunidad-hero .hero-overlay {
    inset: 0;
    width: 100%;
    height: 100%;
    border-left: none;
  }

  body[data-page="comunidad"] .comunidad-hero .hero-overlay {
    background:
      linear-gradient(105deg, rgba(14, 14, 14, 0.94) 0%, rgba(14, 14, 14, 0.78) 48%, rgba(14, 14, 14, 0.45) 100%),
      linear-gradient(to top, var(--bg) 0%, transparent 40%);
  }

  body[data-page="comunidad"] .comunidad-hero .hero-copy {
    background: transparent;
    padding: 3.5rem var(--pad) 2.5rem;
    justify-content: flex-end;
  }
}

body[data-page="inicial"] .arm-box p {
  margin-bottom: 0.45rem;
}

body[data-page="inicial"] .arm-tagline {
  margin-top: 0.15rem !important;
  margin-bottom: 1.25rem !important;
}

.side-path {
  padding: 1.5rem 1.25rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: left;
}

.side-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.5rem;
}

.side-path h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.side-path > p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 58ch;
  margin-bottom: 1.25rem;
}

.lead-form {
  max-width: none;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lead-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.lead-full { grid-column: 1 / -1; }

.lead-grid input,
.lead-grid textarea {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.lead-grid input:focus,
.lead-grid textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.lead-grid textarea { resize: vertical; min-height: 4.5rem; }

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}

.lead-note {
  font-size: 0.75rem;
  color: var(--soft);
  max-width: 42ch;
  margin: 0;
}

.lead-status {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--gold);
}

.lead-status.is-error { color: #e08080; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.lead-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 900px) {
  .alt-paths,
  .path-clips,
  .rack-chain-4,
  .rack-chain-3,
  .rack-chain-2,
  .session-tracks.session-tracks-4 {
    grid-template-columns: 1fr 1fr;
  }

  .rack-chain-4 .device:nth-child(2n) { border-right: none; }
  .rack-chain-4 .device:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .rack-chain-3 .device:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-right: none;
  }
}

@media (max-width: 700px) {
  .rack-chain-4,
  .rack-chain-3 {
    grid-template-columns: 1fr 1fr;
  }

  .rack-chain-4 .device,
  .rack-chain-3 .device { border-right: 1px solid var(--line); }
  .rack-chain-4 .device:nth-child(2n),
  .rack-chain-3 .device:nth-child(2n) { border-right: none; }
  .rack-chain-4 .device:nth-child(n + 3),
  .rack-chain-3 .device:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .alt-paths,
  .lead-grid { grid-template-columns: 1fr; }

  .path-clips {
    grid-template-columns: 1fr 1fr;
  }

  .path-clip:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .lab-body {
    grid-template-columns: 1fr;
  }

  .lab-screen {
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

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

  .lab-screen {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* Keep centering on animated stage icons */
.stage-icon-warp.is-active,
.stage-icon-delay.is-active,
.stage-icon-arr.is-active,
.stage-icon-session.is-active,
.stage-icon-ind-review.is-active,
.stage-icon-ind-listen.is-active {
  opacity: 1;
}

.stage-icon-session.is-active .session-clip,
.device[data-module="s1"][aria-selected="true"] .session-clip {
  animation: session-clip-pulse 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.18s);
}

.stage-icon-session.is-active .session-playhead,
.device[data-module="s1"][aria-selected="true"] .session-playhead {
  animation: session-playhead 2.4s linear infinite;
  transform-box: view-box;
  transform-origin: 54px 60px;
}

@keyframes session-clip-pulse {
  0%, 100% { opacity: 0.35; }
  40% { opacity: 1; }
}

@keyframes session-playhead {
  0% { transform: translateX(0); opacity: 0.45; }
  50% { opacity: 1; }
  100% { transform: translateX(40px); opacity: 0.45; }
}

.stage-icon-ind-review.is-active .ind-check-mark,
.device[data-module="ind1"][aria-selected="true"] .ind-check-mark {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  animation: ind-check-draw 1.4s ease forwards 0.15s,
    ind-check-redraw 3.2s ease 1.8s infinite;
}

.stage-icon-ind-review.is-active .ind-check,
.device[data-module="ind1"][aria-selected="true"] .ind-check {
  animation: ind-check-pulse 2.2s ease-in-out infinite;
}

.stage-icon-ind-review.is-active .ind-lines,
.device[data-module="ind1"][aria-selected="true"] .ind-lines {
  animation: ind-lines-scan 2s ease-in-out infinite;
}

.stage-icon-ind-listen.is-active .ind-wave,
.device[data-module="ind2"][aria-selected="true"] .ind-wave {
  animation: ind-wave-flow 1.6s ease-in-out infinite;
}

/* Idle hint on unselected individual tabs */
.rack-individual .device[aria-selected="false"] .device-icon {
  animation: ind-icon-idle 2.8s ease-in-out infinite;
}

@keyframes ind-check-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ind-check-redraw {
  0%, 70%, 100% { stroke-dashoffset: 0; }
  85% { stroke-dashoffset: 28; }
  100% { stroke-dashoffset: 0; }
}

@keyframes ind-check-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes ind-wave-flow {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(3px); opacity: 1; }
}

@keyframes ind-lines-scan {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes ind-icon-idle {
  0%, 100% { opacity: 0.72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* 02 Warp — waveform moves and time-stretches */
.warp-wave {
  transform-box: view-box;
  transform-origin: 14px 60px;
}

.stage-icon-warp.is-active .warp-wave,
.device[data-module="s2"][aria-selected="true"] .warp-wave {
  animation: warp-stretch 2.6s ease-in-out infinite;
}

.warp-path {
  stroke-dasharray: 10 4;
}

.stage-icon-warp.is-active .warp-path,
.device[data-module="s2"][aria-selected="true"] .warp-path {
  animation: warp-flow 1.4s linear infinite;
}

.warp-mark {
  transform-box: view-box;
  transform-origin: 60px 60px;
}

.stage-icon-warp.is-active .warp-mark,
.device[data-module="s2"][aria-selected="true"] .warp-mark {
  animation: warp-spread 2.6s ease-in-out infinite;
}

@keyframes warp-stretch {
  0%, 100% { transform: scaleX(0.76); }
  50% { transform: scaleX(1.26); }
}

@keyframes warp-flow {
  to { stroke-dashoffset: -28; }
}

@keyframes warp-spread {
  0%, 100% { transform: translateX(calc(var(--i) * -2.4px)); }
  50% { transform: translateX(calc(var(--i) * 3.6px)); }
}

/* 03 Efectos — onda clara a la izquierda, repeticiones que se van a la derecha */
.dly-zero { opacity: 0.28; }

.dly-dry {
  opacity: 1;
  fill: none;
}

.dly-tap {
  transform-box: view-box;
  transform-origin: 10px 60px;
  opacity: 0;
  fill: none;
}

.dly-gone { opacity: 0.4; }

.stage-icon-delay.is-active .dly-tap,
.device[data-module="s3"][aria-selected="true"] .dly-tap {
  animation: dly-gone 2s linear infinite;
  animation-delay: calc(var(--i) * 0.4s);
}

.stage-icon-delay.is-active .dly-gone,
.device[data-module="s3"][aria-selected="true"] .dly-gone {
  animation: dly-arrow 2s ease-in-out infinite;
}

@keyframes dly-gone {
  0% {
    transform: translateX(0) scaleY(1);
    opacity: 0.75;
  }
  70% { opacity: 0.28; }
  100% {
    transform: translateX(52px) scaleY(0.18);
    opacity: 0;
  }
}

@keyframes dly-arrow {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 0.7; transform: translateX(4px); }
}

/* 04 Arreglo — Arrangement View clip + red automation envelope */
.stage-icon-arr {
  color: #9a9a9a;
}

.icon-arr .arr-lane,
.stage-icon-arr .arr-lane {
  fill: var(--arr-lane);
  stroke: #5a5a5a;
}

.device .icon-arr .arr-grid {
  opacity: 0.4;
}

.icon-arr .arr-clip,
.stage-icon-arr .arr-clip {
  fill: var(--clip-magenta);
}

.icon-arr .arr-wave,
.stage-icon-arr .arr-wave {
  fill: none;
  stroke: rgba(24, 8, 24, 0.4);
  stroke-width: 1.5;
}

.icon-arr .arr-fill,
.stage-icon-arr .arr-fill {
  fill: var(--auto-fill);
}

.icon-arr .arr-env,
.stage-icon-arr .arr-env {
  stroke: var(--auto-line);
  fill: none;
  stroke-width: 2.5;
}

.icon-arr .arr-node,
.stage-icon-arr .arr-node {
  fill: var(--auto-line);
  stroke: #1a1a1a;
  stroke-width: 1.25;
}

.icon-arr .arr-playhead,
.stage-icon-arr .arr-playhead {
  stroke: #dedede;
  transform-box: view-box;
}

.icon-arr .arr-loop,
.stage-icon-arr .arr-loop {
  stroke: #c8c8c8;
  fill: none;
}

.arr-node {
  transform-box: fill-box;
  transform-origin: center;
}

.stage-icon-arr.is-active .arr-playhead,
.device[data-module="s4"][aria-selected="true"] .arr-playhead {
  animation: arr-scan 3.2s linear infinite;
}

.stage-icon-arr.is-active .arr-node-b,
.device[data-module="s4"][aria-selected="true"] .arr-node-b {
  animation: arr-node-pulse 2.2s ease-in-out infinite;
}

@keyframes arr-scan {
  0% {
    transform: translateX(0);
    opacity: 0.2;
  }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% {
    transform: translateX(92px);
    opacity: 0.15;
  }
}

@keyframes arr-node-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}

@media (prefers-reduced-motion: reduce) {
  .stage-icon-warp.is-active .warp-wave,
  .stage-icon-warp.is-active .warp-path,
  .stage-icon-warp.is-active .warp-mark,
  .device[data-module="s2"][aria-selected="true"] .warp-wave,
  .device[data-module="s2"][aria-selected="true"] .warp-path,
  .device[data-module="s2"][aria-selected="true"] .warp-mark,
  .stage-icon-delay.is-active .dly-tap,
  .device[data-module="s3"][aria-selected="true"] .dly-tap,
  .stage-icon-arr.is-active .arr-playhead,
  .stage-icon-arr.is-active .arr-node-b,
  .device[data-module="s4"][aria-selected="true"] .arr-playhead,
  .device[data-module="s4"][aria-selected="true"] .arr-node-b,
  .stage-icon-session.is-active .session-clip,
  .device[data-module="s1"][aria-selected="true"] .session-clip,
  .stage-icon-session.is-active .session-playhead,
  .device[data-module="s1"][aria-selected="true"] .session-playhead,
  .stage-icon-ind-review.is-active .ind-check-mark,
  .stage-icon-ind-review.is-active .ind-check,
  .stage-icon-ind-review.is-active .ind-lines,
  .stage-icon-ind-listen.is-active .ind-wave,
  .device[data-module="ind1"][aria-selected="true"] .ind-check-mark,
  .device[data-module="ind1"][aria-selected="true"] .ind-check,
  .device[data-module="ind1"][aria-selected="true"] .ind-lines,
  .device[data-module="ind2"][aria-selected="true"] .ind-wave,
  .rack-individual .device[aria-selected="false"] .device-icon {
    animation: none;
    stroke-dashoffset: 0;
    transform: none;
    opacity: 1;
  }

  .dly-tap[style="--i:0"] { opacity: 0.55; transform: translateX(18px) scaleY(0.7); }
  .dly-tap[style="--i:1"] { opacity: 0.32; transform: translateX(36px) scaleY(0.42); }
  .dly-tap[style="--i:2"] { opacity: 0.14; transform: translateX(52px) scaleY(0.2); }
}

.copy-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  background: #121212;
  border: 1px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.copy-bar[hidden] { display: none; }

.copy-bar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.copy-bar .btn { padding: 0.45rem 0.85rem; font-size: 0.72rem; }

.copy-bar-status {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 36ch;
}

body.is-editing [data-edit] {
  outline: 1px dashed rgba(212, 175, 55, 0.55);
  outline-offset: 3px;
  cursor: text;
}

body.is-editing [data-edit]:focus {
  outline: 1px solid var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.copy-edit-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.copy-edit-link:hover { color: var(--gold); }

.proof-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.75rem;
  max-width: 28rem;
  border: 1px solid var(--line-2);
}

.proof-row li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-right: 1px solid var(--line-2);
}

.proof-row li:last-child { border-right: none; }

.proof-row b {
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.proof-row span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.how-beats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.how-beats article {
  padding: 1.15rem 1.2rem 1.3rem;
  border-right: 1px solid var(--line);
}

.how-beats article:last-child { border-right: none; }

.how-beats b {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.how-beats p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.faq {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:last-child { border-bottom: none; }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 62ch;
}

.sticky-arm {
  display: none;
}

@media (max-width: 900px) {
  .how-beats {
    grid-template-columns: 1fr 1fr;
  }

  .how-beats article:nth-child(2n) { border-right: none; }
  .how-beats article:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  body[data-page="inicial"] {
    padding-bottom: 4.25rem;
  }

  body[data-page="inicial"] .hero {
    min-height: auto;
    padding: 4.75rem 1.1rem 2.25rem;
  }

  body[data-page="inicial"] .hero h1 {
    font-size: clamp(1.7rem, 8.2vw, 2.25rem);
  }

  body[data-page="inicial"] .lead-wide {
    max-width: none;
    margin-bottom: 1.25rem;
  }

  body[data-page="inicial"] .when-chip {
    max-width: none;
  }

  body[data-page="inicial"] .hero-actions {
    flex-direction: column;
  }

  body[data-page="inicial"] .hero-actions .btn {
    width: 100%;
  }

  body[data-page="inicial"] .btn {
    min-height: 48px;
  }

  .proof-row {
    max-width: none;
    grid-template-columns: 1fr;
  }

  .proof-row li {
    border-right: none;
    border-bottom: 1px solid var(--line-2);
  }

  .proof-row li:last-child { border-bottom: none; }

  .sticky-arm {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #0e0e0e;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  body.is-editing .copy-bar {
    bottom: 4.5rem;
  }

  .path-clip {
    min-height: 4.8rem;
  }
}
