:root {
  /* Marca: lila/lavanda con letra cursiva negra. Un solo tema (claro). */
  color-scheme: light;
  --bg: #fcf4fc; --surface: #fff; --ink: #2a2230; --muted: #8a7685;
  --brand: #9a4aa6; --brand-dark: #763680; --brand-soft: #f9e3fb;
  --lila: #eab6f2; --lav: #f6d8f8; --script: #1d1720; --gold: #b8964f;
  --line: #f2dcf3; --wa: #25d366; --danger: #b3412f; --ok: #4f7a52;
  --shadow: 0 6px 24px rgba(110, 50, 110, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Nunito Sans", system-ui, sans-serif; background: var(--bg); color: var(--ink); }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; letter-spacing: .01em; }
h3 { font-weight: 800; }
.script { font-family: "Great Vibes", cursive; font-weight: 400; color: var(--script); letter-spacing: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--brand-dark); }

/* Íconos de línea y adornos */
.ico { width: 1em; height: 1em; display: block; }
.deco { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 28px; }
.deco.big { width: 96px; height: 96px; font-size: 46px; margin-bottom: 10px; }

.btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn.brand { background: var(--brand); color: #fff; font-size: 1rem; }
.btn:disabled, .btn.brand:disabled { background: #f3e6f3; color: #80707c; cursor: not-allowed; filter: none; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid #f1c9c3; }
.btn.wa { background: var(--wa); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.block { width: 100%; }

.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.input:focus { outline: 2px solid var(--lila); border-color: var(--brand); }
textarea.input { resize: vertical; min-height: 60px; }
label.lbl { display: block; font-size: .82rem; font-weight: 700; margin: 12px 0 5px; }

.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(40, 15, 40, .42); z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow: auto; }
.modal-bg.open { display: flex; }
.modal { background: var(--bg); border-radius: 24px; width: min(900px, 100%); position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.modal .x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.x { border: 0; background: #fff; width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; box-shadow: var(--shadow); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: .25s; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translateX(-50%); }

.demo-banner { background: var(--ink); color: #f6d8f8; text-align: center; font-size: .82rem; padding: 7px 16px; font-weight: 600; letter-spacing: .02em; }

/* Foto de muestra (producto sin foto) */
.ph { display: grid; place-items: center; width: 100%; height: 100%; position: relative; color: var(--brand); }
.ph > .ico { width: 42%; height: auto; aspect-ratio: 1; stroke-width: 1; opacity: .85; }
.ph > .ph-spark { position: absolute; width: 16%; top: 12%; right: 12%; color: var(--gold); stroke-width: 1.2; opacity: .9; }
.muted { color: var(--muted); }
