:root {
  --ink: #1c1712;
  --muted: #6d6256;
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: #e4d9c8;
  --copper: #9c4e24;
  --copper-d: #7c3b18;
  --pine: #1d4034;
  --gold: #c6a15b;
  --bad: #8d2e2e;
  --ok: #1f6b45;
  --shadow: 0 18px 40px rgba(48, 32, 14, .08);
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--pine); }
img, video { max-width: 100%; display: block; border-radius: 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; line-height: 1.15; margin: 0 0 .4rem; }
.eyebrow { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--copper); margin: 0 0 .3rem; }
.hint, small { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; background: var(--copper); color: white; text-decoration: none; border: 0; border-radius: 999px; padding: .75rem 1.1rem; font: 600 1rem/1 var(--sans); cursor: pointer; }
.btn:hover { background: var(--copper-d); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.slim { padding: .45rem .8rem; font-size: .92rem; }
.btn.danger { background: var(--bad); }
.btn:disabled { opacity: .5; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; }
.field span { color: var(--muted); }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: white; border-radius: 12px; padding: .7rem .8rem; font: inherit; color: inherit; }
textarea { resize: vertical; }
.stack { display: grid; gap: 1rem; }
.grid-2, .grid-3 { display: grid; gap: .8rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.flash { padding: .8rem 1rem; border-radius: 12px; background: #e7f3ec; }
.flash.bad, .banner.warn { background: #f8e6df; }
.banner { background: #fff4d8; border-radius: 12px; padding: .8rem 1rem; }
.check { display: flex; gap: .5rem; align-items: center; }
.check input { width: auto; }
.actions, .toolbar, .row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.mark { width: 16px; height: 16px; display: inline-block; transform: rotate(45deg); border-radius: 3px; background: linear-gradient(135deg, #e8c98a, #9c4e24 55%, #1d4034); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.auth-card { width: min(560px, 100%); background: var(--card); border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); }
.auth-card.wide { width: min(860px, 100%); }
.req { padding-left: 1.1rem; }
.req .ok { color: var(--ok); }
.req .bad { color: var(--bad); }
.token { white-space: pre-wrap; word-break: break-all; background: #1c1712; color: #f4efe6; padding: .8rem; border-radius: 12px; }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: #241c16; color: #f6efe4; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.side a { color: inherit; text-decoration: none; }
.brand { display: flex; gap: .7rem; align-items: center; }
.brand strong { display: block; }
.brand small, .side-foot { color: #cbbba6; font-size: .85rem; }
.side nav { display: grid; gap: .15rem; }
.side nav a { padding: .45rem .6rem; border-radius: 10px; display: flex; justify-content: space-between; }
.side nav a.is-on, .side nav a:hover { background: rgba(255,255,255,.08); }
.side nav em { background: var(--copper); color: white; border-radius: 999px; padding: 0 .4rem; font-style: normal; font-size: .75rem; }
.main { padding: 1rem 1.1rem 3rem; }
.top { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.top h1 { font-size: 1.8rem; }
.nav-check, .burger { display: none; }
.kpis, .goals, .split-charts { display: grid; gap: .8rem; margin-bottom: 1rem; }
.goals header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.kpi { background: var(--card); border-radius: 16px; padding: 1rem; border: 1px solid var(--line); }
.kpi span, .kpi small { color: var(--muted); display: block; }
.kpi strong { font-family: var(--display); font-size: 1.8rem; }
.bar { height: 10px; background: #efe6d8; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pine), var(--gold)); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
td small { display: block; }
.pill { display: inline-block; border-radius: 999px; padding: .1rem .5rem; background: #efe6d8; font-size: .78rem; }
.pill.warn { background: #f3d2c4; }
.st-respondio { background: #d9ecdf; }
.st-interesado { background: #f3e2bf; }
.st-cliente { background: #d5e4f2; }
.st-perdido { background: #f0d4d4; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.filters input, .filters select { width: auto; min-width: 11rem; flex: 1; }
.filters input[type="search"] { flex: 2; min-width: 16rem; }
.pager a { display: inline-block; margin-right: .3rem; padding: .2rem .5rem; border-radius: 8px; }
.pager a.is-on { background: var(--ink); color: white; }
.bulk { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin-top: 1rem; }
.grow { flex: 1; }
.split { display: grid; grid-template-columns: 1.3fr .8fr; gap: 1rem; }
.kanban { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: 1rem; }
.column { min-width: 230px; background: rgba(255,255,255,.45); border-radius: 16px; padding: .6rem; }
.column header { display: flex; justify-content: space-between; }
.deal { background: white; border-radius: 12px; padding: .6rem; margin-top: .5rem; }
.timeline { list-style: none; padding: 0; display: grid; gap: .8rem; }
.timeline li { border-left: 3px solid var(--gold); padding-left: .7rem; }
.preview { white-space: pre-wrap; background: #f7f1e7; border-radius: 12px; padding: .7rem; font-family: inherit; }
.inbox { display: grid; grid-template-columns: 300px 1fr; gap: .8rem; min-height: 70vh; }
.thread-list, .thread-view { background: var(--card); border-radius: 18px; border: 1px solid var(--line); }
.thread-list { padding: .6rem; overflow: auto; }
.thread { display: grid; gap: .15rem; padding: .7rem; border-radius: 12px; text-decoration: none; color: inherit; }
.thread strong, .thread small, .thread p { margin: 0; }
.thread.is-on, .thread:hover { background: #f6ecdf; }
.thread em { float: right; background: var(--copper); color: white; border-radius: 99px; padding: 0 .4rem; font-style: normal; }
.thread-head, .composer { padding: .8rem 1rem; }
.bubbles { display: grid; gap: .6rem; padding: 0 1rem 1rem; max-height: 52vh; overflow: auto; }
.bubble { max-width: min(640px, 100%); padding: .7rem .8rem; border-radius: 16px; background: #f3eee6; }
.bubble.out { margin-left: auto; background: #e5f0ea; }
.bubble header { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--muted); }
.bubble .subject { font-weight: 650; }
.composer { border-top: 1px solid var(--line); }
.empty { color: var(--muted); padding: .8rem; }
.back { font-size: .9rem; }
.site-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 6vw; position: sticky; top: 0; background: rgba(244,239,230,.92); backdrop-filter: blur(8px); }
.site-top nav { display: flex; gap: 1rem; }
.hero, .section { padding: 2.2rem 6vw; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); }
.math { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding: 0; list-style: none; }
.math li { background: white; border-radius: 16px; padding: .8rem; }
.math strong { display: block; font-family: var(--display); font-size: 1.7rem; }
.product-grid, .steps { display: grid; gap: .8rem; }
.product-grid { grid-template-columns: repeat(5, 1fr); }
.media-slot { min-height: 160px; border: 1.5px dashed #c8b59a; border-radius: 16px; display: grid; place-items: center; text-align: center; padding: 1rem; background: repeating-linear-gradient(135deg, #fffdf8, #fffdf8 12px, #f6efe4 12px, #f6efe4 24px); }
.media-slot span { font-family: ui-monospace, monospace; font-size: .85rem; }
.calc dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.calc dt { color: var(--muted); }
.calc dd { margin: 0; font-family: var(--display); font-size: 1.6rem; }
.steps { grid-template-columns: repeat(4, 1fr); padding: 0; list-style: none; counter-reset: step; }
.steps li { background: white; border-radius: 16px; padding: 1rem; }
details { background: white; border-radius: 14px; padding: .7rem 1rem; margin-bottom: .5rem; }
.site-foot { padding: 2rem 6vw 5rem; color: var(--muted); }
.float-wa { position: fixed; right: 1rem; bottom: 1rem; background: #1f7a4d; color: white; text-decoration: none; border-radius: 999px; padding: .9rem 1rem; font-weight: 700; box-shadow: var(--shadow); }
.hp { position: absolute; left: -9999px; }
.quote + .quote { margin-top: .6rem; }
@media (min-width: 800px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .goals, .split-charts, .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero, .product-grid, .steps, .split, .inbox { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .math, .calc dl { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .nav-check { position: absolute; opacity: 0; }
  .burger { display: inline-flex; }
  .side { display: none; }
  .nav-check:checked ~ .shell .side { display: flex; }
  .inbox.has-thread .thread-list { display: none; }
  .inbox:not(.has-thread) .thread-view { display: none; }
  .site-top nav { display: none; }
}
