:root {
  --acid: #dcdf2a;
  --deep: #07120c;
  --forest: #102419;
  --paper: #f1eedb;
  --ink: #102018;
  --muted: #657066;
  --line: rgba(16, 32, 24, .22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 300px; background: var(--deep); }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); }
button, input { font: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }

.page { min-height: 100svh; background: var(--paper); }
.visual {
  min-height: 48svh;
  padding: 22px 20px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(4, 13, 7, .28), rgba(4, 13, 7, .92)),
    url("../assets/poster-principal.jpeg") center 31% / cover no-repeat;
}
.grain { position: absolute; inset: 0; opacity: .13; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.brand, .title-block { position: relative; z-index: 1; }
.brand { color: inherit; text-decoration: none; text-transform: uppercase; font-size: 10px; letter-spacing: .22em; }
.eyebrow { color: var(--acid); text-transform: uppercase; letter-spacing: .19em; font-size: 10px; margin: 0 0 10px; }
h1 { margin: 0; color: var(--acid); font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(58px, 19vw, 108px); line-height: .78; text-transform: uppercase; letter-spacing: -.03em; }
h1 span { display: block; color: var(--paper); font-size: .72em; }
.event { display: flex; flex-wrap: wrap; gap: 13px 24px; margin: 24px 0 0; }
.event div { min-width: 92px; }
.event dt { color: #aeb7aa; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; }
.event dd { margin: 5px 0 0; font-size: 12px; font-weight: 700; }

.panel { background: var(--paper); }
.panel-inner { width: min(100%, 590px); margin: 0 auto; padding: 36px 20px 28px; }
.step { color: #61705f; text-transform: uppercase; letter-spacing: .2em; font-size: 10px; margin: 0 0 9px; }
h2 { margin: 0 0 20px; font-family: Impact, "Arial Narrow", sans-serif; text-transform: uppercase; font-size: clamp(36px, 11vw, 55px); line-height: .92; letter-spacing: .01em; }
.intro { color: #566159; line-height: 1.55; font-family: Georgia, serif; }
.field { margin: 18px 0; }
label, legend { display: block; margin-bottom: 8px; color: #4d5c50; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
input { width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid #a6ae9f; border-radius: 0; background: #faf8ec; color: var(--ink); }
input:focus, button:focus-visible { outline: 3px solid rgba(72, 91, 46, .35); outline-offset: 2px; }
.primary { width: 100%; min-height: 53px; padding: 14px 18px; border: 0; background: var(--acid); color: #142318; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.primary:disabled, .danger:disabled, .text-button:disabled { cursor: wait; opacity: .56; }
.privacy, .identity-note, footer { font-size: 11px; line-height: 1.55; color: #647067; }
.status { margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid var(--acid); background: #e4e3c9; line-height: 1.45; font-size: 13px; }
.status:empty { display: none; }
.status.error { border-color: #8c302b; background: #efdad2; color: #671d1a; }
.status.success { border-color: #3e663f; background: #dce7d5; color: #244c2b; }
.welcome { position: relative; padding: 17px 96px 17px 0; margin-bottom: 24px; border-block: 1px solid var(--line); }
.welcome p { margin: 0 0 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.welcome strong { font-size: 20px; }
.text-button { position: absolute; right: 0; top: 17px; padding: 0; border: 0; background: transparent; color: #465e4a; text-decoration: underline; cursor: pointer; font-size: 12px; }
fieldset { margin: 0; padding: 0; border: 0; }
.allocation { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.ticket-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px; margin-bottom: 24px; }
.ticket-option { min-height: 50px; border: 1px solid #929d8f; background: transparent; color: var(--ink); cursor: pointer; font-weight: 800; }
.ticket-option[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--acid); }
.companions { margin-bottom: 20px; }
.companions .field { margin: 13px 0; }
.danger { width: 100%; margin-top: 11px; min-height: 45px; border: 1px solid #963a32; background: transparent; color: #7a2521; cursor: pointer; font-weight: 700; }
.identity-note { margin-top: 20px; padding: 14px; border: 1px solid #c6c8b7; }
footer { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (min-width: 840px) {
  .page { display: grid; grid-template-columns: minmax(430px, 1.1fr) minmax(410px, .9fr); }
  .visual { min-height: 100svh; position: sticky; top: 0; padding: 35px 4vw 44px; background-image: linear-gradient(180deg, rgba(4, 13, 7, .22), rgba(4, 13, 7, .88)), url("../assets/fotograma-1.jpeg"); }
  .panel { min-height: 100svh; display: grid; align-items: center; }
  .panel-inner { padding: 48px clamp(28px, 5vw, 70px); }
  h1 { font-size: clamp(80px, 9vw, 145px); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
