/* ==========================================================================
   PomPom Jump — reservas, ticket, invitación y panel
   ========================================================================== */

.app-hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(28px, 4vw, 48px); background: radial-gradient(50% 80% at 90% 0%, rgba(122, 60, 240, .4), transparent 70%), var(--night); }
.app-hero h1 { font-size: clamp(2.5rem, 5.6vw, 6rem); margin: 14px 0 18px; }
.app-hero .lead { max-width: 56ch; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs a { padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: inset 0 0 0 2px var(--line-night); transition: background-color .3s, color .3s; }
.tabs a:hover { box-shadow: inset 0 0 0 2px var(--on-night-3); }
.tabs a[aria-current="page"] { background: var(--bubble); color: var(--night); box-shadow: none; }

.demo-note { display: block; font-size: .86rem; color: var(--on-night-2); padding: 12px 16px; border-radius: 14px; background: rgba(255, 210, 63, .08); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .25); }
.demo-note b { color: var(--sun); margin-right: 8px; }

/* ---------- Asistente ---------- */
.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(18px, 2.4vw, 36px); align-items: start; padding-bottom: clamp(70px, 9vw, 130px); }
.wsteps { display: grid; gap: 12px; counter-reset: ws; }
.wstep { border-radius: var(--r-lg); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); overflow: hidden; transition: box-shadow .3s; }
.wstep.is-active { box-shadow: inset 0 0 0 2px var(--violet); }
.wstep__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 20px; text-align: left; }
.wstep__n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; background: rgba(253, 233, 251, .08); }
.wstep.is-active .wstep__n { background: var(--violet); color: #fff; }
.wstep.is-done .wstep__n { background: var(--mint); color: var(--night); }
.wstep__t { flex: 1; min-width: 0; }
.wstep__t b { display: block; font-family: var(--f-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 600; font-size: 1.12rem; }
.wstep__t span { display: block; color: var(--on-night-3); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wstep.is-done .wstep__t span { color: var(--mint); }
.wstep__edit { font-size: .85rem; font-weight: 700; color: var(--on-night-2); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-night); }
.wstep:not(.is-done) .wstep__edit, .wstep.is-active .wstep__edit { display: none; }
.wstep__body { display: none; padding: 4px 20px 22px; }
.wstep.is-active .wstep__body { display: block; animation: wsIn .5s var(--ease-out); }
@keyframes wsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wstep__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.err { color: var(--pink); font-size: .9rem; font-weight: 600; min-height: 1.2em; }

/* Calendario */
.cal { max-width: 460px; }
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal__head b { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-night); }
.cal__nav button:disabled { opacity: .3; cursor: default; }
.cal__nav svg { width: 16px; height: 16px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--on-night-3); padding: 4px 0; }
.cal__d { position: relative; aspect-ratio: 1; border-radius: 12px; font-weight: 700; font-size: .95rem; display: grid; place-items: center; transition: background-color .2s, transform .3s var(--ease-bounce); font-variant-numeric: tabular-nums; }
.cal__d::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; border-radius: 50%; translate: -50% 0; }
.cal__d.libre::after { background: var(--mint); }
.cal__d.pocas::after { background: var(--sun); }
.cal__d.libre, .cal__d.pocas { background: rgba(253, 233, 251, .06); }
.cal__d.libre:hover, .cal__d.pocas:hover { background: rgba(253, 233, 251, .14); }
.cal__d.lleno { color: var(--on-night-3); text-decoration: line-through; }
.cal__d.cerrado, .cal__d.pasado { color: rgba(253, 233, 251, .22); }
.cal__d:disabled { cursor: default; }
.cal__d.is-sel { background: var(--sun) !important; color: var(--night); }
.cal__d.is-sel::after { background: var(--night); }
.cal__d.is-today { box-shadow: inset 0 0 0 1.5px var(--on-night-3); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .8rem; color: var(--on-night-3); }
.cal__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* Franjas y opciones */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.slot { padding: 12px 10px; border-radius: 14px; text-align: center; background: rgba(253, 233, 251, .06); box-shadow: inset 0 0 0 1.5px transparent; transition: background-color .2s, box-shadow .2s; }
.slot b { display: block; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.slot small { font-size: .78rem; color: var(--on-night-3); }
.slot small.few { color: var(--sun); }
.slot:hover:not(:disabled) { background: rgba(253, 233, 251, .12); }
.slot:disabled { opacity: .35; cursor: default; }
.slot.is-sel { background: var(--sun); color: var(--night); }
.slot.is-sel small { color: var(--night); }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opt { position: relative; text-align: left; padding: 16px; border-radius: 16px; background: rgba(253, 233, 251, .05); box-shadow: inset 0 0 0 1.5px var(--line-night); transition: box-shadow .2s, background-color .2s; display: flex; flex-direction: column; gap: 4px; }
.opt:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--on-night-3); }
.opt:disabled { opacity: .35; cursor: default; }
.opt b { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.opt span { font-size: .85rem; color: var(--on-night-2); line-height: 1.45; }
.opt em { font-style: normal; font-weight: 800; color: var(--sun); margin-top: 4px; }
.opt.is-sel { box-shadow: inset 0 0 0 2px var(--sun); background: rgba(255, 210, 63, .08); }
.opt.is-sel::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23110b2c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.sublabel { font-weight: 700; font-size: .92rem; margin: 18px 0 10px; display: block; }
.sublabel:first-child { margin-top: 0; }

/* Contador */
.counter { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(253, 233, 251, .06); }
.counter button { width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; font-weight: 700; display: grid; place-items: center; transition: background-color .2s; }
.counter button:hover:not(:disabled) { background: rgba(253, 233, 251, .1); }
.counter button:disabled { opacity: .3; }
.counter output { min-width: 40px; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.line-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-night); }
.line-item:last-child { border-bottom: 0; }
.line-item p { margin: 0; }
.line-item small { display: block; color: var(--on-night-3); font-size: .82rem; }

.field textarea { width: 100%; min-height: 96px; padding: 14px 18px; border-radius: 16px; border: 0; background: var(--night-2); box-shadow: inset 0 0 0 1.5px var(--line-night); color: var(--on-night); resize: vertical; }
.wstep .field input[type="text"], .wstep .field input[type="tel"], .wstep .field input[type="email"], .wstep .field input[type="number"], .wstep .field input[type="date"], .wstep .field select, .wstep .field textarea { background: var(--night); }
.field input[type="tel"], .field input[type="email"] { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--night-2); box-shadow: inset 0 0 0 1.5px var(--line-night); color: var(--on-night); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--mint); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--on-night-2); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--sun); margin-top: 1px; }

/* Resumen */
.summary { position: sticky; top: calc(var(--nav-h) + 16px); border-radius: var(--r-lg); background: var(--bubble); color: var(--ink); padding: 22px; }
.summary h2 { font-size: 1.35rem; margin-bottom: 14px; }
.summary dl { display: grid; gap: 0; }
.summary dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-paper); font-size: .92rem; }
.summary dt { color: var(--on-paper-2); }
.summary dd { font-weight: 700; text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.summary__total b { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 600; font-size: 2rem; letter-spacing: -.02em; }
.summary__pay { margin-top: 6px; font-size: .86rem; color: var(--on-paper-2); }
.summary .btn { width: 100%; margin-top: 16px; }
.summary .btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.summary__trust { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .8rem; color: var(--on-paper-2); }
.summary__trust svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 960px) {
  .wiz { grid-template-columns: 1fr; }
  .summary { position: sticky; top: auto; bottom: 12px; z-index: 20; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); padding: 16px 18px; }
  .summary h2, .summary dl, .summary__trust { display: none; }
  .summary__total { margin-top: 0; }
  .summary__total b { font-size: 1.6rem; }
  .summary .btn { margin-top: 8px; min-height: 48px; }
  .summary__pay { font-size: .78rem; margin-top: 2px; }
  .summary .err:empty { display: none; }
}

/* ---------- Pasarela de pago simulada ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(8, 5, 24, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__box { width: 100%; max-width: 420px; border-radius: 26px; background: #fff; color: var(--ink); padding: 26px; transform: translateY(20px) scale(.97); transition: transform .5s var(--ease-out); max-height: calc(100svh - 32px); overflow: auto; }
.modal.is-open .modal__box { transform: none; }
.pay__brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pay__brand span { font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fff2bf; color: #6a4b00; }
.pay__amount { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 600; font-size: 2.6rem; letter-spacing: -.02em; line-height: 1; }
.pay__concept { color: var(--on-paper-2); font-size: .9rem; margin: 6px 0 20px; }
.pay__methods { display: grid; gap: 8px; }
.pay__m { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line-paper); font-weight: 700; text-align: left; transition: box-shadow .2s; }
.pay__m:hover { box-shadow: inset 0 0 0 1.5px rgba(27, 18, 64, .35); }
.pay__m.is-sel { box-shadow: inset 0 0 0 2px var(--violet); }
.pay__m i { width: 38px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 800; color: #fff; flex: none; }
.pay__note { font-size: .8rem; color: var(--on-paper-2); margin-top: 14px; }
.pay__go { width: 100%; margin-top: 16px; }
.pay__state { text-align: center; padding: 26px 0 10px; }
.pay__state h3 { margin: 18px 0 6px; font-size: 1.4rem; }
.spinner { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 4px solid #eee6ff; border-top-color: var(--violet); animation: spin .8s linear infinite; }
.tick { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--mint); display: grid; place-items: center; animation: pop .5s var(--ease-bounce); }
.tick svg { width: 32px; height: 32px; }
.modal__close { float: right; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f3eefc; font-size: 1.2rem; }

/* ---------- Ticket ---------- */
.ticket-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(18px, 3vw, 44px); align-items: start; padding-bottom: clamp(70px, 9vw, 130px); }
.ticket { position: relative; border-radius: 28px; background: var(--bubble); color: var(--ink); overflow: hidden; }
.ticket__top { padding: 26px 26px 22px; background: linear-gradient(120deg, var(--violet-deep), var(--violet)); color: #fff; }
.ticket__top small { opacity: .8; font-weight: 600; }
.ticket__top h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 6px; }
.ticket__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .85rem; font-weight: 700; }
.ticket__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.ticket__status.is-pending i { background: var(--sun); }
.ticket__status.is-cancel i { background: var(--pink); }
.ticket__cut { height: 0; border-top: 2px dashed rgba(27, 18, 64, .18); margin: 0 22px; position: relative; }
.ticket__cut::before, .ticket__cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--night); }
.ticket__cut::before { left: -34px; } .ticket__cut::after { right: -34px; }
.ticket__body { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 22px 26px 26px; align-items: center; }
.ticket__body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ticket__body dt { font-size: .78rem; color: var(--on-paper-2); }
.ticket__body dd { font-weight: 700; }
.qr { width: 150px; background: #fff; border-radius: 16px; padding: 10px; }
.qr svg { width: 100%; height: auto; }
.qr p { text-align: center; font-weight: 800; letter-spacing: .08em; font-size: .9rem; margin-top: 4px; }
.next-steps { display: grid; gap: 10px; }
.next { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); transition: background-color .3s; text-align: left; width: 100%; }
.next:hover { background: var(--night-3); }
.next svg { width: 40px; height: 40px; flex: none; }
.next b { display: block; }
.next span { font-size: .86rem; color: var(--on-night-2); }
@media (max-width: 960px) { .ticket-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ticket__body { grid-template-columns: 1fr; } .qr { justify-self: center; } }

/* ---------- Invitación ---------- */
.invite { max-width: 560px; margin: 0 auto; border-radius: 32px; overflow: hidden; background: var(--bubble); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); }
.invite__top { position: relative; padding: 36px 30px 30px; text-align: center; background: radial-gradient(70% 90% at 50% 0%, #9a5cff, #4a22b8 60%, #1b1166); color: #fff; overflow: hidden; }
.invite__top h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); margin: 10px 0; color: var(--sun); }
.invite__age { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--pink); font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; box-shadow: 0 0 0 6px rgba(255, 255, 255, .15); }
.invite__conf { position: absolute; inset: 0; pointer-events: none; }
.invite__body { padding: 26px 28px 30px; }
.invite__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.invite__facts div { padding: 14px; border-radius: 16px; background: #fff; }
.invite__facts small { display: block; color: var(--on-paper-2); font-size: .78rem; }
.invite__facts b { font-size: 1rem; }
.invite .field input[type="text"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-paper); }
.invite .seg label { box-shadow: inset 0 0 0 1.5px var(--line-paper); color: var(--ink); }
.invite .seg input:checked + label { background: var(--ink); color: #fff; }
.invite__count { display: flex; gap: 10px; justify-content: center; margin-top: 16px; font-size: .9rem; color: var(--on-paper-2); }

/* ---------- Firma ---------- */
.sign { position: relative; border-radius: 18px; background: #fff; touch-action: none; }
.sign canvas { display: block; width: 100%; height: 180px; border-radius: 18px; cursor: crosshair; }
.sign__hint { position: absolute; left: 18px; bottom: 14px; color: #a69cc4; font-size: .85rem; pointer-events: none; }
.sign__clear { position: absolute; right: 10px; top: 10px; font-size: .8rem; font-weight: 700; color: var(--ink); padding: 6px 12px; border-radius: 999px; background: #f3eefc; }
.minor { display: grid; grid-template-columns: 1fr 120px 44px; gap: 8px; margin-bottom: 8px; }
.minor button { border-radius: 14px; background: rgba(253, 233, 251, .06); font-size: 1.2rem; }
.terms { max-height: 220px; overflow: auto; padding: 16px 18px; border-radius: 16px; background: var(--night); font-size: .88rem; color: var(--on-night-2); box-shadow: inset 0 0 0 1px var(--line-night); }
.terms p { margin-bottom: 10px; }

/* ---------- Bono regalo ---------- */
.gift { position: relative; aspect-ratio: 1.6; border-radius: 26px; padding: 24px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, #ff5fb7, #7a3cf0 55%, #43f0d4); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.gift__amount { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; }
.gift__to { font-weight: 700; font-size: 1.1rem; }
.gift__msg { font-size: .9rem; opacity: .9; margin-top: 4px; min-height: 1.2em; }
.gift__logo { width: 84px; }
.gift__code { font-weight: 800; letter-spacing: .1em; font-size: .9rem; background: rgba(17, 11, 44, .35); padding: 6px 10px; border-radius: 10px; }
.gift__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; translate: -50% 120px; padding: 14px 20px; border-radius: 16px; background: var(--bubble); color: var(--ink); font-weight: 700; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6); transition: translate .5s var(--ease-out); max-width: calc(100vw - 32px); }
.toast.is-on { translate: -50% 0; }
.toast.is-err { background: var(--pink); color: #fff; }

/* ---------- Guía de demo ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo-card { border-radius: var(--r-lg); padding: 26px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--ease-out), background-color .3s; }
.demo-card:hover { transform: translateY(-4px); background: var(--night-3); }
.demo-card h3 { font-size: 1.3rem; }
.demo-card p { color: var(--on-night-2); font-size: .94rem; flex: 1; }
.demo-card .btn { align-self: flex-start; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba > div { border-radius: var(--r-lg); padding: 26px; }
.ba ul { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.ba li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .96rem; }
.ba__before { background: #fff; color: var(--ink); }
.ba__after { background: var(--mint); color: var(--night); }
.pin-box { display: inline-flex; gap: 14px; align-items: center; padding: 14px 20px; border-radius: 18px; background: var(--sun); color: var(--night); font-weight: 700; }
.pin-box code { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .06em; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .demo-grid, .ba { grid-template-columns: 1fr; } }

/* ==========================================================================
   Panel de gestión
   ========================================================================== */
body.panel-body { background: #0d0924; }
.pn { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100svh; }
.pn__side { position: sticky; top: 0; height: 100svh; padding: 20px 14px; background: var(--night); border-right: 1px solid var(--line-night); display: flex; flex-direction: column; gap: 6px; }
.pn__logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.pn__logo svg { width: 64px; }
.pn__logo small { color: var(--on-night-3); font-size: .78rem; line-height: 1.2; }
.pn__nav { display: grid; gap: 2px; }
.pn__nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: .93rem; color: var(--on-night-2); text-align: left; transition: background-color .2s, color .2s; }
.pn__nav button svg { width: 19px; height: 19px; flex: none; }
.pn__nav button:hover { background: rgba(253, 233, 251, .06); color: var(--on-night); }
.pn__nav button[aria-current="true"] { background: var(--bubble); color: var(--night); }
.pn__nav .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.pn__side-foot { margin-top: auto; display: grid; gap: 8px; }
.pn__side-foot a, .pn__side-foot button { font-size: .85rem; color: var(--on-night-3); padding: 8px 12px; border-radius: 10px; text-align: left; }
.pn__side-foot a:hover, .pn__side-foot button:hover { color: var(--on-night); background: rgba(253, 233, 251, .05); }
.pn__main { padding: 22px clamp(16px, 2.6vw, 36px) 60px; min-width: 0; }
.pn__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pn__top h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.pn__top p { color: var(--on-night-3); font-size: .92rem; margin-top: 4px; }
.pn__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { border-radius: 18px; padding: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); }
.kpi small { color: var(--on-night-3); font-size: .82rem; font-weight: 600; }
.kpi b { display: block; font-family: var(--f-display); font-stretch: 118%; font-variation-settings: "wdth" 118; font-weight: 600; font-size: 2rem; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .8rem; color: var(--on-night-2); }
.pgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.pcard { border-radius: 18px; padding: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); min-width: 0; }
.pcard h2 { font-size: 1.15rem; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard h2 small { font-family: var(--f-body); font-size: .8rem; color: var(--on-night-3); font-weight: 600; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 52px 1fr 64px; gap: 10px; align-items: center; font-size: .85rem; }
.bar__t { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar__track { height: 14px; border-radius: 99px; background: rgba(253, 233, 251, .07); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 99px; background: var(--mint); transform-origin: left; animation: grow .9s var(--ease-out) both; }
.bar__fill.mid { background: var(--sun); }
.bar__fill.high { background: var(--pink); }
.bar__v { text-align: right; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.spark div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.spark i { width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: var(--violet); animation: rise .9s var(--ease-out) both; transform-origin: bottom; }
.spark div:last-child i { background: var(--sun); }
.spark small { font-size: .72rem; color: var(--on-night-3); }
@keyframes rise { from { transform: scaleY(0); } }
.list { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; background: rgba(253, 233, 251, .04); text-align: left; width: 100%; transition: background-color .2s; }
.row:hover { background: rgba(253, 233, 251, .09); }
.row__t { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.row__m { min-width: 0; }
.row__m b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__m span { display: block; font-size: .8rem; color: var(--on-night-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pill--entrada { background: rgba(67, 240, 212, .14); color: var(--mint); }
.pill--cumple { background: rgba(255, 95, 183, .16); color: #ff8fcb; }
.pill--grupo { background: rgba(255, 210, 63, .14); color: var(--sun); }
.st { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.st--confirmada { background: rgba(67, 240, 212, .14); color: var(--mint); }
.st--completada { background: rgba(122, 60, 240, .3); color: #c9b2ff; }
.st--pendiente_pago, .st--solicitud { background: rgba(255, 210, 63, .14); color: var(--sun); }
.st--presupuesto { background: rgba(255, 106, 31, .16); color: #ff9a63; }
.st--cancelada, .st--descartada { background: rgba(255, 95, 183, .14); color: #ff8fcb; }
.st--activa { background: rgba(67, 240, 212, .14); color: var(--mint); }
.st--canjeada { background: rgba(253, 233, 251, .1); color: var(--on-night-2); }
.empty { padding: 28px; text-align: center; color: var(--on-night-3); font-size: .92rem; }
.filters-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters-bar input, .filters-bar select { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--night-2); box-shadow: inset 0 0 0 1.5px var(--line-night); color: var(--on-night); color-scheme: dark; }
.filters-bar input[type="search"] { flex: 1; min-width: 200px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; color: var(--on-night-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line-night); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-night); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background-color .2s; }
.table tbody tr:hover { background: rgba(253, 233, 251, .04); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tscroll { overflow-x: auto; border-radius: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); }

.week { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.wday { border-radius: 16px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line-night); padding: 12px; min-height: 280px; display: flex; flex-direction: column; gap: 8px; }
.wday.is-today { box-shadow: inset 0 0 0 2px var(--sun); }
.wday.is-closed { opacity: .55; }
.wday__h { display: flex; justify-content: space-between; align-items: baseline; }
.wday__h b { font-family: var(--f-display); font-weight: 600; text-transform: capitalize; }
.wday__h small { color: var(--on-night-3); font-size: .78rem; }
.occ { height: 6px; border-radius: 99px; background: rgba(253, 233, 251, .08); overflow: hidden; }
.occ i { display: block; height: 100%; background: var(--mint); border-radius: 99px; }
.ev { text-align: left; width: 100%; padding: 8px 10px; border-radius: 10px; font-size: .8rem; line-height: 1.35; background: rgba(253, 233, 251, .05); border-left: 3px solid var(--mint); }
.ev--cumple { border-left-color: var(--pink); background: rgba(255, 95, 183, .08); }
.ev--grupo { border-left-color: var(--sun); background: rgba(255, 210, 63, .07); }
.ev b { display: block; font-size: .82rem; }
.ev:hover { filter: brightness(1.25); }
.blocktag { font-size: .75rem; font-weight: 700; color: var(--pink); }

.drawer { position: fixed; inset: 0; z-index: 250; display: flex; justify-content: flex-end; background: rgba(8, 5, 24, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__box { width: min(480px, 100%); height: 100%; overflow: auto; background: var(--night); box-shadow: -1px 0 0 var(--line-night); padding: 22px; transform: translateX(30px); transition: transform .5s var(--ease-out); }
.drawer.is-open .drawer__box { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.drawer__head h2 { font-size: 1.6rem; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; background: rgba(253, 233, 251, .08); font-size: 1.3rem; flex: none; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0; }
.dl dt { font-size: .76rem; color: var(--on-night-3); }
.dl dd { font-weight: 600; word-break: break-word; }
.dl .full { grid-column: 1 / -1; }
.dact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.dact .btn { width: 100%; }
.sigimg { background: #fff; border-radius: 12px; padding: 6px; max-width: 280px; }

.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sfield { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-night); font-size: .92rem; }
.sfield:last-child { border-bottom: 0; }
.sfield input[type="time"] { min-width: 112px; text-align: left; }
.sfield input { min-height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--night); box-shadow: inset 0 0 0 1.5px var(--line-night); color: var(--on-night); text-align: right; width: 100%; color-scheme: dark; }
.sfield input[type="text"] { text-align: left; }
.sfield--wide { grid-template-columns: 1fr 1fr; }
.copybox { position: relative; padding: 14px 16px; border-radius: 14px; background: var(--night); box-shadow: inset 0 0 0 1px var(--line-night); font-size: .9rem; color: var(--on-night-2); white-space: pre-line; margin-bottom: 10px; }
.copybox button { position: absolute; top: 10px; right: 10px; font-size: .78rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--bubble); color: var(--night); }

.login { min-height: 100svh; display: grid; place-items: center; padding: 20px; background: radial-gradient(60% 60% at 50% 30%, rgba(122, 60, 240, .45), transparent 70%), var(--night); }
.login__box { width: 100%; max-width: 380px; text-align: center; }
.login__box svg.logo-l { width: 140px; margin: 0 auto 20px; }
.login__box h1 { font-size: 1.8rem; margin-bottom: 8px; }
.login__box p { color: var(--on-night-2); margin: 0 auto 22px; }
.pin { display: flex; gap: 8px; }
.pin input { flex: 1; min-height: 56px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--night-2); box-shadow: inset 0 0 0 1.5px var(--line-night); color: var(--on-night); font-size: 1.1rem; letter-spacing: .1em; }
.pin input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--mint); }

.pn__mobilebar { display: none; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .pgrid, .settings { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .pn { grid-template-columns: 1fr; }
  .pn__side { display: none; }
  .pn__mobilebar { display: flex; position: sticky; top: 0; z-index: 30; gap: 4px; overflow-x: auto; padding: 10px 12px; background: rgba(17, 11, 44, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-night); scrollbar-width: none; }
  .pn__mobilebar button { flex: none; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--on-night-2); }
  .pn__mobilebar button[aria-current="true"] { background: var(--bubble); color: var(--night); }
  .row { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .dl, .dact { grid-template-columns: 1fr; }
}
