*{box-sizing:border-box}
html{color-scheme:light}
body{margin:0;background:#f4f8fc;color:#172c41;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.5}
button,input{font:inherit}
button,a,input,summary{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.42}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #6ba5e0;outline-offset:3px}
[hidden]{display:none!important}
svg{width:24px;height:24px;flex-shrink:0}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:19px max(20px,calc((100vw - 350px)/2));background:#fff;border-bottom:1px solid #dbe6ef;min-height:79px}
.topbar form{margin:0}
.brand{display:flex;align-items:center;gap:10px;color:#172c41;text-decoration:none;min-width:0}
.brand-icon{width:38px;height:38px;background:#eaf3fc;color:#0b3f72;border-radius:11px;display:grid;place-items:center;flex-shrink:0}
.brand strong{display:block;font-size:20px;font-weight:750;letter-spacing:-.6px}
.brand small{display:block;font-size:11px;color:#5b6d7c;margin-top:1px}
.header-tag{font-size:11px;letter-spacing:.08em;color:#5b6d7c;white-space:nowrap}
.shell{max-width:390px;padding:23px 18px 28px;margin:auto}
.customer-shell{padding:18px 16px 24px}
.intro{margin-bottom:22px}
.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:700;color:#5b6d7c;display:block}
.intro h1{font-size:24px;line-height:1.2;font-weight:750;letter-spacing:-.7px;margin:8px 0 10px}
.session-active{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#237b50;flex-wrap:wrap}
.session-active:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}
.staff-layout{display:block}
.panel{padding:17px;background:#fff;border:1px solid #dbe6ef;border-radius:14px;margin:18px 0}
.panel p{color:#5b6d7c;font-size:13px;line-height:1.65}
.button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:48px;border-radius:11px;padding:12px 14px;border:1px solid transparent;font-size:13px;font-weight:650;text-align:center;text-decoration:none;line-height:1.4;margin:9px 0}
.button svg{width:20px;height:20px}
.primary{background:#0b3f72;color:#fff}
.primary:hover:enabled{background:#135787}
.secondary{background:#fff;color:#172c41;border-color:#dbe6ef}
.create-button{padding:16px;justify-content:flex-start;gap:12px;margin:0 0 10px}
.create-button>svg:first-child{width:26px;height:26px}
.create-button>svg:last-child{margin-left:auto;width:16px;height:16px}
.create-button strong{display:block;font-size:14px;text-align:left}
.create-button small{display:block;font-size:11px;text-align:left;font-weight:400;color:#d7e6f4;margin-top:3px}
.text-button{background:none;border:0;color:#0b3f72;padding:10px 0;font-size:12px;font-weight:650;text-decoration:none;display:inline-block;min-height:40px}
.help{font-size:11px!important;color:#5b6d7c;line-height:1.6}
.form label{display:block;color:#385269;font-size:13px;font-weight:650;margin:16px 0 6px}
.form input:not([type=checkbox]),.input-row input{width:100%;min-height:48px;background:#fff;border:1px solid #cad8e5;border-radius:10px;padding:10px 12px;color:#172c41;margin-top:6px;min-width:0;font-size:16px}
.form .check{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-weight:500;border:1px solid #dbe6ef;border-radius:11px;padding:15px;margin:24px 0 28px}
.check input{width:20px;height:20px;accent-color:#0b3f72;flex:0 0 20px;margin-top:2px}
.input-row{display:flex;gap:8px;align-items:center}
.input-row button{width:auto;margin:6px 0 0;flex-shrink:0}
.input-row input{text-transform:uppercase}
summary{cursor:pointer;font-size:12px;color:#0b3f72;font-weight:650;min-height:40px;padding:10px 0}
details[open]>summary{margin-bottom:8px}
.code-search{margin:4px 0 0}
.code-search .form label{margin-top:0}
.admin-link{font-size:13px;color:#0b3f72}
.loyalty-card{background:#fff;border:1px solid #dbe6ef;border-radius:17px;overflow:hidden;margin:0}
.card-cover{background:#0b3f72;color:#fff;padding:24px 22px 21px}
.card-cover .eyebrow{font-size:11px;color:#c7ddf2}
.card-cover h2{margin:9px 0 10px;font-size:28px;line-height:1.14;font-weight:750;letter-spacing:-.9px}
.card-cover p{font-size:12px;color:#d9e9f7;margin:0}
.card-content{padding:18px 19px 16px}
.card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;font-size:13px}
.card-heading>strong{font-size:26px;color:#0b3f72;font-weight:750;font-variant-numeric:tabular-nums;letter-spacing:-1px;white-space:nowrap}
.stamp-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px 9px}
.stamp{display:flex;align-items:center;flex-direction:column;gap:4px;font-size:11px;color:#5b6d7c;font-variant-numeric:tabular-nums}
.stamp-icon{width:46px;max-width:100%;aspect-ratio:1;border-radius:50%;border:1.5px dashed #dbe6ef;display:grid;place-items:center;color:#5b6d7c;background:#f4f8fc}
.stamp-icon svg{width:23px;height:23px;opacity:.4;stroke-width:1.6}
.stamp.filled .stamp-icon{background:#0b3f72;border-color:#0b3f72;border-style:solid;color:#fff}
.stamp.filled svg{opacity:1}
.reward-bar{display:flex;gap:10px;align-items:center;margin-top:19px;padding:12px;background:#eaf3fc;border-radius:11px;color:#172c41}
.reward-bar>svg{width:24px;height:24px;color:#0b3f72}
.reward-bar strong{font-size:13px;display:block}
.reward-bar p{font-size:11px;line-height:1.45;color:#5b6d7c;margin:3px 0 0}
.reward-bar.ready{background:#e8f5ed}
.reward-bar.ready>svg{color:#237b50}
.qr-section{display:flex;align-items:center;gap:14px;padding:14px 18px;border-top:1px dashed #dbe6ef}
.qr-button{padding:0;background:#fff;border:0;border-radius:9px;flex-shrink:0;overflow:hidden}
.qr-button img{width:100px;height:100px;display:block;image-rendering:pixelated}
.qr-description{min-width:0}
.qr-description strong{font-size:12px;line-height:1.4;display:block}
.qr-description p{font-size:11px;line-height:1.5;color:#5b6d7c;margin:5px 0 6px}
.qr-description>span{display:block;font-size:11px;font-weight:700;letter-spacing:.07em;overflow-wrap:anywhere}
.mobile-footer{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;padding:16px 0 18px;color:#5b6d7c}
.mobile-footer svg{width:14px;height:14px;flex-shrink:0}
.customer-actions{border:0;background:transparent;padding:0;margin:0;box-shadow:none}
.staff-card{margin-top:23px;border:1px solid #dbe6ef;border-radius:14px;background:#fff;padding:17px}
.staff-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#5b6d7c;flex-wrap:wrap}
.staff-card-top .eyebrow,.staff-card-top>span:last-child{font-size:11px}
.staff-balance{display:flex;align-items:baseline;gap:8px;margin:12px 0}
.staff-balance>strong{font-size:39px;letter-spacing:-1.7px;font-weight:750;font-variant-numeric:tabular-nums;color:#0b3f72}
.staff-balance>span{font-size:12px;color:#5b6d7c}
.staff-balance svg{margin-left:auto;align-self:center;width:25px;height:25px;color:#5b6d7c}
.staff-meter{height:6px;background:#eaf3fc;border-radius:3px;overflow:hidden}
.staff-meter>span{width:0;height:100%;display:block;background:#0b3f72}
.staff-status{font-size:11px;line-height:1.5;color:#5b6d7c;margin:12px 0 18px}
.staff-status.ready{color:#237b50;font-weight:650}
.staff-card .button+.button{margin-top:9px}
.staff-card #show-card-qr{display:block;font-size:11px}
.share-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.share-actions .text-button{font-size:11px}
.operation-message{margin-top:17px;font-size:11px;text-align:center;color:#5b6d7c;line-height:1.5}
.empty-state{text-align:center;padding:30px 20px}
.empty-state>span{display:block;color:#0b3f72}
.empty-state>span svg{width:40px;height:40px}
.empty-state h2{font-size:22px;letter-spacing:-.5px}
.history{padding-left:20px;font-size:12px;color:#5b6d7c}
.history li{padding:7px 0;border-bottom:1px solid #edf2f7}
.history small{display:block;font-size:11px;color:#5b6d7c;overflow-wrap:anywhere}
.notice{background:#e8f5ed;color:#2b6545;border:1px solid #bcdac7;border-radius:11px;padding:12px 14px;font-size:13px;margin-bottom:18px;white-space:pre-line}
.notice.error{background:#fff0ef;color:#913d36;border-color:#efd1ce}
.login-panel{margin:0;background:transparent;border:0;padding:34px 9px 28px}
.login-panel h1{font-size:33px;font-weight:750;letter-spacing:-.9px;line-height:1.14;margin:12px 0 13px}
.login-panel>p{font-size:13px;line-height:1.65;color:#5b6d7c;margin:13px 0 28px}
.lock-symbol,.gift-symbol{width:70px;height:70px;display:grid;place-items:center;margin-bottom:26px;border-radius:20px;background:#eaf3fc;color:#0b3f72}
.lock-symbol svg,.gift-symbol svg{width:38px;height:38px;stroke-width:1.5}
.login-panel details{margin-top:20px}
.private-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:30px;font-size:11px;color:#5b6d7c}
.private-note svg{width:14px;height:14px}
dialog{border:1px solid #dbe6ef;border-radius:18px;max-width:390px;width:calc(100% - 28px);padding:24px;color:#172c41;background:#fff;box-shadow:0 30px 100px #09284640;max-height:calc(100% - 32px);overflow:auto}
dialog::backdrop{background:#0b254e80;backdrop-filter:blur(3px)}
dialog h2{font-size:28px;line-height:1.14;margin:12px 0 16px;letter-spacing:-.9px}
dialog p{font-size:13px;line-height:1.65;color:#5b6d7c}
dialog video{width:100%;height:240px;object-fit:cover;border-radius:12px;background:#102d4a}
.large-qr{text-align:center;padding-top:20px}
.large-qr img{display:block;width:min(240px,100%);height:auto;margin:22px auto;background:#fff;border-radius:12px;image-rendering:pixelated}
.large-qr>strong{display:block;font-size:17px;letter-spacing:.08em}
footer{text-align:center;padding:12px 18px 20px;font-size:11px;color:#5b6d7c}
@media(max-width:380px){.topbar{padding-inline:15px}.shell{padding-inline:15px}.customer-shell{padding-inline:11px}.card-content{padding-inline:15px}.stamp-icon{width:41px}.qr-section{gap:9px;padding-inline:14px}.qr-button img{width:100px;height:100px}.header-tag{font-size:10px}.brand strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.staff-card-top>span:last-child{font-size:14px;color:#0b3f72;font-weight:750;letter-spacing:.04em}
.qr-description>span{font-size:14px;color:#0b3f72;letter-spacing:.03em}
.qr-preview-button{display:block;margin:0 auto;max-width:100%}
.qr-preview-button img{margin:12px auto;width:240px;max-width:100%;height:auto}
.customer-preview .back-home{margin-bottom:8px}
body[data-view=customer] .topbar{min-height:64px;padding-block:12px}
.customer-shell{padding-top:12px}
.customer-preview .card-cover,.customer-shell .card-cover{padding:16px 18px}
.customer-preview .card-cover h2,.customer-shell .card-cover h2{font-size:25px;margin:7px 0}
.customer-preview .card-content,.customer-shell .card-content{padding:14px 16px}
.customer-preview .card-heading,.customer-shell .card-heading{margin-bottom:10px}
.customer-preview .stamp-grid,.customer-shell .stamp-grid{gap:8px}
.customer-preview .stamp-icon,.customer-shell .stamp-icon{width:40px}
.customer-preview .reward-bar,.customer-shell .reward-bar{margin-top:13px;padding:10px}
.customer-preview .qr-section,.customer-shell .qr-section{padding:10px 14px}
.customer-preview .qr-button img,.customer-shell .qr-button img{width:100px;height:100px}
.customer-preview .mobile-footer,.customer-shell .mobile-footer{padding:10px 0}
@media(max-height:700px){.customer-preview .card-cover,.customer-shell .card-cover{padding:12px 16px}.customer-preview .card-cover h2,.customer-shell .card-cover h2{font-size:23px}.customer-preview .card-content,.customer-shell .card-content{padding:10px 14px}.customer-preview .stamp-icon,.customer-shell .stamp-icon{width:35px}.customer-preview .stamp-grid,.customer-shell .stamp-grid{gap:6px}.customer-preview .reward-bar,.customer-shell .reward-bar{margin-top:9px;padding:8px}.customer-preview .qr-section,.customer-shell .qr-section{padding:8px 12px}.customer-preview .qr-button img,.customer-shell .qr-button img{width:100px;height:100px}.customer-preview .card-heading>strong,.customer-shell .card-heading>strong{font-size:23px}}

body.preview-mode .topbar{min-height:64px;padding-block:12px}
body.preview-mode .shell{padding-top:12px}
body.preview-mode .back-home{margin-bottom:4px}

/* Bienvenida antes de recibir o recuperar una tarjeta del cliente. */
.welcome-card{background:#fff;border:1px solid #dbe6ef;border-radius:20px;overflow:hidden;box-shadow:0 10px 28px #0b3f720a}
.welcome-hero{background:#0b3f72;color:#fff;text-align:center;padding:18px 20px 20px}
.welcome-icon{display:block;width:104px;height:104px;margin:0 auto 9px;border-radius:22px}
.welcome-hero .eyebrow{color:#c7ddf2;font-size:10px;letter-spacing:.11em}
.welcome-hero h1{margin:8px 0;font-size:29px;line-height:1.12;letter-spacing:-.8px;font-weight:750}
.welcome-hero>p{margin:0;color:#d9e9f7;font-size:12px}
.welcome-body{padding:17px 18px 16px}
.welcome-example{display:block;font-size:11px;color:#5b6d7c;text-align:center;margin-bottom:12px}
.welcome-stamps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 7px}
.welcome-stamp{display:flex;flex-direction:column;align-items:center;gap:3px;color:#708495}
.welcome-stamp-icon{display:grid;place-items:center;width:39px;max-width:100%;aspect-ratio:1;background:#f4f8fc;border:1.5px dashed #cad8e5;border-radius:50%}
.welcome-stamp-icon svg{width:21px;height:21px;stroke-width:1.6;color:#8da4b7}
.welcome-stamp small{font-size:10px;line-height:1.2}
.welcome-prize{display:flex;align-items:center;justify-content:center;gap:12px;background:#eaf3fc;border-radius:12px;padding:11px 12px;margin-top:16px;color:#0b3f72}
.welcome-prize>svg{width:28px;height:28px}
.welcome-prize p,.welcome-start p{margin:0;min-width:0}
.welcome-prize strong,.welcome-prize span,.welcome-start strong,.welcome-start span{display:block}
.welcome-prize strong{font-size:13px;font-weight:650}
.welcome-prize span{font-size:16px;font-weight:750;line-height:1.4}
.welcome-start{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px}
.welcome-start>svg{width:30px;height:30px;color:#0b3f72}
.welcome-start strong{font-size:13px;color:#172c41}
.welcome-start span{font-size:12px;line-height:1.5;color:#5b6d7c;margin-top:3px}
.welcome-note{margin:15px 0 0;text-align:center;color:#5b6d7c;font-size:11px}
@media(max-height:700px){.welcome-hero{padding:12px 18px 15px}.welcome-icon{width:88px;height:88px;margin-bottom:6px}.welcome-hero h1{font-size:27px;margin:6px 0}.welcome-body{padding:13px 16px}.welcome-example{margin-bottom:9px}.welcome-stamp-icon{width:35px}.welcome-stamps{gap:6px}.welcome-prize{margin-top:12px;padding:9px 12px}.welcome-start{margin-top:13px}.welcome-note{margin-top:12px}}

.customer-preview #preview-back-home-bottom{font-size:14px;min-height:48px;margin:4px 0 12px}
