/* ====== Theme tokens ====== */
:root {
  --bg: #0b0c0f;            /* fondo de la página (se verá suave en bloques blancos) */
  --card: #ffffff;
  --muted: #f3f4f6;         /* gris claro para contenedores */
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;

  --primary: #ff6a2b;       /* acento naranja */
  --primary-600: #ff5a10;
  --primary-700: #e34f0d;

  --radius: 16px;
  --shadow: 0 1px 0 rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.06);
}

/* ====== Layout general ====== */
#decoatupinta-root {
  max-width: 1200px;
  margin: 24px auto 64px;
  padding: 0 12px;
  color: var(--text);
}

#decoatupinta-root .dtp-grid {
  display: grid;
  grid-template-columns: 360px minmax(0,1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  #decoatupinta-root .dtp-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Cards ====== */
.dtp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.dtp-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

/* ====== Formularios ====== */
.dtp-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 6px;
}
.dtp-input,
.dtp-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}
.dtp-input:focus,
.dtp-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

/* Toggle vertical/horizontal */
.dtp-toggle-bar {
  display: inline-flex;
  gap: 6px;
}
.dtp-toggle {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.dtp-toggle.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Checkboxes simples */
.dtp-check {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text);
}

/* Sliders */
.dtp-range {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
}
.dtp-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 0;
  box-shadow: 0 0 0 2px #fff, 0 1px 2px rgba(0,0,0,.15);
  cursor: pointer;
}
.dtp-range::-moz-range-thumb {
  width: 16px; height: 16px; border: 0; border-radius: 50%;
  background: var(--primary); cursor: pointer;
}

/* Botones */
.dtp-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  font-weight: 700;
  cursor: pointer;
}
.dtp-btn:hover { background: #fafafa; }
.dtp-btn[disabled] { opacity: .6; pointer-events: none; }

.dtp-btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: color-mix(in srgb, var(--primary) 90%, #000 10%);
}
.dtp-btn--primary:hover { background: var(--primary-600); }
.dtp-btn--primary:active { background: var(--primary-700); }

/* ====== Lienzo 2D (editor) ====== */
#dtp-editor {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 560;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--muted);
  overflow: hidden;
}
#dtp-editor #dtp-placeholder {
  color: var(--text-muted);
}
#dtp-stage { /* contiene inner/mask/frame */
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Orden de capas (coincide con lo que ya tienes en JS) */
#dtp-inner { z-index: 10; }   /* panel blanco */
#dtp-img   { z-index: 20; }   /* foto recortada */
#dtp-mask  { z-index: 25; }   /* sombreado exterior */
#dtp-frame { z-index: 40; }   /* marco encima */

/* ====== Preview 3D ====== */
#dtp-preview-wrap {
  display: none;
}
#dtp-mv {
  width: 100%;
  aspect-ratio: 900 / 560;
  border-radius: 12px;
  background: var(--muted);
  overflow: hidden;
  border: 1px solid var(--border);
}
#dtp-preview-actions {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}

/* ====== Cabecera grande (título de la página) ====== */
.wp-site-blocks h1, .wp-block-post-title {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: center;
  margin: 24px 0 32px;
}
