:root {
  --ink: #140c0b;      /* cuarto oscuro */
  --ink-2: #221413;
  --ink-3: #3d2522;
  --cream: #f2ede3;    /* papel fotográfico */
  --muted: #b8a49c;
  --orange: #e0332a;   /* luz roja de seguridad */
  --yellow: #ff8a2a;   /* fecha estampada */
  --pink: #ff4f8b;
  --green: #3ddc84;
  --radius: 18px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --mono: 'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--ink); color: var(--cream);
  font-family: var(--font); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body::before { /* grano de película */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--yellow); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: .95; margin: 0 0 .4em; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); font-weight: 900; }
body { background: radial-gradient(90% 50% at 50% 0%, #3a0c09 0%, transparent 70%), var(--ink); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.wrap { max-width: 520px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Tira de película */
.film {
  height: 22px; background-color: #000;
  background-image: linear-gradient(90deg, transparent 0 9px, rgba(255,247,234,.85) 9px 19px, transparent 19px);
  background-size: 28px 9px; background-repeat: repeat-x; background-position: 0 center;
}

.brand { display: inline-flex; align-items: center; gap: .45em; font: 900 1.35rem var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.brand-dot { width: .7em; height: .7em; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255,92,33,.25); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.topbar button.link { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; min-height: 58px; padding: 14px 22px; border: 3px solid #000; border-radius: 0;
  background: var(--orange); color: #fff; font: 900 1.35rem var(--display); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 #000; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 #000; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 5px 5px 0 #000; }
.btn.yellow { background: var(--cream); color: var(--ink); }
button.link { background: none; border: 0; color: var(--yellow); font: inherit; text-decoration: underline; cursor: pointer; padding: 6px; }

input[type=text], input[type=email], input[type=number], input[type=date], input[type=datetime-local], select {
  width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 0; border: 2px solid var(--ink-3);
  background: var(--ink-2); color: var(--cream); font: 600 1.1rem var(--font); outline: none;
  color-scheme: dark;
}
input:focus, select:focus { border-color: var(--orange); }
label.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
label.field small { display: block; color: var(--muted); margin-top: 6px; font-size: .85rem; }

.card { background: var(--ink-2); border-radius: 0; padding: 20px; border: 1px solid var(--ink-3); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 50;
  width: min(92vw, 440px); padding: 16px 18px; border-radius: 16px; background: var(--cream); color: var(--ink);
  font-weight: 700; box-shadow: 0 12px 40px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,1.3,.4,1), visibility .35s;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* Hoja de ayuda */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(0,0,0,.6); }
.sheet-body { width: 100%; max-height: 88dvh; overflow: auto; background: var(--cream); color: var(--ink); border-radius: 24px 24px 0 0; padding: 22px 22px 34px; }
.sheet-body h3 { font-size: 1.05rem; margin: 1.1em 0 .25em; }
.sheet-body p { margin: 0; color: #4a3f37; font-size: .98rem; }
.sheet-body a { color: var(--orange); }
@media (min-width: 640px) { .sheet { align-items: center; justify-content: center; } .sheet-body { max-width: 520px; border-radius: 24px; } }
