[hidden] { display: none !important; }
:root {
  --red: #D8243A;
  --red-dark: #B51B2F;
  --lilac: #C08FE4;
  --lilac-dark: #8E55BD;
  --lilac-soft: #F3E8FB;
  --lilac-mist: #FAF6FD;
  --card: #F6F1F9;
  --ink: #241329;
  --ink-2: #4A3550;
  --muted: #7B6982;
  --line: #ECE2F2;
  --ok: #1F8A5B;
  --r: 20px;
  --shadow: 0 18px 40px -18px rgba(70, 20, 90, .35);
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.02em; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- botones / formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border: 0; border-radius: var(--btn-r, 999px); padding: .85em 1.5em; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .12s, background .2s, opacity .2s, box-shadow .2s; white-space: nowrap; font-size: .95rem; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #3a2142; }
.btn-red { background: var(--red); color: var(--on-red, #fff); }
.btn-red:hover:not(:disabled) { background: var(--red-dark); }
.btn-lilac { background: var(--lilac); color: var(--on-lilac, #fff); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--lilac); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1DB954; }
.btn-sm { padding: .55em 1.05em; font-size: .86rem; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink); position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--lilac-soft); }

.field { display: grid; gap: .35em; margin-bottom: 1em; }
.field label, .lbl { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.input { width: 100%; padding: .78em .95em; border: 1.5px solid var(--line); border-radius: var(--r-sm, 14px); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(192, 143, 228, .2); }
textarea.input { resize: vertical; min-height: 80px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.err { color: var(--red); font-size: .88rem; font-weight: 500; min-height: 1.2em; }
.note { font-size: .85rem; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: .3em; font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: .32em .7em; border-radius: 999px; text-transform: uppercase; }
.b-red { background: var(--red); color: var(--on-red, #fff); }
.b-lilac { background: var(--lilac); color: #fff; }
.b-soft { background: var(--lilac-soft); color: var(--lilac-dark); }
.b-dark { background: var(--ink); color: #fff; }
.b-gray { background: #E9E4EC; color: #6d6372; }

.demo-bar { background: #0f0712; color: #e9dcef; font-size: .78rem; text-align: center; padding: .45em 1em; }
.demo-bar b { color: var(--lilac); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(140px); opacity: 0; background: var(--ink); color: #fff; padding: .85em 1.4em; border-radius: 999px; font-weight: 500; z-index: 200; transition: transform .3s, opacity .3s; box-shadow: var(--shadow); max-width: 90vw; text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.modal-back { position: fixed; inset: 0; background: rgba(36, 19, 41, .5); backdrop-filter: blur(4px); z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-back.open { display: flex; animation: fade .2s; }
.modal { background: #fff; border-radius: var(--r-lg, 28px); max-width: 880px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: var(--shadow); position: relative; animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal .x { position: absolute; top: 12px; right: 12px; z-index: 3; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.empty { text-align: center; color: var(--muted); padding: 3em 1em; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--lilac-soft); border-top-color: var(--lilac); border-radius: 50%; animation: spin .8s linear infinite; margin: 3em auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.drawer-back { position: fixed; inset: 0; background: rgba(36,19,41,.45); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 115; transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.25); }
.drawer.open { transform: none; }
.drawer.left { left: 0; right: auto; transform: translateX(-105%); }
.drawer.left.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.35rem; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
