
:root {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #19223f;
  background: #fff;
  font-synthesis: none;
  --navy: #19223f;
  --red: #a71d2b;
  --red-dark: #841421;
  --muted: #515a6f;
  --line: #dce0ea;
  --paper: #fff;
  --pale: #f4f6fa;
  --shadow: 0 10px 28px rgba(25,34,63,.055);
}
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; min-width:300px; min-height:100vh; display:flex; flex-direction:column; }
[hidden] { display:none !important; }
a { color:inherit; }
button, select, input, textarea { font:inherit; }
button, select, summary { cursor:pointer; }
button:disabled { cursor:default; opacity:.58; }
*:focus-visible { outline:3px solid #315cc1; outline-offset:3px; }
p { margin:0 0 1em; line-height:1.55; }
h1,h2,h3 { margin:0; line-height:1.12; }
h1 { font-size:clamp(2.3rem,5.2vw,4.25rem); font-weight:760; letter-spacing:-.06em; }
h2 { font-size:clamp(1.45rem,2.6vw,2.05rem); letter-spacing:-.035em; }
h3 { font-size:1.1rem; letter-spacing:-.015em; }
.sr-only, .skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { position:absolute; z-index:5; background:white; padding:.8rem; }
.top { border-top:4px solid var(--red); background:var(--paper); border-bottom:1px solid var(--line); }
.top-inner,.shell,.footer>div { width:min(1160px, calc(100% - 64px)); margin-inline:auto; }
.top-inner { min-height:74px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.brand { display:inline-flex; align-items:center; gap:13px; text-decoration:none; letter-spacing:-.025em; white-space:nowrap; }
.brand img { object-fit:contain; }
.brand>span { display:block; width:1px; height:26px; background:var(--line); }
.brand strong { font-size:.98rem; }
.shell { flex:1; padding-bottom:58px; }
.hero { padding:43px 0 29px; }
.desktop-break { display:none; }
.intro { max-width:650px; color:var(--muted); margin:14px 0 0; font-size:1.06rem; }
.mode { display:inline-flex; align-items:center; gap:.48rem; background:#f8e8eb; color:#801627; margin:0 0 13px; padding:.34rem .7rem; border-radius:6px; font-weight:700; font-size:.8rem; }
.mode::before { content:""; width:7px; height:7px; background:currentColor; border-radius:50%; }
.steps { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 0 24px; padding:0; gap:7px; border-bottom:1px solid var(--line); }
.steps li { min-width:0; }
.steps button { text-align:left; width:100%; min-height:59px; display:flex; align-items:center; gap:10px; padding:8px 8px 12px; border:0; border-bottom:3px solid transparent; background:none; color:var(--muted); font-weight:680; font-size:.91rem; }
.steps button:disabled { opacity:1; cursor:default; }
.steps button[aria-current="step"] { border-color:var(--red); color:var(--navy); }
.step-no { flex:0 0 34px; width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--line); background:#fff; border-radius:50%; font-weight:730; font-size:.85rem; }
[aria-current="step"] .step-no { background:var(--red); color:white; border-color:var(--red); }
.steps .done .step-no { background:#e8edf7; border-color:#e8edf7; color:#233c77; }
.layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(255px,320px); align-items:start; gap:22px; }
.panel { background:var(--paper); border:1px solid var(--line); border-radius:17px; box-shadow:var(--shadow); }
.stage { padding:29px; min-width:0; }
.stage-head { margin-bottom:21px; }
.stage-head p { margin:9px 0 0; color:var(--muted); }
.heading-icon { display:inline-grid; place-items:center; width:37px; height:37px; border-radius:9px; background:#f3edf1; margin-right:9px; font-size:1rem; vertical-align:3px; }
.side { display:grid; gap:13px; }
.summary { background:var(--navy); color:#fff; padding:23px; border-radius:17px; overflow-wrap:anywhere; }
.summary h2 { font-size:1.27rem; margin-bottom:16px; letter-spacing:-.025em; }
.summary h3 { margin-top:8px; line-height:1.27; }
.summary p { color:#d8dfed; margin:0; font-size:.9rem; }
.summary dl { margin-bottom:0; }
.summary .price { border-top:1px solid #515a74; margin-top:17px; padding-top:12px; }
.summary .price .total { font-size:1.08rem; }
.summary .price dd { font-variant-numeric:tabular-nums; }
.meta { display:grid; gap:9px; margin:14px 0; }
.meta div,.price div { display:flex; gap:12px; justify-content:space-between; }
.meta dt,.price dt { min-width:65px; color:var(--muted); }
.meta dd,.price dd { margin:0; text-align:right; font-weight:650; }
.summary .meta dt,.summary .price dt { color:#d8dfed; }
.price { display:grid; gap:6px; margin:0; }
.help-card { padding:15px 17px; font-size:.86rem; color:var(--muted); }
.help-card strong { color:var(--navy); }
.help-card p { margin:4px 0 0; }
.outline,.primary,.plain { display:inline-flex; align-items:center; justify-content:center; gap:.42em; min-height:44px; max-width:100%; padding:.65rem .96rem; border-radius:8px; border:1px solid var(--line); color:var(--navy); background:#fff; font-weight:690; text-decoration:none; line-height:1.22; }
.primary { border-color:var(--red); background:var(--red); color:white; }
.primary:hover:not(:disabled) { background:var(--red-dark); }
.outline:hover,.plain:hover { background:#edf0f6; }
.plain { border-color:transparent; }
.compact { min-height:42px; padding:.47rem .72rem; font-size:.87rem; }
.actions { display:flex; justify-content:space-between; align-items:center; gap:10px; padding-top:20px; margin-top:22px; border-top:1px solid var(--line); }
.actions > :only-child { margin-left:auto; }
.action-row { display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
label,.field-label,legend { font-weight:660; color:var(--navy); }
legend { padding:0; margin-bottom:10px; }
input:not([type=checkbox]):not([type=radio]),select,textarea { width:100%; min-height:46px; border:1px solid #aeb7cb; border-radius:8px; padding:.59rem .72rem; background:#fff; color:var(--navy); }
input::placeholder,textarea::placeholder { color:#626b7b; }
textarea { min-height:94px; resize:vertical; }
input[type=radio],input[type=checkbox] { accent-color:var(--red); flex:none; width:19px; height:19px; margin:0; }
.choice { display:flex; min-height:44px; align-items:center; gap:9px; flex-wrap:nowrap; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 16px; align-items:start; }
.field { min-width:0; }
.field-label { display:flex; align-items:center; gap:5px; min-height:29px; flex-wrap:wrap; }
.full { grid-column:1/-1; }
fieldset { padding:0; margin:0; min-width:0; border:0; }
.hint { color:var(--muted); font-size:.84rem; line-height:1.45; margin:4px 0 0; }
.hint-toggle { background:#eef1fa; border:1px solid #d7ddeb; border-radius:50%; width:28px; height:28px; color:#234478; font-size:.81rem; font-weight:750; }
.hint-box { background:var(--pale); border-left:3px solid #5271a6; padding:8px 10px; margin:4px 0 7px; color:#34415c; font-size:.85rem; line-height:1.48; }
.inline-field { display:flex; flex-wrap:wrap; gap:7px; align-items:stretch; }
.inline-field input { min-width:120px; flex:1; }
.section { padding-top:20px; margin-top:20px; border-top:1px solid var(--line); }
.section>h3 { margin-bottom:12px; }
.event-list { display:grid; gap:9px; margin-top:15px; max-height:510px; overflow:auto; padding:4px; margin-inline:-4px; }
.event { background:#fff; border:1px solid var(--line); border-radius:11px; padding:15px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; cursor:pointer; }
.event:hover { border-color:#8c98b5; }
.event:has(:checked) { background:#fbf5f6; border-color:var(--red); box-shadow:inset 0 0 0 1px var(--red); }
.event>span { min-width:0; }
.event strong,.event small { display:block; overflow-wrap:anywhere; }
.event small { color:var(--muted); line-height:1.38; font-size:.79rem; }
.event .event-type { color:#8f1d2b; margin-bottom:3px; font-weight:720; }
.event strong { line-height:1.28; margin-bottom:4px; font-size:1rem; }
.event-price { white-space:nowrap; color:var(--navy); }
.event-price strong { font-size:.93rem; }
.event-price small { text-align:right; }
.event-detail { background:var(--pale); border-radius:8px; padding:12px 14px; margin-top:13px; }
.event-detail p { margin:0; font-size:.9rem; }
.person,.review-box { border:1px solid var(--line); border-radius:11px; padding:15px; margin-bottom:11px; min-width:0; }
.person h3,.review-box h3 { margin:0; }
.row-head { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.alert { padding:.73rem .85rem; border-radius:8px; margin:9px 0; line-height:1.5; background:#fbedef; color:#7d1724; border:1px solid #eac0c8; }
.alert.ok { background:#e9f6ef; color:#164c34; border-color:#b4dac6; }
.alert.info { background:var(--pale); color:#34415c; border-color:var(--line); }
.demo-action { margin:0 0 14px; }
.review-box p { margin:.27rem 0; overflow-wrap:anywhere; }
.text-block { white-space:pre-line; overflow-wrap:anywhere; line-height:1.62; }
details { padding:.65rem 0; }
summary { font-weight:700; padding:.28rem 0; }
details .text-block { margin:8px 0 0; color:#34415c; }
.receipt { padding:35px clamp(18px,5vw,42px); }
.receipt .protocol { display:block; width:max-content; max-width:100%; background:#e9f6ef; color:#174d36; border-radius:9px; font:700 clamp(1rem,4vw,1.45rem) ui-monospace,monospace; margin:13px 0; padding:12px; overflow-wrap:anywhere; }
.receipt p { margin:10px 0; }
.footer { margin-top:auto; background:white; border-top:1px solid var(--line); color:var(--muted); font-size:.86rem; }
.footer>div { display:flex; align-items:center; flex-wrap:wrap; gap:14px 24px; padding:21px 0; }
.footer strong { color:var(--navy); }
.dashboard { padding-top:39px; }
.dashboard .panel { padding:23px; }
.login { margin:42px auto; max-width:500px; }
.login h1,.dashboard h1 { font-size:clamp(1.9rem,4vw,3rem); }
.tabbar { display:flex; flex-wrap:wrap; gap:6px; margin:15px 0; }
.tabbar [aria-current] { background:var(--navy); color:#fff; }
.table-scroll { overflow:auto; margin-top:12px; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:.9rem; }
th,td { padding:10px 9px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:var(--pale); }
.status { border-radius:5px; padding:.19rem .37rem; display:inline-block; font-size:.76rem; background:#e9edf8; font-weight:700; }
.status.confirmada { background:#e6f5eb; color:#164c34; }
.status.cancelada { background:#f9e7eb; color:#7d1724; }
.admin-text { min-height:230px; }
.catalog-editor { margin-top:18px; }
.dashboard textarea,.dashboard td { overflow-wrap:anywhere; }
@media (max-width:850px) {
  .top-inner,.shell,.footer>div { width:calc(100% - 36px); }
  .hero { padding-top:32px; }
  .layout { grid-template-columns:minmax(0,1fr); }
  .side { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .summary { min-height:100px; }
}
@media (max-width:555px) {
  .top-inner,.shell,.footer>div { width:calc(100% - 28px); }
  .top-inner { min-height:64px; }
  .brand { gap:6px; }
  .brand img { width:58px; height:auto; }
  .brand strong { font-size:.83rem; }
  .compact { font-size:.79rem; padding:.43rem .55rem; }
  .hero { padding:25px 0 18px; }
  .intro { font-size:.96rem; }
  .steps { margin-bottom:15px; gap:0; }
  .steps button { display:grid; justify-items:center; align-content:start; min-height:70px; text-align:center; gap:5px; font-size:.71rem; padding:5px 1px; }
  .step-no { width:29px; height:29px; }
  .stage,.dashboard .panel { padding:16px; }
  .side { grid-template-columns:minmax(0,1fr); }
  .fields { grid-template-columns:minmax(0,1fr); gap:10px; }
  .field-label { min-height:28px; }
  .event-list { max-height:none; }
  .event { padding:12px 9px; gap:8px; grid-template-columns:auto minmax(0,1fr); }
  .event-price { grid-column:2; }
  .event-price strong,.event-price small { display:inline; }
  .event-price small { margin-left:.35em; }
  .receipt { padding:21px 15px; }
  .dashboard { padding-top:24px; }
}
@media print { .top,.footer,.steps,.actions,.side,.print-hide { display:none; } .layout { display:block; } .panel { border:0; box-shadow:none; } }

.hero { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.entry-qr { display:grid; flex:0 0 auto; justify-items:center; border:1px solid var(--line); border-radius:14px; padding:2px 8px 12px; background:#fff; font-size:.84rem; font-weight:700; text-align:center; }
.entry-qr img { display:block; width:216px; max-width:100%; height:auto; }
@media (max-width:650px) {
  .hero { flex-direction:column; align-items:flex-start; gap:16px; }
  .entry-qr { align-self:center; }
}

.qr-only { display:grid; min-width:0; min-height:100vh; min-height:100dvh; place-items:center; background:#fff; }
.qr-only img { display:block; width:min(94vw,94vh); width:min(94vw,94dvh); height:auto; }

:root { --help-ink:#4b237c; --help-light:#f1e7ff; }
.hint-toggle { color:var(--help-ink); background:var(--help-light); border-color:#d9bdf7; }
.hint-toggle:hover,.hint-toggle[aria-expanded="true"] { background:#6237a0; color:white; }
.hint-box { background:#f7f0ff; border-color:#784abd; color:#382359; }
.hero h1 { background:linear-gradient(105deg,#19223f 22%,#552a82 65%,#a71d2b); background-clip:text; color:transparent; }
@media (forced-colors:active) { .hero h1 { color:CanvasText; } }
.heading-icon { background:linear-gradient(130deg,#e8efff,#f7eaff); }
.event { transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease; }
.event:hover { box-shadow:0 3px 12px #2c235717; }
.receipt-download img { object-fit:contain; background:#fff; border-radius:5px; }

.install-button { margin-top:20px; }
#install-help { width:min(460px,calc(100% - 32px)); padding:25px; border:1px solid var(--line); border-radius:16px; color:var(--navy); }
#install-help::backdrop { background:#19223f99; }
#install-help p { margin-top:12px; }

.registration-rules { margin:22px 0 16px; padding:clamp(14px,4vw,26px); border:1px solid var(--line); border-radius:12px; }
.registration-rules h3 { font-size:clamp(1.35rem,4vw,1.65rem); margin:0 0 1em; }
.registration-rules h4 { font-size:1.03rem; margin:1.35em 0 .65em; }
.registration-rules p { margin:.75em 0; text-align:justify; line-height:1.65; hyphens:auto; overflow-wrap:anywhere; }
