/* Default = the app's "Hueso" style. app.js overrides these variables with the style the visitor picks. */
:root {
  --bg: #F5EFE6; --surface: #FFFDF9; --fg: #1E293B; --muted: #64748B; --line: #E8DFD0;
  --accent: #38BDF8; --accent-dark: #0EA5E9; --soft: #E0F4FD; --on-accent: #0B1220;
  --sidebar: #1E293B; --sidebar-accent: #38BDF8;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.5; transition: background .25s, color .25s; }
a { color: inherit; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; max-width: 1040px; margin: 0 auto; }
.bar nav { display: flex; gap: 14px; align-items: center; }
.bar nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--accent-dark); }
main, footer { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 48px 0; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: 28px; margin: 0 0 16px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: background .25s; }
.btn:hover { background: var(--accent-dark); }
.btn.small { padding: 8px 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
article, .card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: background .25s, border-color .25s; }
article h3 { margin: 0 0 8px; }
article p { margin: 0; color: var(--muted); }
.card { max-width: 420px; }
.amount { font-size: 44px; font-weight: 800; margin: 0 0 8px; }
.amount span { font-size: 16px; font-weight: 500; color: var(--muted); }
.steps ol { padding-left: 20px; font-size: 18px; }

.styles { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .styles { grid-template-columns: 1fr 1fr; } }
.styles-copy p { color: var(--muted); margin: 0 0 12px; }
.styles-copy .try { color: var(--fg); font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 6px 12px 6px 6px; font: inherit; font-size: 14px; cursor: pointer; }
.swatch .dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.mock { display: grid; grid-template-columns: 120px 1fr; min-height: 260px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.mock-side { background: var(--sidebar); color: #fff; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; transition: background .25s; }
.mock-side b { margin-bottom: 8px; color: var(--sidebar-accent); }
.mock-side span { padding: 6px 8px; border-radius: 8px; opacity: .85; }
.mock-side span.on { background: rgba(255,255,255,.14); color: var(--sidebar-accent); opacity: 1; }
.mock-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mock-card small { color: var(--muted); }
.mock-card strong { font-size: 22px; color: var(--accent-dark); }
.mock-bar { height: 6px; border-radius: 3px; background: var(--soft); margin-top: 4px; }
.mock-bar i { display: block; height: 100%; width: 60%; border-radius: 3px; background: var(--accent); }
.mock-btn { align-self: flex-start; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; }
@media (max-width: 640px) { .hide-sm { display: none; } }

.business .lead { color: var(--muted); max-width: 620px; margin: 0 0 24px; }
.carousel { position: relative; }
.track { list-style: none; margin: 0; padding: 4px 2px 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 min(340px, 86%); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: background .25s, border-color .25s; }
.slide figure { margin: 0; aspect-ratio: 8 / 5; }
.slide .art { display: block; width: 100%; height: 100%; }
.slide h3 { margin: 16px 18px 6px; }
.slide p { margin: 0 18px 20px; color: var(--muted); }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.car-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 18px; cursor: pointer; }
.car-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.dots { display: inline-flex; gap: 8px; }
.dot-btn { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.dot-btn[aria-current="true"] { background: var(--accent); transform: scale(1.3); }

.features .lead { color: var(--muted); max-width: 620px; margin: 0 0 24px; }
.feat svg { color: var(--accent-dark); margin-bottom: 10px; }
.feat-main { border-color: var(--accent); background: var(--soft); }
.more { margin: 20px 0 0; color: var(--muted); }
.more a { color: var(--accent-dark); font-weight: 600; }

/* Base features: 1 column on phones, 2 on tablets, 3 on desktop. Agenda is the big card, Clients the second one. */
.features .grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .features .grid { grid-template-columns: repeat(2, 1fr); } .feat-main { grid-column: span 2; } }
@media (min-width: 960px) { .features .grid { grid-template-columns: repeat(3, 1fr); } .feat-wide { grid-column: span 2; } }
.feat-main h3, .feat-wide h3 { font-size: 20px; }
.feat-main p, .feat-wide p { font-size: 16px; }
.support-btn { margin-top: 12px; }
.support-btn[hidden] { display: none; }
