@font-face {
  font-family: Instrument;
  src: url('assets/instrumentsans-v4-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: Jet;
  src: url('assets/jetbrainsmono-v24-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --paper: #f9f8f5;
  --white: #fff;
  --ink: #201e27;
  --muted: #555260;
  --blue: #3344ce;
  --blue-deep: #2938ab;
  --tint: #edf0fa;
  --line: #e0dfe5;
  --navy: #15182f;
  --night-ink: #f5f5fb;
  --night-muted: #c1c5db;
  --measure: 76rem;
  --gutter: clamp(1.15rem, 4.3vw, 4rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 Instrument, system-ui, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2, h3 { line-height: 1.09; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.architecture :focus-visible { outline-color: #aeb8ff; }
section[id] { scroll-margin-top: 1rem; }
.wrapper { width: min(100% - var(--gutter) * 2, var(--measure)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .6rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid var(--line); background: var(--white); }
.top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.8rem; min-height: 4.85rem; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .65rem; font-size: 1.67rem; line-height: 1; letter-spacing: -.055em; font-weight: 760; white-space: nowrap; }
.brand-mark { width: 36px; height: 32px; display: block; flex: none; background: currentColor; mask: url('assets/marca-orilla.png') -4px -4px / 103px 41px no-repeat; }
.nav { display: flex; align-items: center; gap: clamp(1.3rem, 3.2vw, 3.2rem); }
.nav a { padding-block: .45rem; font-size: .96rem; font-weight: 580; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.top-link { justify-self: end; border: 1px solid #cdcede; padding: .52rem .93rem; border-radius: .48rem; font-size: .91rem; font-weight: 680; white-space: nowrap; }
.top-link:hover { color: var(--blue); border-color: var(--blue); }

.hero { background: var(--paper); }
.hero-layout { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(1.8rem, 5vw, 5.05rem); padding-block: clamp(2.65rem, 5.6vw, 5.4rem) clamp(2.5rem, 4.4vw, 4rem); }
.eyebrow { margin-bottom: 1rem; font-size: .81rem; line-height: 1.35; font-weight: 710; color: var(--blue-deep); letter-spacing: .04em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: .55rem; }
.hero .eyebrow span { width: 1.25rem; height: 2px; flex: none; background: currentColor; }
.hero h1 { max-width: 42rem; font-size: clamp(3.3rem, 5.48vw, 5.9rem); line-height: .99; font-weight: 735; letter-spacing: -.072em; word-spacing: .045em; }
.hero h1 em { display: block; color: var(--blue); font-style: normal; }
.hero-intro { max-width: 29.5rem; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.04rem, 1.44vw, 1.17rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .68rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-height: 3.1rem; padding: .68rem 1.02rem; border: 1px solid transparent; border-radius: .52rem; font-weight: 680; font-size: .94rem; line-height: 1.24; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-deep); }
.outline { border-color: #c7c7d5; background: transparent; color: var(--ink); }
.outline:hover { color: var(--blue); border-color: var(--blue); }
.hero-device { position: relative; min-width: 0; overflow: hidden; border: 1px solid #d8dae9; border-radius: 1rem; background: #e7e8f2; }
.device-image { background: #e7e8f2; }
.device-image img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.hero-device figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; padding: .8rem 1.08rem; border-top: 1px solid #d8dae9; background: #f4f5fb; color: #52566d; font-size: .86rem; }
.hero-device figcaption span:first-child { display: inline-flex; align-items: center; gap: .35rem; color: #24294c; font-weight: 700; }
.hero-device figcaption .icon { width: 1rem; height: 1rem; color: var(--blue); }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: .7rem 2rem; flex-wrap: wrap; min-height: 4rem; padding-block: .7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.credits, .event { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.credits .vox { width: 8.1rem; height: auto; }
.event { color: #26243c; font-weight: 650; }
.event img { padding: .2rem; border-radius: .22rem; background: #22233a; }
.credit-divider { align-self: stretch; width: 1px; background: #d6d5dd; margin-inline: .35rem; }

.section-pad { padding-block: clamp(3.35rem, 6vw, 5.75rem); }
.solution { background: #fff; border-block: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1.16fr .84fr; align-items: end; gap: .05rem clamp(2rem, 9vw, 8.5rem); }
.section-intro .eyebrow { grid-column: 1 / -1; }
.section-intro h2, .story h2, .portal-call h2 { font-size: clamp(2.3rem, 4.2vw, 3.95rem); font-weight: 720; letter-spacing: -.062em; }
.section-intro > p:last-child, .story-lead, .portal-layout > div > p:last-child { font-size: 1.06rem; color: var(--muted); max-width: 39rem; padding-bottom: .16rem; }
.flow { list-style: none; padding: 0; margin-top: 2.2rem; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.flow li { padding: 1.45rem clamp(1rem, 3vw, 2.05rem) 1.65rem; }
.flow li:first-child { padding-left: 0; }
.flow li + li { border-left: 1px solid var(--line); }
.flow h3 { font-size: 1.35rem; font-weight: 720; margin-bottom: .48rem; letter-spacing: -.027em; }
.flow p { color: var(--muted); max-width: 21rem; }
.flow-icon { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; margin-bottom: .8rem; color: var(--blue); background: var(--tint); border-radius: .55rem; }

.story { background: #f0edf4; }
.story-layout { display: grid; grid-template-columns: .91fr 1.09fr; gap: clamp(2rem, 7.4vw, 6rem); align-items: center; }
.story-visual { border-radius: 1rem; position: relative; overflow: hidden; min-height: 31rem; background: #172c29; isolation: isolate; color: white; }
.story-visual > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 63%; }
.story-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #101220ec, #10122000 55%); z-index: 0; }
.story-visual-bottom { position: absolute; z-index: 1; bottom: 1.35rem; left: 1.35rem; right: 1.35rem; }
.story-visual .eyebrow { color: #f4f2fb; margin-bottom: .6rem; }
.story-visual .primary { color: var(--ink); background: white; }
.story-visual .primary:hover { color: var(--blue); background: #e9edff; }
.story-lead { margin-top: 1.1rem; max-width: 29rem; }
.story-steps { display: grid; margin-block: 1.3rem .75rem; }
.story-step { display: grid; grid-template-columns: 2.7rem 1fr; gap: .88rem; align-items: start; padding-block: .94rem; border-top: 1px solid #d7d3e1; }
.story-step h3 { font-size: 1.13rem; margin: .16rem 0 .3rem; }
.story-step p { color: var(--muted); }
.step-icon { background: #e0e3fb; color: var(--blue); border-radius: .5rem; height: 2.7rem; display: grid; place-items: center; }
.step-icon.wa { background: #dceae3; }
.story-result { display: flex; align-items: start; gap: .65rem; border-left: 2px solid #6572de; padding: .71rem .87rem; background: #e7e7f7; color: #363963; }
.story-result .icon { margin-top: .14rem; flex: none; }

.architecture { background: var(--navy); color: var(--night-ink); }
.architecture .eyebrow { color: #b0bbff; }
.architecture .section-intro > p:last-child, .architecture-flow p { color: var(--night-muted); }
.architecture strong { color: var(--night-ink); }
.architecture-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin-top: 2.3rem; border: 1px solid #474e74; border-radius: .7rem; background: #ffffff05; }
.architecture-flow li { padding: 1.23rem; }
.architecture-flow li + li { border-left: 1px solid #474e74; }
.architecture-flow .icon { color: #aebaff; margin-bottom: .55rem; }
.architecture-flow h3 { font-size: 1.16rem; margin-bottom: .38rem; }
.technical { margin-top: 1.1rem; border-bottom: 1px solid #474e74; }
.technical summary { display: list-item; cursor: pointer; min-height: 3rem; padding-block: .7rem; font-weight: 660; color: #c4caff; }
.technical summary:hover { color: white; }
.technical dl { margin: 0; padding-bottom: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.75rem; }
.technical dt { font-weight: 730; }
.technical dd { margin: .24rem 0 .65rem; color: var(--night-muted); }
.technical code { overflow-wrap: anywhere; font: .85em Jet, monospace; }

.portal-call { background: #eceefb; padding-block: clamp(2.65rem, 5vw, 4.5rem); }
.portal-layout { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; }
.portal-layout > div > p:last-child { margin-top: .72rem; }
.portal-layout .actions { margin: 0; }
.footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; padding-block: 1.3rem; gap: .65rem 1.5rem; }
.footer .brand { font-size: 1.35rem; }
.footer p { color: var(--muted); font-size: .88rem; }

dialog { width: min(95vw, 30rem); max-height: min(94svh, 57rem); border: 1px solid #c2c5da; border-radius: .75rem; padding: 0; background: white; color: var(--ink); }
dialog::backdrop { background: #121329de; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid #d6d8e9; }
.dialog-head h2 { font-size: 1.06rem; }
.close { width: 2.25rem; height: 2.25rem; border: 1px solid #c6c8d7; background: transparent; border-radius: .34rem; cursor: pointer; font-size: 1.46rem; line-height: 1; }
.close:hover { color: var(--blue); }
dialog video { display: block; width: 100%; max-height: 82svh; background: #080d0e; }

@media (max-width: 59rem) {
  .hero-layout { gap: 1.65rem; }
  .hero h1 { font-size: clamp(3rem, 6.65vw, 4.4rem); }
  .story-layout { gap: 2rem; }
  .story-visual { min-height: 27rem; }
}
@media (max-width: 46rem) {
  .top-inner { min-height: 0; column-gap: .6rem; row-gap: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .top-inner .brand { grid-column: 1 / -1; min-height: 3.65rem; }
  .nav { gap: clamp(.56rem, 2.7vw, 1.5rem); min-height: 2.65rem; padding-bottom: .26rem; }
  .nav a { font-size: .86rem; }
  .top-link { font-size: .84rem; padding: .38rem .62rem; margin-bottom: .27rem; }
  .hero-layout, .story-layout, .section-intro { grid-template-columns: 1fr; }
  .hero-layout { padding-block: 2.25rem 1.5rem; gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.64rem, 10.4vw, 5.25rem); }
  .hero-intro { margin-top: 1.05rem; }
  .hero-device { border-radius: .72rem; }
  .section-intro > p:last-child { margin-top: .68rem; }
  .flow { margin-top: 1.5rem; grid-template-columns: 1fr; }
  .flow li, .flow li:first-child { padding: .97rem 0; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .7rem; }
  .flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .flow h3 { grid-column: 2; margin-top: .14rem; }
  .flow p { grid-column: 2; max-width: none; }
  .flow-icon { grid-row: span 2; margin-bottom: 0; }
  .story-copy { grid-row: 1; }
  .story-visual { min-height: 23rem; }
  .architecture-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.65rem; }
  .architecture-flow li:nth-child(3) { border-left: 0; }
  .architecture-flow li:nth-child(n+3) { border-top: 1px solid #474e74; }
}
@media (max-width: 31rem) {
  .top-link span { display: none; }
  .credits { gap: .37rem; font-size: .75rem; }
  .credits .vox { width: 6rem; }
  .credit-divider { margin-inline: .12rem; }
  .event { gap: .28rem; }
  .event img { width: 1.35rem; height: 1.35rem; }
  .architecture-flow li { padding: .89rem; }
  .technical dl { grid-template-columns: 1fr; gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.contact-section { background: var(--paper); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(15rem, .78fr) minmax(0, 1.22fr);
  overflow: hidden;
  max-width: 70rem;
  padding: 0;
  border: 1px solid #dcdce6;
  border-radius: .9rem;
  background: var(--white);
}
.contact-intro {
  padding: clamp(1.3rem, 3.8vw, 3.1rem);
  border-right: 1px solid #dcdce6;
  background: linear-gradient(142deg, #f6f5f2 24%, #edf0f9 100%);
}
.contact-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid #d1d6ef;
  border-radius: .75rem;
  background: var(--white);
  color: var(--blue-deep);
}
.contact-mark .brand-mark { transform: scale(.82); }
.contact-intro h2 {
  max-width: 13ch;
  font-size: clamp(2.05rem, 3.6vw, 3rem);
  font-weight: 720;
  letter-spacing: -.052em;
  line-height: 1.04;
}
.contact-intro p {
  max-width: 28ch;
  margin-top: .72rem;
  color: var(--muted);
  font-size: 1.03rem;
}
.contact-action { min-width: 0; padding: clamp(1.3rem, 3.8vw, 3.1rem); }
@media (max-width: 54rem) {
  .top-inner { column-gap: .75rem; }
  .nav { gap: clamp(.7rem, 2vw, 1.3rem); }
}
@media (max-width: 46rem) {
  .top-inner .brand { grid-column: 1; grid-row: 1; }
  .top-link { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    column-gap: clamp(.4rem, 2.25vw, 1.3rem);
    flex-wrap: wrap;
  }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-intro { border-right: 0; border-bottom: 1px solid #dcdce6; }
  .contact-intro h2 { max-width: none; }
  .contact-intro p { max-width: none; }
  .contact-mark { margin-bottom: .8rem; }
}

.callback-card {
  min-width: 0;
  color: var(--ink, #201e27);
  font: 1rem/1.5 Instrument, system-ui, sans-serif;
}

.callback-card .callback-summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding-block: .28rem .48rem;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
}

.callback-card[open] .callback-summary {
  border-bottom-color: var(--line, #e0dfe5);
}

.callback-card .callback-summary::-webkit-details-marker {
  display: none;
}

.callback-card .callback-summary:hover {
  color: var(--blue-deep, #2938ab);
}

.callback-card .callback-toggle {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--blue-deep, #2938ab);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.callback-card[open] .callback-toggle {
  transform: rotate(180deg);
}

.callback-card .callback-body {
  display: grid;
  gap: 1.15rem;
  padding-top: 1.05rem;
}

.callback-card .callback-fields,
.callback-card .callback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1rem;
}

.callback-card .callback-field {
  display: grid;
  flex: 1 1 13.75rem;
  min-width: 0;
  gap: .36rem;
}

.callback-card label {
  font-size: .925rem;
  font-weight: 650;
}

.callback-card input,
.callback-card select,
.callback-card button {
  box-sizing: border-box;
  min-height: 2.875rem;
  padding: .55rem .78rem;
  border: 1px solid var(--callback-control-line, #95929f);
  border-radius: .48rem;
  background: var(--white, #fff);
  color: var(--ink, #201e27);
  font: inherit;
}

.callback-card input,
.callback-card select {
  min-width: 0;
  width: 100%;
}

.callback-card input::placeholder {
  color: var(--muted, #555260);
  opacity: 1;
}

.callback-card select {
  padding-inline-end: 1.6rem;
}

.callback-card .callback-summary:focus-visible,
.callback-card input:focus-visible,
.callback-card select:focus-visible {
  outline: 2px solid var(--blue, #3344ce);
  outline-offset: 2px;
}

.callback-card .callback-actions {
  align-items: center;
  row-gap: .55rem;
}

.callback-card button:disabled {
  max-width: 100%;
  padding-inline: 1rem;
  border-color: var(--line, #e0dfe5);
  background: var(--tint, #edf0fa);
  color: var(--muted, #555260);
  font-size: .925rem;
  font-weight: 680;
  opacity: 1;
}

.callback-card .callback-actions p {
  flex: 1 1 16rem;
  margin: 0;
  color: var(--muted, #555260);
  font-size: .875rem;
  line-height: 1.45;
}

.callback-card .callback-actions strong {
  color: var(--ink, #201e27);
  font-weight: 700;
}
