/* Refinamiento de inicio y demo. La base previa permanece en archivo/. */
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-600.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --shadow-device: 4px 8px 12px #142e4d0b, 12px 36px 64px #142e4d20;
  --shadow-float: 0 8px 12px #142e4d08, 0 18px 32px #142e4d14;
}
body { font-family: "Public Sans", Arial, sans-serif; }
.brand { color: #103440; gap: 10px; font-family: "Public Sans", Arial, sans-serif; font-weight: 600; letter-spacing: -.04em; }
.brand-symbol { width: 32px; height: 32px; flex-shrink: 0; }
.footer .brand-symbol { width: 26px; height: 26px; }
.footer .brand:hover { color: #103440; }
::selection { background: #c9ddff; color: #122f5e; }
* { scrollbar-color: #b8c9dd #f1f5fa; scrollbar-width: thin; }
h1, h2, h3 { letter-spacing: -.035em; text-wrap: balance; }
.button, button, select { touch-action: manipulation; }
.ui-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.action-icon .ui-icon { width: 22px; height: 22px; }
.detail-symbol .ui-icon { width: 48px; height: 48px; }
.contact-row>.ui-icon { margin-left: auto; width: 14px; height: 14px; }
.button, .text-link, .nav-contact { text-underline-offset: 5px; }
.button:disabled { cursor: default; opacity: .55; }
.hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 32px 64px;
  padding-top: 60px;
}
.hero-copy { align-self: center; padding-block: 32px; }
.hero h1 { font-size: clamp(44px, 4.4vw, 64px); line-height: 1.08; max-width: 9.5em; font-weight: 600; }
.hero h1 span { display: block; margin-top: 8px; }
.hero .intro { font-size: 17px; max-width: 30em; margin-top: 28px; line-height: 1.7; }
.hero .actions { gap: 20px; margin-top: 32px; }
.hero .button { padding: 14px 22px; box-shadow: inset 0 1px 0 #ffffff30; border-radius: 9px; }
.hero-note { max-width: 35em; font-size: 12px; }
.phone-scene {
  isolation: isolate;
  padding: 20px 12px 0;
  background: none;
  perspective: 1500px;
  min-width: 0;
}
.phone-scene::before {
  content: "";
  position: absolute;
  inset: 64px 0 112px;
  background: #edf3fc;
  border-radius: 46% 46% 20% 20%;
  z-index: -1;
}
.scene-caption { margin-bottom: 24px; color: var(--muted); font-size: 12px; gap: 10px; }
.phone {
  position: relative;
  width: 328px;
  max-width: 100%;
  padding: 34px 16px 22px;
  border: 8px solid #fdfefe;
  border-radius: 42px;
  outline: none;
  background: #f1f5fb;
  box-shadow: inset 0 0 0 1px #e2e9f3, 0 0 0 1px #d2deed, var(--shadow-device);
  transform: rotateY(-9deg) rotateX(3deg) rotateZ(3deg);
  transform-origin: center;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(50% - 20px);
  width: 40px;
  height: 4px;
  border-radius: 6px;
  background: #b6c4d5;
  box-shadow: inset 0 1px 2px #142e4d30;
}
.phone::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 42px;
  border-top: 2px solid #fff;
  border-right: 2px solid #ffffffdf;
  pointer-events: none;
}
.lbx-phone-mounted .phone {
  transform: rotateY(-9deg) rotateX(3deg) rotateZ(3deg);
  box-shadow: inset 0 0 0 1px #e2e9f3, 0 0 0 1px #d2deed, var(--shadow-device);
}
.lbx-phone-mounted .phone-summary { border: 0; }
.lbx-phone-mounted .phone-summary dl>div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-block: 6px;
  border-color: #eef2f7;
}
.lbx-phone-mounted .next-action {
  position: relative;
  inset: auto;
  width: auto;
  max-width: 100%;
  align-self: flex-end;
  box-shadow: var(--shadow-float);
}
.lbx-phone-controls { padding-top: 20px; }
.lbx-phone-progress { margin-bottom: 10px; min-height: 2em; }
.lbx-phone-buttons { gap: 10px; }
.lbx-phone-controls button { border-radius: 8px; }
.lbx-phone-open { margin-top: 8px; }
.lbx-phone-typing { margin-bottom: 0; }
.phone-top { font-size: 16px; margin-bottom: 20px; }
.phone-top .pill { background: #dfeaff; color: #124aab; font-size: 10px; padding: 5px 7px; }
.phone-property { border-color: #d6e0ef; padding-bottom: 16px; margin-bottom: 18px; }
.phone-property strong { font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.phone-property .eyebrow { font-size: 10px; letter-spacing: .06em; }
.phone-property>span:last-child { font-size: 12px; line-height: 1.5; }
.bubble { border: 0; background: #fff; border-radius: 14px 14px 14px 4px; padding: 13px; font-size: 14px; margin: 12px 18px 12px 0; box-shadow: 0 1px 2px #18344e08; }
.bubble.reply { border: 0; background: #dfeaff; color: #214e95; margin-left: 20px; margin-right: 0; }
.phone-summary { margin-top: 20px; padding: 16px 13px; border-radius: 14px; }
.phone-summary .eyebrow { margin-bottom: 10px; font-size: 10px; letter-spacing: .06em; }
.phone-summary dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-block: 6px; border-bottom: 1px solid #eef2f7; }
.phone-summary dt { font-size: 12px; }
.phone-summary dd { font-size: 14px; font-weight: 600; }
.phone-summary .status { font-size: 11px; margin-top: 14px; }
.next-action { position: relative; inset: auto; margin-top: 20px; align-self: flex-end; padding: 16px 18px; gap: 12px; border: 0; box-shadow: var(--shadow-float); border-radius: 14px; }
.next-action small { letter-spacing: .07em; font-size: 10px; }
.next-action strong { display: block; font-size: 13px; font-weight: 600; }
.action-icon { background: #e6efff; }
.scene-note { position: static; font-size: 10px; margin-top: 16px; line-height: 1.6; max-width: 32em; }
.phone-panel-link[hidden] { display: none; }
.phone-panel-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--blue); min-height: 44px; margin-top: 2px; }
.phone-panel-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.problem-strip { margin-top: 12px; padding-top: 28px; padding-bottom: 40px; gap: 48px; }
#demo { padding-top: 88px; }
#demo>.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: none; align-items: end; margin-bottom: 36px; }
#demo>.section-heading>p:last-child { margin-top: 0; font-size: 15px; }
.dashboard { border-radius: 16px; border: 1px solid #d0dced; box-shadow: none; }
.dashboard-top { padding: 24px 28px; background: #eff4fc; }
.dashboard-top strong { font-weight: 600; font-size: 17px; }
.dashboard-top .muted { font-size: 14px; }
.dashboard-top p { font-size: 12px; margin-top: 6px; }
.dashboard-body { padding: 28px; }
.dashboard-reading { margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.dashboard-reading p { max-width: 72ch; }
.dashboard-reading #origin-reading { margin-block: 12px; font-size: 14px; color: var(--ink); }
.segment-walkthrough { margin-block: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.segment-walkthrough .walkthrough-instruction { margin-top: 8px; font-size: 12px; }
.segment-walkthrough ol { list-style: decimal-leading-zero; padding-left: 28px; margin: 16px 0; }
.segment-walkthrough li { padding-left: 6px; margin: 0; border-bottom: 1px solid var(--line); }
.segment-walkthrough li::marker { color: var(--blue); font-size: 12px; font-variant-numeric: tabular-nums; }
.segment-walkthrough summary { cursor: pointer; min-height: 44px; padding-block: 12px; font-size: 14px; font-weight: 600; }
.segment-walkthrough details>p { font-size: 13px; margin-bottom: 12px; }
.segment-walkthrough .status { margin: 0 0 16px; }
.contact-brief { max-width: 600px; margin-top: 28px; }
.contact-brief>div { padding-block: 16px; border-top: 1px solid #c9d8ef; }
.contact-brief dt { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.contact-brief dd { font-size: 14px; line-height: 1.6; color: var(--muted); }
.metrics { gap: 0; border-block: 1px solid var(--line); padding-block: 20px; margin-bottom: 28px; }
.metric { padding: 4px 22px; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric>span { font-size: 12px; }
.metric strong { font-size: 36px; font-weight: 600; letter-spacing: -.04em; margin: 14px 0; font-variant-numeric: tabular-nums; }
.bar { height: 3px; }
.demo-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.contact-detail { min-width: 0; background: #f1f5fc; border-radius: 14px; padding: 28px; }
.contact-detail h3 { font-size: 25px; }
.detail-data div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; padding-block: 12px; line-height: 1.6; }
.detail-data dt { font-size: 11px; }
.detail-data dd { font-size: 12px; overflow-wrap: anywhere; }
.detail-next { border: 0; background: #e0eaff; color: #254c83; padding: 14px; border-radius: 8px; }
.contact-row { padding: 14px 10px; border-radius: 8px; }
.contact-row strong { font-size: 13px; font-weight: 600; }
.contact-row small { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.contact-row[aria-pressed=true] { box-shadow: inset 3px 0 var(--blue); }
.dashboard-foot { font-size: 12px; background: #f8fafd; }
.conversation-scene-mount:empty { display: none; }
@media (hover:hover) and (pointer:fine) {
  .hero .button:hover { background: #104bad; }
  .phone-panel-link:hover { text-decoration: underline; }
}
@media (max-width:1050px) {
  .hero { gap: 32px; }
  .hero h1 { font-size: 48px; }
  .phone { width: 310px; }
  .next-action { align-self: center; }
  .demo-detail-grid { gap: 20px; }
  .detail-data div { display: block; }
  .detail-data dt { margin-bottom: 4px; }
}
@media (max-width:760px) {
  .hero { padding-top: 36px; grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-copy { padding: 0; }
  .hero h1 { max-width: 10em; font-size: clamp(38px, 8.8vw, 52px); line-height: 1.1; }
  .hero .intro { font-size: 16px; max-width: 34em; }
  .hero .actions { gap: 12px 20px; }
  .hero-note { margin-top: 20px; font-size: 12px; }
  .phone-scene { padding: 8px 8px 0; max-width: 420px; width: 100%; }
  .phone-scene::before { inset: 60px 0 110px; border-radius: 38px; }
  .phone, .lbx-phone-mounted .phone { width: 320px; transform: none; }
  .phone-property>span:last-child { font-size: 12px; }
  .scene-caption { font-size: 12px; }
  .phone-summary dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .phone-summary dt { font-size: 12px; }
  .next-action { width: auto; max-width: 100%; padding: 16px; }
  .lbx-phone-mounted .next-action { align-self: center; }
  .next-action strong { font-size: 12px; }
  .scene-note { font-size: 11px; }
  .problem-strip { margin-top: 0; gap: 16px; }
  #demo { padding-top: 56px; }
  #demo>.section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .dashboard-top { padding: 20px 16px; }
  .dashboard-top .muted { font-size: 12px; }
  .dashboard-top p { font-size: 11px; max-width: 22em; }
  .dashboard-body { padding: 16px; }
  .metrics { gap: 20px; padding-block: 20px; }
  .metric { border: 0; padding: 0; }
  .metric:first-child { display: block; }
  .metric strong { font-size: 32px; margin-block: 10px; }
  .metric>span { font-size: 12px; }
  .metric:first-child .bar { max-width: none; }
  .demo-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-detail { padding: 22px; }
  .detail-data div { display: block; }
  .contact-row small { font-size: 12px; }
  .dashboard-foot { font-size: 11px; }
}
@media (max-width:359px) {
  .phone-scene { padding-inline: 0; }
  .phone { padding-inline: 12px; border-width: 6px; border-radius: 34px; }
  .phone::after { border-radius: 34px; }
  .phone-summary dl div { display: block; }
  .lbx-phone-mounted .phone-summary dl>div { display: block; }
  .phone-top { gap: 6px; }
  .phone-top .pill { font-size: 9px; }
  .next-action { padding: 12px; gap: 8px; }
  .metric { border: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .phone, .lbx-phone-mounted .phone { transform: none; }
}

.contact-email-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 18px; }
.contact-email-options p { display: grid; gap: 3px; margin: 0; font-size: 13px; }
.contact-email-options strong { color: var(--lb-ink, #103440); }
.contact-email-options a { width: fit-content; color: var(--lb-action, #103440); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .contact-email-options { grid-template-columns: 1fr; } }
