/* Bolso Cheio design system. Appearance values remain in appearance.js. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/dm-sans-latin.woff2') format('woff2')}
:root {
  --font: 'DM Sans', system-ui, sans-serif;
  --background: var(--bg);
  --surface-elevated: var(--surface);
  --surface-subtle: color-mix(in srgb, var(--text) 3%, var(--surface));
  --primary: var(--green);
  --primary-hover: color-mix(in srgb, var(--green) 88%, var(--text));
  --primary-subtle: var(--green-light);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --border: var(--line);
  --border-control: color-mix(in srgb, var(--text) 55%, var(--surface));
  --success: #286345;
  --warning: #87551b;
  --danger: #ae3e36;
  --info: #315f87;
  --warning-subtle: #f8f1e6;
  --danger-subtle: #fbefed;
  --success-subtle: var(--green-light);
  --chart-primary: var(--green);
  --chart-secondary: var(--accent);
  --radius-panel: 8px;
  --radius-control: 6px;
  --radius-chip: 4px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --fs-small: calc(13px * var(--client-font-scale, 1));
  --fs-body: calc(14px * var(--client-font-scale, 1));
  --fs-section: calc(16px * var(--client-font-scale, 1));
  --fs-title: calc(24px * var(--client-font-scale, 1));
  --fs-value: calc(24px * var(--client-font-scale, 1));
  --fs-balance: calc(36px * var(--client-font-scale, 1));
  --shadow-float: 0 8px 32px #14241c1a;
  --shadow: none;
  --ease-fast: 140ms ease;
}
:root[data-theme='dark'] {
  --success: #aad3b1; --warning: #e0bb83; --danger: #efaaa2; --info: #a4c6e1;
  --warning-subtle: #30291e; --danger-subtle: #352320; --shadow-float: 0 8px 32px #0005;
}
body, button, input, select, textarea, h1, h2, h3, .logo { font-family: var(--font); }
h1, h2, h3 { text-wrap: balance; }
main{animation:none}
.reveal,.reveal.revealed{opacity:1;transform:none;transition:none;animation:none}
small{font-size:12px}
select { color: var(--text); background: var(--surface); font: inherit; }
::selection { background: var(--green-light); color: var(--text); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
#main:focus { outline: none; }
input, select, textarea { accent-color: var(--green); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.button { min-height: 42px; padding: 10px 16px; border-radius: var(--radius-control); gap: 8px; font-size: 14px; font-weight: 500; transition: background-color var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast); }
.button:hover, .button:active { transform: none; box-shadow: none; }
.button.primary { background: var(--primary); color: var(--bg); border-color: transparent; }
.button.primary:hover { background: var(--primary-hover); }
.button.secondary { border-color: var(--border-control); background: var(--surface); color: var(--text); }
.button.secondary:hover { background: var(--surface-subtle); border-color: var(--muted); }
.button.text-button:hover, .text-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.button:disabled, .button.is-disabled { cursor: not-allowed; opacity: 1; color: var(--muted); border-color: var(--line); background: var(--surface-subtle); }
.icon-button { width: 40px; height: 40px; min-width: 40px; border: 1px solid transparent; border-radius: var(--radius-control); }
.icon-button:hover { background: var(--surface-subtle); border-color: var(--line); }
.button .icon, .text-link .icon { width: 16px; height: 16px; }
.card { border-radius: var(--radius-panel); padding: var(--space-6); box-shadow: none; }
.glass { background: var(--surface); backdrop-filter: none; box-shadow: none; }
.field { font-size: 14px; font-weight: 500; }
.field input, .field textarea { background: var(--surface); border-color: var(--border-control); border-radius: var(--radius-control); font-weight: 400; min-height: 44px; padding: 10px 12px; }
.checkbox { align-items: center; font-size: 14px; line-height: 1.6; }
.checkbox input { flex-shrink: 0; width: 18px; height: 18px; }
.form-error { color: var(--danger); font-size: 14px; }
progress { height: 6px; margin: 12px 0; border-radius: var(--radius-chip); accent-color: var(--green); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--green); transition: none; }
progress::-moz-progress-bar { background: var(--green); }
.skeleton { padding: 24px 0; gap: 16px; }
.skeleton span { height: 32px; border-radius: var(--radius-chip); background: var(--line); animation: none; }
.skeleton span:first-child { width: 42%; height: 24px; }
.skeleton span:nth-child(2) { height: 100px; }
#toast { font-size: 14px; border-radius: var(--radius-control); box-shadow: var(--shadow-float); bottom: max(24px, env(safe-area-inset-bottom)); transition: opacity var(--ease-fast), transform var(--ease-fast); }
dialog { border-radius: var(--radius-panel); padding: 24px; max-height: calc(100dvh - 32px); overscroll-behavior: contain; box-shadow: var(--shadow-float); }
dialog::backdrop { background: #121c1770; backdrop-filter: none; }
dialog h2 { font-size: 22px; }
dialog p { font-size: 14px; }
body:has(dialog[open]) { overflow: hidden; }

/* 232px navigation + flexible canvas. At 1440: 232 + 2×32 + 1144 = 1440. */
.client-shell { display: flex; min-height: 100dvh; font-size: var(--fs-body); }
.client-sidebar { display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; width: 232px; height: 100dvh; padding: 28px 16px 16px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); }
.client-sidebar > .logo { padding: 0 8px 32px; font-size: 20px; letter-spacing: -.7px; gap: 8px; }
.client-sidebar .brand-icon { width: 32px; height: 32px; }
.client-sidebar nav, .client-drawer nav { display: flex; flex-direction: column; flex-shrink: 0; gap: 4px; margin: 0; padding: 0; overflow: visible; }
.nav-group-label { font-size: var(--fs-small); font-weight: 500; color: var(--muted); padding: 0 12px 8px; }
.client-sidebar nav a, .client-drawer nav a { display: flex; flex-direction: row; gap: 10px; align-items: center; white-space: normal; font-size: var(--fs-body); line-height: 1.45; padding: 10px 12px; min-height: 40px; color: var(--muted); border-radius: var(--radius-control); font-weight: 400; }
.client-sidebar nav a:hover, .client-drawer nav a:hover { background: var(--surface-subtle); color: var(--text); }
.client-sidebar nav a[aria-current], .client-drawer nav a[aria-current] { background: color-mix(in srgb, var(--text) 7%, var(--bg)); color: var(--text); font-weight: 500; }
.client-sidebar nav a .icon, .client-drawer nav a .icon { width: 18px; height: 18px; }
.client-sidebar nav a:nth-child(6) { margin-top: 0; border: 0; padding: 10px 12px; }
.client-sidebar .client-utilities, .client-drawer .client-utilities { margin-top: 28px; }
.sidebar-foot { display: grid; gap: 4px; margin-top: auto; padding: 28px 0 16px; }
.sidebar-foot button, .sidebar-foot button:first-child { display: flex; align-items: center; padding: 8px 12px; gap: 10px; min-height: 40px; font-size: var(--fs-body); color: var(--muted); font-weight: 400; text-align: left; border-radius: var(--radius-control); }
.sidebar-foot button:hover { text-decoration: none; color: var(--text); background: var(--surface-subtle); }
.sidebar-foot .icon { width: 18px; height: 18px; }
.sidebar-account { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 4px 0; }
.account-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--green-light); color: var(--text); font-size: 12px; font-weight: 500; }
.sidebar-account > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-account strong { display: block; font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sidebar-account small { display: block; font-size: var(--fs-small); }
.sidebar-account > .icon { width: 14px; height: 14px; color: var(--muted); }
.client-body { flex: 1; min-width: 0; }
.client-header { display: flex; align-items: center; padding: 0 32px; min-height: 64px; gap: 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.client-breadcrumb, .client-header > span:first-child { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-small); margin-right: auto; font-weight: 400; }
.client-breadcrumb strong { color: var(--text); font-weight: 500; }
.header-account { margin-left: auto; }
.client-body main { max-width: 1384px; padding: 28px 32px 32px; margin: 0 auto; animation: none; }
.client-body h1 { font-size: var(--fs-title); font-weight: 600; letter-spacing: -.7px; line-height: 1.3; }
.client-body h2 { font-size: var(--fs-section); font-weight: 500; letter-spacing: -.3px; line-height: 1.4; }
.client-body h3 { font-size: var(--fs-body); font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.client-body p { line-height: 1.6; }
.client-body small { font-size: var(--fs-small); line-height: 1.5; }
.client-body .button { font-size: var(--fs-body); }
.client-body .eyebrow { font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 8px; text-transform: none; }
.client-body .field, .client-body .checkbox, .client-body .field input, .client-body .field textarea { font-size: var(--fs-body); }
.client-body :where(strong, b, progress, td, input[type=month]) { font-variant-numeric: tabular-nums; }
.page-heading { margin-bottom: 24px; }
.page-heading p { margin-top: 8px; font-size: var(--fs-body); }
.page-heading > .eyebrow { display: none; }
.account-form { max-width: 720px; border: 0; background: var(--surface); padding: 24px; }
.account-form .field:first-child { margin-top: 0; }
.account-form > .button { margin-top: 8px; }
.orders { margin-top: 24px; border: 0; }
.orders h3, #ticket-list h2 { margin-bottom: 16px; }
.orders p, .download-card p { font-size: var(--fs-body); }
#ticket-list { margin-top: 32px; }
.download-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 0; background: transparent; }
.download-card h2 { font-size: var(--fs-section); }
.client-menu-toggle { display: none; }
.client-header>.logo{display:none}
.client-drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(360px, calc(100vw - 32px)); max-width: none; max-height: none; height: 100dvh; padding: 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--bg); font-size: var(--fs-body); overflow-y: auto; }
.client-drawer[open] { display: flex; flex-direction: column; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.drawer-heading .logo { font-size: 20px; }
.drawer-heading .brand-icon { width: 32px; height: 32px; }
.client-drawer .sidebar-foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.traffic-counter > strong { font-size: var(--fs-balance); letter-spacing: -1px; }
.traffic-counter > span .icon { display: none; }
.traffic-chart h2 { font-size: var(--fs-section); }
.traffic-chart-heading p, .traffic-private { font-size: var(--fs-body); }
.traffic-chart-heading > span, .traffic-explanation { font-size: var(--fs-small); }
.traffic-table thead th { background: var(--surface); font-weight: 500; }
.traffic-bar { fill: var(--chart-primary); opacity: .55; }
.traffic-bar.is-today { opacity: 1; }
.traffic-plot { min-width: 560px; }
@media (max-width: 1100px) {
  .client-shell { flex-direction: column; }
  .client-sidebar { display: none; }
  .client-menu-toggle { display: inline-grid; }
  .client-header>.logo{display:inline-flex;font-size:18px;letter-spacing:-.5px;gap:6px}
  .client-header>.logo .brand-icon{width:28px;height:28px}
  .client-header .client-breadcrumb{display:none}
  .client-header { padding: 0 24px; }
  .client-body main { padding: 24px; }
}
@media (max-width: 640px) {
  .client-header { min-height: 60px; padding: 0 12px; gap: 8px; }
  .client-breadcrumb { font-size: var(--fs-small); gap: 8px; }
  .client-body main { padding: 20px 16px 24px; }
  .client-body h1 { font-size: calc(22px * var(--client-font-scale, 1)); }
  .client-body .button, .client-drawer nav a, .sidebar-foot button, .icon-button { min-height: 44px; }
  .icon-button { width: 44px; min-width: 44px; }
  .client-body .card { padding: 20px; }
  .account-form { padding: 20px 16px; }
  .traffic-counters { gap: 16px; }
  .traffic-chart { padding: 20px 16px; }
  .traffic-counter > strong { font-size: var(--fs-balance); }
  .traffic-toolbar { align-items: center; }
  .traffic-private { font-size: var(--fs-small); }
}
/* Public pages share the brand, with roomier type than the working application. */
.header{height:76px;background:var(--bg);backdrop-filter:none}
.header .nav-wrap{max-width:1320px;padding:0 32px;gap:32px}
.header nav a,.login-link{font-size:14px}
.header .nav-cta{font-size:14px;padding:10px 14px}
:root .simple-sales .hero{background:var(--bg);padding-top:64px;padding-bottom:64px}
.simple-sales .hero h1{font-weight:600;line-height:1.15;letter-spacing:-1.8px}
.simple-sales .hero h1 em{color:var(--green)}
.simple-sales .hero .pill{border:0;padding:0;background:none;font-size:14px;font-weight:500;border-radius:0}
.simple-sales .hero-copy>p{font-size:16px;max-width:520px}
.simple-sales .hero-notes{font-size:12px}
.simple-sales .demo-note{font-size:12px}
.simple-sales .offer-summary{border:0;border-radius:0;background:none;padding:0;box-shadow:none}
.simple-sales .offer-summary .discount-chip{background:var(--green-light);color:var(--text);border-radius:var(--radius-chip)}
.simple-sales .simple-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.simple-sales .simple-benefits .card{border:0;background:none;border-radius:0;padding:0}
.simple-sales .simple-benefits h3{font-size:20px}
.simple-sales .simple-benefits p{font-size:16px}
.simple-sales .simple-benefits .icon{display:none}
.simple-sales .section-intro{text-align:left;max-width:none}
.simple-sales .section-intro h2{font-size:32px;line-height:1.25}
.simple-sales .simple-kit{background:var(--green-light);border-radius:var(--radius-panel)}
.simple-sales .kit-item-icon,.simple-sales .item-number{display:none}
.simple-sales .kit-items article{display:block}
.simple-sales .kit-format{font-size:12px;text-align:left}
.simple-sales .price-card{border:1px solid var(--line);border-radius:var(--radius-panel);background:var(--surface);box-shadow:none}
.simple-sales .price-card .offer-summary{margin:24px 0}
.simple-sales .price-card{max-width:480px}
.simple-sales .final-cta{background:var(--green-light);border-radius:var(--radius-panel)}
.simple-sales .offer-badge{font-size:12px;letter-spacing:0}
.kit-carousel .preview-slide{background:var(--surface);border-radius:var(--radius-panel);box-shadow:none;border:1px solid var(--line);filter:none}
.kit-carousel .preview-slide:not(.is-active){opacity:0;visibility:hidden;pointer-events:none}
.kit-carousel .preview-slide small{font-size:12px}
.kit-carousel .preview-tip{font-size:12px}
.kit-carousel .preview-heading .logo-mark{background:none;color:var(--green);padding:0;border-radius:0}
.carousel-controls button{min-height:44px;min-width:44px;border-radius:var(--radius-control)}
.carousel-controls [data-carousel-toggle]{font-size:12px}
.carousel-dots button{min-width:32px}
.carousel-dots button:after{inset:19px 12px}
.carousel-dots button[aria-pressed=true]:after{inset:19px 8px}
.auth-page{max-width:1200px;padding:64px 32px;gap:64px;align-items:center}
.auth-story h2{font-size:40px;letter-spacing:-1.3px;line-height:1.2}
.auth-story .eyebrow,.auth-card>.eyebrow{display:none}
.auth-story .auth-symbol{opacity:1}
.auth-story p{font-size:16px}
.auth-story em{color:var(--green);font-style:normal}
.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-panel);box-shadow:none;padding:32px;backdrop-filter:none}
.auth-card h1{font-size:28px;font-weight:600;letter-spacing:-.8px}
.auth-card>p{font-size:14px;margin-top:8px}
.auth-card form small,.auth-bottom,.subtle-link{font-size:12px}
.checkout-summary{border-radius:var(--radius-panel);box-shadow:none}
.checkout-summary :is(input,textarea){border-color:var(--border-control);background:var(--surface);font-size:14px;border-radius:var(--radius-control)}
.checkout-summary h2{font-size:24px}
.checkout-summary p,.checkout-summary label{font-size:14px}
.checkout .checkout-summary .muted{font-size:14px;color:var(--muted)}
.checkout-summary small{font-size:12px}
.footer-top>div>span{font-size:12px;letter-spacing:0}
.footer-top a{font-size:14px}
.footer-bottom{font-size:12px}
.footer-bottom small{font-size:12px}
.footer-bottom>span{font-size:12px;letter-spacing:0}
:root .kit-carousel :is(.preview-table th,.preview-table td,.preview-table .paid,.preview-table .pending,.preview-tasks b,.preview-tasks span,.preview-slide>small,.preview-bars b,[data-carousel-count]){font-size:12px}
:root footer .footer-top>div>a{font-size:14px}
@media(max-width:1100px){.header .nav-wrap{gap:20px}.header nav{gap:16px}.header .nav-cta{display:none}}
@media(max-width:800px){.auth-page{gap:32px;padding:40px 24px}.auth-story h2{font-size:32px}.auth-story .auth-symbol{display:none}.simple-sales .simple-benefits{gap:24px}}
@media(max-width:640px){
  .header{height:68px}.header .nav-wrap{padding:0 16px;gap:12px}.header .nav-actions{gap:8px}.header .logo{font-size:20px}.header .brand-icon{width:32px;height:32px}.header .nav-actions>.login-link{font-size:14px}
  .simple-sales .hero{padding:32px 20px 40px;gap:24px}.simple-sales .hero h1{font-size:36px}.simple-sales .simple-benefits{grid-template-columns:1fr;gap:24px}.simple-sales .section-intro h2{font-size:28px}
  .auth-page{padding:32px 16px}.auth-story{display:none}.auth-card{padding:24px 20px}.auth-card h1{font-size:24px}.auth-card input{font-size:16px}.auth-card .button{min-height:44px}.auth-bottom{font-size:14px}
  .carousel-controls{gap:0}.carousel-controls button{min-width:36px}.carousel-controls [data-carousel-toggle]{width:76px}.carousel-dots button{min-width:26px}.carousel-dots button:after{inset:19px 10px}.carousel-dots button[aria-pressed=true]:after{inset:19px 6px}
  .simple-sales .offer-summary{margin:20px 0}.simple-sales .price-card .offer-summary{margin:20px 0}.simple-sales .hero-notes{flex-wrap:wrap;justify-content:center}
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
