@font-face { font-family: "Norican"; src: url("../fonts/norican.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cookie"; src: url("../fonts/cookie.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Leckerli One"; src: url("../fonts/leckerli-one.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Damion"; src: url("../fonts/damion.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mr Dafoe"; src: url("../fonts/mr-dafoe.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Yesteryear"; src: url("../fonts/yesteryear.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Grand Hotel"; src: url("../fonts/grand-hotel.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #f3efe6;
  --bg-2: #e7e0d2;
  --ink: #241c16;
  --muted: #6d6258;
  --card: #fffdf8;
  --line: rgba(36, 28, 22, 0.12);
  --forest: #1c3d32;
  --forest-deep: #122820;
  --wine: #7c2c38;
  --gold: #b6894a;
  --gold-soft: #e6d3a8;
  --cream: #f6f1e7;
  --shadow: 0 18px 40px rgba(48, 32, 18, 0.1);
  --header: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at top, #faf7f1 0%, var(--bg) 42%, #ebe4d6 100%);
}

img, svg { max-width: 100%; }

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, .logo-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

p { margin: 0; }

a { color: inherit; }

::selection { background: var(--gold-soft); color: var(--ink); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--cream);
  background: var(--forest-deep);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 252, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(36, 28, 22, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.logo-word {
  font-size: 1.55rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a { text-decoration: none; }

.nav-links a:hover { color: var(--gold-soft); }

.site-header.is-scrolled .nav-links a:hover { color: var(--wine); }

.hero-band {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(214, 176, 106, 0.2), transparent 36%),
    linear-gradient(180deg, var(--forest-deep) 0%, #1a3b30 58%, #14261f 100%);
  color: var(--cream);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0 56px;
}

.eyebrow, .stage-kicker, .block-kicker {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  line-height: 0.92;
  font-weight: 500;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.lead {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(246, 241, 231, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  align-items: center;
}

.hero-price {
  margin-top: 16px;
  color: var(--gold-soft);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(246, 241, 231, 0.78);
  font-size: 0.92rem;
}

.hero-ornaments {
  min-height: 430px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.ball {
  width: 210px;
  margin: 0 -28px;
  transform-origin: 50% 8%;
}

.ball:nth-child(2) {
  width: 270px;
  z-index: 1;
  margin-bottom: 10px;
}

.builder { padding: 64px 0 28px; }

.builder-head { max-width: 680px; margin-bottom: 28px; }

.builder-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(18, 40, 32, 0.06);
  -webkit-overflow-scrolling: touch;
}

.builder-tab,
.builder-step {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.builder-tab.is-on,
.builder-step.is-on {
  background: var(--forest);
  color: var(--cream);
}

.builder-steps {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  overflow-x: auto;
}

.builder-step {
  background: rgba(18, 40, 32, 0.06);
  font-size: 0.86rem;
}

.builder-panel { display: none; flex-direction: column; gap: 16px; }
.builder-panel.is-on { display: flex; }

.step-panel { display: none; flex-direction: column; gap: 16px; }
.step-panel.is-on { display: flex; }

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.step-nav .btn,
.step-nav .btn-ghost { min-width: 7.5rem; }

.builder-head h2, .section-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.builder-head p, .section-intro {
  margin-top: 12px;
  color: var(--muted);
  max-width: 58ch;
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: start;
}

.preview-col { grid-column: 2; grid-row: 1; position: sticky; top: 88px; }

.editor { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 22px; }

.stage {
  background:
    radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(ellipse at 50% 40%, #3e6d5b 0%, #1a3a30 52%, #10241e 100%);
  border-radius: 28px;
  min-height: 460px;
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
}

.stage-kicker { color: var(--gold-soft); }

.ornament-wrap {
  position: relative;
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ornament { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }

#ornament svg { filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.28)); }

.stage-name-box {
  position: absolute;
  left: 50%;
  z-index: 3;
  top: 60%;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.stage-name-face {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  overflow: visible;
  line-height: 1;
  color: var(--name-color, #e0b07a);
  font-family: var(--name-font, Georgia, serif);
  font-weight: var(--name-weight, 500);
  font-size: var(--name-size, 28px);
  letter-spacing: var(--name-track, 0);
  text-transform: var(--name-case, none);
}

.stage-name-face:empty::before {
  content: "Tu nombre";
  opacity: 0.48;
}

.stage-name {
  display: block;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.45em 0.35em;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: center;
  color: transparent;
  caret-color: var(--name-caret, #fff8e8);
  font-family: var(--name-font, Georgia, serif);
  font-weight: var(--name-weight, 500);
  font-size: var(--name-size, 28px);
  letter-spacing: var(--name-track, 0);
  text-transform: var(--name-case, none);
  line-height: 1.15;
}

.stage-name::placeholder { color: transparent; }

.stage-name:focus { outline: none; }

.stage.is-3d .stage-name-box {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: min(100%, 240px);
  margin-top: 8px;
}

.stage.is-3d .stage-name-face { display: none; }

.stage.is-3d .stage-name {
  width: 100%;
  color: var(--cream);
  caret-color: var(--cream);
  background: rgba(16, 36, 30, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 1.05rem;
}

.stage.is-3d .stage-name::placeholder { color: var(--cream); opacity: 0.48; }

.stage.is-3d #ornament {
  height: min(70vw, 380px);
  touch-action: none;
}

.stage.is-3d #ornament canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.stage[data-size="s"] .ornament-wrap { width: min(78%, 250px); }
.stage[data-size="m"] .ornament-wrap { width: min(88%, 300px); }
.stage[data-size="l"] .ornament-wrap { width: min(96%, 340px); }
.stage[data-size="xl"] .ornament-wrap { width: min(100%, 390px); }
.stage.is-3d[data-size] .ornament-wrap { width: min(100%, 380px); }

#stage-meta, #stage-price {
  margin: 0;
  text-align: center;
  color: var(--cream);
}

#stage-meta { font-size: 0.95rem; max-width: 34ch; }

#stage-price {
  margin-top: 4px;
  color: var(--gold-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.stage-toggle {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

.stage-toggle[aria-pressed="true"] {
  background: var(--cream);
  color: var(--forest);
  box-shadow: none;
}

.union-note {
  margin: 6px 0 0;
  max-width: 30ch;
  text-align: center;
  color: var(--gold-soft);
  font-size: 0.82rem;
}

.name-tune {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.name-tune-kicker {
  margin: 0;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tune-slider {
  width: min(100%, 300px);
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) 4.4rem;
  align-items: center;
  gap: 8px;
  color: rgba(246, 241, 231, 0.82);
  font-size: 0.75rem;
}

.tune-slider span:last-child { text-align: right; }

.tune-slider input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #e6c35c;
}

.name-tune-reset {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.4);
  font: inherit;
  font-size: 0.82rem;
}

.name-tune-reset:hover { background: rgba(246, 241, 231, 0.1); }

.name-tune-reset:disabled { opacity: 0.35; }

.preview-status {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(16, 36, 30, 0.72);
  color: #fff8ef;
  text-align: center;
  font-size: 0.95rem;
  pointer-events: none;
}

.preview-status[hidden] { display: none; }

.preview-status::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 248, 239, 0.35);
  border-top-color: #e6c35c;
  animation: preview-spin 0.8s linear infinite;
}

@keyframes preview-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .preview-status::before { animation: none; }
}

.name-tune-hint {
  margin: 0;
  max-width: 34ch;
  text-align: center;
  color: rgba(246, 241, 231, 0.72);
  font-size: 0.78rem;
}

.name-tune-warn {
  margin: 2px 0 0;
  max-width: 36ch;
  text-align: center;
  color: #f3e0a8;
  font-size: 0.8rem;
  line-height: 1.35;
}

.name-warn:not(:empty) {
  color: #8a3a1c;
  font-weight: 600;
}

.panel {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}

.block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.block-head h3, .panel h3 {
  margin: 0;
  font-size: 1.7rem;
}

.block-head p, .hint, #design-help, #name-warn {
  color: var(--muted);
  font-size: 0.92rem;
}

#name-warn:empty { display: none; }

#name-warn { color: var(--wine); margin-top: 8px; }

.name-list { display: flex; flex-direction: column; gap: 6px; }

.name-row {
  display: grid;
  grid-template-columns: 28px 14px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 14px;
}

.name-row.is-on {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.num {
  width: 28px;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.name-row input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}

.name-row input::placeholder { color: #b3a89c; }

.row-price {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
}

.icon-btn:hover { background: rgba(124, 44, 56, 0.08); color: var(--wine); }

.row-actions, .order-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.row-actions { margin-top: 10px; }

.btn, .btn-ghost, .btn-light, .btn-line, .add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  border: 0;
  line-height: 1.2;
}

.btn { background: var(--forest); color: var(--cream); }

.btn:hover { background: #245244; }

.btn-wine { background: var(--wine); color: var(--cream); }

.btn-wine:hover { background: #641f2b; }

.btn-light { background: var(--cream); color: var(--forest); }

.btn-line {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.add-btn {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(36, 28, 22, 0.18);
}

.paste-box { margin-top: 14px; }

.paste-box label, .fields label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

textarea, .fields input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
}

textarea { min-height: 96px; resize: vertical; }

.design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.design-card, .size-btn, .font-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  color: var(--ink);
}

.design-card { padding: 6px 6px 10px; text-align: center; }

.design-card.is-on, .size-btn.is-on, .font-btn.is-on {
  background: #fff;
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--forest);
}

.thumb svg, .thumb canvas { width: 78%; margin: 0 auto; display: block; }

.fusion-thumb { width: 100%; height: auto; display: block; }

.design-name { display: block; font-size: 0.92rem; }

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.size-btn { padding: 10px 6px; }

.size-btn strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.size-btn span { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

.color-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.color-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(36, 28, 22, 0.16);
  padding: 0;
}

.color-btn.is-on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--forest); }

.color-btn:disabled { opacity: 0.35; cursor: default; }

.font-grid { display: grid; gap: 8px; }

.font-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 8px 14px;
}

.font-btn span { display: flex; flex-direction: column; }

.font-btn .sample { font-size: 1.8rem; line-height: 1.1; }

.font-btn small, .font-btn em { color: var(--muted); font-style: normal; font-size: 0.82rem; }

.filmstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
}

.film-item {
  flex: 0 0 112px;
  scroll-snap-align: start;
  border: 1px solid transparent;
  background: var(--card);
  border-radius: 16px;
  padding: 4px 4px 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.film-item.is-on { box-shadow: inset 0 0 0 2px var(--gold); }

.film-item span {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-scene {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 28px;
  color: #f6f1e7;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.05), transparent 16%),
    radial-gradient(circle at 82% 62%, rgba(0, 0, 0, 0.28), transparent 24%),
    linear-gradient(180deg, #303a36 0%, #1c2623 48%, #141c1a 100%);
  box-shadow: var(--shadow);
}

.scene-garland {
  display: block;
  width: 100%;
  height: 78px;
}

.scene-garland.is-foot { height: 64px; }

.scene-head {
  position: relative;
  z-index: 1;
  margin-top: -18px;
  text-align: center;
}

.scene-script {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  line-height: 0.7;
  color: #fff8ef;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.scene-head h2 {
  margin: 0.05em 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  letter-spacing: 0.22em;
  color: #e6c35c;
}

#scene-note {
  margin: 10px 0 0;
  color: #e6d3a8;
  font-size: 0.92rem;
}

.scene-board {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px 26px;
  min-height: 120px;
  padding: 18px 22px 8px;
}

.scene-piece {
  width: calc(var(--cm) * 11px / var(--ball, 0.76));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.scene-string {
  width: 1px;
  height: 16px;
  background: linear-gradient(#f0e2c4, #b08948);
}

.scene-ornament { width: 100%; }

.scene-ornament svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.38));
}

.scene-piece.is-on .scene-ornament svg {
  filter: drop-shadow(0 0 0 #e6d3a8) drop-shadow(0 12px 8px rgba(0, 0, 0, 0.38));
}

.scene-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  max-width: 100%;
}

.scene-caption strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.scene-caption small { color: #e6d3a8; font-size: 0.78rem; }

.summary-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-lines button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px;
}

.summary-lines button.is-on { background: rgba(182, 137, 74, 0.12); }

.summary-lines span { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; }

.summary-lines small { grid-column: 1; color: var(--muted); }

.summary-lines strong { grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(36, 28, 22, 0.22);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.fine {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.fields { display: grid; gap: 12px; margin-top: 14px; }

.order-actions { margin-top: 14px; }

#form-error {
  min-height: 1.2em;
  margin-top: 10px;
  color: var(--wine);
}

.order-saved {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cream);
  display: grid;
  gap: 6px;
}

.order-saved a {
  color: var(--forest);
  font-weight: 600;
  word-break: break-all;
}

.thermo-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.thermo-preview {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.thermo-shell {
  width: 168px;
  display: grid;
  justify-items: center;
  filter: drop-shadow(0 18px 24px rgba(20, 24, 28, 0.28));
}

.thermo-lid {
  width: 72%;
  height: 18px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #d7dce0, #9aa1aa 55%, #7d848e);
  position: relative;
  z-index: 2;
}

.thermo-lid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 28px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #eceff3, #9aa1aa);
}

.thermo-rim {
  width: 86%;
  height: 12px;
  margin-top: -2px;
  border-radius: 3px;
  background: linear-gradient(180deg, #eceff3, #8e959e);
  z-index: 1;
}

.thermo-body {
  width: 100%;
  min-height: 280px;
  margin-top: -1px;
  padding: 54px 18px 48px;
  border-radius: 18px 18px 42% 42% / 12px 12px 28px 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 18%, transparent 82%, rgba(0,0,0,0.25)),
    linear-gradient(180deg, #2a2e33 0%, #16191d 40%, #101214 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.thermo-art {
  width: min(78%, 110px);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.15));
}

.thermo-name-face {
  margin: 0;
  max-width: 100%;
  color: #c5c8cc;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  word-break: break-word;
  text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.thermo-foot {
  width: 78%;
  height: 16px;
  margin-top: -8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #dfe3e8, #8e959e);
}

.thermo-controls { display: grid; gap: 10px; }

.thermo-kicker {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thermo-design-grid,
.thermo-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.thermo-design-card,
.thermo-font-card {
  min-height: 72px;
  padding: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
}

.thermo-design-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.thermo-design-card small,
.thermo-font-card small {
  color: var(--ink);
  font-size: 0.75rem;
  text-align: center;
}

.thermo-design-card.is-on,
.thermo-font-card.is-on {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.thermo-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.thermo-field input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.thermo-price {
  margin: 0;
  color: var(--forest);
  font-weight: 600;
}

.thermo-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.thermo-cart li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--cream);
  font-size: 0.9rem;
}

.thermo-cart small {
  display: block;
  color: var(--muted);
}

@media (max-width: 720px) {
  .thermo-layout { grid-template-columns: 1fr; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: var(--cream);
}

.product-card img, .product-fallback {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.product-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.product-card p { color: var(--muted); font-size: 0.88rem; }

.qty-row { display: flex; align-items: center; gap: 8px; }

.qty-row button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.summary-plain {
  display: grid;
  gap: 2px;
  padding: 8px 0;
}

.muted { color: var(--muted); }

.band { padding: 18px 0 48px; }

.config-layout.is-wide {
  grid-template-columns: 1fr;
}

.config-layout.is-wide .preview-col { display: none; }

.config-layout.is-wide .editor {
  grid-column: 1;
  grid-row: 1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.steps li, .faq details, .material-copy {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.steps span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: var(--wine);
  line-height: 1;
}

.steps strong { display: block; margin: 6px 0; }

.material {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
}

.material-ornament { width: min(100%, 320px); margin: 0 auto; }

.checks { margin: 14px 0 0; padding-left: 18px; }

.checks li + li { margin-top: 6px; }

.faq { display: grid; gap: 10px; margin-top: 18px; }

.faq summary { cursor: pointer; font-weight: 600; }

.faq details p { margin-top: 8px; color: var(--muted); }

.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.site-footer p { color: rgba(246, 241, 231, 0.75); }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255, 252, 247, 0.96);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-bar strong { display: block; }

.mobile-bar span { color: var(--muted); font-variant-numeric: tabular-nums; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 16px;
  border-radius: 999px;
  z-index: 40;
  transition: 0.25s ease;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ball { animation: swing 5.4s ease-in-out infinite; }
  .ball:nth-child(2) { animation-delay: -1.5s; }
  .ball:nth-child(3) { animation-delay: -2.8s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ball { animation: none; }
}

@keyframes swing {
  0%, 100% { transform: rotate(-2.4deg); }
  50% { transform: rotate(2.4deg); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero, .config-layout, .steps, .material { display: block; }
  .preview-col {
    position: sticky;
    top: var(--header);
    z-index: 5;
    grid-column: auto;
    grid-row: auto;
    background: var(--bg);
    padding-bottom: 8px;
  }
  .editor { grid-column: auto; grid-row: auto; }
  .stage {
    min-height: 0;
    border-radius: 18px;
    padding: 8px 10px 10px;
  }
  .stage-kicker { margin-bottom: 2px; }
  #stage-meta { font-size: 0.78rem; }
  #stage-price { font-size: 1.2rem; }
  .stage[data-size] .ornament-wrap { width: 118px; }
  .stage.is-3d[data-size] .ornament-wrap { width: min(100%, 280px); }
  .stage.is-3d[data-size] #ornament { height: 240px; }
  .name-row input,
  .panel,
  #pedir { scroll-margin-top: 320px; }
  .hero { padding-bottom: 36px; }
  .hero-ornaments { min-height: 0; margin-top: 10px; }
  .ball, .ball:nth-child(2) { width: 34vw; margin: 0 -3vw; }
  .steps li + li, .faq { margin-top: 10px; }
  .order-scene { margin-top: 16px; border-radius: 18px; }
  .scene-garland { height: 52px; }
  .scene-garland.is-foot { height: 44px; }
  .scene-piece { width: calc(var(--cm) * 8px / var(--ball, 0.76)); }
  .material-ornament { margin: 18px auto; }
  body { padding-bottom: 76px; }
  .mobile-bar { display: flex; }
  .toast { bottom: 88px; }
}

@media (max-width: 560px) {
  .design-grid, .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-cta { display: none; }
  .name-row { grid-template-columns: 22px 12px minmax(0, 1fr) auto; }
  .row-price { display: none; }
}
