/* hero.css */
/* Hero of the home: copy, CTA and the CRM chat mockup. Shared by hero.html and home.html. */
@font-face { font-family: "Cereal"; font-weight: 400; src: url("/docs/_static/fonts/AirbnbCereal_W_Bk.woff2") format("woff2"); }
@font-face { font-family: "Cereal"; font-weight: 500; src: url("/docs/_static/fonts/AirbnbCereal_W_Md.woff2") format("woff2"); }
@font-face { font-family: "Cereal"; font-weight: 700; src: url("/docs/_static/fonts/AirbnbCereal_W_Bd.woff2") format("woff2"); }
@font-face { font-family: "Cereal"; font-weight: 800; src: url("/docs/_static/fonts/AirbnbCereal_W_XBd.woff2") format("woff2"); }
:root {
  --ink: #0c1a12; --ink-soft: #33443a; --green: #7dbd4d; --green-deep: #12382a; --purple: #5e17eb;
  --line: #e5e7eb; --muted: #6b7280; --tray: #f4f5f7; --rex-bg: #f3edff; --rex-line: #ddd1ff;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
* { box-sizing: border-box; margin: 0; }
body { font-family: "Cereal", system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }

/* ---------- hero ---------- */
.hero { --mock-h: clamp(320px, calc(100vh - 452px), 540px); position: relative; min-height: max(100vh, 700px); overflow: hidden; display: flex; flex-direction: column; background: none center bottom / cover no-repeat; }
.nav { display: flex; align-items: center; gap: 40px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 32px; }
.nav img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 30px; list-style: none; padding: 0; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav .right { margin-left: auto; display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 999px; font-weight: 700; font-size: 16px; padding: 15px 26px; text-decoration: none; transition: transform 0.2s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn.sm { font-size: 14px; padding: 11px 18px; }
.btn.primary { background: var(--green); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.copy { text-align: center; max-width: 980px; margin: 0 auto; padding: clamp(10px, 3vh, 34px) 24px 0; }
h1 { font-weight: 500; font-size: clamp(42px, min(5vw, 7.6vh), 72px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
h1 span { color: #4c5a51; }
.sub { margin: clamp(12px, 2.2vh, 20px) auto 0; max-width: 720px; font-size: clamp(16px, 2.1vh, 19px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.actions { margin-top: clamp(16px, 2.8vh, 28px); display: flex; gap: 12px; justify-content: center; }
.note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* ---------- CRM mockup ---------- */
.mock { width: min(1120px, calc(100% - 48px)); height: var(--mock-h); margin: auto auto 0; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(16, 24, 40, 0.1); border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 40px 90px rgba(8, 24, 14, 0.3), 0 4px 14px rgba(8, 24, 14, 0.1); overflow: hidden; font-size: 13px; }
.bar { flex: none; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--tray); border-bottom: 1px solid var(--line); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.bar span { margin: 0 auto; padding: 3px 44px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); transform: translateX(-24px); }
.app { flex: 1; min-height: 0; display: grid; grid-template-columns: 60px 292px 1fr; grid-template-rows: minmax(0, 1fr); }

.rail { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.rail .logo { width: 26px; height: 26px; margin-bottom: 10px; background: none left center / auto 100% no-repeat; }
.rail b { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.rail b.on { background: #e9f5df; }
.rail svg { width: 18px; height: 18px; stroke: #98a2b3; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rail b.on svg { stroke: #4f9a2c; }

.list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.list-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; font-weight: 700; font-size: 15px; }
.seg { margin-left: auto; display: flex; padding: 2px; border-radius: 8px; background: var(--tray); font-size: 11px; font-weight: 500; color: var(--muted); }
.seg em { font-style: normal; padding: 3px 8px; border-radius: 6px; }
.seg em.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.search { margin: 0 14px; height: 30px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; padding: 0 10px; color: #98a2b3; font-size: 12px; }
.chan { margin: 8px 14px 6px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; padding: 3px; border-radius: 10px; background: var(--tray); }
.chan span { height: 24px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 700; }
.chan span.on { background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.chan img { width: 15px; height: 15px; }
.rows { flex: 1; min-height: 0; overflow: hidden; padding: 2px 8px; }
.row { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 9px 8px; border-radius: 10px; transition: background 0.4s var(--ease); }
.row > div:last-of-type { min-width: 0; }
.row.on { background: rgba(125, 189, 77, 0.1); }
.row.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--green); }
.ava { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #344054; background: #e4e7ec; }
.ava img { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; padding: 1px; }
.row .top { display: flex; align-items: baseline; gap: 6px; }
.row .name { font-weight: 700; font-size: 13px; }
.row .time { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.row .snip { margin-top: 1px; padding-right: 14px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .stage { margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 500; color: #475467; }
.row .stage::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, #f79009); transition: background 0.4s; }
.row .stage span { display: inline-block; transition: opacity 0.25s, transform 0.35s var(--ease); }
.row .stage.swap span { opacity: 0; transform: translateY(5px); }
.row .unread { position: absolute; right: 10px; bottom: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); transform: scale(0); transition: transform 0.4s var(--spring); }
.row.new .unread { transform: scale(1); }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.chat-head .who { font-weight: 700; font-size: 14px; line-height: 1.2; }
.chat-head .who small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.attending { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--rex-bg); border: 1px solid var(--rex-line); color: var(--purple); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rex-head { flex: none; width: var(--s, 24px); height: var(--s, 24px); border-radius: 50%; overflow: hidden; position: relative; background: #e6dcff; }
.rex-head img { position: absolute; width: 240%; left: -70.3%; top: -9.4%; max-width: none; }
.attending i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.msgs { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 18px 10px; background-color: #f5f7fa; background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1.2px); background-size: 16px 16px; transition: opacity 0.35s; }
.msgs.fade { opacity: 0; }
/* Each line grows from zero height, so older messages glide up instead of jumping. */
.line { flex: none; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.line.on { grid-template-rows: 1fr; }
.line > div { min-height: 0; overflow: hidden; }
.msg { display: flex; align-items: flex-end; gap: 8px; padding-top: 10px; opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.4s var(--ease), transform 0.55s var(--spring); }
.line.on .msg { opacity: 1; transform: none; }
.msg.in { transform-origin: left bottom; }
.msg.rex { justify-content: flex-end; transform-origin: right bottom; }
.msg > div:not(.user-ico):not(.rex-head) { max-width: min(430px, 74%); }
.bub { padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.42; }
.msg.in .bub { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.rex .bub { background: var(--rex-bg); border: 1px solid var(--rex-line); color: #4c1d95; border-bottom-right-radius: 5px; }
.meta { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.msg.rex .meta { justify-content: flex-end; }
.tag { padding: 1px 6px; border-radius: 999px; background: #e6dcff; color: var(--purple); font-weight: 700; }
.ticks { width: 14px; height: 9px; stroke: var(--purple); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.user-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.user-ico svg { width: 13px; height: 13px; stroke: #98a2b3; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.w { opacity: 0; transition: opacity 0.22s; }
.w.on { opacity: 1; }
.dots { display: inline-flex; gap: 4px; padding: 5px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #7c3aed; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.event { margin: 12px auto 2px; width: fit-content; max-width: 86%; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #fbfff8; border: 1px solid #d9eacd; opacity: 0; transform: scale(0.94); transition: opacity 0.35s var(--ease), transform 0.5s var(--spring); }
.line.on .event { opacity: 1; transform: none; }
.event .ico { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--green); display: grid; place-items: center; }
.event .ico svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s 0.25s var(--ease); }
.line.on .event .ico svg { stroke-dashoffset: 0; }
.event b { display: block; font-size: 12.5px; }
.event span { font-size: 11px; color: var(--muted); }
.composer { flex: none; margin: 0 14px 12px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #98a2b3; font-size: 12px; }
.composer em { margin-left: auto; font-style: normal; padding: 5px 10px; border-radius: 8px; background: var(--green); color: #fff; font-weight: 700; font-size: 11px; }

.still .hero { min-height: 900px; --mock-h: 448px; }

/* ---------- responsive ---------- */
@media (max-height: 780px) { .composer { display: none; } }
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav ul { gap: 18px; font-size: 14px; }
  .app { grid-template-columns: 56px 236px 1fr; }
}
@media (max-width: 900px) {
  .hero { --mock-h: clamp(300px, calc(100svh - 430px), 420px); min-height: 100svh; }
  .nav { padding: 14px 18px; }
  .nav ul, .nav .right .light { display: none; }
  .nav img { height: 26px; }
  .copy { padding: 16px 20px 0; max-width: 600px; }
  h1 { font-size: clamp(34px, 6.4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; }
  .sub { margin-top: 12px; font-size: 15px; line-height: 1.45; }
  .actions { margin-top: 18px; flex-direction: column; gap: 8px; }
  .btn { width: 100%; font-size: 15px; padding: 13px 22px; }
  .btn.sm { width: auto; font-size: 14px; padding: 10px 16px; }
  .note, .composer { display: none; }
  /* Phones show the chat column only: the list and the rail do not fit. */
  .mock { width: min(560px, calc(100% - 28px)); margin-top: 22px; }
  .app { grid-template-columns: 1fr; }
  .rail, .list { display: none; }
  .bar span { padding: 3px 26px; }
  .msg > div:not(.user-ico):not(.rex-head) { max-width: 82%; }
}
@media (prefers-reduced-motion: reduce) {
  .line, .msg, .event, .w, .row .stage span, .msgs { transition: none; }
  .dots i, .attending i { animation: none; }
}

/* home.css */
/*
  Home sections below the hero. Tokens (--ink, --green, --purple, --line…) come from hero.css.
  Layout system taken from the owner's references (loona.com.ar, usamodo.com):
  a framed container with vertical hairlines, hairlines between sections, two-tone headlines,
  equal-column grids. No human faces anywhere.
*/
:root { --gray: #8a928c; --frame: #e7e9e6; --tray2: #f5f6f4; --night: #0d1310; --night-2: #151c18; --night-line: rgba(255, 255, 255, 0.09); --w: 1120px; }

/* ---------- frame ---------- */
.sec { position: relative; border-top: 1px solid var(--frame); }
.sec > .wrap { position: relative; width: min(var(--w), calc(100% - 48px)); margin: 0 auto; padding: clamp(72px, 8vw, 112px) clamp(20px, 3vw, 40px); border-left: 1px solid var(--frame); border-right: 1px solid var(--frame); }
.sec.dark { background: var(--night); color: #fff; border-top-color: var(--night-line); }
.sec.dark > .wrap { border-color: var(--night-line); }
.sec.tight > .wrap { padding-top: 0; padding-bottom: 0; }

/* ---------- type ---------- */
.label { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border: 1px solid var(--frame); border-radius: 8px; background: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.dark .label { background: transparent; border-color: var(--night-line); color: #fff; }
h2 { margin-top: 18px; font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h2 span { display: block; color: var(--gray); }
.dark h2 span { color: #7f8a84; }
.head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; }
.head p { font-size: 17px; line-height: 1.55; color: var(--ink-soft); max-width: 440px; justify-self: end; text-wrap: pretty; }
.dark .head p { color: #b7bfba; }
.pending { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px dashed #c4c9d2; font-size: 11px; font-weight: 500; color: var(--muted); }

/* reveal on scroll; off for captures and reduced motion */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in, .still .rv { opacity: 1; transform: none; }
.still .rv { transition: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- logos ---------- */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); }
.logos div { height: 112px; display: grid; place-items: center; border-left: 1px solid var(--frame); }
.logos div:first-child { border-left: 0; }
.logos img { height: 34px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.6; mix-blend-mode: multiply; }

/* ---------- shared card + mini UI ---------- */
.grid3 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--frame); border-radius: 22px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.card .vis { height: 220px; margin: 8px 8px 0; border-radius: 16px; background: var(--tray2); display: grid; place-items: center; padding: 20px; overflow: hidden; }
.card .txt { padding: 20px 24px 26px; }
.num { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.num b { width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; }
.card h3 { margin-top: 12px; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.mini { width: 100%; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(12, 26, 18, 0.08); font-size: 12px; padding: 6px; display: grid; gap: 4px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; }
.opt.sel { background: #f2f8ec; }
.opt i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #c4c9d2; }
.opt.sel i { border: 4px solid var(--green); }
.opt b { font-weight: 500; }
.opt small { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.opt small.on { color: #3b7a2a; font-weight: 700; }
.opt img { width: 16px; height: 16px; }
.bub { padding: 8px 11px; border-radius: 12px; line-height: 1.4; font-size: 12px; max-width: 88%; }
.bub.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.bub.rx { background: var(--rex-bg); border: 1px solid var(--rex-line); color: #4c1d95; border-bottom-right-radius: 4px; justify-self: end; }
.pill-rex { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: var(--rex-bg); border: 1px solid var(--rex-line); color: var(--purple); font-size: 11px; font-weight: 700; }
.chat-mini { width: 100%; max-width: 300px; display: grid; gap: 6px; }

/* ---------- before / after ---------- */
.flow { margin-top: 56px; border-top: 1px solid var(--frame); }
.frow { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--frame); align-items: start; }
.frow .lab b { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.frow .lab b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; }
.frow.good .lab b::before { background: var(--green); }
.frow .lab span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 19px; border-top: 1.5px dashed #d6dad6; }
.frow.good .steps::before { border-top: 1.5px solid #b9dc9b; }
.st { position: relative; display: grid; justify-items: center; gap: 4px; padding: 0 8px; }
.st i { width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--frame); display: grid; place-items: center; margin-bottom: 8px; }
.st i svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st.bad i { background: #fef3f2; border-color: #fbd5d1; }
.st.bad i svg { stroke: #b42318; }
.st.rx i { background: var(--rex-bg); border-color: var(--rex-line); }
.st.rx i svg { stroke: var(--purple); }
.st.ok i { background: var(--green); border-color: var(--green); }
.st.ok i svg { stroke: #fff; }
.st b { font-weight: 500; font-size: 14px; }
.st span { font-size: 12px; color: var(--muted); }

/* ---------- bento ---------- */
.bento { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .card.wide { grid-column: span 2; }
.bento .card { flex-direction: column-reverse; justify-content: flex-end; }
.bento .txt { padding: 24px 26px 4px; }
.bento .card h3 { margin-top: 0; }
.bento .vis { height: 250px; margin: 16px 8px 8px; }
.bento .card.night { background: var(--night); border-color: var(--night); color: #fff; }
.bento .card.night p { color: #b7bfba; }
.bento .card.night .vis { background: var(--night-2); }
.cal { width: 100%; max-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(12, 26, 18, 0.08); font-size: 12px; overflow: hidden; }
.cal header { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.slot { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 7px 12px; color: var(--muted); align-items: center; }
.slot div { height: 26px; border-radius: 8px; border: 1px dashed #e0e3e0; }
.slot div.f { border: 1px solid #c8e5ac; background: #f2f8ec; color: #2f6b2a; display: flex; align-items: center; padding: 0 9px; font-weight: 500; font-size: 11.5px; }
.bars { width: 100%; max-width: 280px; display: grid; gap: 12px; font-size: 12px; }
.sbar { display: grid; grid-template-columns: 116px 1fr 26px; gap: 10px; align-items: center; }
.sbar u { height: 8px; border-radius: 999px; background: #e6e9e6; position: relative; overflow: hidden; }
.sbar u::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 999px; background: var(--c, var(--ink)); }
.sbar b { text-align: right; font-weight: 500; }
.hnote { width: 100%; max-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(12, 26, 18, 0.08); padding: 12px; font-size: 12px; display: grid; gap: 8px; }
.hnote .t { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.hnote .t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f79009; }
.hnote p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.hnote small { color: var(--muted); }
.ev { width: 100%; max-width: 290px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--night-line); font-size: 12px; }
.ev + .ev { margin-top: 8px; }
.ev i { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--green); display: grid; place-items: center; }
.ev i svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ev b { display: block; font-weight: 500; }
.ev span { color: #8f9893; font-size: 11px; }
.evs { width: 100%; max-width: 290px; }

/* ---------- verticals ---------- */
.cols3 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--frame); border-radius: 22px; overflow: hidden; }
.col { padding: 30px 28px 32px; display: flex; flex-direction: column; }
.col + .col { border-left: 1px solid var(--frame); }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tray2); border: 1px solid var(--frame); display: grid; place-items: center; }
.ico svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.col h3 { margin-top: 20px; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.col > p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.col ul { margin: 20px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--frame); list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.col li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.col li::before { content: ""; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #eaf4e2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b7a2a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.link { margin-top: auto; display: inline-flex; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.link::after { content: "→"; transition: transform 0.3s var(--ease); }
.link:hover::after { transform: translateX(3px); }

/* ---------- pricing ---------- */
.toggles { margin-top: 18px; display: flex; gap: 8px; justify-content: flex-end; }
.seg2 { display: flex; padding: 3px; border-radius: 10px; background: var(--tray2); border: 1px solid var(--frame); }
.seg2 button { font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); border: 0; background: none; padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s; }
.seg2 button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(12, 26, 18, 0.12); }
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--frame); }
.plan.best { border: 1.5px solid var(--ink); box-shadow: 0 18px 40px rgba(12, 26, 18, 0.08); }
.pname { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 17px; }
.pname em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eaf4e2; color: #3b7a2a; }
.pfor { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); min-height: 40px; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.amt { font-weight: 500; font-size: 42px; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.amt.tick { animation: tick 0.45s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.per { font-size: 13px; color: var(--muted); }
.trial { margin-top: 6px; font-size: 13px; color: #3b7a2a; font-weight: 700; min-height: 18px; }
.trial.muted { color: var(--muted); font-weight: 500; }
.plan .btn { margin-top: 20px; width: 100%; font-size: 15px; padding: 13px 20px; }
.plan .btn.light { border: 1px solid var(--frame); }
.plan .btn.ink { background: var(--ink); color: #fff; }
.plan ul { margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--frame); list-style: none; display: grid; gap: 10px; font-size: 14px; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.plan li::before { content: ""; width: 16px; height: 16px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fine { margin-top: 22px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--muted); }
.fine a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- FAQ (dark) ---------- */
.faqg { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faqg .side p { margin-top: 18px; font-size: 15px; color: #b7bfba; }
.faqg .side a { display: inline-flex; gap: 6px; margin-top: 14px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.faqg .side a::after { content: "→"; }
.qa { border-top: 1px solid var(--night-line); }
.qa details { border-bottom: 1px solid var(--night-line); interpolate-size: allow-keywords; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 500; font-size: 16.5px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 20px; text-align: center; color: #8f9893; font-size: 20px; line-height: 1; transition: transform 0.35s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details::details-content { height: 0; overflow: hidden; transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.qa details[open]::details-content { height: auto; }
.qa p { padding: 0 40px 20px 0; font-size: 15px; line-height: 1.55; color: #b7bfba; }
.dark .pending { border-color: #4b5550; color: #8f9893; }

/* ---------- closing + footer (dark) ---------- */
.closing-card { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(64px, 8vw, 112px) 24px; text-align: center; background: none center 70% / cover no-repeat; color: var(--ink); }
.closing-card h2 { margin: 0 auto; max-width: 760px; font-size: clamp(34px, 4vw, 56px); }
.closing-card h2 span { color: #4c5a51; }
.closing-card .actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; }
.checks { margin-top: 22px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }
.checks span::before { content: "✓"; margin-right: 6px; color: #3b7a2a; font-weight: 700; }
.fcols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; font-size: 14px; }
.fcols b { display: block; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8f9893; }
.fcols a, .fcols span { display: block; margin-top: 10px; color: #d9dfdb; text-decoration: none; }
.fcols a:hover { color: #fff; }
.fbrand img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.fbrand p { margin-top: 14px; max-width: 260px; line-height: 1.5; color: #8f9893; }
.fbottom { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: #8f9893; }
.sec.dark.foot > .wrap { padding-top: 56px; padding-bottom: 56px; }
.sec.dark.fb > .wrap { padding-top: 24px; padding-bottom: 28px; }
.nav ul a { color: inherit; text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sec > .wrap { width: 100%; border-left: 0; border-right: 0; padding-left: 20px; padding-right: 20px; }
  .head { grid-template-columns: 1fr; gap: 14px; }
  .head p { justify-self: start; }
  /* 3 logos on top, 2 below, each row filling the full width so the strip stays symmetric */
  .logos { grid-template-columns: repeat(6, 1fr); }
  .logos div { grid-column: span 2; height: 84px; border-top: 1px solid var(--frame); }
  .logos div:nth-child(n+4) { grid-column: span 3; }
  .logos div:nth-child(-n+3) { border-top: 0; }
  .logos div:nth-child(4) { border-left: 0; }
  .logos img { height: 24px; max-width: 96px; }
  .grid3, .bento, .plans { grid-template-columns: 1fr; }
  .bento .card.wide { grid-column: auto; }
  .frow { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .steps::before { display: none; }
  .cols3 { grid-template-columns: 1fr; }
  .col + .col { border-left: 0; border-top: 1px solid var(--frame); }
  .toggles { justify-content: flex-start; }
  .fine { flex-direction: column; }
  .faqg { grid-template-columns: 1fr; }
  .qa p { padding-right: 0; }
  .closing-card { border-radius: 22px; background-position: 58% 75%; }
  .closing-card .actions { flex-direction: column; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  .fbottom { flex-direction: column; }
}

/* ======================================================================
   Vertical pages (negocios.html, inmobiliario.html): same system, extra blocks
   ====================================================================== */
.nav ul a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); padding-bottom: 4px; }

/* 3x3 grid of business types, hairline cells */
.grid9 { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--frame); border-radius: 22px; overflow: hidden; }
.cell { display: flex; gap: 14px; align-items: flex-start; padding: 24px 26px; border-left: 1px solid var(--frame); border-top: 1px solid var(--frame); }
.cell:nth-child(3n + 1) { border-left: 0; }
.cell:nth-child(-n + 3) { border-top: 0; }
.cell b { display: block; font-weight: 500; font-size: 16px; }
.cell span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* 4 equal step cards */
.grid4 { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid4 .card .vis { height: 168px; padding: 14px; }
.grid4 .card .txt { padding: 18px 20px 22px; }
.grid4 .card h3 { font-size: 18px; }
.grid4 .card p { font-size: 14px; }
.grid4 .bub { font-size: 11.5px; max-width: 92%; }

/* two equal columns inside one framed card */
.split { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--frame); border-radius: 22px; overflow: hidden; }
.split > div { padding: 30px 32px 34px; }
.split > div + div { border-left: 1px solid var(--frame); background: var(--tray2); }
.split h3 { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
.split h3 .rex-head { --s: 26px; }
.split h3 i { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.split h3 i svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.split p.sub { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.split ul { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--frame); }
.split li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--frame); font-size: 15px; }
.split li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.split > div + div li::before { background: var(--ink); }

/* kanban: the funnel a template brings */
.kanban { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--frame); border-radius: 22px; background: var(--tray2); }
.kcol { display: grid; align-content: start; gap: 8px; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 6px 4px 4px; font-weight: 500; font-size: 13.5px; }
.kcol header::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.kcol header small { margin-left: auto; font-size: 12px; color: var(--muted); }
.kcard { padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; display: grid; gap: 3px; }
.kcard b { font-weight: 500; }
.kcard span { color: var(--muted); font-size: 11.5px; }
.kcard em { justify-self: start; margin-top: 4px; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--rex-bg); color: var(--purple); }

/* inventory list */
.inv { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(12, 26, 18, 0.08); font-size: 12.5px; overflow: hidden; }
.inv header { display: flex; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.inv header small { margin-left: auto; font-weight: 500; color: var(--muted); }
.inv .r { display: grid; grid-template-columns: 1fr 1fr 88px; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.inv .r:last-child { border-bottom: 0; }
.inv .r span { color: var(--muted); }
.inv .r em { justify-self: end; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.inv .ok { background: #eaf4e2; color: #3b7a2a; }
.inv .ap { background: #fff4dc; color: #a16207; }
.inv .vd { background: #f2f4f7; color: #667085; }

/* 4-column pricing for real estate (free plan first) */
.plans.four { grid-template-columns: repeat(4, 1fr); }
.plans.four .plan { padding: 22px; }
.plans.four .amt { font-size: 36px; }
.plan .minus { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--frame); font-size: 12.5px; line-height: 1.5; color: var(--muted); }

@media (max-width: 1100px) {
  .grid4, .plans.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid9 { grid-template-columns: 1fr; }
  .cell { border-left: 0; border-top: 1px solid var(--frame); padding: 18px 20px; }
  .cell:first-child { border-top: 0; }
  .grid4, .plans.four { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--frame); }
  .kanban { grid-template-columns: repeat(4, 78%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
}

/* ---------- videos (kept from the current site; YouTube loads only on click) ---------- */
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--frame); border-radius: 22px; overflow: hidden; background: #0d1310; cursor: pointer; }
.vid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease), opacity 0.4s; }
.vid:hover img { transform: scale(1.02); }
.vid .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: #fff; box-shadow: 0 12px 34px rgba(8, 24, 14, 0.3); transition: transform 0.35s var(--spring); }
.vid .play::after { content: ""; position: absolute; left: 31px; top: 25px; border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.vid:hover .play { transform: scale(1.06); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcap { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.vcap b { font-weight: 500; color: var(--ink); }
.vwide { margin-top: 48px; }
.vgrid2 { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vgrid2 .vid { border-radius: 18px; }
.vgrid2 .vid .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.vgrid2 .vid .play::after { left: 24px; top: 19px; border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }
.vcase { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.vcase p { margin-top: 18px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.vcase .who { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--frame); display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.vcase .who b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
@media (max-width: 900px) {
  .vgrid2, .vcase { grid-template-columns: 1fr; }
  .vid { border-radius: 16px; }
  .vid .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vid .play::after { left: 24px; top: 19px; border-left-width: 16px; border-top-width: 11px; border-bottom-width: 11px; }
  .vcap { flex-direction: column; gap: 4px; }
}

/* GSAP owns the reveal when it runs (motion.js); the CSS reveal is the fallback. */
.gsap .rv { opacity: 1; transform: none; transition: none; }

/* Purple dosage (owner, 2026-11-10: "usaste mucho morado, disminúyelo"): purple stays for Rex
   (bubbles, Rex tags, the one Rex card) plus the small label marker; structure stays ink and green. */
.label::before { background: var(--purple); }
.bento .card.night { background: #24096b; border-color: #24096b; }
.bento .card.night p { color: #cfc2f5; }
.bento .card.night .vis { background: rgba(255, 255, 255, 0.07); }

/* Video posters: brand card, no faces. The YouTube player (with people) appears only on click. */
.vid { background: #101713; text-align: left; color: #fff; }
.vid .pbrand { position: absolute; left: 28px; top: 26px; width: 92px; height: 28px; background: none left center / contain no-repeat; filter: brightness(0) invert(1); opacity: 0.9; }
.vid .ptitle { position: absolute; left: 28px; right: 28px; bottom: 26px; font-weight: 500; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.vid::before { content: ""; position: absolute; inset: 0; background: none center 72% / cover no-repeat; opacity: 0.38; mix-blend-mode: luminosity; }
.vgrid2 .vid .ptitle { font-size: clamp(18px, 1.8vw, 24px); }
.vid iframe { z-index: 2; }
.vid { font: inherit; }

/* prop.css */
/*
  Shared styles for the redesign proposals (prop-a.html, prop-b.html, prop-c.html).
  Proposal mockups only: the approved pages (home.html and verticals) do not load this file.
  Tokens and the hero come from hero.css. Every class here is prefixed p- to avoid its class names.
*/
:root {
  --frame: #e7e9e6; --gray: #8a928c; --tray2: #f5f6f4; --night: #0d1310; --night-2: #161d19;
  --night-line: rgba(255, 255, 255, 0.1); --night-muted: #98a29c; --w: 1120px;
}
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }

/* ---------- frame ---------- */
.p-sec { position: relative; border-top: 1px solid var(--frame); }
.p-wrap { position: relative; width: min(var(--w), calc(100% - 48px)); margin: 0 auto; padding: clamp(64px, 7.5vw, 112px) clamp(20px, 3vw, 40px); border-left: 1px solid var(--frame); border-right: 1px solid var(--frame); }
.p-sec.p-dark { background: var(--night); color: #fff; border-top-color: var(--night-line); }
.p-dark .p-wrap { border-color: var(--night-line); }
.p-sec.p-tray { background: var(--tray2); }
.p-flush > .p-wrap { padding-top: 0; padding-bottom: 0; }

/* ---------- type ---------- */
.p-eye { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.p-eye::before { content: ""; width: 18px; height: 1.5px; background: var(--green); }
.p-dark .p-eye { color: var(--night-muted); }
.p-h2 { margin-top: 18px; font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.04em; text-wrap: balance; }
.p-h2 span { display: block; color: var(--gray); }
.p-dark .p-h2 span { color: #77837c; }
.p-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.p-head.wide { grid-template-columns: minmax(0, 2.4fr) 1fr; }
.p-head-r { justify-self: end; display: grid; gap: 16px; justify-items: end; text-align: right; }
.p-head-r p { max-width: 380px; font-size: 18px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.p-dark .p-head-r p { color: #b9c1bc; }
.p-play { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px; border-radius: 999px; border: 1px solid var(--frame); font-size: 14px; font-weight: 700; color: inherit; text-decoration: none; white-space: nowrap; transition: transform 0.2s var(--ease), background 0.2s; }
.p-play i { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.p-play i::before { content: ""; margin-left: 2px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.p-dark .p-play { border-color: var(--night-line); }
.p-dark .p-play i { background: #fff; }
.p-dark .p-play i::before { border-left-color: var(--ink); }
.p-play:hover { background: rgba(127, 127, 127, 0.1); }
.p-play:active { transform: scale(0.98); }

/* Marks a place where a real, confirmed asset or number must go. Never ships. */
.p-slot { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; border: 1px dashed #b9bfc8; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.p-slot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f79009; }
.p-dark .p-slot { border-color: rgba(255, 255, 255, 0.28); color: #c4ccc7; }

/* ---------- logos ---------- */
.p-logos { display: grid; grid-template-columns: 1.25fr repeat(5, 1fr); align-items: stretch; }
.p-logos > * { height: 104px; display: grid; place-items: center; border-left: 1px solid var(--frame); }
.p-logos > p { border-left: 0; justify-items: start; padding-right: 20px; font-size: 14px; line-height: 1.4; color: var(--muted); align-content: center; }
.p-logos img { height: 32px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: 0.62; mix-blend-mode: multiply; }

/* ---------- product window ---------- */
.p-win { background: #fff; color: var(--ink); border-radius: 18px; border: 1px solid rgba(16, 24, 40, 0.08); overflow: hidden; display: flex; flex-direction: column; }
.p-dark .p-win { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); border-color: transparent; }
.p-tray .p-win, .p-win.p-lift { box-shadow: 0 30px 70px rgba(12, 26, 18, 0.1), 0 2px 6px rgba(12, 26, 18, 0.05); }
.p-wh { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.p-ava { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e4e7ec; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #344054; position: relative; }
.p-ava img { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; padding: 1px; }
.p-who { font-size: 15px; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.p-who small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.p-rexpill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--rex-bg); border: 1px solid var(--rex-line); color: var(--purple); font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.p-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 22px; background-color: #f5f7fa; background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1.2px); background-size: 16px 16px; }
.p-b { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.42; }
.p-b.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.p-b.rx { align-self: flex-end; background: var(--rex-bg); border: 1px solid var(--rex-line); color: #4c1d95; border-bottom-right-radius: 5px; }
.p-src { align-self: flex-end; margin-top: -6px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.p-src b { padding: 2px 7px; border-radius: 999px; background: #e6dcff; color: var(--purple); font-weight: 700; }
.p-sys { align-self: center; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.p-sys i { width: 8px; height: 8px; border-radius: 50%; background: #f79009; }
.p-sys.ok { background: #fbfff8; border-color: #d9eacd; }
.p-sys.ok i { width: 24px; height: 24px; border-radius: 8px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.p-sys small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.p-side { border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.p-side h4 { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.p-side h4 small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.p-li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #475467; }
.p-li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-li.hit { background: var(--rex-bg); outline: 1px solid var(--rex-line); color: #4c1d95; }
.p-li.hit b { color: var(--purple); font-weight: 700; }
.p-field { padding: 9px 0; border-bottom: 1px solid var(--line); }
.p-field small { display: block; font-size: 11px; color: var(--muted); }
.p-field b { font-weight: 500; font-size: 13.5px; }
.p-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #f2f4f7; color: #475467; }
.p-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, #98a2b3); }
.p-chip.old { text-decoration: line-through; opacity: 0.55; font-weight: 500; }
.p-chip.pur { background: var(--rex-bg); color: var(--purple); --dot: var(--purple); }
.p-chip.grn { background: #eef7e6; color: #3b7a2a; --dot: var(--green); }
.p-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #e6dcff; color: var(--purple); font-size: 10.5px; font-weight: 700; }
.p-cta-ink { margin-top: auto; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }

/* ---------- video poster (replaces the gray landscape placeholder) ---------- */
.p-poster { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 10; padding: 26px; border-radius: 20px; background: var(--night-2); color: #fff; overflow: hidden; text-decoration: none; border: 1px solid var(--night-line); }
.p-poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--night-line) 1px, transparent 1px) 0 0 / 100% 25%, linear-gradient(90deg, var(--night-line) 1px, transparent 1px) 0 0 / 16.666% 100%; opacity: 0.55; }
.p-poster > * { position: relative; }
.p-poster .top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: #c4ccc7; }
.p-poster .top img { height: 22px; filter: brightness(0) invert(1); }
.p-poster .go { align-self: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform 0.35s var(--spring); }
.p-poster .go::before { content: ""; margin-left: 5px; border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.p-poster:hover .go { transform: scale(1.08); }
.p-poster .ttl { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.p-poster .ttl small { display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0; color: #a9b2ad; font-weight: 400; }

/* ---------- proposal banner (only in these mockups) ---------- */
.p-banner { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 9px 20px; background: var(--ink); color: #fff; font-size: 13px; }
.p-banner b { font-weight: 700; }
.p-banner span { color: #b9c1bc; }
.p-banner nav { margin-left: auto; display: flex; gap: 6px; }
.p-banner a { padding: 4px 11px; border-radius: 999px; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 500; }
.p-banner a.on { background: #fff; color: var(--ink); border-color: #fff; }
.still .p-banner { display: none; }
.p-next { padding: 34px 24px; text-align: center; font-size: 14px; color: var(--muted); border-top: 1px solid var(--frame); background: repeating-linear-gradient(135deg, #fff 0 10px, #f7f8f6 10px 20px); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .p-wrap { width: calc(100% - 28px); padding: 56px 16px; }
  .p-head, .p-head.wide { grid-template-columns: 1fr; gap: 18px; }
  .p-head-r { justify-self: start; justify-items: start; text-align: left; }
  .p-head-r p { font-size: 16px; }
  .p-logos { grid-template-columns: repeat(4, 1fr); }
  .p-logos > * { height: 72px; }
  .p-logos > p { grid-column: 1 / -1; height: auto; padding: 18px 0 2px; }
  .p-logos > :nth-child(2) { border-left: 0; }
  .p-logos > :nth-child(6) { display: none; }
  .p-logos img { height: 22px; max-width: 64px; }
  .p-wh { padding: 12px 14px; }
  .p-wh .p-who small { display: none; }
  .p-body { grid-template-columns: 1fr; }
  .p-side { display: none; }
  .p-chat { padding: 16px; }
  .p-b { font-size: 14px; max-width: 88%; }
  .p-banner span { display: none; }
}

/* c-hero.css */
/*
  Hero proposals for the home on direction C (prop-c.html?h=1|2|3). Mockups, not production code.
  None of them uses the cropped app-window layout of the current hero.
    h1  Reloj      a live clock is the hero object (number-led)
    h2  Frase      one sentence with live inline tokens (sentence-led)
    h3  Horizonte  full-bleed sierra with one ribbon of questions and answers (image-led)
  Tokens come from hero.css and prop.css. Classes are prefixed hx- / h1- / h2- / h3-.
*/
.hx { display: none; position: relative; }
body[data-h="1"] .hx.h1, body[data-h="2"] .hx.h2, body[data-h="3"] .hx.h3 { display: flex; }
body[data-h="0"] .hx-nav { display: none; }
.hx { min-height: 100svh; flex-direction: column; }
.still .hx { min-height: 860px; }
.hx-frame { flex: 1; display: flex; flex-direction: column; width: min(var(--w), calc(100% - 48px)); margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); border-left: 1px solid var(--frame); border-right: 1px solid var(--frame); container-type: inline-size; }

/* ---------- nav (with the phone menu the current hero lacks) ---------- */
.hx-nav { position: absolute; z-index: 20; top: 0; left: 0; right: 0; }
.p-banner + .hx-nav, .p-banner ~ .hx-nav { top: auto; }
.hx-nav > div { display: flex; align-items: center; gap: 40px; width: min(1240px, 100%); margin: 0 auto; padding: 22px 32px; }
.hx-nav img { height: 30px; width: auto; display: block; }
.hx-nav nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.hx-nav nav a { position: relative; padding: 4px 0; }
.hx-nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.hx-nav nav a:hover::after { transform: scaleX(1); }
.hx-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.hx-r > a:first-child { font-size: 15px; font-weight: 500; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #cfd4cf; }
.btn { transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s; }
.btn.primary:hover { background: #71b043; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn:focus-visible, .hx-nav a:focus-visible, .hx-burger:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.hx-burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--frame); position: relative; }
.hx-burger i { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform 0.35s var(--ease); }
.hx-burger i:first-child { top: 17px; }
.hx-burger i:last-child { top: 24px; }
.hx-burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.hx-burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.hx-sheet { position: fixed; z-index: 19; inset: 0; background: #fff; padding: 96px 24px 28px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.hx-sheet.open { opacity: 1; visibility: visible; }
.hx-sheet a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--frame); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; transform: translateY(10px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s; transition-delay: calc(var(--i) * 50ms); }
.hx-sheet.open a:not(.btn) { transform: none; opacity: 1; }
.hx-sheet .btn { margin-top: auto; }

/* ---------- shared hero type ---------- */
.hx-eye { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.hx-eye::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.hx-h { margin-top: 18px; font-weight: 500; font-size: clamp(38px, 5.4cqw, 56px); line-height: 1.03; letter-spacing: -0.042em; text-wrap: balance; }
.hx-h span { display: block; color: var(--gray); }
.hx-side p { font-size: 18px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; max-width: 400px; }
.hx-cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.h1 .hx-cta .btn { padding-left: 22px; padding-right: 22px; }
.hx-side small { display: block; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
@keyframes hx-in { from { opacity: 0; transform: translateY(20px); } }
.hx-in { animation: hx-in 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 0.1s); }
@keyframes hx-fade { from { opacity: 0; } }
.h3-rib.hx-in { animation-name: hx-fade; }
.still .hx-in { animation: none; }
.still .hx *, .still .hx-nav * { transition: none !important; }

/* ---------- h1 · Reloj ---------- */
.h1 .hx-frame { padding-top: 76px; }
.h1-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: end; padding: clamp(28px, 6vh, 64px) 0 clamp(28px, 5vh, 48px); }
.h1-top .hx-side { justify-self: end; }
.h1-clock { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; margin: 0 calc(clamp(20px, 3vw, 40px) * -1); padding: clamp(18px, 4vh, 40px) clamp(20px, 3vw, 40px); border-top: 1px solid var(--frame); border-bottom: 1px solid var(--frame); font-size: 19cqw; font-weight: 500; line-height: 1; letter-spacing: -0.04em; user-select: none; }
.h1-digits { display: flex; align-items: flex-start; height: 1em; overflow: hidden; }
.h1-digits > span { display: flex; }
.h1-dg { width: 0.585em; height: 1em; overflow: hidden; }
.h1-dg span { display: flex; flex-direction: column; transform: translateY(calc(var(--n, 0) * -1em)); transition: transform 0.7s var(--ease); }
.h1-dg b { height: 1em; font-weight: 500; text-align: center; }
.h1-col { width: 0.26em; text-align: center; transform: translateY(-0.06em); }
.h1-sec { color: #c5cac6; display: flex; }
.h1-sec .h1-col { animation: h1-blink 1s steps(2, jump-none) infinite; }
@keyframes h1-blink { 50% { opacity: 0.35; } }
.h1-ap { align-self: flex-end; padding-bottom: 0.12em; font-size: 15px; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); display: grid; gap: 6px; text-align: right; }
.h1-ap span { max-width: 9ch; line-height: 1.25; justify-self: end; }
.h1-ap b { font-size: clamp(18px, 3cqw, 34px); letter-spacing: -0.02em; font-weight: 500; color: var(--ink); }
.h1-feed { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 calc(clamp(20px, 3vw, 40px) * -1); }
.h1-cell { position: relative; padding: 22px clamp(20px, 3vw, 40px) 30px; display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 12px; align-items: center; color: #b4bab6; transition: color 0.5s; }
.h1-cell + .h1-cell { border-left: 1px solid var(--frame); }
.h1-cell::before { content: ""; position: absolute; left: 0; top: -1px; height: 1.5px; width: 100%; background: var(--c, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.h1-cell i { grid-row: span 2; width: 30px; height: 30px; border-radius: 10px; background: #eef0ee; display: grid; place-items: center; transition: background 0.5s, transform 0.6s var(--spring); transform: scale(0.86); }
.h1-cell i svg { width: 15px; height: 15px; stroke: #9aa29d; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s; }
.h1-cell b { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.h1-cell time { font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.5s; }
.h1-cell span { grid-column: 2 / -1; font-size: 14.5px; line-height: 1.4; }
.h1-cell.on { color: var(--ink); }
.h1-cell.on::before { transform: scaleX(1); }
.h1-cell.on span { color: var(--ink-soft); }
.h1-cell.on time { opacity: 0.6; }
.h1-cell.on i { transform: none; background: var(--ink); }
.h1-cell.on i svg { stroke: #fff; }
.h1-cell.rx { --c: var(--purple); }
.h1-cell.rx.on i { background: var(--rex-bg); box-shadow: inset 0 0 0 1px var(--rex-line); }
.h1-cell.rx.on i svg { stroke: var(--purple); }
.h1-cell.ok { --c: var(--green); }
.h1-cell.ok.on i { background: var(--green); }

/* ---------- h2 · Frase ---------- */
.h2 .hx-frame { padding-top: 76px; }
.h2-mid { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vh, 56px) 0; }
.h2-s { margin-top: 26px; font-weight: 500; font-size: clamp(33px, 6.75cqw, 71px); line-height: 1.1; letter-spacing: -0.045em; }
.h2-s .st { color: #a7aea9; transition: color 0.6s var(--ease); }
.h2-s .st.on { color: var(--ink); }
.h2-s .st.end.on { color: var(--gray); }
.tk { display: inline-flex; align-items: center; justify-content: center; vertical-align: -0.07em; height: 0.84em; margin: 0 0.04em; font-style: normal; letter-spacing: 0; transform: scale(0.5); opacity: 0; transition: transform 0.7s var(--spring), opacity 0.4s; }
.st.on .tk { transform: none; opacity: 1; }
.tk.av { position: relative; width: 0.84em; border-radius: 50%; background: #e4e7ec; }
.tk.av em { font-style: normal; font-size: 0.3em; font-weight: 700; color: #344054; }
.tk.av img { position: absolute; right: -0.03em; bottom: -0.03em; width: 0.32em; height: 0.32em; border-radius: 50%; background: #fff; padding: 0.02em; }
.tk.rex { --s: 0.84em; width: 0.84em; border-radius: 50%; overflow: hidden; position: relative; background: #e6dcff; box-shadow: 0 0 0 0.03em var(--rex-line); }
.tk.rex img { position: absolute; width: 240%; left: -70.3%; top: -9.4%; max-width: none; }
.tk.ok { gap: 0.12em; height: 0.8em; padding: 0 0.3em 0 0.16em; border-radius: 0.26em; background: #eef7e6; box-shadow: inset 0 0 0 1px #cfe6bd; }
.tk.ok b { width: 0.48em; height: 0.48em; border-radius: 0.14em; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat; }
.tk.ok em { font-style: normal; font-size: 0.42em; font-weight: 700; color: #2f6a20; white-space: nowrap; letter-spacing: -0.01em; }
.h2-bot { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin: 0 calc(clamp(20px, 3vw, 40px) * -1); padding: 26px clamp(20px, 3vw, 40px) 34px; border-top: 1px solid var(--frame); }
.h2-bot p { font-size: 18px; line-height: 1.5; color: var(--ink-soft); max-width: 520px; }
.h2-bot .hx-cta { margin: 0; align-items: center; }
.h2-bot small { font-size: 13.5px; color: var(--muted); margin-left: 8px; }

/* ---------- h3 · Horizonte ---------- */
.h3 { overflow: hidden; }
.h3-bg { position: absolute; inset: 0; background: none center bottom / cover no-repeat; clip-path: inset(0 calc(var(--sp, 0) * 20px) calc(var(--sp, 0) * 20px) round calc(var(--sp, 0) * 28px)); transform: scale(calc(1 + var(--sp, 0) * 0.04)); transform-origin: center bottom; }
.h3 .hx-frame { position: relative; flex: 0 0 auto; border: 0; width: min(1240px, 100%); padding: 0 32px; }
.h3-copy { padding-top: clamp(112px, 16vh, 170px); }
.h3 .hx-h { font-size: clamp(42px, 6.6cqw, 80px); letter-spacing: -0.048em; }
.h3 .hx-h span { color: #4c5a51; }
.h3-copy p { margin-top: 22px; max-width: 520px; font-size: 19px; line-height: 1.5; color: var(--ink-soft); }
.h3-copy small { display: block; margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.h3 .btn.light { background: #fff; }
/* The ribbon sits in the flow under the copy: on short screens the hero grows instead of overlapping. */
.h3-ribwrap { position: relative; margin-top: auto; padding: clamp(28px, 5vh, 56px) 0 clamp(64px, 15vh, 150px); pointer-events: none; }
.h3-rib { display: block; width: max(100%, 1180px); margin-left: 50%; transform: translateX(-50%); overflow: visible; }
.h3-rib .band { fill: none; stroke-width: 46; }
.h3-rib .band.q { stroke: var(--ink); }
.h3-rib .band.a2 { stroke: var(--rex-line); stroke-width: 48; }
.h3-rib .band.a { stroke: var(--rex-bg); }
.h3-rib text { font-family: "Cereal", sans-serif; font-size: 19px; font-weight: 500; }
.h3-rib .tq { fill: #fff; }
.h3-rib .ta { fill: #4c1d95; }
.h3-rib .hub { fill: #fff; stroke: var(--rex-line); stroke-width: 1.5; }
.h3-rib .tagbg { fill: #fff; }
.h3-rib .tag { font-size: 12.5px; font-weight: 700; fill: var(--purple); text-anchor: middle; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hx-nav > div { padding: 14px 18px; gap: 12px; }
  .hx-nav nav, .hx-r > a:first-child { display: none; }
  .hx-nav img { height: 26px; }
  .hx-r { gap: 10px; }
  .hx-burger { display: block; }
  .hx-frame { width: calc(100% - 28px); padding: 0 16px; }
  .still .hx { min-height: 780px; }
  .hx-h, .h3 .hx-h { font-size: clamp(36px, 10.6cqw, 54px); }
  .hx-side p, .h2-bot p, .h3-copy p { font-size: 16px; }
  .hx-cta .btn { flex: 1 1 100%; }
  .h1 .hx-frame, .h2 .hx-frame { padding-top: 64px; }
  .h1-top { grid-template-columns: 1fr; gap: 16px; padding: 22px 0 26px; }
  .h1-top .hx-side { justify-self: start; }
  .h1-top .hx-side small { display: none; }
  .h1-clock { margin: 0 -16px; padding: 22px 16px; font-size: 17.4cqw; min-height: 120px; }
  .h1-ap { font-size: 11px; gap: 3px; white-space: normal; max-width: 64px; }
  .h1-feed { grid-template-columns: 1fr; margin: 0 -16px; }
  .h1-cell { padding: 14px 16px 16px; }
  .h1-cell + .h1-cell { border-left: 0; border-top: 1px solid var(--frame); }
  .h1-cell::before { top: -1px; }
  .h2-mid { padding: 22px 0 26px; }
  .h2-s { font-size: clamp(31px, 9.3cqw, 50px); margin-top: 18px; }
  .h2-s br { display: none; }
  .h2-bot { grid-template-columns: 1fr; gap: 18px; margin: 0 -16px; padding: 22px 16px 28px; }
  .h2-bot small { display: none; }
  .h3 .hx-frame { padding: 0 18px; width: 100%; }
  .h3-copy { padding-top: 92px; }
  .h3-copy small { display: none; }
  .h3-ribwrap { padding: 28px 0 72px; }
  .h3-rib { width: 1040px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-in, .h1-sec .h1-col { animation: none; }
  .h1-dg span, .tk, .h2-s .st { transition: none; }
}

/* home-c.css */
/*
  home-c.html: the home on direction C (the story of one prospect) with the Horizonte hero.
  Loads after hero.css, home.css, prop.css and c-hero.css. Local prototype, not production code.
  Three parts: (1) page-level rules that make the carried sections (verticales, precios, preguntas,
  cierre, pie — markup copied unchanged from home.html) share the new header scale and gutters,
  (2) the story timeline, (3) the new sections (hc-).
*/

/* ---------- 1 · one system for carried and new sections ---------- */
.sec .label { height: auto; padding: 0; border: 0; border-radius: 0; background: none; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.sec .label::before { width: 18px; height: 1.5px; border-radius: 0; background: var(--green); }
.sec.dark .label { color: var(--night-muted); }
/* one headline scale for the whole page; 48px keeps the carried two-line headlines on two lines */
.sec h2, .p-h2 { font-size: clamp(34px, 3.7vw, 48px); line-height: 1.05; letter-spacing: -0.04em; }
.closing-card h2 { font-size: clamp(34px, 4vw, 56px); }
.sec .head { grid-template-columns: minmax(0, 1fr) 320px; }
.seg2 button { white-space: nowrap; }
.faqg .side h2 { font-size: clamp(32px, 3.4vw, 44px); }
.p-sec.slim > .p-wrap { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }

/* ---------- 2 · the story: one message followed minute by minute ---------- */
.c-head { text-align: center; display: grid; justify-items: center; }
.c-head .p-h2 { max-width: 760px; }
.c-line { position: relative; margin-top: 72px; display: grid; gap: 72px; }
.c-line::before, .c-fill { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -0.75px; background: var(--frame); }
.c-fill { bottom: auto; height: var(--p, 0%); background: var(--green); }
.still .c-fill { height: 100%; }
.c-stop { position: relative; display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; }
.c-time { justify-self: center; position: relative; z-index: 1; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--frame); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-stop.day .c-time { background: var(--ink); border-color: var(--ink); color: #fff; }
.c-txt { max-width: 380px; }
.c-txt small { font-size: 13px; font-weight: 500; color: var(--muted); }
.c-txt h3 { margin-top: 8px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.c-txt p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.c-stop:nth-of-type(odd) .c-txt { order: 3; }
.c-stop:nth-of-type(odd) .c-time { order: 2; }
.c-stop:nth-of-type(odd) .c-art { order: 1; }
.c-stop:nth-of-type(even) .c-txt { justify-self: end; text-align: right; }
.c-art { min-height: 250px; border-radius: 24px; background: var(--tray2); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.c-art .p-b { font-size: 17px; padding: 13px 17px; box-shadow: 0 8px 22px rgba(12, 26, 18, 0.05); }
.c-art .p-sys { align-self: flex-start; font-size: 15px; padding: 12px 18px 12px 12px; box-shadow: 0 8px 22px rgba(12, 26, 18, 0.05); }
.c-art .p-sys small { font-size: 13px; }
.c-art .p-chip { font-size: 13.5px; padding: 6px 13px; }
.c-note { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; box-shadow: 0 14px 34px rgba(12, 26, 18, 0.08); }
.c-note img { width: 40px; height: 40px; }
.c-note b { display: block; font-size: 15px; }
.c-note span { font-size: 15px; color: var(--ink-soft); }
.c-note small { font-size: 12px; color: var(--muted); align-self: start; }
.c-slots { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 14px; box-shadow: 0 8px 22px rgba(12, 26, 18, 0.05); }
.c-slots div { display: grid; grid-template-columns: 64px 1fr; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.c-slots div:first-child { border-top: 0; font-weight: 700; color: var(--ink); grid-template-columns: 1fr; padding: 12px 14px; }
.c-slots em { font-style: normal; height: 30px; border-radius: 8px; border: 1px dashed var(--line); }
.c-slots em.bk { border: 1px solid #cfe6bd; background: #eef7e6; color: #2f6a20; font-weight: 700; display: flex; align-items: center; padding: 0 10px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 14px 34px rgba(12, 26, 18, 0.08); display: grid; gap: 12px; }
.c-card .t { display: flex; align-items: center; gap: 12px; }
.c-card .f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.c-card .f small { display: block; font-size: 11.5px; color: var(--muted); }
.c-sum { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.5; box-shadow: 0 8px 22px rgba(12, 26, 18, 0.05); }
.c-sum small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* closing contrast, dark */
.c-end { text-align: center; display: grid; justify-items: center; }
.c-end .p-h2 { max-width: 820px; margin-top: 0; }
.c-end .acts { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
button.p-play { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ---------- 3 · new sections ---------- */
/* two actions the story does not show: quotes and handoff */
.hc-two { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--frame); }
.hc-two > div { padding: 36px 40px 0 0; }
.hc-two > div + div { padding: 36px 0 0 40px; border-left: 1px solid var(--frame); }
.hc-two .c-art { min-height: 290px; }
.hc-two h3 { margin-top: 26px; font-size: 26px; font-weight: 500; letter-spacing: -0.025em; }
.hc-two p { margin-top: 8px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

/* client case with the testimonial video */
.hc-case { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hc-case > div > p { margin-top: 18px; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.hc-by { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--frame); font-size: 14px; }
.hc-by b { display: block; font-size: 15px; }
.hc-by span { color: var(--muted); }
button.p-poster { font: inherit; text-align: left; cursor: pointer; width: 100%; }
.p-poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* how you start: three steps in one hairline row */
.hc-steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--frame); }
.hc-steps > div { padding: 26px 28px 0 0; display: grid; gap: 6px; align-content: start; }
.hc-steps > div + div { padding-left: 28px; border-left: 1px solid var(--frame); }
.hc-steps i { font-style: normal; font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: #c5cac6; font-variant-numeric: tabular-nums; }
.hc-steps b { margin-top: 10px; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.hc-steps span { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

/* demo video dialog */
.hc-dlg { margin: auto; border: 0; padding: 0; background: transparent; width: min(1100px, 92vw); max-width: none; overflow: visible; }
.hc-dlg::backdrop { background: rgba(13, 19, 16, 0.84); }
.hc-player { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.hc-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.hc-x { position: absolute; right: 0; top: -52px; width: 40px; height: 40px; border-radius: 50%; background: #fff; cursor: pointer; }
.hc-x::before, .hc-x::after { content: ""; position: absolute; left: 12px; right: 12px; top: 19px; height: 1.6px; background: var(--ink); transform: rotate(45deg); }
.hc-x::after { transform: rotate(-45deg); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* same gutters as the carried sections: no side hairlines on phones */
  .p-wrap { width: 100%; border-left: 0; border-right: 0; padding-left: 20px; padding-right: 20px; }
  .p-flush > .p-wrap { padding-top: 0; padding-bottom: 0; }
  .sec .head { grid-template-columns: 1fr; }
  /* all five logos on phones, 3 + 2, as in the approved home */
  .p-logos { grid-template-columns: repeat(6, 1fr); }
  .p-logos > div { grid-column: span 2; height: 76px; }
  .p-logos > div:nth-child(n + 5) { grid-column: span 3; border-top: 1px solid var(--frame); }
  .p-logos > :nth-child(6) { display: grid; }
  .p-logos > :nth-child(2), .p-logos > :nth-child(5) { border-left: 0; }
  .p-logos img { height: 24px; max-width: 96px; }
  .h3 .hx-frame { padding: 0 20px; }
  .hx-nav > div { padding: 14px 20px; }
  .c-head { text-align: left; justify-items: start; }
  .c-line { margin-top: 40px; gap: 44px; padding-left: 22px; }
  .c-line::before, .c-fill { left: 0; }
  .c-stop { grid-template-columns: 1fr; gap: 14px; }
  .c-stop::before { content: ""; position: absolute; left: -27px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
  .c-time { justify-self: start; order: 1 !important; }
  .c-stop .c-txt, .c-stop:nth-of-type(even) .c-txt { order: 2 !important; justify-self: start; text-align: left; max-width: none; }
  .c-art { order: 3 !important; min-height: 0; padding: 18px; border-radius: 18px; }
  .c-art .p-b { font-size: 15px; }
  .c-txt p { font-size: 16px; }
  .c-card .p-ava { display: none; }
  .hc-two { grid-template-columns: 1fr; }
  .hc-two > div, .hc-two > div + div { padding: 28px 0 0; border-left: 0; }
  .hc-two > div + div { margin-top: 32px; border-top: 1px solid var(--frame); }
  .hc-two .c-art { min-height: 0; }
  .hc-two h3 { font-size: 22px; margin-top: 20px; }
  .hc-case { grid-template-columns: 1fr; gap: 32px; }
  .hc-steps { grid-template-columns: 1fr; margin-top: 28px; }
  .hc-steps > div, .hc-steps > div + div { padding: 20px 0; border-left: 0; grid-template-columns: 56px 1fr; column-gap: 8px; }
  .hc-steps > div + div { border-top: 1px solid var(--frame); }
  .hc-steps i { grid-row: span 2; font-size: 34px; }
  .hc-steps b { margin-top: 0; }
  .c-end .acts .btn { flex: 1 1 100%; }
}

/* links inside FAQ answers */
.qa p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* docs.css */
/*
  Documentation template for reda.mx/docs. Loads after hero.css, home.css, prop.css, c-hero.css and
  home-c.css (tokens, Cereal, nav, footer), so it follows the redesign: hairline frame, ink type,
  green as the accent, purple only for Rex. Every class here is prefixed dx- or scoped to .doc-body.
*/
:root { --dx-side: 268px; --dx-toc: 232px; --dx-top: 64px; }
html { scroll-padding-top: calc(var(--dx-top) + 72px); }
body.docs { background: #fff; }

/* ---------- nav in the flow, on white ---------- */
.docs .hx-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--frame); }
.docs .hx-nav > div { padding-top: 14px; padding-bottom: 14px; }
.docs .hx-nav nav a.on::after { transform: scaleX(1); background: var(--green); }
.dx-skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.dx-skip:focus { top: 12px; }

/* ---------- bar: three scopes + search ---------- */
.dx-bar { position: sticky; top: var(--dx-top); z-index: 25; background: #fff; border-bottom: 1px solid var(--frame); }
.dx-bar > div { width: min(1320px, 100%); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 24px; min-height: 58px; }
.dx-scopes { display: flex; gap: 4px; align-self: stretch; }
.dx-scopes a { display: flex; align-items: center; padding: 0 12px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: color 0.2s, box-shadow 0.2s; white-space: nowrap; }
.dx-scopes a:hover { color: var(--ink); }
.dx-scopes a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); }
.dx-search { position: relative; margin-left: auto; width: min(380px, 100%); }
.dx-search input { width: 100%; height: 40px; padding: 0 64px 0 38px; border-radius: 10px; border: 1px solid var(--frame); background: var(--tray2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 12px center / 16px no-repeat; font: inherit; font-size: 14.5px; color: var(--ink); }
.dx-search input:focus { outline: 2px solid var(--purple); outline-offset: 1px; background-color: #fff; }
.dx-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--frame); background: #fff; font: inherit; font-size: 11.5px; color: var(--muted); pointer-events: none; }
.dx-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); max-height: min(440px, 70vh); overflow: auto; padding: 6px; margin: 0; list-style: none; border-radius: 14px; border: 1px solid var(--frame); background: #fff; box-shadow: 0 24px 60px rgba(12, 26, 18, 0.14); }
.dx-results[hidden] { display: none; }
.dx-results li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.dx-results li a small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.dx-results li[aria-selected="true"] a, .dx-results li a:hover { background: var(--tray2); }
.dx-results .dx-empty { padding: 12px; font-size: 14px; color: var(--muted); }

/* ---------- three columns ---------- */
.dx-wrap { width: min(1320px, 100%); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: var(--dx-side) minmax(0, 1fr) var(--dx-toc); gap: 48px; align-items: start; }
.dx-side, .dx-toc { position: sticky; top: calc(var(--dx-top) + 58px); max-height: calc(100vh - var(--dx-top) - 58px); overflow-y: auto; overscroll-behavior: contain; padding: 28px 0 40px; scrollbar-width: thin; }
.dx-side { border-right: 1px solid var(--frame); padding-right: 20px; }
.dx-side > details > summary { display: none; }
.dx-sec + .dx-sec { margin-top: 22px; }
.dx-sec h2 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.dx-sec ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.dx-sec a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: #4a5550; text-decoration: none; transition: background 0.15s, color 0.15s; }
.dx-sec a:hover { background: var(--tray2); color: var(--ink); }
.dx-sec a[aria-current="page"] { background: #eef7e6; color: #2f6a20; font-weight: 500; }
.dx-sec a:focus-visible, .dx-toc a:focus-visible, .doc-body a:focus-visible, .dx-pn a:focus-visible, .dx-rel a:focus-visible, .dx-crumbs a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- article ---------- */
.dx-main { min-width: 0; padding: 28px 0 80px; }
.dx-crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.dx-crumbs li + li::before { content: "/"; margin-right: 6px; color: #c3c8c4; }
.dx-crumbs a { color: var(--muted); text-decoration: none; }
.dx-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.dx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }

.doc-body { max-width: 760px; font-size: 16.5px; line-height: 1.65; color: #26332c; }
.doc-body > * + * { margin-top: 18px; }
.doc-body h1 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink); text-align: left; text-wrap: balance; }
.doc-body h1 + p { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.doc-body h2 { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--frame); font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.doc-body h2 span { display: inline; color: inherit; }
.doc-body h3 { margin-top: 34px; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }
.doc-body h4 { margin-top: 26px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.doc-body h2 + *, .doc-body h3 + *, .doc-body h4 + * { margin-top: 10px; }
.doc-body :is(h2, h3, h4) .dx-hash { margin-left: 8px; font-weight: 400; color: #c3c8c4; text-decoration: none; opacity: 0; transition: opacity 0.15s; }
.doc-body :is(h2, h3, h4):hover .dx-hash, .doc-body .dx-hash:focus { opacity: 1; }
.doc-body p { margin-bottom: 0; }
.doc-body strong { font-weight: 700; color: var(--ink); }
.doc-body a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc-body a:hover { text-decoration-color: var(--ink); }
.doc-body a[target="_blank"]::after { content: "↗"; margin-left: 2px; font-size: 0.8em; color: var(--muted); }
.doc-body .dx-plain { font-weight: inherit; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li + li { margin-top: 8px; }
.doc-body li::marker { color: var(--gray); }
.doc-body ol > li::marker { font-weight: 700; color: var(--ink); }
.doc-body blockquote { margin: 22px 0 0; padding: 14px 18px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: var(--tray2); color: var(--ink-soft); }
.doc-body blockquote > * + * { margin-top: 10px; }
.doc-body hr { border: 0; border-top: 1px solid var(--frame); }
.doc-body code { padding: 1px 6px; border-radius: 6px; background: #f1f3f1; border: 1px solid #e6e9e6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; color: #1d2a22; overflow-wrap: anywhere; }
.doc-body .dx-caption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.doc-body .dx-caption em { font-style: normal; }

/* tables scroll inside their own frame */
.dx-table { margin-top: 22px; overflow-x: auto; border: 1px solid var(--frame); border-radius: 14px; }
.dx-table:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.dx-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.dx-table th, .dx-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--frame); }
.dx-table th { background: #fafbfa; font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.dx-table tr:last-child td { border-bottom: 0; }
.dx-table td + td, .dx-table th + th { border-left: 1px solid var(--frame); }
.dx-table code { white-space: nowrap; overflow-wrap: normal; }
.dx-table.wide table { min-width: 720px; }

/* code blocks */
.dx-code { margin-top: 22px; border-radius: 14px; overflow: hidden; background: #0f1512; color: #e7ece9; border: 1px solid #1d2622; }
.dx-code header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px 7px 16px; border-bottom: 1px solid #1d2622; font-size: 12.5px; color: #93a099; }
.dx-copy { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid #2a3530; background: transparent; color: #d7dfdb; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.dx-copy:hover { background: #1b2420; }
.dx-copy:focus-visible { outline: 2px solid #b9a2f7; outline-offset: 2px; }
.dx-code pre { margin: 0; padding: 16px; overflow-x: auto; tab-size: 2; }
.dx-code pre:focus-visible { outline: 2px solid #b9a2f7; outline-offset: -2px; }
.dx-code code { padding: 0; border: 0; background: none; color: inherit; font-size: 13.5px; line-height: 1.6; white-space: pre; overflow-wrap: normal; }

/* step images: open larger on click */
.dx-fig { margin: 22px 0 0; }
.dx-zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--frame); border-radius: 14px; overflow: hidden; background: #f6f7f6; cursor: zoom-in; position: relative; }
.dx-zoom img { display: block; width: 100%; height: auto; }
.dx-zoom::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 10px; background: rgba(12, 26, 18, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0; transition: opacity 0.2s; }
.dx-zoom:hover::after, .dx-zoom:focus-visible::after { opacity: 1; }
.dx-zoom:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.dx-fig.tall .dx-zoom { width: min(100%, calc(620px * var(--r))); }
.dx-fig figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.dx-light { width: min(1500px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: #fff; overflow: hidden; }
.dx-light::backdrop { background: rgba(13, 19, 16, 0.86); }
.dx-light img { display: block; width: 100%; height: auto; max-height: calc(94vh - 56px); object-fit: contain; background: #f6f7f6; }
.dx-light header { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--frame); font-size: 14px; color: var(--ink-soft); }
.dx-light header p { flex: 1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-light button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--frame); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.dx-light button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* ---------- after the article ---------- */
.dx-rel { max-width: 760px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--frame); }
.dx-rel h2 { margin: 0 0 14px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.dx-rel ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dx-rel a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--frame); border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.35; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.dx-rel a small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.dx-rel a:hover { border-color: #cfd4cf; background: var(--tray2); }
.dx-pn { max-width: 760px; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dx-pn a { display: block; padding: 16px 18px; border: 1px solid var(--frame); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.dx-pn a:hover { border-color: #cfd4cf; background: var(--tray2); }
.dx-pn small { display: block; font-size: 12.5px; color: var(--muted); }
.dx-pn b { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.dx-pn .next { text-align: right; grid-column: 2; }
.dx-help { max-width: 760px; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.dx-help a { color: var(--ink); font-weight: 500; }

/* ---------- table of contents ---------- */
.dx-toc { padding-left: 4px; }
.dx-toc > details > summary { display: none; }
.dx-toc h2 { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.dx-toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--frame); }
.dx-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1.5px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--muted); text-decoration: none; }
.dx-toc li.l3 a { padding-left: 26px; font-size: 13px; }
.dx-toc a:hover { color: var(--ink); }
.dx-toc a.on { color: var(--ink); border-left-color: var(--green); }

/* ---------- landing (centro de ayuda / api / agentes) ---------- */
.dx-cards { max-width: 760px; margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dx-cards a { display: block; padding: 18px 18px 16px; border: 1px solid var(--frame); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.dx-cards a:hover { border-color: #cfd4cf; background: var(--tray2); }
.dx-cards b { display: block; font-size: 16px; font-weight: 500; }
.dx-cards span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .dx-wrap { grid-template-columns: var(--dx-side) minmax(0, 1fr); }
  .dx-toc { position: static; grid-column: 2; grid-row: 1; max-height: none; overflow: visible; padding: 22px 0 0; }
  .dx-toc > details { border: 1px solid var(--frame); border-radius: 12px; }
  .dx-toc > details > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
  .dx-toc > details > summary::-webkit-details-marker { display: none; }
  .dx-toc > details > summary::after { content: "+"; font-size: 18px; color: var(--muted); }
  .dx-toc > details[open] > summary::after { content: "−"; }
  .dx-toc > details > div { padding: 0 16px 14px; }
  .dx-toc h2 { display: none; }
  .dx-main { grid-column: 2; grid-row: 2; padding-top: 18px; }
}
@media (max-width: 900px) {
  :root { --dx-top: 56px; }
  .docs .hx-nav > div { padding-top: 8px; padding-bottom: 8px; }
  .dx-bar > div { padding: 8px 20px 10px; flex-wrap: wrap; gap: 8px; }
  .dx-bar { position: static; }
  .dx-scopes { order: 2; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
  .dx-scopes a { padding: 8px; font-size: 14px; }
  .dx-search { order: 1; margin: 0; width: 100%; }
  .dx-search kbd { display: none; }
  /* phones: sections menu, then the page index, then the article */
  .dx-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 20px; }
  .dx-side { order: 0; }
  .dx-toc { order: 1; }
  .dx-main { order: 2; }
  .dx-side { position: static; max-height: none; overflow: visible; padding: 16px 0 0; border: 0; }
  .dx-side > details { border: 1px solid var(--frame); border-radius: 12px; }
  .dx-side > details > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
  .dx-side > details > summary::-webkit-details-marker { display: none; }
  .dx-side > details > summary::after { content: "+"; font-size: 18px; color: var(--muted); }
  .dx-side > details[open] > summary::after { content: "−"; }
  .dx-side > details > div { padding: 4px 16px 16px; }
  .dx-toc { padding-top: 10px; }
  .dx-main { padding: 18px 0 64px; }
  .doc-body { font-size: 16px; }
  .doc-body h1 + p { font-size: 17px; }
  .doc-body h2 { margin-top: 40px; padding-top: 20px; font-size: 22px; }
  .doc-body h3 { font-size: 17.5px; }
  .dx-rel ul, .dx-pn, .dx-cards { grid-template-columns: 1fr; }
  .dx-pn .next { grid-column: auto; }
  .dx-fig.tall .dx-zoom { width: min(100%, calc(70svh * var(--r))); }
  .dx-light { width: 100vw; max-height: 100vh; border-radius: 0; }
  .dx-light img { max-height: calc(100vh - 56px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.dx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
