/* Eventu Staff — tema claro Apple-like en todo el portal · tiquetes de cine
   fondo #F5F5F7 · tinta #1D1D1F · gris #86868B · rosa Eventu #F92D5C */
* { box-sizing: border-box; margin: 0; }
:root {
  --fondo: #F5F5F7; --card: #FFFFFF; --ink: #1D1D1F; --ink2: #86868B;
  --hair: rgba(0,0,0,.12); --hair2: rgba(0,0,0,.06);
  --rosa: #F92D5C; --rosa2: #FF7396; --ok: #2FA96C; --rojo: #C4462E;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
}
body {
  background: var(--fondo); color: var(--ink); font-family: var(--body);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1000px 420px at 50% -160px, rgba(249,45,92,.06), transparent 62%);
}
a { color: var(--rosa); text-decoration: none; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--ink2); margin-bottom: 16px; text-transform: uppercase; }

/* ══ AUTENTICACIÓN — tiquete grande ══ */
body.centered {
  display: grid; place-items: center; padding: 24px;
  background-image:
    radial-gradient(900px 420px at 50% -140px, rgba(249,45,92,.07), transparent 60%),
    radial-gradient(700px 500px at 85% 110%, rgba(249,45,92,.045), transparent 60%);
}
.stage { width: 100%; max-width: 660px; perspective: 1200px; }
.t-float { animation: drop .8s cubic-bezier(.16,1,.3,1) both, levitate 6.5s ease-in-out 1.2s infinite; }
.ticket {
  display: flex; border-radius: 22px; overflow: hidden;
  background: var(--card); color: var(--ink);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 24px rgba(0,0,0,.06), 0 46px 90px -24px rgba(29,29,31,.22);
  transition: transform .25s ease-out; will-change: transform;
}
.t-body { flex: 1; padding: 40px 40px 30px; min-width: 0; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.t-logo { height: 24px; width: auto; display: block; }
.t-eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em; color: var(--ink2); white-space: nowrap; }
.ticket h1 { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.015em; margin-bottom: 16px; }
.ticket .sub { font-size: 14.5px; color: var(--ink2); line-height: 1.6; margin-bottom: 22px; }
.ticket .sub strong { color: var(--ink); font-weight: 600; }
.t-meta {
  display: flex; gap: 26px; padding: 12px 0 14px; margin-bottom: 20px;
  border-top: 1px dashed var(--hair); border-bottom: 1px dashed var(--hair);
}
.t-meta div { display: flex; flex-direction: column; gap: 3px; }
.t-meta span { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }
.t-meta b { font-size: 13.5px; font-weight: 600; }
.ticket label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink2); text-transform: uppercase; margin-bottom: 20px; }
.ticket input {
  width: 100%; margin-top: 5px; padding: 10px 2px; font: 17px var(--body); color: var(--ink);
  background: linear-gradient(var(--rosa), var(--rosa)) left bottom / 0% 2px no-repeat;
  border: 0; border-bottom: 2px dashed var(--hair); border-radius: 0; outline: none;
  transition: background-size .3s ease;
}
.ticket input::placeholder { color: rgba(29,29,31,.28); }
.ticket input:focus { background-size: 100% 2px; }
.btn {
  width: 100%; margin-top: 10px; padding: 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--rosa); color: #fff; font: 600 15.5px var(--body); letter-spacing: .01em;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 26px -8px rgba(249,45,92,.5); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .chip:focus-visible, .mini:focus-visible, .pass:focus-visible, .t-forgot:focus-visible { outline: 2px solid var(--rosa); outline-offset: 2px; }
.t-forgot { display: inline-block; margin-top: 18px; font-size: 13.5px; color: var(--ink2); text-decoration: underline dashed var(--hair); text-underline-offset: 4px; }
.t-forgot:hover { color: var(--rosa); }
.t-perf { position: relative; width: 0; border-left: 2px dashed var(--hair); margin: 16px 0; }
.t-perf::before, .t-perf::after {
  content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--fondo); box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
}
.t-perf::before { top: -28px; }
.t-perf::after { bottom: -28px; }
.t-stub {
  width: 138px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 12px; padding: 28px 14px 20px;
  background:
    repeating-linear-gradient(45deg, rgba(249,45,92,.035) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #FBFBFD, #F4F4F6);
}
.t-admit { font-family: var(--mono); font-size: 11px; letter-spacing: .34em; color: var(--rosa); writing-mode: vertical-rl; }
.t-barcode {
  position: relative; overflow: hidden; width: 48px; flex: 1; max-height: 170px; margin: 6px 0; border-radius: 3px;
  background: repeating-linear-gradient(180deg, #1D1D1F 0 2px, transparent 2px 5px, #1D1D1F 5px 6px, transparent 6px 11px, #1D1D1F 11px 14px, transparent 14px 17px);
  opacity: .9;
}
.t-barcode::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26%;
  background: linear-gradient(180deg, transparent, rgba(249,45,92,.5), transparent);
  animation: scan 2.8s ease-in-out infinite;
}
.t-no { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; color: var(--ink2); text-align: center; }
.ticket .error, .error { background: rgba(196,70,46,.07); border: 1px dashed rgba(196,70,46,.4); color: var(--rojo); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.ticket .okmsg, .okmsg { background: rgba(47,169,108,.08); border: 1px dashed rgba(47,169,108,.4); color: var(--ok); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.foot { text-align: center; margin-top: 26px; font-size: 12.5px; color: var(--ink2); }
.foot a { color: var(--rosa); }

@keyframes drop {
  0% { opacity: 0; transform: translateY(-42px) rotate(-2.6deg) scale(.97); }
  55% { opacity: 1; transform: translateY(7px) rotate(.8deg) scale(1.005); }
  78% { transform: translateY(-3px) rotate(-.3deg); }
  100% { transform: none; }
}
@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes scan { 0% { top: -30%; } 55% { top: 105%; } 100% { top: 105%; } }

/* ══ PORTAL — claro, accesos como entradas ══ */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px clamp(18px, 4vw, 44px);
  background: rgba(245,245,247,.8); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--hair2);
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand-mark { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .04em; color: var(--ink); }
.brand-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--rosa); text-transform: uppercase; }
.who { display: flex; align-items: center; gap: 10px; }
.who-name { font-size: 13.5px; color: var(--ink2); }
.chip {
  font: 500 12.5px var(--body); color: var(--ink); background: var(--card);
  border: 1px solid var(--hair2); border-radius: 999px; padding: 7px 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.chip:hover { border-color: rgba(249,45,92,.45); color: var(--rosa); }
.chip-link { display: inline-block; }
.deck { padding: 34px clamp(18px, 4vw, 44px) 60px; max-width: 1180px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* cada acceso = una entrada */
.pass {
  position: relative; display: flex; min-height: 168px;
  background: var(--card); color: var(--ink);
  border: 1px solid rgba(0,0,0,.05); border-radius: 16px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.05);
  animation: rise .45s cubic-bezier(.2,.8,.2,1) both;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pass:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 24px 48px -14px rgba(29,29,31,.25), 0 0 34px -16px rgba(249,45,92,.5); }
.pass-stub {
  position: relative; width: 46px; flex-shrink: 0; display: grid; place-items: center;
  border-right: 2px dashed var(--hair);
  background: repeating-linear-gradient(45deg, rgba(249,45,92,.04) 0 8px, transparent 8px 16px), linear-gradient(180deg, #FBFBFD, #F3F3F5);
}
.pass-stub::before, .pass-stub::after {
  content: ""; position: absolute; right: -12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--fondo); box-shadow: inset 0 1px 2px rgba(0,0,0,.06); z-index: 1;
}
.pass-stub::before { top: -11px; }
.pass-stub::after { bottom: -11px; }
.pass-barcode {
  width: 20px; height: 72%; border-radius: 2px; opacity: .85;
  background: repeating-linear-gradient(180deg, #1D1D1F 0 2px, transparent 2px 4px, #1D1D1F 4px 5px, transparent 5px 9px, #1D1D1F 9px 11px, transparent 11px 14px);
}
.pass-main { display: flex; flex-direction: column; gap: 7px; padding: 20px 20px 16px; min-width: 0; flex: 1; }
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pass-icon { width: 28px; height: 28px; color: var(--rosa); }
.pass-icon svg { width: 100%; height: 100%; }
.pass-admit { font-family: var(--mono); font-size: 9px; letter-spacing: .22em; color: var(--ink2); }
.pass-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.pass-desc { font-size: 13px; color: var(--ink2); line-height: 1.45; flex: 1; }
.pass-go { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; color: var(--rosa); padding-top: 8px; border-top: 1px dashed var(--hair2); }
.pass:hover .pass-go { letter-spacing: .24em; }
.empty { color: var(--ink2); font-size: 14.5px; padding: 30px 0; }

/* formularios (admin) */
label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink2); text-transform: uppercase; margin-bottom: 16px; }
input, select {
  width: 100%; margin-top: 7px; padding: 12px 14px; font: 15px var(--body); color: var(--ink);
  background: var(--card); border: 1px solid var(--hair); border-radius: 9px; outline: none;
}
input:focus, select:focus { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(249,45,92,.15); }

/* admin */
.admin section { margin-bottom: 44px; }
.tablewrap { overflow-x: auto; border: 1px solid rgba(0,0,0,.05); border-radius: 14px; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.04); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--hair2); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--hair2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.c, th.c { text-align: center; }
.u-name { font-weight: 600; }
.u-mail { font-family: var(--mono); font-size: 11.5px; color: var(--ink2); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(47,169,108,.5); }
.dot.pend { background: var(--ink2); opacity: .5; }
td input[type="checkbox"] { accent-color: var(--rosa); width: 15px; height: 15px; }
td input[type="text"], td input:not([type]), td select { margin-top: 0; padding: 8px 10px; font-size: 13px; min-width: 110px; }
.mini {
  font: 600 12px var(--body); color: var(--ink); background: var(--card);
  border: 1px solid var(--hair); border-radius: 7px; padding: 7px 12px; cursor: pointer; white-space: nowrap;
}
.mini:hover { border-color: var(--rosa); color: var(--rosa); }
.mini.amber { background: var(--rosa); color: #fff; border-color: transparent; }
.mini.amber:hover { color: #fff; filter: brightness(1.06); }
.mini.danger:hover { border-color: var(--rojo); color: var(--rojo); }
.hint { margin-top: 10px; font-size: 12.5px; color: var(--ink2); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .t-float, .pass, .t-barcode::after { animation: none; }
  .ticket, .pass:hover, .btn:hover { transform: none !important; }
}
@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; }
  .t-body { padding: 30px 26px 24px; }
  .ticket h1 { font-size: 32px; }
  .t-meta { gap: 18px; flex-wrap: wrap; }
  .ticket { flex-direction: column; }
  .t-perf { width: auto; height: 0; border-left: 0; border-top: 2px dashed var(--hair); margin: 0 16px; }
  .t-perf::before { top: -12px; left: -28px; }
  .t-perf::after { top: -12px; left: auto; right: -28px; bottom: auto; }
  .t-stub { width: auto; flex-direction: row; padding: 16px 24px; }
  .t-admit { writing-mode: horizontal-tb; letter-spacing: .28em; }
  .t-barcode { width: auto; height: 42px; max-height: none; flex: 1;
    background: repeating-linear-gradient(90deg, #1D1D1F 0 2px, transparent 2px 5px, #1D1D1F 5px 6px, transparent 6px 11px, #1D1D1F 11px 14px, transparent 14px 17px); }
  .t-barcode::after { height: 100%; width: 26%; background: linear-gradient(90deg, transparent, rgba(249,45,92,.5), transparent); animation-name: scanx; }
}
@keyframes scanx { 0% { left: -30%; } 55% { left: 105%; } 100% { left: 105%; } }

/* ── bienvenida post-login: destello rosa/blanco ── */
.welcome {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  animation: wl-bg 1.55s ease-in-out both, wl-out .5s ease .55s both;
  animation-delay: 0s, 1.75s; pointer-events: none;
}
.wl-inner { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.wl-hi {
  font-family: var(--mono); font-size: 13px; letter-spacing: .34em; text-transform: uppercase;
  animation: wl-text 1.55s ease-in-out both, wl-pop .6s cubic-bezier(.2,.9,.3,1.4) both;
}
.wl-name {
  font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8vw, 84px); letter-spacing: -.02em;
  animation: wl-text 1.55s ease-in-out both, wl-pop .7s .12s cubic-bezier(.2,.9,.3,1.4) both;
}
@keyframes wl-bg {
  0%, 26% { background: var(--rosa); }
  36%, 60% { background: #fff; }
  72%, 100% { background: var(--rosa); }
}
@keyframes wl-text {
  0%, 26% { color: #fff; }
  36%, 60% { color: var(--rosa); }
  72%, 100% { color: #fff; }
}
@keyframes wl-pop { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes wl-out { to { opacity: 0; visibility: hidden; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .welcome { animation: wl-out .4s ease 1.2s both; background: var(--rosa); }
  .wl-hi, .wl-name { animation: none; color: #fff; }
}

/* ── Centro de Operación: rail + iframes persistentes ── */
body.fullpage { overflow: hidden; }
.centro { display: flex; height: 100vh; }
.c-rail {
  width: 190px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px; background: rgba(255,255,255,.75); backdrop-filter: blur(18px) saturate(1.6);
  border-right: 1px solid var(--hair2);
}
.c-home { font-size: 17px; color: var(--ink2); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; }
.c-home:hover { background: var(--fondo); color: var(--rosa); }
.c-title { font-family: var(--mono); font-size: 10px; letter-spacing: .26em; color: var(--rosa); line-height: 1.7; margin: 8px 4px 16px; }
.c-tabs { display: flex; flex-direction: column; gap: 4px; }
.c-tab {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font: 500 14px var(--body); cursor: pointer; text-align: left;
  transition: background .12s;
}
.c-tab:hover { background: var(--fondo); }
.c-tab.active { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06), inset 0 0 0 1px var(--hair2); color: var(--rosa); font-weight: 600; }
.c-ic { width: 19px; height: 19px; display: inline-flex; }
.c-ic svg { width: 100%; height: 100%; }
.c-grow { flex: 1; }
.c-ext { font-size: 12.5px; color: var(--ink2); padding: 8px 12px; border-radius: 9px; }
.c-ext:hover { background: var(--fondo); color: var(--rosa); }
.c-user { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--ink2); padding: 6px 12px; text-transform: uppercase; }
.c-frames { flex: 1; position: relative; background: var(--fondo); }
.c-frames iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; background: #fff;
}
.c-frames iframe.active { display: block; }
@media (max-width: 700px) {
  .centro { flex-direction: column; }
  .c-rail { width: auto; flex-direction: row; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--hair2); }
  .c-title { display: none; }
  .c-tabs { flex-direction: row; }
  .c-tab span:last-child { display: none; }
  .c-user { display: none; }
}
