@font-face {
  font-family: Urbanist;
  src: url("assets/urbanist.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/ibm-plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #071b2d;
  --paper: #f4f5f1;
  --white: #f5f7ff;
  --muted: #adb5c9;
  --blue: #56b5ff;
  --deep-blue: #0057bd;
  --line: #30384c;
  --frame: min(100% - clamp(2rem, 9vw, 9rem), 90rem);
  --display: Urbanist, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "IBM Plex Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font: 1rem/1.5 var(--body); }
a { color: inherit; }
button, select { font: inherit; }
button { color: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.049em; }
section, #demo, [id^="caso-"], .product-list [id] { scroll-margin-top: 5.7rem; }
:focus-visible { outline: 2px solid #88a4ff; outline-offset: 5px; }
.frame { width: var(--frame); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; inset: .8rem auto auto 1rem; z-index: 5; background: var(--white); color: var(--ink); padding: .65rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.eyebrow { font: 600 .79rem/1.4 var(--mono); letter-spacing: .135em; text-transform: uppercase; }

.masthead { position: sticky; top: 0; z-index: 3; background: #081421; border-bottom: 1px solid #242e40; }
.masthead-inner { min-height: 4.75rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { display: block; width: 7.5rem; height: auto; }
.signature span, .hero h1 span, .tech-intro h2 span { color: var(--blue); }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.6vw, 2.65rem); }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 550; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.nav .nav-utility { color: #bac8dc; font-weight: 500; }
.nav .nav-utility:hover { color: var(--blue); }
.nav-contact { padding: .55rem .95rem; border: 1px solid #69738c; }
.menu-toggle { min-height: 44px; padding: .45rem .85rem; background: transparent; border: 1px solid #69738c; cursor: pointer; }
.menu-toggle[aria-expanded="true"] { background: var(--white); color: var(--ink); }

.hero { position: relative; isolation: isolate; overflow: clip; background: #04060f; border-bottom: 1px solid var(--line); }

.hero-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: clamp(38rem, 78svh, 55rem); padding-block: clamp(2.6rem, 6svh, 5.4rem); }
.hero-kicker { color: #d7dfff; display: inline-flex; align-items: center; gap: .7rem; margin-bottom: clamp(1.75rem, 3.2vw, 3rem); }
.hero-kicker span { inline-size: 1.35rem; block-size: 1px; background: var(--blue); }
.hero h1 { max-width: min(15.6ch, 53vw); font-size: clamp(3.45rem, min(5.8vw, 11.4svh), 7.15rem); line-height: .93; text-wrap: balance; }
.hero-lead { max-width: 37ch; margin-top: clamp(1.4rem, 2.25vw, 2.3rem); color: #d7dff2; font-size: clamp(1.08rem, 1.35vw, 1.36rem); }
.hero-lead a { color: #d5eaff; text-underline-offset: .18em; text-decoration-color: #80b9e6; }
.hero-lead a:hover { color: #fff; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.7rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.18rem; text-decoration: none; font-size: .95rem; font-weight: 700; transition: background-color 160ms ease, color 160ms ease; }
.button-light { color: var(--ink); background: var(--white); }
.button-light:hover { background: #d7e0ff; }
.bare-link { font-size: .95rem; font-weight: 650; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.bare-link:hover { color: var(--blue); }

.dark-section { background: var(--ink); }
.engineering, .work, .technology, .ai { padding-block: clamp(4.7rem, 9vw, 9.5rem); }
.section-intro { display: grid; justify-items: start; gap: 1.2rem; }
.section-intro h2, .contact h2 { font-size: clamp(2.9rem, 6.1vw, 6.8rem); text-wrap: balance; }
.section-intro > p:not(.eyebrow) { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.22rem); }
.dark-section .eyebrow { color: var(--blue); }
.dark-section .section-intro > p:not(.eyebrow) { color: var(--muted); }
.engineering { background: #081a2a; }
.engineering > .frame { display: grid; grid-template-columns: 1fr .83fr; gap: clamp(2.6rem, 7vw, 8rem); align-items: start; }
.engineering-intro h2 { font-size: clamp(2.9rem, 5.5vw, 6.25rem); text-wrap: initial; }
.services { border-top: 1px solid var(--line); }
.services details { border-bottom: 1px solid var(--line); }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
.services summary { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: clamp(1.19rem, 1.7vw, 1.7rem); font-weight: 600; letter-spacing: -.035em; }
.services summary:hover { color: var(--blue); }
.services details p { max-width: 48ch; color: var(--muted); margin-bottom: 1.4rem; }
.disclosure-icon { position: relative; display: inline-block; flex: 0 0 1rem; width: 1rem; height: 1rem; }
.disclosure-icon::before, .disclosure-icon::after { content: ""; position: absolute; top: calc(50% - .5px); left: .125rem; width: .75rem; height: 1px; background: currentColor; }
.disclosure-icon::after { transform: rotate(90deg); }
details[open] > summary .disclosure-icon::after { transform: rotate(0); }

.work { padding-top: clamp(3.6rem, 5.8vw, 6.5rem); padding-bottom: 0; color-scheme: light; background: var(--paper); color: #11131a; }
.work :focus-visible { outline-color: var(--deep-blue); }
.work-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .43fr); column-gap: 3rem; align-items: end; }
.work-intro .eyebrow { grid-column: 1 / -1; color: #344ba7; }
.work-intro h2 { text-wrap: initial; }
.work-path { display: grid; justify-items: start; gap: .45rem; }
.work-path p { max-width: 42ch; color: #444955; font-size: clamp(1rem, 1.3vw, 1.22rem); }
.work-path a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.work-path p a { font-weight: 675; color: #17439a; }
.work-contact { display: inline-flex; align-items: center; min-height: 2.75rem; color: #17439a; font-size: .95rem; font-weight: 700; }
.work-path a:hover { color: #11131a; }
.work-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .85rem 1.5rem; margin-block: clamp(1.75rem, 3.4vw, 3rem) 1.2rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filters button { min-height: 2.75rem; padding: .45rem .85rem; border: 1px solid #9599a0; background: transparent; cursor: pointer; font-size: .875rem; font-weight: 650; }
.filters button:hover { border-color: var(--deep-blue); color: var(--deep-blue); }
.filters button[aria-pressed="true"] { background: #11131a; color: var(--white); border-color: #11131a; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.35rem, 4.8vw, 5.6rem) clamp(1.4rem, 3.6vw, 4.1rem); }
.case-featured { grid-column: 1 / -1; }
@media (min-width: 62.01rem) {
  .work[data-view="todos"] .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr);
    align-items: end;
    gap: 2.7rem;
    background: #e6e9e7;
  }
  .case-featured .case-art { align-self: stretch; }
  .case-featured .case-content { padding: 1.6rem clamp(1.5rem, 3vw, 3.45rem) 1.8rem 0; }
}
.case-art { display: block; min-height: clamp(13.5rem, 29vw, 30rem); position: relative; overflow: hidden; color: white; text-decoration: none; background: var(--art-base); }
.case-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(.2, .75, .3, 1); }
.case-art:focus-visible { outline-offset: -4px; outline-color: #fff; }
.case-featured .case-art { min-height: clamp(17rem, 36vw, 39rem); }
.art-primor { --art-base: radial-gradient(ellipse at 75% 32%, #63382f 0%, #361d28 38%, #15121c 78%); }
.art-cupra { --art-base: radial-gradient(ellipse at 65% 35%, #7f5243 0%, #3e302c 42%, #191e22 76%); }
.art-pescanova { --art-base: radial-gradient(ellipse at 75% 45%, #296a71 0%, #193c57 45%, #0b1e2c 82%); }
@media (hover: hover) and (pointer: fine) { .case-art:hover img { transform: scale(1.025); } }
.case-content { padding-top: 1rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .18rem .75rem; align-items: baseline; color: #505562; font-size: .88rem; }
.case-meta strong { color: #324798; font-weight: 750; }
.case h3 { max-width: 26ch; margin: .5rem 0 .8rem; font-size: clamp(1.75rem, 3vw, 3.2rem); }
.case-featured h3 { font-size: clamp(2.2rem, 4.1vw, 4.5rem); }
.case-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 1.2rem; }
.case-actions .case-detail[open] { flex-basis: 100%; }
.case-detail summary { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-weight: 700; font-size: .9rem; color: #303e74; text-underline-offset: .24em; }
.case-detail summary:hover { text-decoration: underline; }
.case-detail p { padding: .3rem 0 .5rem; max-width: 53ch; color: #444955; }
.case-compact { border-top: 1px solid #bfc3c9; }
.case-compact h3 { font-size: clamp(1.6rem, 2.5vw, 2.65rem); }
.image-note { color: #505562; font-size: .82rem; }

.technology { background: #0d2741; border-top: 1px solid #2d4560; }
.technology-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); align-items: center; gap: clamp(2.4rem, 6vw, 7rem); }
.tech-intro h2 { font-size: clamp(2.85rem, 5.3vw, 6rem); text-wrap: initial; }
.tech-intro strong { color: var(--white); }
.demo { min-width: 0; background: #0b0e19; border: 1px solid #485474; }
.demo-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding: 1.05rem 1.25rem; border-bottom: 1px solid #485474; }
.demo-header strong { font-size: 1.3rem; letter-spacing: -.065em; }
.demo-header strong span { color: var(--blue); }
.demo-note, .demo-foot { color: #bbc3db; font-size: .82rem; }
.demo-body { padding: clamp(.75rem, 2.6vw, 2rem); }
.demo-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; }
.demo-controls label { display: grid; flex: 1 1 13.8rem; gap: .3rem; min-width: 0; font-size: .9rem; font-weight: 650; }
.demo-controls select { width: 100%; appearance: none; min-width: 0; min-height: 2.75rem; padding: .5rem 1.65rem .5rem .5rem; border: 1px solid #69738c; color: var(--white); border-radius: 0; background: linear-gradient(45deg, transparent 49%, currentColor 50%) calc(100% - 13px) 50% / 5px 5px no-repeat, linear-gradient(135deg, currentColor 49%, transparent 50%) calc(100% - 8px) 50% / 5px 5px no-repeat, #111624; }
.download { min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid #69738c; background: transparent; cursor: pointer; font-size: .9rem; font-weight: 650; }
.download:hover { color: var(--ink); background: #d7e0ff; }
.demo-result { color: #adbbf8; margin: 1.45rem 0 .6rem; font-size: .92rem; }
.demo table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; font-variant-numeric: tabular-nums; }
.demo table :is(th, td) { padding: .62rem .2rem; border-bottom: 1px solid var(--line); }
.demo table :is(th, td):not(:first-child) { text-align: right; }
.demo thead th { color: #bbc3db; font-weight: 500; white-space: nowrap; }
.demo tbody th { font-weight: 650; }
.demo-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; margin-top: .9rem; }
.demo-contact { display: inline-flex; align-items: center; min-height: 2.75rem; color: #bbd8ff; font-size: .9rem; font-weight: 650; text-underline-offset: .23em; }
.demo-contact:hover { color: var(--white); }

.contact { background: #0055ba; padding-block: clamp(3.9rem, 8vw, 8.8rem); }
.contact-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.contact .eyebrow { margin-bottom: 1rem; color: #e5eaff; }
.contact h2 { max-width: 11ch; text-wrap: initial; }
.contact .button { flex: 0 0 auto; }
.footer { padding-block: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.2rem; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer .signature { font-family: var(--display); font-size: 1.28rem; font-weight: 700; }

@media (max-width: 62rem) {
  .technology-grid { grid-template-columns: 1fr; }
  .technology .demo { max-width: 44rem; width: 100%; }
}
@media (max-width: 60rem) {
  .masthead-inner { gap: 1rem; }
  .brand img { width: 6.75rem; }
  .nav { gap: .8rem; }
}
@media (max-width: 56rem) {
  section, #demo, [id^="caso-"], .product-list [id] { scroll-margin-top: 4.75rem; }
  .masthead-inner { min-height: 4.1rem; flex-wrap: wrap; gap: .5rem; }
  .js .nav { position: absolute; inset: 100% 0 auto; padding: .65rem calc((100% - var(--frame)) / 2) 1rem; background: var(--ink); border-bottom: 1px solid var(--line); display: none; }
  .js .nav[data-open] { display: grid; }
  .nav { gap: .43rem 1rem; flex-wrap: wrap; margin-bottom: .55rem; }
  .nav a { width: max-content; }
  .nav-contact { padding: .4rem .7rem; }
  .js .nav a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 48rem) {
  .hero-inner { min-height: max(35rem, 83svh); justify-content: end; padding-block: 13rem 2.9rem; }
  .hero h1 { max-width: 13ch; font-size: clamp(3rem, 10.7vw, 5.5rem); }
  .hero-kicker { margin-bottom: 1.05rem; }
  .hero-lead { margin-top: 1rem; }
  .hero-links { margin-top: 1.45rem; }
  .engineering > .frame, .work-intro { grid-template-columns: 1fr; }
  .work-intro .eyebrow { grid-column: auto; }
  .contact-head { flex-direction: column; align-items: start; }
}
@media (max-width: 35rem) {
  .work-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .case-featured { grid-column: auto; }
}
@media (max-width: 23rem) {
  .hero h1 { font-size: 2.78rem; }
  .section-intro h2, .contact h2 { font-size: 2.65rem; }
  .demo table { font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .case-art:hover img { transform: none; }
}

.hero-image {
  position: absolute;
  inset: 0 0 0 44%;
  z-index: -1;
  background: url("assets/portada-proyectos.webp") center / cover no-repeat;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #04060f 0%, #04060fe0 18%, #04060fac 30%, #04060f00 49%),
    linear-gradient(0deg, #04060fba, #04060f00 28%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 420ms ease-out; }
.hero-video.has-frame { opacity: 1; }
.motion-toggle {
  position: absolute;
  z-index: 1;
  inset: auto max(calc((100% - var(--frame)) / 2), 1rem) 1rem auto;
  min-height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid #8a9bbb;
  background: #071321eb;
  color: var(--white);
  font-size: .88rem;
  cursor: pointer;
}
.motion-toggle:hover { background: #182d4d; }
.hero-credits { position: absolute; z-index: 1; inset: auto auto 1rem 56%; }
.hero-credit { display: grid; gap: .05rem; min-height: 2.75rem; padding: .38rem .65rem .45rem .75rem; border-left: 2px solid #8bafff; background: #071321ed; color: var(--white); text-decoration: none; }
.hero-credit strong { font-size: .94rem; }
.hero-credit span { color: #d1dcf2; font-size: .77rem; }
.hero-credit:hover strong { text-decoration: underline; text-underline-offset: .18em; }

.case-lead { color: #3d4553; max-width: 51ch; margin-bottom: .35rem; }
.case-detail p + p { margin-top: .5rem; }
.project-film { margin-top: clamp(3.7rem, 7vw, 7.75rem); padding-top: clamp(3.5rem, 6vw, 6rem); background: #063158; color: var(--white); }
.film-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .46fr); align-items: end; gap: 1.3rem 3rem; padding-bottom: clamp(1.75rem, 3.5vw, 3.2rem); }
.film-intro .eyebrow { color: var(--blue); }
.film-intro h2 { font-size: clamp(2.9rem, 5.7vw, 6.3rem); }
.film-intro > p { color: #ccd6e6; max-width: 39ch; }
.film-screen { position: relative; display: grid; place-items: center; isolation: isolate; min-height: clamp(17rem, 43vw, 45rem); background: #060918; }
.film-poster { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 2px; }
.film-poster::after { content: ""; position: absolute; inset: 0; background: #06091836; }
.film-poster span { position: relative; background: var(--art-base); }
.film-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-poster .art-primor img { object-position: 47% center; }
.film-poster .art-cupra img { object-position: 53% center; }
.film-poster .art-pescanova img { object-position: 64% center; }
.film-screen:has(video:not([hidden])) .film-poster { display: none; }
.film-screen video::cue { color: #fff; background-color: #071421eb; font-family: var(--body); font-size: clamp(1rem, 2.2vw, 2.2rem); font-weight: 600; }
.film-screen video::cue(.film-brand) { color: #b3deff; font-size: clamp(.82rem, 1.55vw, 1.55rem); font-weight: 700; }
.film-screen video { width: 100%; height: clamp(17rem, 43vw, 45rem); object-fit: contain; background: #060918; }
.film-toggle { display: inline-flex; gap: .7rem; align-items: center; min-height: 3rem; padding: .8rem 1.2rem; border: 1px solid #e1ebff; background: #0b1522ec; color: var(--white); font-weight: 650; cursor: pointer; }
.film-toggle:hover { background: #193859; }
.film-duration { color: #bfcde2; font-size: .82rem; font-weight: 450; }
.film-toggle[disabled] { cursor: default; }
.film-toggle[disabled] .play-icon { display: none; }
.film-screen :focus-visible { outline-color: #d3e5ff; }
.play-icon { width: 0; height: 0; border: solid transparent; border-width: .36rem 0 .36rem .57rem; border-left-color: currentColor; }

@keyframes editorial-appear {
  from { opacity: .3; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .editorial-appear { animation: editorial-appear 520ms cubic-bezier(.22, .75, .2, 1) both; }
}
@media (max-width: 48rem) {
  .hero-image { inset: 0 0 auto; height: min(50%, 25rem); background: url("assets/portada-proyectos-movil.webp") center / cover no-repeat; }
  .hero-image::after { background: linear-gradient(0deg, #04060f 0%, #04060fe0 19%, #04060f80 37%, #04060f00 64%); }
  .motion-toggle { inset: .75rem 1rem auto auto; }
  .hero-credits { inset: .75rem auto auto 1rem; max-width: 43%; }
  .hero-credit span { line-height: 1.2; }
  .film-intro { grid-template-columns: 1fr; }
}


.ai { background: #0d2541; }
.ai-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  grid-template-areas: "title visual" "practices visual";
  align-items: start;
  gap: clamp(2.2rem, 5vw, 5.6rem);
}
.ai-intro { grid-area: title; }
.ai-intro .eyebrow { color: var(--blue); }
.ai-intro h2 { font-size: clamp(3.1rem, 5.7vw, 6.5rem); text-wrap: initial; }
.ai-intro h2 span { display: block; color: #99cfff; }
.ai-visual {
  grid-area: visual;
  align-self: stretch;
  position: relative;
  margin: 0;
  min-height: clamp(20rem, 42vw, 47rem);
  background: radial-gradient(ellipse at 56% 70%, #22629f 0%, #122d50 42%, #091c31 77%);
}
.ai-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% center; }
.ai-visual figcaption { position: absolute; bottom: 0; right: 0; padding: .3rem .75rem; color: #edf5ff; background: #071421e8; font-size: .8rem; }
.ai-practices { grid-area: practices; display: grid; gap: 1.4rem; }
.ai-practices article { padding-top: 1.25rem; border-top: 1px solid #47627f; }
.ai-practices h3 { font-size: clamp(1.55rem, 2.4vw, 2.55rem); letter-spacing: -.03em; }
.ai-practices p { margin-top: .7rem; max-width: 58ch; color: #d0d9e9; }
.ai-related a { color: #afd9ff; text-underline-offset: .24em; }
.ai-related a:hover { color: var(--white); }
.ai-flow { display: flex; flex-wrap: wrap; gap: .3rem 0; margin: .95rem 0 .15rem; padding: 0; list-style: none; font-size: .88rem; font-weight: 650; color: #afd9ff; }
.ai-flow li { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.ai-flow li + li { margin-left: .7rem; }
.ai-flow li + li::before { content: ""; width: .3rem; height: .3rem; border-right: 1px solid #afd9ff; border-top: 1px solid #afd9ff; transform: rotate(45deg); }
@media (max-width: 48rem) {
  .ai-inner { grid-template-columns: 1fr; grid-template-areas: "title" "visual" "practices"; }
  .ai-visual { min-height: clamp(15rem, 70vw, 23rem); }
}

.case-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: #17439a; font-weight: 700; text-underline-offset: .24em; }
.case-link:hover { color: #11131a; }
.services summary small { display: block; margin-top: .12rem; color: #aebcd3; font: 500 .87rem/1.4 var(--body); letter-spacing: 0; }
.services details[open] summary { color: #91ceff; }
.service-examples { display: grid; gap: .75rem; margin: 0 0 1.5rem; }
.service-examples div { display: grid; gap: .1rem; }
.service-examples dt { color: var(--white); font-weight: 650; }
.service-examples dd { max-width: 45ch; margin: 0; color: var(--muted); }

.product-index {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid #3d5c79;
}
.product-intro h3 { max-width: 10ch; font-size: clamp(2.75rem, 4.7vw, 5.3rem); text-wrap: initial; }
.product-list { margin: 0; }
.product-list > div {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: .65rem clamp(1.2rem, 3vw, 3rem);
  padding-block: 1.18rem;
  border-bottom: 1px solid #3d5c79;
}
.product-list > div:first-child { padding-top: 0; }
.product-list dt { font: 700 clamp(1.4rem, 2.1vw, 2.2rem)/1.05 var(--display); letter-spacing: -.035em; }
.product-list dt span { display: block; margin-top: .28rem; color: #a8c9ec; font: 500 .85rem/1.35 var(--body); letter-spacing: 0; }
.product-list dd { margin: 0; color: #d0dceb; }

.company { padding-block: clamp(3.8rem, 7vw, 7.8rem); color-scheme: light; background: #e6e9e7; color: #11131a; }
.company-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); align-items: end; gap: 1.6rem clamp(2rem, 7vw, 8rem); }
.company .eyebrow { color: #344ba7; }
.company h2 { font-size: clamp(2.8rem, 5.7vw, 6.4rem); text-wrap: initial; }
.company-copy p { color: #3d4553; max-width: 41ch; margin-bottom: 1.1rem; }
.company .bare-link { color: #17439a; }
.footer-nav { display: flex; flex-wrap: wrap; column-gap: 1.15rem; margin-left: auto; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #d9e4f6; text-decoration: none; font-size: .875rem; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: .22em; }

@media (max-width: 73rem) {
  .footer-nav { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 48rem) {
  .product-index, .company-inner { grid-template-columns: 1fr; }
}
@media (max-width: 35rem) {
  .product-list > div { grid-template-columns: 1fr; gap: .4rem; }
}


.demo-body h3 { margin-bottom: 1.05rem; font-size: clamp(1.65rem, 2.8vw, 2.85rem); letter-spacing: -.03em; }
.offering-link { display: inline-block; margin-bottom: 1.35rem; color: #acd7ff; font-weight: 650; text-underline-offset: .23em; }
.offering-link:hover { color: var(--white); }
.lab-index { margin-top: clamp(2.7rem, 5vw, 4.6rem); padding: clamp(1.6rem, 3.5vw, 3.4rem); background: #071b2d; }
.lab-index .product-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.lab-index .product-list > div { border-color: #304967; }
.contact-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 3rem); margin: clamp(2rem, 4vw, 4rem) 0 0; padding: 0; list-style: none; }
.contact-routes li { padding-top: 1.2rem; border-top: 1px solid #b6d7ff; }
.contact-routes h3 { font-size: clamp(1.5rem, 2.6vw, 2.7rem); letter-spacing: -.035em; }
.contact-routes p { max-width: 40ch; margin-top: .65rem; color: #eef6ff; }
@media (max-width: 48rem) {
  .contact-routes { grid-template-columns: 1fr; }
}

.product-title-link { text-decoration-thickness: 1px; text-underline-offset: .16em; }
.product-title-link:hover { color: var(--blue); }

/* Editorial project layout: images and their stories stay together. */
.work-grid .case { scroll-margin-top: 5.7rem; min-width: 0; }
.work-grid .case-art { width: 100%; min-width: 0; aspect-ratio: 3 / 2; }
.work-grid .case-featured { background: #0b1726; color: #fff; }
.work-grid .case-featured .case-meta, .work-grid .case-featured .case-meta strong { color: #c5d9ff; }
.work-grid .case-featured .case-lead, .work-grid .case-featured .case-detail p { color: #e0e9f5; }
.work-grid .case-featured .case-link, .work-grid .case-featured .case-detail summary { color: #fff; }
@media (min-width: 62.01rem) {
  .work-grid .case-featured { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 0; }
  .work-grid .case-featured .case-art { min-height: clamp(25rem, 37vw, 38rem); }
  .work-grid .case-featured .case-content { padding: clamp(2rem, 4vw, 4.5rem); }
}
@media (max-width: 62rem) {
  .work-grid .case-featured .case-content { padding: 1.5rem; }
}

.conversion-inline { margin-top: 2rem; }
.conversion-inline a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 700; text-underline-offset: .25em; }

.offices { padding-block: clamp(4rem, 7vw, 7rem); background: #eaf0f6; color: #0b2039; }
.offices-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.offices-heading h2 { margin-top: .4rem; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; }
.offices-heading > p { max-width: 30ch; color: #38516a; }
.offices-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.offices-grid article { border-top: 2px solid #245eb6; padding-top: 1rem; }
.offices-grid h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.offices-grid address { min-height: 5rem; font-style: normal; line-height: 1.5; color: #30475e; }
.offices-grid a { display: block; width: fit-content; padding-block: .4rem; color: #064e9e; font-weight: 700; text-underline-offset: .2em; }
.offices-grid .offices-contact { margin-top: .4rem; }
@media (max-width: 65rem) { .offices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .offices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; } .offices-grid address { min-height: 0; } }
@media (max-width: 23rem) { .offices-grid { grid-template-columns: 1fr; } }

.contact-options { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(12rem, .5fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 4rem); }
.contact-form { display: grid; gap: 1.15rem; min-width: 0; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.contact-form label { display: grid; gap: .4rem; font-weight: 700; }
.contact-form label > span { font-weight: 400; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; min-width: 0; padding: .8rem; border: 1px solid #d5e4fa; border-radius: 0; background: #fff; color: #11131a; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid #ffe589; outline-offset: 2px; }
.contact-form .contact-privacy { display: flex; align-items: start; gap: .7rem; font-weight: 400; }
.contact-privacy input { margin-top: .35rem; flex: 0 0 auto; }
.contact-form a, .contact-alternatives a { color: inherit; text-underline-offset: .2em; }
.contact-form button { justify-self: start; cursor: pointer; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-status { min-height: 1.5em; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-alternatives h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-alternatives p { margin: .5rem 0; }
@media (max-width: 48rem) { .contact-options, .contact-fields { grid-template-columns: 1fr; } }
.challenge-paths { scroll-margin-top: 5.7rem; background: #e9f1fb; color: #102b43; padding-block: clamp(3rem, 6vw, 6rem); }
.challenge-paths h2 { margin: .6rem 0 2rem; font-size: clamp(2.3rem, 4.8vw, 4.6rem); }
.challenge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.challenge-grid article { border-top: 1px solid #8aa8c6; padding-top: 1.2rem; }
.challenge-grid h3 { font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.1; }
.challenge-grid p { margin: .7rem 0; color: #344c60; }
.challenge-grid a { display: block; width: fit-content; padding-block: .35rem; color: #174b89; font-weight: 700; }
.case-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.case-filters label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 700; }
.case-filters select, .case-filters button { min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid #8a98a5; background: white; color: #102b43; font: inherit; }
.case-filters button { cursor: pointer; font-weight: 700; }
#case-status, #case-empty { margin: .6rem 0; color: #344c60; }
@media (max-width: 62rem) { .challenge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .challenge-grid { grid-template-columns: 1fr; } .case-filters label, .case-filters select { width: 100%; } }

.challenge-grid a { min-height: 2.75rem; align-items: center; display: flex; text-underline-offset: .2em; }
.challenge-grid a:last-child { font-size: .9rem; font-weight: 600; color: #425d73; }

/* Hero projects: ordinary document flow is the accessible baseline. */
.hero { overflow: clip; background: #081421; }
.hero-stage { position: relative; display: flex; flex-direction: column; }
.hero-inner { order: 0; min-height: 0; padding-block: clamp(3.5rem, 6vw, 6rem) 2.5rem; }
.hero h1 { max-width: 15ch; }
.hero-showcase { order: 1; display: grid; gap: 1rem; width: var(--frame); margin: 0 auto 2rem; }
.hero-chapter { position: relative; background: #19324d; overflow: hidden; }
.hero-chapter img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: contain; background: #142a42; }
.hero-chapter-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding: .85rem 1rem; color: #fff; background: #102b44; }
.hero-chapter-caption p { font-size: .85rem; color: #d4e3f4; }
.hero-chapter-caption a { color: white; font-weight: 700; min-height: 2.75rem; display: inline-flex; align-items: center; text-underline-offset: .2em; }
.hero-chapter-nav { display: flex; gap: .6rem; }
.hero-chapter-nav button { min-height: 2.75rem; padding: .55rem .9rem; border: 1px solid #c6dbef; background: #0a2038; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hero-chapter-nav button[aria-pressed="true"] { background: #fff; color: #102b43; }
.hero-chapter-nav button:focus-visible { outline: 3px solid #ffdc78; outline-offset: 3px; }
@media (min-width: 64rem) and (min-height: 48rem) and (prefers-reduced-motion: no-preference) {
}
@media (max-width: 48rem) {
  .hero-inner { min-height: 0; padding-block: 3rem 2rem; }
  .hero h1 { max-width: 13ch; }
  .hero-chapter img { aspect-ratio: 1.5; }
}


/* Optional ambient footage: the projects remain usable without it. */
.hero-life-video, .hero-life-toggle { display: none; }
@media (min-width: 64rem) and (min-height: 48rem) and (prefers-reduced-motion: no-preference) {
  .hero-life-toggle:focus-visible { outline: 3px solid #ffdc78; outline-offset: 3px; }
}
.hero-stage { background-image: linear-gradient(#071526e8, #071526ee), url("assets/hero-vida-poster.webp"); background-position: center; background-size: cover; }

.hero-life-credit { order: 2; width: var(--frame); margin: 0 auto 1.2rem; color: #d5e7f7; font-size: .75rem; text-underline-offset: .2em; }

/* Unified editorial visual system, retaining the existing hero interaction. */
:root { --blue: #94efcf; --frame: min(100% - clamp(2rem, 9vw, 9rem), 86rem); }
h1, h2, h3 { line-height: 1.05; }
:focus-visible { outline: 3px solid #ffdc78; outline-offset: 4px; }
.button-light { background: #94efcf; color: #071b2d; }
.button-light:hover { background: #c6f9e6; }
.hero-chapter-nav button { border-color: #a6d6c8; background: #071b2de8; }
.hero-chapter-nav button[aria-pressed="true"] { background: #94efcf; border-color: #94efcf; color: #071b2d; }
.hero-chapter-caption { background: #102d40; }
.challenge-grid article { display: flex; flex-direction: column; }
.challenge-grid article p { flex: 1; }
.challenge-grid a:hover { color: #071b2d; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Keep the project in front and the background quiet. */
@media (min-width: 64rem) and (min-height: 48rem) and (prefers-reduced-motion: no-preference) {
}
:is(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #0059bf; outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.hero-chapter-nav button[aria-pressed="true"] { background: #071b2de8; color: #fff; border-color: #94efcf; box-shadow: inset 0 -3px #94efcf; }
@media (min-width: 64rem) and (min-height: 48rem) and (prefers-reduced-motion: no-preference) {
}
@media (max-width: 63.99rem), (max-height: 47.99rem), (prefers-reduced-motion: reduce) {
  .hero-stage { background-image: linear-gradient(135deg, #071526, #102d40); }
}

/* Natural hero: the project composition never depends on scrolling or JavaScript. */
.hero { overflow: hidden; }
.hero .hero-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: var(--frame); margin: 0 auto; min-height: min(79svh, 48rem); padding: clamp(2rem, 4vw, 4rem); background: linear-gradient(90deg, #071526f7 0%, #071526de 45%, #0715268c 100%), url('assets/hero-ciudades-poster.webp') center / cover; }
.hero .hero-life-video { display: block; position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .hero-stage::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #071526f7 0%, #071526e3 37%, #07152655 100%); }
.hero .hero-inner { position: relative; z-index: 1; display: flex; width: auto; min-height: 0; margin: 0; padding: 0; }
.hero h1 { max-width: 14ch; font-size: clamp(3rem, 4.6vw, 5.6rem); line-height: 1; }
.hero .hero-kicker { margin-bottom: 1.3rem; }
.hero .hero-lead { margin-top: 1.25rem; }
.hero .hero-links { margin-top: 1.5rem; }
.hero .hero-showcase { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; width: 100%; margin: 0; align-items: stretch; }
.hero .hero-project { position: relative; min-width: 0; margin: 0; background: #102d40; overflow: hidden; }
.hero .hero-project-primor { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.hero .hero-project img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.hero .hero-project-primor img { object-fit: cover; }
.hero .hero-project figcaption { position: absolute; inset: auto 0 0; padding: .5rem .65rem; color: #fff; background: #071526ed; font-size: .75rem; line-height: 1.25; }
.hero .hero-life-toggle:not([hidden]) { display: inline-flex; position: absolute; right: 1rem; bottom: 1rem; z-index: 3; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .8rem; border: 1px solid #c6dbef; color: white; background: #071526e8; font: inherit; cursor: pointer; }
@media (max-width: 63.99rem) {
  .hero .hero-stage { grid-template-columns: 1fr; min-height: 0; padding: 2.25rem 1.25rem; }
  .hero .hero-life-video { display: none; }
  .hero .hero-showcase { max-width: 46rem; }
  .hero h1 { font-size: clamp(2.8rem, 8vw, 4.8rem); }
}
@media (max-width: 40rem) {
  .hero .hero-showcase { grid-template-columns: 1fr 1fr; }
  .hero .hero-project-primor { grid-column: 1 / -1; grid-row: auto; }
  .hero .hero-project { aspect-ratio: 1.5; }
  .hero .hero-project figcaption { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .hero .hero-life-video { display: none; } }
@media (min-width: 40.01rem) {
  .hero .hero-showcase { aspect-ratio: 1.45; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .hero .hero-project-primor img, .hero .hero-project-binnacle img { object-fit: contain; }
}
/* Project compositions share the same stage; without motion they remain in normal flow. */
.hero .hero-showcase { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; aspect-ratio: auto; }
.hero .hero-scene { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; min-width: 0; }
.hero .hero-scene-first { aspect-ratio: 1.45; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.hero .hero-scene-first .hero-project-primor { grid-row: span 2; }
.hero .hero-scene-pair .hero-project { aspect-ratio: 1.15; }
.hero .hero-scene-pair img { object-fit: contain; }
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .hero.has-scenes .hero-showcase { display: block; aspect-ratio: 1.45; overflow: hidden; }
  .hero.has-scenes .hero-scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; }
  .hero.has-scenes.is-ready .hero-scene { transition: opacity 240ms ease, visibility 240ms; }
  .hero.has-scenes .hero-scene.is-active { opacity: 1; visibility: visible; }
  .hero.has-scenes .hero-scene-pair .hero-project { aspect-ratio: auto; }
}
@media (max-width: 40rem) {
  .hero .hero-scene-first { aspect-ratio: auto; grid-template-rows: auto; }
  .hero .hero-scene-first .hero-project-primor { grid-column: 1 / -1; grid-row: auto; }
  .hero .hero-scene-pair .hero-project { aspect-ratio: 1.5; }
}
@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .hero.has-scenes .hero-scene-pair { align-items: center; }
  .hero.has-scenes .hero-scene-pair .hero-project { aspect-ratio: 1.45; }
}
/* On compact or reduced-motion layouts, the still composition needs no poster download. */
@media (max-width: 63.99rem), (prefers-reduced-motion: reduce) {
  .hero .hero-stage { background-image: linear-gradient(135deg, #071526, #102d40); }
}

/* Hero v32 (2026-11-23): short copy + device composition over the video. */

/* --- Neutralise stacked legacy hero layers (order + .hero prefix wins). --- */
.hero .hero-kicker,
.hero .eyebrow.hero-kicker,
.hero figcaption {
  display: none;
}

.hero .hero-image,
.hero .hero-video,
.hero .hero-credits,
.hero .hero-credit,
.hero .hero-life-credit,
.hero .hero-chapter,
.hero .hero-chapter-caption,
.hero .hero-chapter-nav {
  display: none;
}

.hero .hero-project,
.hero .hero-project-primor,
.hero .hero-project-binnacle,
.hero .hero-scene,
.hero .hero-scene-first,
.hero .hero-scene-pair {
  position: static;
  display: block;
  grid-row: auto;
  grid-column: auto;
  min-width: 0;
  margin: 0;
  aspect-ratio: auto;
  background: none;
  overflow: visible;
}

.hero .hero-project img,
.hero .hero-project-primor img,
.hero .hero-project-binnacle img,
.hero .hero-scene img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
}

.hero.has-scenes .hero-showcase,
.hero.has-scenes.is-ready .hero-showcase {
  display: block;
  overflow: visible;
}

.hero.has-scenes .hero-scene,
.hero.has-scenes.is-ready .hero-scene,
.hero.has-scenes .hero-scene.is-active {
  position: static;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

/* --- Stage: full-bleed video + copy / devices composition. --- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #041626;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero .hero-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  width: 100%;
  margin: 0;
  min-height: min(82svh, 46rem);
  padding-block: clamp(2rem, 4.5vw, 4rem);
  padding-inline: max(1.25rem, calc((100% - var(--frame)) / 2));
  background-color: #041626;
  background-image:
    linear-gradient(90deg, #041626f2 0%, #061b31cc 42%, #092f5266 100%),
    url("assets/hero-ciudades-poster.webp");
  background-position: center;
  background-size: cover;
}

.hero .hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 68% at 78% 48%, rgba(18, 123, 205, 0.38) 0%, rgba(18, 123, 205, 0) 68%),
    linear-gradient(90deg, #041626 0%, #041626f5 26%, #041626d4 44%, #04162694 64%, #04162659 100%);
}

.hero .hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 39px,
      rgba(103, 186, 255, 0.055) 39px,
      rgba(103, 186, 255, 0.055) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 39px,
      rgba(103, 186, 255, 0.055) 39px,
      rgba(103, 186, 255, 0.055) 40px
    );
  mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.4) 62%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.4) 62%, #000 100%);
}

.hero .hero-life-video {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.hero.has-video .hero-life-video {
  opacity: 0.5;
}

.hero .hero-inner,
.hero .hero-devices,
.hero .hero-showcase {
  position: relative;
  z-index: 2;
}

.hero .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  order: 0;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.hero .hero-brandline {
  margin: 0 0 0.85rem;
  color: #67baff;
  font-family: var(--display);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.018em;
  line-height: 1.3;
  text-transform: none;
}

.hero h1 {
  max-width: min(13ch, 100%);
  font-size: clamp(3rem, 4.05vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero h1 span {
  color: #67baff;
}

.hero .hero-lead {
  max-width: min(42ch, 100%);
  margin-top: 1.15rem;
  color: #d5e0f0;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.45;
}

.hero .hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.9rem;
  margin-top: 1.55rem;
}

.hero .hero-links .button {
  border: 1px solid transparent;
  transition:
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.hero .hero-button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero .hero-links .button:focus-visible,
.hero .hero-life-toggle:focus-visible {
  outline: 3px solid #ffdc78;
  outline-offset: 3px;
  box-shadow: none;
}

.hero .hero-links .button:active {
  transform: scale(0.97);
}

/* --- Device cluster: fixed aspect-ratio so screenshots never shift layout. --- */
.hero .hero-showcase,
.hero .hero-devices {
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
  gap: 0;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1.22;
}

.hero .hero-device {
  position: absolute;
  margin: 0;
  padding: 0;
  background: #071422;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero .hero-device img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.hero .hero-device-browser {
  border-radius: 12px;
}

.hero .hero-device-browser::before {
  content: "";
  display: block;
  height: 24px;
  border-radius: 12px 12px 0 0;
  background-color: #102536;
  background-image:
    radial-gradient(circle closest-side at 14px 12px, #ff5f57 0 3.15px, transparent 3.4px),
    radial-gradient(circle closest-side at 28px 12px, #febc2e 0 3.15px, transparent 3.4px),
    radial-gradient(circle closest-side at 42px 12px, #28c840 0 3.15px, transparent 3.4px);
  background-repeat: no-repeat;
}

.hero .hero-device-browser img {
  aspect-ratio: 16 / 10;
  border-radius: 0 0 11px 11px;
}

.hero .hero-device-back {
  top: 0;
  right: 0;
  z-index: 1;
  width: 74%;
}

.hero .hero-device-back img {
  filter: brightness(0.8);
}

.hero .hero-device-front {
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 70%;
}

.hero .hero-device-phone {
  right: 3.5%;
  bottom: 0;
  z-index: 3;
  width: 24%;
  border: 7px solid #091018;
  border-radius: 28px;
  background: #091018;
}

.hero .hero-device-phone::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 42%;
  height: 12px;
  margin-left: -21%;
  pointer-events: none;
  background: #091018;
  border-radius: 0 0 9px 9px;
}

.hero .hero-device-phone img {
  aspect-ratio: 360 / 742;
  border-radius: 21px;
}

.hero .hero-life-toggle {
  display: none;
}

.hero .hero-life-toggle:not([hidden]) {
  display: inline-flex;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid #c6dbef;
  color: #fff;
  background: #071526e8;
  font: inherit;
  cursor: pointer;
}

@media (min-width: 64rem) {
  .hero .hero-life-video {
    display: block;
  }
}

@media (hover: hover) and (pointer: fine) {
  .hero .hero-button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.72);
  }

  .hero .hero-life-toggle:not([hidden]):hover {
    background: #0b2033;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .hero-device-back {
    animation: hero-device-float 8s ease-in-out infinite;
  }

  .hero .hero-device-front {
    animation: hero-device-float 7.1s ease-in-out 0.85s infinite;
  }

  .hero .hero-device-phone {
    animation: hero-device-float 6.4s ease-in-out 1.5s infinite;
  }
}

@keyframes hero-device-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .hero.has-scenes .hero-showcase,
  .hero.has-scenes.is-ready .hero-showcase {
    display: block;
    aspect-ratio: 1.22;
    overflow: visible;
  }

  .hero.has-scenes .hero-scene,
  .hero.has-scenes.is-ready .hero-scene,
  .hero.has-scenes .hero-scene.is-active,
  .hero.has-scenes .hero-scene-pair,
  .hero.has-scenes .hero-scene-pair .hero-project {
    position: static;
    inset: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    align-items: stretch;
    aspect-ratio: auto;
    transition: none;
  }
}

@media (max-width: 63.99rem) {
  .hero .hero-stage {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    gap: 1.35rem;
    padding-block: 1.75rem 1.5rem;
    background-image:
      linear-gradient(180deg, #041626f5 0%, #061b31eb 46%, #092f52d9 100%),
      url("assets/hero-ciudades-poster.webp");
    background-position: center;
    background-size: cover;
  }

  .hero .hero-stage::before {
    background:
      radial-gradient(ellipse 80% 45% at 70% 82%, rgba(18, 123, 205, 0.32) 0%, rgba(18, 123, 205, 0) 70%),
      linear-gradient(180deg, #041626f2 0%, #041626cc 42%, #04162680 100%);
  }

  .hero .hero-life-video,
  .hero .hero-life-toggle,
  .hero .hero-life-toggle:not([hidden]) {
    display: none;
  }

  .hero h1 {
    max-width: min(16ch, 100%);
    font-size: clamp(2.5rem, 5.6vw, 3.25rem);
    line-height: 1.04;
  }

  .hero .hero-lead {
    margin-top: 0.9rem;
  }

  .hero .hero-links {
    margin-top: 1.25rem;
  }

  .hero .hero-showcase,
  .hero .hero-devices {
    max-width: 34rem;
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 1.22;
  }
}

@media (max-width: 63.99rem), (prefers-reduced-motion: reduce) {
  .hero .hero-stage {
    background-color: #041626;
    background-image:
      linear-gradient(90deg, #041626f2 0%, #061b31cc 42%, #092f5266 100%),
      url("assets/hero-ciudades-poster.webp");
    background-position: center;
    background-size: cover;
  }
}

@media (max-width: 63.99rem) {
  .hero .hero-stage {
    background-image:
      linear-gradient(180deg, #041626f5 0%, #061b31eb 46%, #092f52d9 100%),
      url("assets/hero-ciudades-poster.webp");
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-life-video {
    display: none;
  }

  .hero .hero-device,
  .hero .hero-device-back,
  .hero .hero-device-front,
  .hero .hero-device-phone {
    animation: none;
  }
}

@media (max-width: 30rem) {
  .hero .hero-stage {
    gap: 1.1rem;
    padding-block: 1.2rem 1.15rem;
  }

  .hero .hero-brandline {
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 2.8rem);
    line-height: 1.05;
  }

  .hero .hero-lead {
    margin-top: 0.7rem;
    font-size: 1rem;
  }

  .hero .hero-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 1.05rem;
    gap: 0.65rem;
  }

  .hero .hero-links .button {
    width: 100%;
  }

  .hero .hero-device-browser::before {
    height: 22px;
  }

  .hero .hero-device-phone {
    border-width: 5px;
    border-radius: 22px;
  }

  .hero .hero-device-phone img {
    border-radius: 17px;
  }
}

/* Validation tweaks: the base .button has no border, so the ghost CTA gets one; same box as the primary. */
.hero .hero-links .button { border: 1px solid transparent; }
.hero .hero-links .hero-button-ghost { border-color: rgba(255, 255, 255, 0.5); }
.hero .hero-links .hero-button-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* /Hero v32 */

/* >>> HERO-ASTOUND v39 >>> */
/* Home hero, Astound-inspired (2026-11-23): one rounded cinematic panel with the project showreel,
   short headline bottom-left, capsule CTAs, panel floating on the light page.
   Layer is self-contained: every rule is scoped to .hero.hero-astound-v39. Rollback = delete this
   block + remove the class from the hero section (v32 rules below keep working). */
.hero.hero-astound-v39 { margin: 0; padding: 14px 12px 0; border: 0; background: #f7fafc; overflow: hidden; isolation: isolate; }
.hero.hero-astound-v39 .hero-stage {
  position: relative; isolation: isolate; display: block; width: 100%; max-width: none; margin: 0; padding: 0; gap: 0;
  min-height: 0; height: clamp(560px, calc(100svh - 150px), 780px); border-radius: 28px; overflow: hidden;
  background: #061a2f url("assets/hero-astound-v39.webp") center / cover no-repeat; box-shadow: 0 30px 60px -40px rgba(6, 26, 47, .55);
}
.hero.hero-astound-v39 .hero-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; display: block; mask-image: none;
  background:
    linear-gradient(0deg, #061a2ffa 0%, #061a2fe6 24%, #061a2f99 44%, #061a2f26 64%, #061a2f00 78%),
    radial-gradient(120% 70% at 0% 100%, #061a2fcc 0%, #061a2f66 45%, #061a2f00 70%);
}
.hero.hero-astound-v39 .hero-stage::after { content: none; display: none; }
.hero.hero-astound-v39 .hero-life-video {
  position: absolute; z-index: 0; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .7s ease; filter: none;
}
.hero.hero-astound-v39.has-video .hero-life-video { opacity: 1; }
.hero.hero-astound-v39 .hero-showcase,
.hero.hero-astound-v39 .hero-brandline,
.hero.hero-astound-v39 .hero-lead,
.hero.hero-astound-v39 .hero-kicker,
.hero.hero-astound-v39 figcaption { display: none; }
.hero.hero-astound-v39 .hero-inner {
  position: absolute; z-index: 2; inset: auto auto clamp(30px, 4.2vw, 56px) clamp(24px, 3.4vw, 56px);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  width: min(680px, calc(100% - 2 * clamp(24px, 3.4vw, 56px))); max-width: none; min-height: 0; margin: 0; padding: 0; order: 0;
}
.hero.hero-astound-v39 h1 {
  margin: 0; max-width: 18ch; color: #fff; font-family: Urbanist, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600; font-size: clamp(2.6rem, 3.9vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em;
  text-wrap: balance; overflow-wrap: normal; hyphens: manual;
}
.hero.hero-astound-v39 h1 span { color: #4da6ff; }
.hero.hero-astound-v39 .hero-links { display: flex; flex-flow: row wrap; align-items: center; gap: 12px; width: auto; margin: 28px 0 0; }
.hero.hero-astound-v39 .hero-links .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: auto; min-height: 50px;
  padding: 12px 22px; border: 1.5px solid transparent; border-radius: 999px; box-shadow: none;
  font: 600 15px/1.2 "IBM Plex Sans", Arial, sans-serif; letter-spacing: 0; text-align: center; text-decoration: none; white-space: normal;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hero.hero-astound-v39 .hero-links .button::after { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #007fff; }
.hero.hero-astound-v39 .hero-links .button-light { background: #fff; color: #061a2f; border-color: #fff; }
.hero.hero-astound-v39 .hero-links .button-light:hover { background: #dcecff; border-color: #dcecff; color: #061a2f; }
.hero.hero-astound-v39 .hero-links .hero-button-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .9); }
.hero.hero-astound-v39 .hero-links .hero-button-ghost:hover { background: #fff; color: #061a2f; border-color: #fff; }
.hero.hero-astound-v39 .hero-links .button:focus-visible { outline: 3px solid #ffdc78; outline-offset: 4px; }
.hero.hero-astound-v39 .hero-life-toggle:not([hidden]) {
  position: absolute; z-index: 3; right: 22px; bottom: 22px; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px;
  background: rgba(6, 26, 47, .72); color: #fff; font: 600 13px/1 "IBM Plex Sans", Arial, sans-serif; cursor: pointer;
}
.hero.hero-astound-v39 .hero-life-toggle:focus-visible { outline: 3px solid #ffdc78; outline-offset: 3px; }

/* Tablet and below: poster on top, copy on a navy panel beneath (no video). */
@media (max-width: 63.99rem) {
  .hero.hero-astound-v39 .hero-stage {
    height: auto; padding-top: calc((100vw - 24px) * .5625 - 40px);
    background: #061a2f url("assets/hero-astound-v39.webp") center top / 100% auto no-repeat;
  }
  .hero.hero-astound-v39 .hero-stage::before {
    background: linear-gradient(180deg, #061a2f00 0, #061a2f00 calc((100vw - 24px) * .5625 - 170px), #061a2fd9 calc((100vw - 24px) * .5625 - 60px), #061a2f calc((100vw - 24px) * .5625), #061a2f 100%);
  }
  .hero.hero-astound-v39 .hero-life-video,
  .hero.hero-astound-v39 .hero-life-toggle:not([hidden]) { display: none; }
  .hero.hero-astound-v39 .hero-inner { position: relative; inset: auto; width: auto; padding: 0 40px 44px; }
  .hero.hero-astound-v39 h1 { max-width: 20ch; font-size: clamp(2.2rem, 5.6vw, 3.2rem); }
}
@media (max-width: 30rem) {
  .hero.hero-astound-v39 { padding: 10px 10px 0; }
  .hero.hero-astound-v39 .hero-stage { border-radius: 22px; padding-top: calc((100vw - 20px) * .5625 - 18px); background-size: 100% auto; }
  .hero.hero-astound-v39 .hero-stage::before {
    background: linear-gradient(180deg, #061a2f00 0, #061a2f00 calc((100vw - 20px) * .5625 - 110px), #061a2fd9 calc((100vw - 20px) * .5625 - 30px), #061a2f calc((100vw - 20px) * .5625), #061a2f 100%);
  }
  .hero.hero-astound-v39 .hero-inner { align-items: stretch; padding: 0 22px 30px; }
  .hero.hero-astound-v39 h1 { max-width: none; font-size: clamp(1.95rem, 8.4vw, 2.3rem); line-height: 1.06; }
  .hero.hero-astound-v39 .hero-links { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
  .hero.hero-astound-v39 .hero-links .button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero.hero-astound-v39 .hero-life-video { display: none; }
  .hero.hero-astound-v39 .hero-links .button, .hero.hero-astound-v39 .hero-life-video { transition: none; }
}
/* <<< HERO-ASTOUND v39 <<< */
