/* Luce · Generador de flyer — mismos tokens que la página de inicio */
:root {
  color-scheme: dark;
  --blue-200: #c8ddf7; --blue-300: #8fbcf0; --blue-400: #4f95e6; --blue-500: #2f80e0;
  --gold-100: #f7edd6; --gold-300: #e6b95d; --gold-400: #c08f35;
  --hero-from: #0a1f3a; --hero-mid: #123a68; --hero-warm-1: #2c4467; --hero-warm-2: #475260;
  --text-2: rgba(255,255,255,.74); --text-3: rgba(255,255,255,.52);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.2,.7,.3,1);
}
* { box-sizing: border-box; margin: 0; }
body {
  min-height: 100vh; font-family: var(--font-sans); color: #fff; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(46% 40% at 96% 10%, rgb(230 185 93 / 14%), transparent 70%),
    radial-gradient(64% 50% at 15% 10%, rgb(47 128 224 / 20%), transparent 72%),
    linear-gradient(162deg, var(--hero-from) 0%, var(--hero-mid) 44%, var(--hero-warm-1) 76%, var(--hero-warm-2) 100%) fixed;
}
.top { display: flex; justify-content: space-between; align-items: center; padding: 28px clamp(20px, 6vw, 80px) 0; }
.top__logo img { width: 128px; height: auto; display: block; }
.top__volver { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.top__volver:hover { color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 36px clamp(20px, 6vw, 40px) 64px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 14px; }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; font-weight: 700; letter-spacing: -.015em; }
h1 em { font-style: normal; color: transparent; background: linear-gradient(120deg, #fff, var(--blue-200) 38%, var(--blue-300)); -webkit-background-clip: text; background-clip: text; }
.lead { margin-top: 14px; color: var(--text-2); font-size: 16.5px; line-height: 1.6; max-width: 52ch; }

.grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin-top: 36px; align-items: start; }
.card { padding: 26px; border-radius: 20px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.card h2 { font-size: 19px; }
.sub { margin: 4px 0 18px; font-size: 13.5px; color: var(--text-3); }

.field { display: grid; gap: 7px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.field__t { font-size: 14px; }
input[type=text], select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; font: inherit; font-weight: 400; color: #fff;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
select option { color: #111; }
input::placeholder { color: var(--text-3); }
input:focus-visible, select:focus-visible, button:focus-visible, .drop:focus-within { outline: 3px solid var(--gold-300); outline-offset: 2px; }

.drop { display: grid; gap: 4px; place-items: center; padding: 20px 14px; text-align: center; cursor: pointer; border-radius: 14px; font-weight: 600; font-size: 14px; border: 1.5px dashed rgba(255,255,255,.3); transition: background .2s, border-color .2s; }
.drop small { font-weight: 400; color: var(--text-3); }
.drop:hover, .drop.is-over { background: rgba(255,255,255,.08); border-color: var(--gold-300); }
.aviso { margin: -4px 0 16px; padding: 10px 14px; border-radius: 10px; background: rgb(217 48 48 / 22%); font-size: 13.5px; }
.hint { font-weight: 400; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }

.fila { display: flex; align-items: center; gap: 8px; }
.fila--wrap { flex-wrap: wrap; }
.fila input[type=range] { flex: 1; max-width: 14rem; accent-color: var(--gold-300); }
.chip { padding: 8px 14px; border-radius: 999px; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); transition: background .2s; }
.chip:hover { background: rgba(255,255,255,.2); }

canvas { display: block; width: 100%; max-width: 36rem; margin-inline: auto; border-radius: 14px; touch-action: none; cursor: grab; background: rgba(0,0,0,.25); }
canvas:active { cursor: grabbing; }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.btn { padding: 14px 28px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; color: #fff; cursor: pointer; background: var(--blue-500); box-shadow: 0 10px 28px rgb(47 128 224 / 38%), inset 0 0 0 1px rgba(255,255,255,.18); transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: var(--blue-400); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: #fff; color: #0a1f3a; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: opacity .25s, translate .25s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }
.toast.is-error { background: #ffd9d9; color: #7a1010; }

@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } .top__logo img { width: 108px; } }
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } }
