/* Daedalus Engineers · estilos
   Marca: Dark Teal #023D47 · Teal #3FB5B9 · Pearl Aqua #7ADADD · Light Cyan #C8E9EB
   Tipografías: Space Grotesk (titulares) + Inter (texto).
   Criterio: claro, con aire y poco texto. Las ilustraciones son dibujo técnico, no foto. */

@font-face{font-family:"Space Grotesk";src:url(fonts/space-grotesk-var.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url(fonts/inter-var.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

:root {
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* tema claro */
  --bg: #ffffff;
  --bg-alt: #f1f8f8;
  --card: #f4fafa;
  --tile: #dff1f2;
  --fg: #023d47;
  --fg-muted: #3f6a73;
  --line: #d6e8ea;
  --line-strong: #a9cdd1;
  --accent: #3fb5b9;
  --link: #0b6f78;
  --btn-bg: #023d47;
  --btn-fg: #ffffff;
  --btn-hover-bg: #0b6f78;
  --btn-hover-fg: #ffffff;
  --header-bg: #ffffff;
  --field-bg: #ffffff;
  --focus: #0b6f78;
  --show-on-light: block;
  --show-on-dark: none;

  --hero-bg: #c8e9eb;
  --hero-fg: #023d47;
  --hero-muted: #1f5560;
  --il-ink: #023d47;
  --il-fill: rgba(255, 255, 255, 0.65);

  /* pie: banda de marca constante */
  --foot-bg: #023d47;
  --foot-fg: #ffffff;
  --foot-muted: #c8e9eb;

  --radius: 8px;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #01262d;
    --bg-alt: #02303a;
    --card: #022f38;
    --tile: #04424e;
    --fg: #e7f4f5;
    --fg-muted: #9dc3c8;
    --line: #11464f;
    --line-strong: #226471;
    --link: #7adadd;
    --btn-bg: #7adadd;
    --btn-fg: #023d47;
    --btn-hover-bg: #c8e9eb;
    --btn-hover-fg: #023d47;
    --header-bg: #01262d;
    --field-bg: #023742;
    --focus: #7adadd;
    --show-on-light: none;
    --show-on-dark: block;
    --hero-bg: #023d47;
    --hero-fg: #ffffff;
    --hero-muted: #c8e9eb;
    --il-ink: #7adadd;
    --il-fill: rgba(63, 181, 185, 0.22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #01262d;
  --bg-alt: #02303a;
  --card: #022f38;
  --tile: #04424e;
  --fg: #e7f4f5;
  --fg-muted: #9dc3c8;
  --line: #11464f;
  --line-strong: #226471;
  --link: #7adadd;
  --btn-bg: #7adadd;
  --btn-fg: #023d47;
  --btn-hover-bg: #c8e9eb;
  --btn-hover-fg: #023d47;
  --header-bg: #01262d;
  --field-bg: #023742;
  --focus: #7adadd;
  --show-on-light: none;
  --show-on-dark: block;
  --hero-bg: #023d47;
  --hero-fg: #ffffff;
  --hero-muted: #c8e9eb;
  --il-ink: #7adadd;
  --il-fill: rgba(63, 181, 185, 0.22);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--header-bg);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--link);
  text-underline-offset: 0.22em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 10px 16px;
  border-radius: var(--radius);
}
.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 8px);
}

/* contenedor: único sitio con el margen lateral */
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  padding-block: clamp(44px, 7vw, 88px);
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 56ch;
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

/* ---------- cabecera ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  padding-block: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: block;
  flex: none;
  line-height: 0;
}
.brand img {
  height: 24px;
  width: auto;
}
.on-light {
  display: var(--show-on-light);
}
.on-dark {
  display: var(--show-on-dark);
}
.site-nav {
  display: none;
  gap: 28px;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--fg);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  border-bottom-color: var(--accent);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang {
  display: flex;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 0.875rem;
}
.lang a,
.lang span {
  padding: 6px 8px;
  text-decoration: none;
  border-radius: 4px;
}
.lang a {
  color: var(--fg-muted);
}
.lang a:hover {
  color: var(--fg);
  background: var(--bg-alt);
}
.lang [aria-current="true"] {
  color: var(--fg);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
}
@media (min-width: 920px) {
  .site-nav {
    display: flex;
  }
}
@media (max-width: 420px) {
  .header-tools .btn {
    display: none;
  }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-fg);
}
.btn--small {
  padding: 10px 18px;
  font-size: 0.9375rem;
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.hero .btn--ghost {
  border-color: var(--hero-fg);
  color: var(--hero-fg);
}
.btn--ghost:hover {
  background: rgba(2, 61, 71, 0.08);
  color: var(--fg);
}
.hero .btn--ghost:hover {
  color: var(--hero-fg);
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- utilidades ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.services h2,
.origin h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem);
  letter-spacing: -0.02em;
}

/* apariciones al hacer scroll (solo si el script está activo) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
  transition-delay: var(--rd, 0ms);
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- cabecera sobre el hero ---------- */
.site-header.is-ready {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.site-header--overlay.is-top {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header--overlay.is-top .site-nav a,
.site-header--overlay.is-top .lang [aria-current="true"] {
  color: #ffffff;
}
.site-header--overlay.is-top .lang a {
  color: rgba(255, 255, 255, 0.7);
}
.site-header--overlay.is-top .lang a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.site-header--overlay.is-top .on-light {
  display: none;
}
.site-header--overlay.is-top .on-dark {
  display: block;
}
.site-header--overlay.is-top .btn {
  background: #7adadd;
  color: #023d47;
}
body:has(.site-header--overlay.is-top)::before {
  background: transparent;
}

/* ---------- hero (siempre oscuro, como una pieza audiovisual) ---------- */
.hero {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  color: #ffffff;
  background: radial-gradient(120% 90% at 50% 42%, #03505d 0%, #023d47 40%, #01262d 100%);
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  min-height: max(640px, 100svh);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero__inner {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: clamp(32px, 7vh, 88px) clamp(20px, 4vh, 36px);
}
.hero__content {
  margin: auto;
  width: 100%;
  max-width: 920px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.hero__title {
  width: min(820px, 100%);
  line-height: 0;
}
.wm {
  width: 100%;
  height: auto;
  fill: #ffffff;
}
.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.75rem + 1.3vw, 1.75rem);
  letter-spacing: 0.01em;
  color: #7adadd;
  margin-top: -2px;
}
.hero__lead {
  max-width: 52ch;
  color: #c8e9eb;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  margin-top: 8px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.hero .btn {
  background: #7adadd;
  color: #023d47;
}
.hero .btn:hover {
  background: #c8e9eb;
  color: #023d47;
}
.hero .btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(122, 218, 221, 0.16);
  border: 1px solid rgba(122, 218, 221, 0.22);
  border-radius: 16px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__facts li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 2px;
  align-content: start;
  padding: 16px 18px;
  background: rgba(1, 38, 45, 0.62);
}
.sec-ic {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #7adadd;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__facts strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.25;
  color: #ffffff;
}
.hero__facts span {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #9dc3c8;
}
@media (max-width: 560px) {
  .hero__facts li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    padding: 14px;
  }
  .sec-ic {
    grid-row: auto;
    width: 26px;
    height: 26px;
  }
  .hero__facts span {
    display: none;
  }
}
@media (min-width: 820px) {
  .hero__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero__facts li {
    padding: 20px 24px;
  }
}

/* coreografía del logotipo: contorno trazado letra a letra (de fuera hacia dentro) y relleno.
   Sin script se reproduce sola (--go = 3 s); con script arranca cuando la luz llega (--go = 0). */
.hero {
  --go: 3000ms;
}
.hero.is-go {
  --go: 0ms;
}
.wm-o path {
  fill: none;
  stroke: #c8e9eb;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: wm-draw 1.3s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--go) + var(--o, 0) * 110ms) both,
    wm-out 0.8s ease calc(var(--go) + 1900ms) both;
}
.wm-l {
  animation: wm-fill 1s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--go) + 1050ms + var(--o, 0) * 110ms) both;
}
.hero__tag {
  animation: tag-in 1.2s var(--ease-out) calc(var(--go) + 1700ms) both;
}
.hero__lead {
  animation: up-in 1s var(--ease-out) calc(var(--go) + 2000ms) both;
}
.hero__cta {
  animation: up-in 1s var(--ease-out) calc(var(--go) + 2150ms) both;
}
.hero__facts {
  animation: up-in 1.1s var(--ease-out) calc(var(--go) + 2350ms) both;
}
.hero.is-js:not(.is-go) :is(.wm-o path, .wm-l, .hero__tag, .hero__lead, .hero__cta, .hero__facts) {
  animation-play-state: paused;
}
@media (max-width: 640px) {
  .wm-o path {
    stroke-width: 3.5;
  }
}
@keyframes wm-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes wm-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes wm-fill {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tag-in {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.3;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}
@keyframes up-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero :is(.wm-o path, .wm-l, .hero__tag, .hero__lead, .hero__cta, .hero__facts) {
    animation: none !important;
  }
}

/* ---------- servicios: láminas técnicas ---------- */
.services {
  --art-bg: #fbfdfd;
  --sc-ink: #023d47;
  --sc-acc: #2a9da1;
  --sc-paper: #ffffff;
}
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
  }
  .tile--wide {
    grid-column: span 2;
  }
}
@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  /* en tres columnas la llamada a la acción cierra la rejilla a lo ancho, en horizontal */
  .bento > .tile--cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 0;
    padding: 36px 44px;
  }
  .bento > .tile--cta .tile__num {
    display: none;
  }
  .bento > .tile--cta .tile__go {
    align-self: center;
    flex: none;
  }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: var(--fg);
}
.tile:hover {
  border-color: var(--line-strong);
}
.tile__art {
  background: var(--art-bg);
  border-bottom: 1px solid var(--line);
  padding: 12px;
  aspect-ratio: 400 / 236;
}
.tile--wide .tile__art {
  aspect-ratio: 640 / 236;
}
.tile__art .sc {
  display: block;
  width: 100%;
  height: 100%;
}
.tile__body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 24px 26px;
}
.tile__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--link);
}
.tile h3 {
  font-size: 1.3rem;
}
.tile p {
  color: var(--fg-muted);
  font-size: 0.97rem;
}
/* trazo de las láminas */
.sc path {
  fill: none;
  stroke: var(--sc-ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc .m {
  stroke-width: 0.9;
  opacity: 0.55;
}
.sc .a {
  stroke: var(--sc-acc);
  stroke-width: 1.6;
  opacity: 1;
}
.sc .f {
  fill: var(--sc-paper);
}
.sc .k {
  fill: var(--sc-ink);
}
.sc .x {
  stroke-dasharray: 5 4;
}
.sc .xd {
  stroke-width: 0.8;
  stroke-dasharray: 14 3 2 3;
  opacity: 0.5;
}
.sc .L0 path {
  stroke-width: 0.9;
  opacity: 0.6;
}
.sc text {
  font-family: var(--font-display);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  fill: var(--sc-ink);
}
.sc .L0 text {
  font-size: 7px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}
/* pluma del plotter y cursor CAD (los crea el script) */
.sc .pen path {
  fill: none;
  stroke: var(--sc-acc);
  stroke-width: 1;
}
.sc .pen .pen-dot {
  fill: var(--sc-acc);
  stroke: none;
}
.sc .cad path {
  fill: none;
  stroke: var(--sc-acc);
  stroke-width: 0.6;
  opacity: 0.75;
}
.sc .cad .pick {
  stroke-width: 1;
  opacity: 1;
}
.sc .cad text {
  fill: var(--sc-acc);
  opacity: 1;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.tile__art .sc {
  cursor: crosshair;
}
/* capa de funcionamiento: solo visible cuando el script la ejecuta */
.sc .op {
  visibility: hidden;
}
.sc.op-on .op {
  visibility: visible;
}
.sc .op path {
  fill: none;
  stroke: var(--sc-acc);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sc .op .op-path {
  stroke: none;
}
.sc .op .op-air {
  stroke-width: 1;
  stroke-dasharray: 2.5 2.5;
  opacity: 0;
}
.sc .op .op-walker path,
.sc .op .op-token path {
  fill: var(--sc-acc);
  stroke: none;
}
.sc .op .op-fill {
  fill: var(--sc-acc);
  fill-opacity: 0.3;
  stroke: none;
  transform-box: fill-box;
  transform-origin: 0 50%;
}
.sc .op .op-now path,
.sc .op .op-dim {
  stroke-width: 1;
}
.sc .op .op-ring {
  stroke-width: 1.3;
}
.sc .op .op-hl {
  stroke-width: 1.4;
}
.sc .op text {
  fill: var(--sc-acc);
}
.sc .op .op-room {
  fill: var(--sc-acc);
  fill-opacity: 0.16;
  stroke: none;
}
.sc .op .op-tick,
.sc .op .op-eql {
  stroke-width: 1.3;
}
.sc .op .op-adim,
.sc .op .op-stamp,
.sc .op .op-det,
.sc .op .op-ld {
  stroke-width: 1.1;
}
.sc .op .op-ihl {
  stroke-width: 1.6;
}
.sc .op .op-detl {
  stroke-width: 0.9;
  stroke-dasharray: 3 2.5;
}
.sc .op .op-crk {
  stroke-width: 1.2;
}
.sc .op .op-pulse {
  stroke-width: 1.2;
}
.sc .op .op-bubc {
  fill: var(--sc-paper);
  stroke-width: 1.1;
}
.sc .op .op-bubt {
  font-size: 6.5px;
  letter-spacing: 0;
}
.sc .op .op-ret path {
  stroke-width: 1.1;
}
.sc .op .op-mkx {
  stroke: var(--sc-ink);
}
.sc .op .op-resx {
  fill: var(--sc-ink);
  font-weight: 600;
}
.sc .op .op-eqf {
  fill: var(--sc-acc);
  stroke: none;
}
.sc .op .op-eq,
.sc .op .op-stampt,
.sc .op .op-pulse,
.sc .op .op-bub {
  transform-box: fill-box;
  transform-origin: center;
}
.sc .op .op-stampt {
  font-weight: 600;
  letter-spacing: 0.16em;
}


.tile--cta {
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  min-height: 240px;
  text-decoration: none;
  color: #ffffff;
  background: #023d47;
  border-color: #023d47;
}
.tile--cta .tile__num {
  color: #7adadd;
  font-size: 1.6rem;
  letter-spacing: 0;
}
.tile--cta h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1.12;
}
.tile--cta p {
  color: #c8e9eb;
}
.tile__cta-text {
  display: grid;
  gap: 8px;
}
.tile__go {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  align-self: start;
  font-family: var(--font-display);
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  background: #7adadd;
  color: #023d47;
  transition: gap 0.3s ease;
}
.tile--cta:hover {
  border-color: #3fb5b9;
}
.tile--cta:hover .tile__go {
  gap: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.chips li {
  font-size: 0.8125rem;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: var(--bg);
}

/* ---------- origen ---------- */
.origin {
  position: relative;
  color: #ffffff;
  background: linear-gradient(180deg, #01262d 0%, #023d47 55%, #01262d 100%);
}
.origin__wrap {
  padding-block: clamp(64px, 8vw, 112px) clamp(40px, 5vw, 64px);
}
.origin__head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.origin .eyebrow {
  color: #7adadd;
}
.origin__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.origin__text {
  display: grid;
  gap: 20px;
  align-content: center;
}
.origin__lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.4rem);
  line-height: 1.5;
  color: #ffffff;
}
.origin__p {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.65;
  color: #c8e9eb;
}
.origin__close {
  margin-top: clamp(36px, 4.5vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #7adadd;
  text-align: center;
  text-wrap: balance;
}
@media (min-width: 720px) {
  .origin__close {
    white-space: nowrap;
  }
}
@media (min-width: 960px) {
  .origin__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }
}

/* plano */
.om {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.om text {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.12em;
  fill: rgba(200, 233, 235, 0.7);
}
.om .om-t1 {
  font-size: 12px;
  font-weight: 500;
  fill: #ffffff;
}
.om-sheet path,
.om-annot path {
  fill: none;
  stroke: rgba(122, 218, 221, 0.35);
  stroke-width: 1;
}
.om-annot .om-fill {
  fill: rgba(122, 218, 221, 0.45);
  stroke: none;
}
.om-tree path {
  fill: none;
  stroke: #7adadd;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.om-tree {
  opacity: 0;
}
.om-w {
  fill: none;
  stroke: #c8e9eb;
  stroke-width: 2.4;
  stroke-linecap: square;
}
.om-ax {
  fill: none;
  stroke: rgba(200, 233, 235, 0.45);
  stroke-width: 0.8;
  stroke-dasharray: 16 4 2 4;
}
.om-bub,
.om-cota {
  fill: none;
  stroke: rgba(200, 233, 235, 0.6);
  stroke-width: 0.9;
}
.om-struct text {
  text-anchor: middle;
  fill: #c8e9eb;
}
.om-p {
  fill: none;
  stroke: #7adadd;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.om-s {
  fill: #023d47;
  stroke: #7adadd;
  stroke-width: 1.8;
}
.om-e {
  fill: none;
  stroke: #7adadd;
  stroke-width: 1.4;
}

/* fases (solo con script): 0 lámina y muros · 1 analizar · 2 estructurar · 3 resolver */
.om.is-js .om-sheet path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.om.is-js :is(.om-annot, .om-w, .om-struct, .om-s, .om-e) {
  opacity: 0;
}
.om.is-js .om-p {
  stroke-dashoffset: 1;
}
.om.is-js .om-tree {
  opacity: 0.7;
}
.om.is-js .om-tree path {
  stroke-dashoffset: 1;
}
.om.s0 .om-sheet path {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  stroke-dashoffset: 0;
}
.om.s0 .om-annot {
  transition: opacity 0.8s ease 0.6s;
  opacity: 1;
}
.om.s0 .om-w {
  transition: opacity 1s ease 0.3s;
  opacity: 1;
}
.om.s0 .om-s {
  transition: opacity 0.4s ease 0.9s;
  opacity: 1;
}
.om.is-js .om-tree path.on {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--om-step, 40ms) linear;
}
.om.s2 .om-tree {
  opacity: 0.25;
  transition: opacity 1s ease;
}
.om.s2 .om-struct {
  opacity: 1;
  transition: opacity 1.1s ease;
}
.om.s3 .om-tree {
  opacity: 0.1;
}
.om.s3 .om-struct {
  opacity: 0.55;
  transition: opacity 1s ease;
}
.om.s3 .om-p {
  transition: stroke-dashoffset 2s cubic-bezier(0.65, 0, 0.35, 1);
  stroke-dashoffset: 0;
}
.om.s4 .om-e {
  transition: opacity 0.5s ease;
  opacity: 1;
}
.om .om-rev {
  transition: fill 0.6s ease 0.2s;
}
.om.s4 .om-rev {
  fill: #7adadd;
}

/* ---------- quién está detrás ---------- */
.about {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px);
}
.about__photo {
  width: clamp(150px, 16vw, 190px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line-strong);
}
.about__text {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.about .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.about h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  letter-spacing: -0.01em;
}
.about__person {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  min-width: min(100%, 420px);
}
.person__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem);
  font-weight: 500;
}
.person__role {
  color: var(--link);
  font-weight: 500;
}
.person__cred {
  color: var(--fg-muted);
  font-size: 0.95rem;
}
.person__cred .cred-line {
  display: block;
}
@media (max-width: 719px) {
  .person__cred span {
    display: block;
  }
  .person__cred .sep {
    display: none;
  }
}
@media (min-width: 720px) {
  .about {
    grid-template-columns: auto auto;
    justify-content: center;
    justify-items: start;
    text-align: left;
    column-gap: clamp(32px, 5vw, 64px);
  }
  .about__text {
    justify-items: start;
  }
  .about .eyebrow::after {
    content: none;
  }
}

/* ---------- contacto ---------- */
.contact {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}
.contact__info {
  display: grid;
  gap: 20px;
  align-content: start;
}
.contact__list {
  display: grid;
  gap: 14px;
  margin: 0;
}
.contact__list div {
  display: grid;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
}
.contact__list dt {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.contact__list dd {
  margin: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.form {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label,
.check span {
  font-size: 0.9375rem;
}
.field label {
  font-weight: 500;
}
.opt {
  font-weight: 400;
  color: var(--fg-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--field-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--fg-muted);
}
.check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--link);
  flex: none;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.form__status {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  flex: 1 1 220px;
}
.form__status[data-state="ok"] {
  color: var(--link);
  font-weight: 500;
}
.form__status[data-state="error"] {
  color: var(--fg);
  font-weight: 500;
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .form .field--full,
  .form .check,
  .form .form__actions {
    grid-column: 1 / -1;
  }
}

/* ---------- pie ---------- */
.site-footer {
  background: var(--foot-bg);
  color: var(--foot-muted);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  padding-block: clamp(32px, 5vw, 52px);
  display: grid;
  gap: 24px;
}
.site-footer img {
  width: min(240px, 70%);
  height: auto;
}
.site-footer a {
  color: var(--foot-fg);
}
.footer__cols {
  display: grid;
  gap: 20px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
@media (min-width: 820px) {
  .footer__cols {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- páginas legales ---------- */
.legal .wrap {
  max-width: 820px;
  padding-block: clamp(36px, 6vw, 72px);
}
.legal h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 8px;
}
.legal p,
.legal li {
  max-width: 68ch;
}
.legal p + p {
  margin-top: 10px;
}
.legal ul {
  list-style: disc;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}
.draft {
  border: 1px dashed var(--accent);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.9375rem;
  margin-bottom: 24px;
}
.todo {
  background: rgba(63, 181, 185, 0.25);
  padding: 0 4px;
  border-radius: 2px;
}
.notfound .wrap {
  min-height: 55vh;
  display: grid;
  align-content: center;
  gap: 18px;
  justify-items: start;
}


.band--alt {
  background: var(--bg-alt);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .services {
    --art-bg: #022b33;
    --sc-ink: #c8e9eb;
    --sc-acc: #7adadd;
    --sc-paper: #023740;
  }
}
:root[data-theme="dark"] .services {
  --art-bg: #022b33;
  --sc-ink: #c8e9eb;
  --sc-acc: #7adadd;
  --sc-paper: #023740;
}

/* ---------- casos de estudio ---------- */
.tile--case .tile__body {
  grid-template-rows: auto auto auto auto 1fr;
}
.case-btn {
  justify-self: start;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 16px;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, gap 0.25s ease;
}
.case-btn:hover {
  border-color: var(--accent);
  background: var(--bg);
  gap: 12px;
}
.case-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.case-dlg {
  width: min(760px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 30px 80px -20px rgba(1, 38, 45, 0.55);
  overflow: auto;
  overscroll-behavior: contain;
}
.case-dlg::backdrop {
  background: rgba(1, 38, 45, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.case-dlg[open] {
  animation: dlg-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dlg-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.case-dlg__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.case-dlg__x {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.case-dlg__x:hover {
  border-color: var(--accent);
}
.case {
  display: grid;
  gap: 18px;
  padding: 26px 28px 8px;
}
.case + .case {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 30px;
}
.case h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.2;
}
.case h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
}
.case__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
  margin: 0;
}
.case__meta div {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.case__meta div:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.case__meta div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.case__meta dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.case__meta dd {
  margin: 2px 0 0;
  font-weight: 500;
}
.case__figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.case__figs li {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 2px solid var(--accent);
}
.case__figs strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  line-height: 1.1;
}
.case__figs span {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.case__did {
  display: grid;
  gap: 10px;
  margin: -8px 0 0;
}
.case__did li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}
.case__did li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}
.case__result {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.case__result p {
  font-weight: 500;
}
.case-dlg__cta {
  margin: 22px 28px 28px;
}
.case__photos {
  display: grid;
  gap: 12px;
}
.case__photos--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.case__photos--2,
.case__photos--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.case__photos figure {
  display: grid;
  gap: 6px;
  margin: 0;
  align-content: start;
}
.case__zoom {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: zoom-in;
}
.case__zoom img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.case__zoom:hover img {
  transform: scale(1.035);
}
.case__zoom:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.case__photos figcaption {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.lightbox {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  cursor: zoom-out;
}
.lightbox::backdrop {
  background: rgba(1, 22, 27, 0.9);
}
.lightbox[open] {
  animation: dlg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox figure {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 0;
}
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px);
  border-radius: 8px;
}
.lightbox figcaption {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #cfe7e9;
  text-align: center;
}
.lightbox__x {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(1, 22, 27, 0.5);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 560px) {
  .case,
  .case-dlg__head {
    padding-left: 18px;
    padding-right: 14px;
  }
  .case__meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .case__meta div:nth-child(odd) {
    border-right: 0;
  }
  .case__meta div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .case__figs {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .case__photos--2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .case__photos--3,
  .case__photos--4 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: -14px;
    padding-right: 14px;
    scrollbar-width: none;
  }
  .case__photos--3::-webkit-scrollbar,
  .case__photos--4::-webkit-scrollbar {
    display: none;
  }
  .case__photos--3 figure,
  .case__photos--4 figure {
    scroll-snap-align: start;
  }
  .case-dlg__cta {
    margin: 20px 18px 22px;
  }
}
html.has-modal {
  overflow: hidden;
}
.wm-fills > g:nth-child(1),.wm-outs > g:nth-child(1){--o:0}
.wm-fills > g:nth-child(2),.wm-outs > g:nth-child(2){--o:1}
.wm-fills > g:nth-child(3),.wm-outs > g:nth-child(3){--o:2}
.wm-fills > g:nth-child(4),.wm-outs > g:nth-child(4){--o:3}
.wm-fills > g:nth-child(5),.wm-outs > g:nth-child(5){--o:3}
.wm-fills > g:nth-child(6),.wm-outs > g:nth-child(6){--o:2}
.wm-fills > g:nth-child(7),.wm-outs > g:nth-child(7){--o:1}
.wm-fills > g:nth-child(8),.wm-outs > g:nth-child(8){--o:0}
.bento > :nth-child(1){--rd:0ms}
.bento > :nth-child(2){--rd:70ms}
.bento > :nth-child(3){--rd:140ms}
.bento > :nth-child(4){--rd:210ms}
.bento > :nth-child(5){--rd:280ms}
.bento > :nth-child(6){--rd:350ms}
.bento > :nth-child(7){--rd:420ms}
.bento > :nth-child(8){--rd:490ms}
