:root {
  --noche: #0F1E33;
  --noche-prof: #0B1626;
  --papel: #F3F5F7;
  --blanco: #FFFFFF;
  --luz: #F7C873;
  --pizarra: #5C6672;
  --gris: #7E8794;
  --verde: #2E6B5A;
  --verde-claro: #DCE9E4;
  --error: #9B2C1E;
  --papel-2: #E4E9EE;

  --ink: var(--noche);
  --muted: var(--pizarra);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --margin: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 10vw, 160px);
  --gap: clamp(20px, 2.4vw, 36px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--luz); color: var(--noche); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h1 { font-size: clamp(46px, 4.7vw, 76px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: clamp(26px, 2.8vw, 38px); }
p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 220ms var(--ease-out), opacity 220ms;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--noche); color: var(--papel); }
.btn-line { background: var(--papel-2); color: var(--noche); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.text-link { font-weight: 700; text-decoration: none; padding: 8px 0; }
.text-link:hover { color: var(--verde); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--margin);
  background: var(--papel);
}
.brand img { width: clamp(150px, 16vw, 210px); height: auto; }
.menu { display: flex; gap: 24px; font-size: 15px; font-weight: 600; }
.menu a { text-decoration: none; padding: 8px 0; }
.menu a:hover { color: var(--verde); }
.menu-toggle { display: none; position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: var(--papel-2); cursor: pointer; }
.burger, .burger::before, .burger::after { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--noche); transition: transform 240ms var(--ease-out), background 180ms; }
.burger { top: 21px; }
.burger::before, .burger::after { content: ""; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .burger { background: transparent; }
.menu-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.top-cta { display: none; }
.top .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--gap);
  align-items: center;
  padding: clamp(40px, 6vw, 96px) var(--margin) var(--section);
  max-width: 1600px; margin: 0 auto;
}
.hero-copy { display: grid; gap: 28px; align-content: center; }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: #3F4A57; max-width: 34ch; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.picker { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.picker legend { font-weight: 700; font-size: 15px; padding: 0 0 10px; }
.picker-main, .picker-sub { display: flex; flex-wrap: wrap; gap: 8px; }
.picker button {
  min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--papel-2); color: var(--noche); font-weight: 700; font-size: 15px;
  transition: background 240ms var(--ease-out), color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.picker button:hover { transform: translateY(-1px); }
.picker button[aria-pressed="true"] { background: var(--noche); color: var(--papel); }
.picker-sub[hidden] { display: none; }
.picker-sub button { background: var(--blanco); font-weight: 600; font-size: 14px; min-height: 40px; }
.picker-sub button[aria-pressed="true"] { background: var(--luz); color: var(--noche); }

.stage { position: relative; min-height: 640px; display: grid; }
.stage-photo { grid-area: 1 / 1; border-radius: 0; overflow: hidden; }
.stage-photo img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; transition: opacity 500ms var(--ease-out), transform 900ms var(--ease-out); }
.stage-photo img.is-swap { opacity: 0; transform: scale(1.03); }
.scene { grid-area: 1 / 1; align-self: end; justify-self: start; width: min(360px, 88%); margin: 0 0 5% 6%; z-index: 2; }
.scene.is-on { z-index: 3; }

/* phone (interface fragment: keeps its own borders) */
.phone {
  background: var(--noche); color: var(--papel); border-radius: 36px; padding: 16px; display: grid; gap: 10px;
  border: 10px solid var(--noche-prof);
}
.phone-sm { width: 100%; }
.phone-top { display: grid; gap: 2px; padding: 4px 6px 10px; }
.chat-title { font-weight: 800; font-size: 16px; }
.chat-sub { font-size: 13px; color: #B7C0CC; }
.thread { display: grid; gap: 8px; padding: 6px 0; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.bubble.in { background: #1E3350; color: var(--papel); justify-self: start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--verde); color: var(--blanco); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.photo-bubble { padding: 4px; background: #1E3350; }
.bubble.photo-bubble img { border-radius: 12px; max-height: 150px; width: 100%; object-fit: cover; }
.voice { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.voice::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--luz); }

.order-card, .link-card, .notice {
  background: var(--blanco); color: var(--noche); border-radius: 18px; padding: 14px; display: grid; gap: 10px;
}
.oc-head, .lc-title, .draft-head, .rc-head, .board-head, .gate-head, .track-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pill-state {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--luz); color: var(--noche);
}
.oc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.oc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.oc-lines li.miss span:last-child { color: var(--verde); font-weight: 700; }
.oc-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; padding-top: 8px; background: var(--papel); margin: 0 -14px -14px; padding: 12px 14px; border-radius: 0 0 18px 18px; }
.link-card .lc-row { display: flex; justify-content: space-between; font-size: 15px; gap: 12px; }
.link-card .lc-total { font-weight: 800; }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.notice-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--verde); flex: none; }
.scene .phone + * { margin-top: 0; }

/* ---------- problem ---------- */
.problem {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap);
  padding: var(--section) var(--margin); max-width: 1600px; margin: 0 auto; align-items: center;
}
.problem-text { display: grid; gap: 22px; max-width: 46ch; }
.problem-text h2 { font-size: clamp(34px, 4vw, 52px); }
.tone-note { max-width: 56ch; }
.faq details p, .notes li { max-width: 60ch; }
.problem-text p { font-size: 18px; color: #3F4A57; }
.problem-text p.strong { color: var(--ink); font-weight: 700; }
.waits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wait { min-height: 200px; padding: 22px; border-radius: 22px; display: flex; align-items: flex-end; font-weight: 800; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.02em; }
.wait span { max-width: 14ch; }
.w1 { background: var(--noche); color: var(--papel); }
.w2 { background: var(--luz); color: var(--noche); }
.w3 { background: var(--papel-2); color: var(--noche); }
.w4 { background: var(--verde); color: var(--blanco); }

/* ---------- feature bands ---------- */
.band { padding: var(--section) var(--margin); max-width: 1600px; margin: 0 auto; display: grid; gap: clamp(64px, 8vw, 120px); }
.band-head { display: grid; gap: 18px; max-width: 880px; }
.band-head p, .tone-note { font-size: 18px; color: #3F4A57; max-width: 56ch; }

.converge {
  position: relative; background: var(--noche); border-radius: 28px; min-height: 320px; padding: 28px;
  display: grid; grid-template-columns: max-content minmax(80px, 1fr) min(230px, 40%); grid-template-rows: repeat(3, 84px); align-items: center; min-height: 0;
}
.converge .src { position: relative; z-index: 2; justify-self: start; align-self: center; background: var(--papel); color: var(--noche); font-weight: 700; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.converge .src { display: grid; gap: 2px; grid-column: 1; justify-self: stretch; }
.converge .src small { font-size: 13px; font-weight: 600; color: var(--pizarra); }
.converge .s1 { grid-row: 1; }
.converge .s2 { grid-row: 2; }
.converge .s3 { grid-row: 3; }
.converge .lines { grid-column: 2; grid-row: 1 / -1; align-self: stretch; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.converge .lines path { fill: none; stroke: var(--luz); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.converge .card-mini { grid-column: 3; grid-row: 1 / -1; position: relative; z-index: 3; background: var(--luz); color: var(--noche); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; font-size: 15px; }
.converge { overflow: hidden; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--gap); align-items: center; }
.feature.flip .f-text { order: 2; }
.feature.flip .f-ui { order: 1; }
.f-text { display: grid; gap: 16px; align-content: center; }
.benefit { font-size: clamp(18px, 1.6vw, 21px); color: #3F4A57; max-width: 34ch; }
.f-ui { background: var(--blanco); border-radius: 28px; padding: clamp(20px, 3vw, 36px); min-width: 0; }

/* f-qr */
.qr-stage { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: start; }
.qr-stage .phone { padding: 12px; border-width: 8px; border-radius: 28px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; background: #1E3350; padding: 8px 10px; border-radius: 12px; }
.menu-list li .add { border: 0; border-radius: 999px; padding: 6px 10px; background: var(--luz); color: var(--noche); font-weight: 700; font-size: 12px; cursor: pointer; }
.cart-line { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; padding: 4px 6px; }
.qr-box { background: var(--papel); color: var(--noche); border-radius: 22px; padding: 14px; display: grid; gap: 8px; justify-items: center; font-weight: 700; font-size: 14px; }
.qr-box svg { width: 100%; max-width: 120px; height: auto; }

/* f-texto */
.text-stage { background: var(--noche); color: var(--papel); border-radius: 22px; padding: 18px; display: grid; gap: 14px; }
.text-stage .thread { padding: 0; }
.text-stage .draft { color: var(--noche); }

/* f-voz */
.voice-stage { display: grid; gap: 14px; }
.voice-note { display: flex; align-items: center; gap: 12px; background: var(--noche); color: var(--papel); border-radius: 999px; padding: 12px 18px; }
.play { width: 34px; height: 34px; border-radius: 50%; background: var(--luz); position: relative; flex: none; }
.play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 11px solid var(--noche); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.wave { display: flex; align-items: center; gap: 3px; flex: 1; height: 34px; }
.wave i { display: block; width: 4px; background: var(--luz); border-radius: 2px; height: 30%; transform-origin: center; }
.wave i:nth-child(odd) { height: 70%; }
.wave i:nth-child(3n) { height: 100%; }
.dur { font-weight: 700; font-size: 14px; }
.draft { background: var(--papel); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.draft-head span { font-size: 13px; color: #3F4A57; }
.draft .oc-lines { font-size: 16px; }
.unknown { font-size: 14px; background: var(--luz); color: var(--noche); padding: 10px 12px; border-radius: 12px; font-weight: 600; }

/* f-foto */
.photo-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.paper { background: var(--papel-2); color: var(--noche); border-radius: 18px; padding: 18px; display: grid; gap: 10px; font-size: 15px; transform: rotate(-1.5deg); }
.paper-title { font-weight: 800; font-size: 16px; }
.paper p:not(.paper-title) { padding-left: 8px; }
.draft.small .oc-lines { font-size: 14px; }
.draft.small { padding: 14px; align-content: start; }

/* f-estados */
.track { background: var(--noche); color: var(--papel); border-radius: 22px; padding: 24px; display: grid; gap: 22px; }
.track-now { background: var(--luz); color: var(--noche); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 17px; color: #B7C0CC; }
.steps li .dot { width: 18px; height: 18px; border-radius: 50%; background: #2A3F5C; flex: none; }
.steps li.is-done { color: var(--papel); }
.steps li.is-done .dot { background: var(--verde); }
.steps li.is-current { color: var(--noche); background: var(--luz); border-radius: 14px; padding: 10px 14px; margin: 0 -14px; }
.steps li.is-current .dot { background: var(--noche); transform: scale(1.15); }
.track-code { font-size: 15px; color: #B7C0CC; }
.track-code strong { color: var(--luz); font-size: 18px; letter-spacing: 0.04em; }

/* ---------- venue tabs ---------- */
.lugares { padding: var(--section) var(--margin); max-width: 1600px; margin: 0 auto; display: grid; gap: 28px; background: var(--papel-2); border-radius: 0; }
.lugares > h2 { max-width: 16ch; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; }
.tablist button {
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--blanco); color: var(--noche); font-weight: 700; font-size: 16px;
  transition: background 320ms var(--ease-out), color 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.tablist button:hover { transform: translateY(-2px); }
.tablist button[aria-selected="true"] { background: var(--noche); color: var(--papel); }
.tabpanel { display: grid; gap: clamp(28px, 4vw, 48px); animation: none; }
.js .tabpanel[hidden] { display: none; }
.js .tabpanel.is-enter { animation: tabIn 520ms var(--ease-out) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.tab-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.tab-text { display: grid; gap: 16px; align-content: start; }
.tab-text h3 { font-size: clamp(28px, 3.2vw, 44px); max-width: 18ch; }
.tab-text p { color: #3F4A57; font-size: 17px; max-width: 52ch; }
.applies { color: var(--noche) !important; margin-top: 6px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--blanco); color: var(--noche); font-weight: 700; font-size: 14px; text-decoration: none; }
.chips a:hover { background: var(--luz); }
.tools { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; color: var(--noche) !important; font-size: 16px; }
.tab-photo { margin: 0; overflow: hidden; border-radius: 0; min-height: 360px; }
.tab-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.tab-ui { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.tabpanel .tab-ui:only-child { grid-template-columns: 1fr; }
.board, .menu-card, .proposed, .catalog, .notice.big { background: var(--noche); color: var(--papel); border-radius: 24px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.board-head span { font-size: 14px; color: #B7C0CC; }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.table-card { background: #1E3350; border-radius: 16px; padding: 14px; display: grid; gap: 6px; font-size: 14px; color: #C9D2DE; }
.table-card strong { color: var(--papel); font-size: 17px; }
.table-card.is-sel { background: var(--luz); color: var(--noche); }
.table-card.is-sel strong { color: var(--noche); }
.st { justify-self: start; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.st-ok { background: var(--verde); color: var(--blanco); }
.st-mid { background: var(--luz); color: var(--noche); }
.st-ink { background: var(--noche); color: var(--luz); }
.st-soft { background: var(--papel-2); color: var(--noche); }
.qr-mini { background: var(--blanco); color: var(--noche); border-radius: 22px; padding: 18px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 15px; }
.qr-mini strong { display: block; font-size: 17px; margin-bottom: 4px; }
.qr-mini-box svg { width: 100%; height: auto; }
.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.req li { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #1E3350; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.req li > span:first-child { display: grid; gap: 2px; }
.req li strong { font-size: 16px; }
.req span span { color: #B7C0CC; font-size: 13px; }
.menu-card .menu-list li { background: #1E3350; }
.proposed .oc-lines li { font-size: 15px; }
.proposed .hist { font-size: 14px; color: #B7C0CC; }
.proposed .oc-lines li:last-child { font-weight: 800; font-size: 17px; }
.catalog .menu-list li { background: #1E3350; }
.subtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.subtypes figure { margin: 0; display: grid; gap: 8px; }
.subtypes img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.subtypes figcaption { font-weight: 700; font-size: 15px; }
.gate-msg { font-size: 16px; font-weight: 600; }
.gate-guard { font-size: 14px; color: #B7C0CC; }
.gate-head span { font-size: 14px; color: var(--luz); font-weight: 700; }

/* ---------- tones ---------- */
.tonos { padding: var(--section) var(--margin); max-width: 1600px; margin: 0 auto; display: grid; gap: 40px; }
.tone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.tone { background: var(--noche); color: var(--papel); border-radius: 28px; padding: 22px; display: grid; gap: 14px; min-width: 0; }
.tone header { display: grid; gap: 2px; padding-bottom: 6px; }
.tone header strong { font-size: 24px; color: var(--luz); }
.tone header span { color: #B7C0CC; font-size: 14px; }
.tone .thread { padding: 0; }
.tone-note { font-size: 17px; }

/* ---------- sales from WhatsApp ---------- */
.band > .feature + .feature { margin-top: 0; }
.offer-stage { background: var(--noche); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.offer-stage .thread { padding: 0; }
.offer-stage .link-card { background: var(--blanco); }
.link-card .lc-title { font-weight: 800; }

/* ---------- staff panel ---------- */
.panel-sec { padding: var(--section) var(--margin); max-width: 1600px; margin: 0 auto; display: grid; gap: 48px; }
.dash {
  position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px;
  background: var(--noche); color: var(--papel); border-radius: 28px; padding: 18px;
}
.dash-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nav-group { margin: 12px 14px 4px; font-size: 13px; font-weight: 700; color: #8FA0B5; }
.nav-group:first-child { margin-top: 2px; }
.side-bottom { margin-top: auto; padding-top: 28px; display: grid; gap: 4px; }
.side-sub { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 12px; border-left: 2px solid #2A4262; display: grid; gap: 2px; font-size: 14px; color: #8FA0B5; }
.side-sub li { padding: 4px 0; }
.side-item { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #C9D2DE; display: flex; justify-content: space-between; }
.side-item.is-on { background: #1E3350; color: var(--papel); }
.side-item b { background: var(--luz); color: var(--noche); border-radius: 999px; padding: 0 8px; font-size: 13px; }
.dash-main { display: grid; gap: 14px; min-width: 0; position: relative; }
.dash-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.dash-row .dash-box.services { min-width: 0; }
.dash-box { background: #1E3350; border-radius: 20px; padding: 16px; display: grid; gap: 10px; min-width: 0; align-content: start; font-size: 15px; position: relative; }
.dash-box > strong { font-size: 16px; }
.conv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; }
.conv-name { font-weight: 700; }
.conv-msg { grid-column: 1 / 2; color: #B7C0CC; font-size: 14px; }
.conv .pill-state { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 13px; }
.conv.flag .pill-state { background: var(--verde); color: var(--blanco); }
.toggle { display: inline-flex; background: var(--noche-prof); border-radius: 999px; padding: 4px; width: max-content; }
.toggle span { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #B7C0CC; }
.toggle span.is-on { background: var(--luz); color: var(--noche); }
.voice-sample { color: #C9D2DE; font-size: 14px; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--noche-prof); border-radius: 16px; padding: 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.col-h { font-size: 14px; font-weight: 700; color: var(--luz); }
.kc { background: #1E3350; border-radius: 12px; padding: 10px; display: grid; gap: 2px; font-size: 13px; color: #C9D2DE; }
.kc b { color: var(--papel); font-size: 14px; }
.chips-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.m { padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.m-ok { background: var(--verde); color: var(--blanco); }
.m-mid { background: var(--luz); color: var(--noche); }
.m-ink { background: var(--luz); color: var(--noche); }
.m-soft { background: var(--papel-2); color: var(--noche); }
.svc { font-size: 14px; color: #C9D2DE; }
.callout {
  position: absolute; top: -12px; right: -12px; width: 30px; height: 30px; border-radius: 50%; background: var(--luz); color: var(--noche);
  font-weight: 800; font-size: 15px; display: grid; place-items: center; z-index: 4;
}
.dash-box, .kc { position: relative; }
.handoff { align-content: start; }
.ho-who { font-weight: 800; font-size: 16px; }
.ho-msg { font-size: 17px; font-weight: 700; line-height: 1.35; }
.ho-why { font-size: 14px; color: #B7C0CC; }
.fake-btn { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; background: var(--luz); color: var(--noche); font-weight: 700; font-size: 15px; }
.notes { margin: 0; padding: 0 0 0 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); list-style: decimal; }
.notes li { display: list-item; font-size: 16px; color: #3F4A57; padding-left: 6px; }
.notes li::marker { color: var(--verde); font-weight: 800; }
.notes li strong { display: block; color: var(--noche); font-size: 18px; margin-bottom: 6px; }

/* ---------- price ---------- */
.precio { padding: var(--section) var(--margin); max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.precio-text { display: grid; gap: 22px; max-width: 46ch; }
.precio-text p { font-size: 18px; color: #3F4A57; }
.receipt { background: var(--blanco); border-radius: 28px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; min-width: 0; }
.rc-head strong { font-size: 20px; }
.rc-head span { color: #3F4A57; font-size: 14px; }
.rc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 16px; }
.rc-lines li { display: flex; justify-content: space-between; gap: 16px; }
.rc-lines li span:last-child { font-weight: 700; white-space: nowrap; }
.rc-total { background: var(--luz); color: var(--noche); border-radius: 18px; padding: 22px; font-weight: 800; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; }

/* ---------- pilot ---------- */
.piloto { background: var(--luz); color: var(--noche); padding: var(--section) var(--margin); display: grid; gap: 40px; }
.piloto-head { display: grid; gap: 10px; }
.piloto-head h2 { font-size: clamp(26px, 7.6vw, 60px); max-width: 22ch; }
.piloto-head p { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pilot-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); max-width: 1600px; }
.pilot-card { display: grid; gap: 10px; align-content: start; background: var(--papel); color: var(--noche); border-radius: 24px; padding: 26px; font-size: 16px; }
.pilot-card > strong { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.pilot-card > span:not(.pc-num) { color: #3F4A57; }
.pc-num { width: 36px; height: 36px; border-radius: 50%; background: var(--luz); color: var(--noche); font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }

/* card 1: systems checklist */
.pc-check { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pc-check li { position: relative; display: flex; align-items: center; gap: 12px; background: var(--blanco); border-radius: 14px; padding: 10px 14px; font-size: 15px; font-weight: 700; }
.pc-check i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--verde); flex: none; }
.pc-check i::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--blanco); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* card 2: connection map (same language as .converge) */
.pc-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); grid-template-rows: repeat(3, auto); align-items: center; margin-top: 10px; }
.pm-src { grid-column: 1; background: var(--blanco); border-radius: 12px; padding: 9px 12px; font-size: 14px; font-weight: 700; justify-self: stretch; position: relative; z-index: 2; }
.pm-src.s1 { grid-row: 1; }
.pm-src.s2 { grid-row: 2; }
.pm-src.s3 { grid-row: 3; }
.pm-lines { grid-column: 2; grid-row: 1 / -1; width: 100%; height: 100%; min-height: 150px; overflow: visible; }
.pm-lines path { fill: none; stroke: var(--verde); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pm-sys { grid-column: 3; grid-row: 1 / -1; justify-self: stretch; align-self: center; background: var(--noche); color: var(--luz); border-radius: 16px; padding: 18px 12px; font-size: 15px; font-weight: 800; text-align: center; position: relative; z-index: 2; }

/* card 3: 30-day calendar and progress */
.pc-cal { display: grid; gap: 12px; margin-top: 10px; }
.pc-days { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.pc-days i { aspect-ratio: 1; border-radius: 5px; background: var(--blanco); }
.pc-days i:nth-child(-n+12) { background: var(--noche); }
.pc-days i:nth-child(13) { background: var(--luz); outline: 2px solid var(--noche); outline-offset: -2px; }
.pc-bar { height: 10px; border-radius: 999px; background: var(--blanco); overflow: hidden; }
.pc-bar span { display: block; width: 40%; height: 100%; background: var(--verde); border-radius: 999px; }
.pc-ends { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--pizarra); }

/* proposal form */
.pide { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: var(--gap); align-items: start; max-width: 1600px; scroll-margin-top: 120px; }
.pide-text { display: grid; gap: 16px; align-content: start; padding-top: 8px; }
.pide-text h3 { font-size: clamp(30px, 3.4vw, 44px); }
.pide-text p { font-size: 18px; max-width: 42ch; }
.pide-text .text-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.pide-card { background: var(--papel); border-radius: 24px; padding: clamp(22px, 3vw, 36px); }
.pide-form { display: grid; gap: 18px; }
.pide-form[hidden], .pide-ok[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.field label .opt { font-weight: 500; color: var(--pizarra); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--noche); background: var(--blanco);
  min-height: 52px; padding: 12px 14px; border: 2px solid var(--pizarra); border-radius: 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-msg { font-size: 15px; font-weight: 700; color: var(--error); min-height: 0; }
.field-msg:empty { display: none; }
.pide-form .btn { width: 100%; }
.pide-ok { display: grid; gap: 8px; padding: 12px 0; }
.pide-ok:focus { outline: none; }
.pide-ok strong { font-size: 26px; letter-spacing: -0.02em; }
.pide-ok p { font-size: 17px; }

.menu-cta { display: none; }
.piloto .text-link { color: var(--noche); }

/* ---------- faq ---------- */
.faq { padding: var(--section) var(--margin); max-width: 1000px; margin: 0 auto; display: grid; gap: 36px; }
.faq-list { display: grid; gap: 4px; }
.faq details { background: var(--blanco); border-radius: 18px; padding: 20px 24px; }
.faq details[open] { background: var(--papel-2); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--verde); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-top: 12px; color: #3F4A57; font-size: 17px; }

/* ---------- about ---------- */
.about { padding: var(--section) var(--margin); max-width: 1000px; margin: 0 auto; display: grid; gap: 32px; }
.letter { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; max-width: 16ch; }
.letter-body { display: grid; gap: 18px; font-size: 18px; color: #3F4A57; max-width: 62ch; }
.letter-body p.sign { display: flex; gap: 14px; align-items: center; color: var(--noche); font-weight: 700; }

/* ---------- footer ---------- */
.foot { background: var(--noche); color: var(--papel); padding: 64px var(--margin) 40px; display: grid; gap: 22px; }
.foot img { width: clamp(180px, 22vw, 260px); height: auto; }
.foot-line { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; font-size: 15px; }
.foot-nav a { text-decoration: none; padding: 6px 0; }
.foot-meta { color: #B7C0CC; font-size: 14px; }

/* ---------- motion: start states (only with JS) ---------- */
.js [data-enter] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-enter].is-in { opacity: 1; transform: none; }
.js .scene { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); pointer-events: none; }
.js .scene.is-on { opacity: 1; transform: none; pointer-events: auto; }
.no-js .scene:not(.is-on) { display: none; }
.no-js .picker { display: none; }
.no-js .tablist { display: none; }
.no-js .tabpanel[hidden] { display: grid; }
.js [data-seq] { opacity: 0; transform: translateY(10px); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.js [data-seq].is-shown { opacity: 1; transform: none; }
.js .bubble.typing { opacity: 1; transform: none; color: transparent; }
.js .bubble.typing::after { color: var(--papel); }
.js .bubble.typing::after { content: "· · ·"; letter-spacing: 3px; opacity: 0.8; animation: blink 900ms steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.js .converge .src { transform: translateX(-16px); opacity: 0; transition: transform 600ms var(--ease-out), opacity 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.js .converge.is-in .src { transform: none; opacity: 1; }
.js .converge .card-mini { transform: scale(0.96); opacity: 0; transition: transform 700ms var(--ease-out) 500ms, opacity 700ms var(--ease-out) 500ms; }
.js .converge.is-in .card-mini { transform: none; opacity: 1; }
.js .tab-photo img, .js .stage-photo img { transition: transform 1200ms var(--ease-out), opacity 500ms; }
.js .stage-photo img { transform: scale(1.04); }
.js .stage-photo img.is-ready { transform: scale(1); }
.js .callout { transform: scale(0.6); opacity: 0; transition: transform 480ms var(--ease-out), opacity 480ms var(--ease-out); transition-delay: calc(var(--k, 0) * 90ms); }
.js .dash.is-in .callout { transform: none; opacity: 1; }
.js .notes li { opacity: 1; }
.js .wait { transition: transform 600ms var(--ease-out); }
.js .waits.is-in .wait { transform: none; }
.js .waits .wait { transform: translateY(12px); }
.js .waits.is-in .wait:nth-child(2) { transition-delay: 90ms; }
.js .waits.is-in .wait:nth-child(3) { transition-delay: 180ms; }
.js .waits.is-in .wait:nth-child(4) { transition-delay: 270ms; }
.btn, .picker button, .tablist button, .add, .chips a { transition: transform 200ms var(--ease-out), background 220ms, color 220ms; }
.picker button:active, .tablist button:active, .add:active { transform: scale(0.97); }
.chips a:active { transform: scale(0.97); }
.mini-tile { transition: transform 300ms var(--ease-out); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .top { gap: 12px; flex-wrap: nowrap; }
  .top > .btn { display: none; }
  .js .menu-toggle { display: block; margin-left: 0; }
  .js .top-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-left: auto; padding: 10px 14px; border-radius: 999px; background: var(--noche); color: var(--papel); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; opacity: 0; transform: translateY(-6px); visibility: hidden; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 240ms; }
  .js .top-cta.is-visible { opacity: 1; transform: none; visibility: visible; }
  .js .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px var(--margin) 16px; background: var(--blanco); }
  .js .menu:not(.is-open) { display: none; }
  .menu-cta { display: block; font-weight: 800; color: var(--verde); }
  .js .menu a { padding: 14px 0; font-size: 17px; }
  .no-js .menu { flex-wrap: wrap; gap: 6px 18px; width: 100%; font-size: 15px; }
}

@media (max-width: 1100px) {
  .hero, .problem, .precio, .tab-top, .feature, .tab-ui { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .f-text, .feature.flip .f-ui { order: initial; }
  .stage { min-height: 0; }
  .stage-photo img { min-height: 420px; }
  .scene { position: relative; grid-area: auto; width: min(360px, 80%); margin: -120px 0 0 auto; }
  .js .scene:not(.is-on) { display: none; }
  .stage { display: grid; }
  .tone-grid { grid-template-columns: minmax(0, 1fr); }
  .subtypes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pide { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .tab-photo img { min-height: 300px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(40px, 11.5vw, 56px); }
  h2 { font-size: clamp(32px, 9.4vw, 44px); }
  h3 { font-size: 26px; }
  .stage-photo img { min-height: 340px; }
  .scene { width: 100%; margin: -60px 0 0; }
  .phone { padding: 12px; border-width: 8px; }
  .converge { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; min-height: 0; gap: 10px; padding: 20px; }
  .converge .src, .converge .card-mini { grid-column: 1; grid-row: auto; }
  .converge .lines { display: none; }
  .converge .card-mini { position: relative; right: auto; top: auto; transform: none; width: 100%; }
  .js .converge .card-mini { transform: scale(0.96); }
  .js .converge.is-in .card-mini { transform: none; }
  .qr-stage, .photo-stage, .voice-stage { grid-template-columns: minmax(0, 1fr); }
  .qr-box { width: 100%; }
  .tab-ui { grid-template-columns: minmax(0, 1fr); }
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .qr-mini { grid-template-columns: minmax(0, 1fr); }
  .qr-mini-box { width: 100px; }
  .subtypes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .subtypes figcaption { font-size: 13px; }
  .waits { grid-template-columns: minmax(0, 1fr); }
  .wait { min-height: 110px; }
  .dash { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .dash-side { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav-group, .side-sub { display: none; }
  .side-bottom { margin: 0; padding-top: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .side-item { font-size: 13px; padding: 10px 12px; flex: none; white-space: nowrap; }
  .dash-row { grid-template-columns: minmax(0, 1fr); }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .callout { width: 26px; height: 26px; font-size: 13px; }
  .pilot-steps { grid-template-columns: minmax(0, 1fr); }
  .pc-map { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
  .pide-text p { font-size: 17px; }
  .faq summary { font-size: 17px; }
  .letter { font-size: 36px; }
  .js .scene.is-on [data-seq] { opacity: 1; }
  .js .tab-photo img { min-height: 240px; }
  .tab-photo img { min-height: 240px; }
  .lugares { padding-left: var(--margin); }
  .tablist button { font-size: 15px; padding: 10px 16px; }
  .picker-main button, .picker-sub button { font-size: 14px; }
}

/* Narrow phones: the compact CTA would not fit beside the logo, so it stays in the menu panel. */
@media (max-width: 360px) {
  .js .top-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-enter], .js .scene, .js .converge .src, .js .converge .card-mini, .js .callout, .js .wait, .js .bubble[data-seq], .js [data-seq] { opacity: 1 !important; transform: none !important; }
  .js .scene:not(.is-on) { display: none !important; }
}

/* Phone: the three inputs stack and a vertical rail joins them to the order card. */
@media (max-width: 760px) {
  .converge { padding: 20px 20px 20px 52px; }
  .converge::before { content: ""; position: absolute; left: 28px; top: 54px; bottom: 60px; width: 4px; border-radius: 2px; background: var(--luz); }
  .converge .src::before, .converge .card-mini::before { content: ""; position: absolute; left: -24px; top: 50%; width: 24px; height: 4px; margin-top: -2px; background: var(--luz); }
  .converge .card-mini { margin-top: 8px; }
}

/* Tema WordPress: estados del formulario y campo de control. */
.pide-form[hidden], .pide-ok[hidden], .pide-alert[hidden] { display: none; }
.pide-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pide-alert { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: #FBEAEA; color: #7A1B1B; font-size: 15px; line-height: 1.45; }
.pide-alert p { margin: 0 0 6px; }
.pide-alert ul { margin: 0; padding-left: 18px; }

/* Phone and tablet: the bar slides away while the page rests and returns on scroll (script.js). */
@media (max-width: 1023px) {
  .top { transition: transform 260ms var(--ease-out); }
  .top.is-resting { transform: translateY(-100%); }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .top { transition: none; }
}
