body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  min-height: 100vh;
}

.panel {
  padding: 24px;
  box-sizing: border-box;
}

.panel-preview {
  border-right: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-controles {
  background: #020617;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1, h2 {
  margin: 0 0 8px;
}

.preview-box {
  #flex: 1;
  height: 75vh;
  border-radius: 16px;
  background: #111827;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
	.preview-box {
	  max-height: 285px;
	}
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

label {
  font-size: 0.9rem;
  color: #9ca3af;
}

select,
input[type="range"],
input[type="number"],
input[type="color"],
textarea {
  font: inherit;
}

select,
input[type="number"],
textarea {
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  padding: 8px 10px;
}

textarea {
  resize: vertical;
}

#listaParadas {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stop-item {
  display: grid;
  grid-template-columns: auto 90px auto;
  gap: 8px;
  align-items: center;
}

.stop-item input[type="color"] {
  width: 40px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
}

.stop-item input[type="number"] {
  width: 80px;
}

.stop-item button {
  border-radius: 6px;
  border: none;
  padding: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  background: #111827;
  color: #f97316;
}

button#btnAgregarStop,
button#btnCopiar {
  align-self: flex-start;
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  background: #f97316;
  color: #020617;
}

button#btnAgregarStop:hover,
button#btnCopiar:hover {
  background: #fb923c;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .panel-preview {
    border-right: none;
    border-bottom: 1px solid #1f2937;
  }
}
.gradient-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gradient-presets button {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
  background-color: #111827;
  position: relative;
  overflow: hidden;
}

/* El degradado real va en un pseudo-elemento que usa data-gradient */
.gradient-presets button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--btn-gradient, linear-gradient(90deg, #4b5563, #111827));
  opacity: 1;
  z-index: 0;
}

.gradient-presets button span {
  position: relative;
  z-index: 1;
}
.gradient-presets h2 {
  flex: 0 0 100%;
  margin-bottom: 0.5rem;
  white-space: normal;
}