:root {
  color-scheme: light;
  --ink: #002860;
  --deep: #002058;
  --muted: #4f6074;
  --line: #d6e4ec;
  --paper: #f3f8fb;
  --white: #ffffff;
  --cyan: #08c0d8;
  --cyan-dark: #0080a8;
  --teal: #087f9a;
  --green: #4f8f70;
  --amber: #c47a2c;
  --blue: #002860;
  --shadow: 0 18px 55px rgba(0, 40, 96, 0.14);
}

/* Modelo hero AIMIND: imagen protagonista, texto limpio y header compacto. */
body {
  padding-top: 104px;
  background: #f7fbfd;
}

.site-header,
.site-header.is-compact {
  min-height: 104px;
  padding: 16px 3.4vw;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(0, 40, 96, 0.08);
}

.brand,
.site-header.is-compact .brand {
  width: min(250px, 24vw);
}

nav {
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: #1d3658;
  font-size: 1.02rem;
}

nav a.active {
  color: #0b5cff;
  font-weight: 760;
}

.nav-cta {
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #125cf5;
  border-radius: 6px;
  font-weight: 760;
  box-shadow: 0 14px 34px rgba(18, 92, 245, 0.24);
}

.hero {
  grid-template-columns: minmax(390px, 0.98fr) minmax(420px, 0.92fr);
  gap: 4.8vw;
  min-height: calc(100svh - 104px);
  padding: 0 3.4vw 0 0;
  background:
    radial-gradient(circle at 86% 16%, rgba(8, 192, 216, 0.14), transparent 19%),
    radial-gradient(circle at 98% 68%, rgba(18, 92, 245, 0.08), transparent 24%),
    linear-gradient(90deg, #f7fbfd 0%, #ffffff 58%, #f9fcfe 100%);
}

.hero::before {
  right: 4vw;
  top: 12vh;
  width: min(46vw, 720px);
  height: min(46vw, 720px);
  border: 1px solid rgba(8, 192, 216, 0.42);
  border-left-color: transparent;
  background: transparent;
  border-radius: 999px;
  opacity: 0.78;
  animation: none;
}

.hero::after {
  right: 2.6vw;
  bottom: 6vh;
  left: auto;
  width: 300px;
  height: 210px;
  border-right: 2px solid rgba(8, 192, 216, 0.45);
  border-bottom: 2px solid rgba(8, 192, 216, 0.45);
  border-radius: 0 0 46px 0;
  background: transparent;
  filter: none;
  opacity: 0.9;
  animation: none;
}

.data-field::before,
.data-field::after {
  display: none;
}

.data-field span {
  width: 8px;
  height: 8px;
  background: #22bdec;
  opacity: 0.55;
  animation: floatNode 8s ease-in-out infinite;
}

.data-field span:nth-child(1) { left: 12%; top: 10%; }
.data-field span:nth-child(2) { left: 8%; top: 23%; width: 20px; height: 20px; opacity: 0.34; }
.data-field span:nth-child(3) { right: 18%; top: 10%; }
.data-field span:nth-child(4) { right: 8%; top: 22%; width: 4px; height: 4px; box-shadow: 18px 0 #22bdec, 36px 0 #22bdec, 54px 0 #22bdec, 72px 0 #22bdec, 0 18px #22bdec, 18px 18px #22bdec, 36px 18px #22bdec, 54px 18px #22bdec, 72px 18px #22bdec, 0 36px #22bdec, 18px 36px #22bdec, 36px 36px #22bdec, 54px 36px #22bdec, 72px 36px #22bdec; clip-path: none; border-radius: 999px; }
.data-field span:nth-child(5) { left: 76%; bottom: 26%; }
.data-field span:nth-child(6) { right: 11%; bottom: 31%; }

.hero-photo {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 118%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
  filter: saturate(1.06) contrast(1.03);
  transform: translateX(-9%);
}

.hero-photo::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.04) 0%, rgba(247, 251, 253, 0.08) 42%, rgba(255, 255, 255, 0.92) 97%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.56) 100%);
}

.hero-photo::after {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 3vh;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.1rem, 4.8vw, 5.25rem);
  line-height: 1.04;
  color: #082f66;
}

h1 span {
  color: #1261ff;
}

.eyebrow {
  color: #1261ff;
  letter-spacing: 0.06em;
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  color: #1f3858;
  font-size: clamp(1.05rem, 1.25vw, 1.28rem);
}

.hero-actions {
  gap: 20px;
  margin-top: 40px;
}

.button {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 1rem;
}

.button.primary {
  border-color: #125cf5;
  background: #125cf5;
  box-shadow: 0 16px 34px rgba(18, 92, 245, 0.22);
}

.button.primary::after {
  margin-left: 14px;
  content: "->";
}

.button.secondary {
  border-color: #125cf5;
  color: #082f66;
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  place-items: center;
  content: "â–¶";
  border: 2px solid #125cf5;
  border-radius: 999px;
  color: #125cf5;
  font-size: 0.58rem;
  line-height: 1;
}

.hero-showcase {
  display: none;
}

@media (max-width: 1120px) {
  body {
    padding-top: 92px;
  }

  .site-header,
  .site-header.is-compact {
    min-height: 92px;
  }

  .brand,
  .site-header.is-compact .brand {
    width: min(220px, 28vw);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
    min-height: calc(100svh - 92px);
    padding-right: 4vw;
  }

  .hero-photo {
    min-height: calc(100svh - 92px);
  }

  h1 {
    font-size: clamp(2.7rem, 5vw, 4.3rem);
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 112px;
  }

  .site-header,
  .site-header.is-compact {
    align-items: flex-start;
    min-height: 112px;
    padding: 12px 5vw;
  }

  nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 5vw 56px;
  }

  .hero-photo {
    min-height: 360px;
    margin-right: -5vw;
    margin-left: -5vw;
  }

  .hero-photo img {
    width: 100%;
    transform: none;
    object-position: center center;
  }

  .hero-photo::before {
    background: linear-gradient(180deg, rgba(247, 251, 253, 0.03), rgba(255, 255, 255, 0.92));
  }

  .hero-copy {
    padding-top: 8px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  padding-top: 56px;
}

body::before {
  position: fixed;
  inset: -20%;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 12% 22%, rgba(8, 192, 216, 0.17), transparent 26%),
    radial-gradient(circle at 78% 16%, rgba(0, 40, 96, 0.10), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(196, 122, 44, 0.10), transparent 24%),
    linear-gradient(120deg, rgba(8, 192, 216, 0.08), transparent 38%, rgba(0, 40, 96, 0.06));
  animation: ambientShift 10s ease-in-out infinite alternate;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 6px 6vw;
  background: rgba(243, 248, 251, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: min-height 220ms ease, padding 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-compact {
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(243, 248, 251, 0.96);
  box-shadow: 0 10px 30px rgba(0, 40, 96, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(185px, 34vw);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition: width 220ms ease;
}

.site-header.is-compact .brand {
  width: min(170px, 32vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  transform: translateZ(0);
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 56px);
  padding: 18px 6vw 48px;
  background:
    linear-gradient(135deg, rgba(8, 192, 216, 0.18), rgba(255, 255, 255, 0.68) 46%, rgba(196, 122, 44, 0.08)),
    var(--paper);
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: -10% -4% auto auto;
  width: 58vw;
  height: 58vw;
  max-width: 780px;
  max-height: 780px;
  background-image:
    radial-gradient(circle, rgba(8, 192, 216, 0.62) 2px, transparent 3px),
    linear-gradient(32deg, transparent 48%, rgba(8, 192, 216, 0.24) 49%, rgba(8, 192, 216, 0.24) 51%, transparent 52%),
    linear-gradient(128deg, transparent 48%, rgba(0, 40, 96, 0.16) 49%, rgba(0, 40, 96, 0.16) 51%, transparent 52%);
  background-size: 58px 58px, 116px 116px, 116px 116px;
  mask-image: radial-gradient(circle, black, transparent 70%);
  opacity: 0.8;
  animation: neuralDrift 14s linear infinite;
}

.hero::after {
  left: 5vw;
  bottom: 7vh;
  width: 210px;
  height: 70px;
  border-radius: 999px;
  background: rgba(8, 192, 216, 0.16);
  filter: blur(10px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.data-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.data-field span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  opacity: 0.42;
  animation: floatNode 8s ease-in-out infinite;
}

.data-field::before,
.data-field::after {
  position: absolute;
  content: "";
  width: 34vw;
  height: 34vw;
  min-width: 360px;
  min-height: 360px;
  border: 1px solid rgba(8, 192, 216, 0.26);
  border-radius: 48% 52% 46% 54%;
  opacity: 0.7;
  animation: orbitMesh 13s ease-in-out infinite alternate;
}

.data-field::before {
  right: 7vw;
  top: 8vh;
}

.data-field::after {
  left: -8vw;
  bottom: -12vh;
  animation-delay: 2s;
}

.data-field span:nth-child(1) { left: 7%; top: 18%; animation-delay: 0s; }
.data-field span:nth-child(2) { left: 18%; top: 34%; animation-delay: 1.4s; }
.data-field span:nth-child(3) { right: 18%; top: 18%; animation-delay: 2.2s; }
.data-field span:nth-child(4) { right: 8%; top: 52%; animation-delay: 3.1s; }
.data-field span:nth-child(5) { left: 44%; bottom: 14%; animation-delay: 1.1s; }
.data-field span:nth-child(6) { right: 35%; bottom: 23%; animation-delay: 2.8s; }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.1rem, 3.7vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: 0;
  animation: titleRise 760ms ease-out 80ms both;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--deep);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--deep);
  box-shadow: inset 0 -3px 0 rgba(8, 192, 216, 0.45);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

.hero-showcase {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  animation: panelRise 850ms ease-out 160ms both;
}

.hero-image-frame {
  position: relative;
  width: min(360px, 33vw);
  aspect-ratio: 0.92;
  overflow: hidden;
  border-radius: 44% 16% 34% 14% / 18% 34% 16% 28%;
  background:
    radial-gradient(circle at 20% 12%, rgba(8, 192, 216, 0.92), transparent 22%),
    linear-gradient(135deg, rgba(8, 192, 216, 0.92), rgba(0, 40, 96, 0.92));
  box-shadow: 0 26px 70px rgba(0, 40, 96, 0.2);
}

.hero-image-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(0, 40, 96, 0.22), rgba(8, 192, 216, 0.04));
  mix-blend-mode: multiply;
}

.hero-image-frame::after {
  position: absolute;
  inset: 18px;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: inherit;
}

.hero-showcase::before,
.hero-showcase::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-showcase::before {
  right: -28px;
  top: 14px;
  z-index: -1;
  width: 210px;
  height: 210px;
  background: rgba(8, 192, 216, 0.3);
  border-radius: 38% 62% 52% 48%;
}

.hero-showcase::after {
  left: -38px;
  bottom: 118px;
  z-index: -1;
  width: 116px;
  height: 116px;
  background: rgba(0, 40, 96, 0.86);
  border-radius: 999px 999px 0 999px;
}

.field-mockup {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.05) contrast(1.04);
}

.hero-panel {
  width: min(460px, 100%);
  padding: 16px;
  border: 1px solid rgba(0, 40, 96, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-panel span {
  display: block;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.05rem, 1.55vw, 1.34rem);
  line-height: 1.04;
}

.hero-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  padding: 72px 6vw;
  color: var(--white);
  background: var(--deep);
}

.band .eyebrow {
  color: #77e4ef;
}

.band p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
}

.section {
  padding: 92px 6vw;
}

.solutions {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.visual-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.visual-tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f8;
  box-shadow: 0 16px 42px rgba(0, 40, 96, 0.08);
}

.visual-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.visual-tile.tall {
  grid-row: span 2;
}

.visual-tile.wide {
  grid-column: span 2;
}

.visual-tile.wide img {
  object-position: center center;
}

.visual-tile:nth-child(6) img {
  object-position: center top;
  transform: scale(1.08);
}

.visual-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: contrast(1.05) saturate(1.08);
  transform: scale(1.04);
  transition: transform 360ms ease, filter 360ms ease;
}

.visual-tile::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 32, 88, 0.78));
}

.visual-tile span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 850;
  line-height: 1.08;
  text-align: left;
}

.visual-tile:hover img {
  filter: contrast(1.08) saturate(1.16);
  transform: scale(1.085);
}

.visual-tile:nth-child(6):hover img {
  transform: scale(1.12);
}

.solution-modal[hidden] {
  display: none;
}

.solution-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 0;
  background: rgba(0, 32, 88, 0.42);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 40, 96, 0.22);
}

.modal-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.modal-card p:last-child {
  color: var(--muted);
  font-size: 1.12rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
}

.service-grid article,
.case-grid article {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-grid article {
  border-top: 4px solid var(--cyan);
}

.service-grid p,
.case-grid p {
  margin: 0;
  color: var(--muted);
}

.method {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline li {
  min-height: 250px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #fbfdfe;
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span,
.case-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid article:nth-child(3n + 1) {
  border-top: 4px solid var(--cyan);
}

.case-grid article:nth-child(3n + 2) {
  border-top: 4px solid var(--blue);
}

.case-grid article:nth-child(3n) {
  border-top: 4px solid var(--amber);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 6vw;
  background: #e7f4f8;
  border-top: 1px solid var(--line);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 56px;
  padding: 0;
  color: var(--white);
  background: #128c7e;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 40, 96, 0.22);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float:hover {
  background: #075e54;
}

@keyframes ambientShift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  to {
    transform: translate3d(-28px, 28px, 0) rotate(1deg);
  }
}

@keyframes neuralDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
    transform: rotate(0deg) scale(1);
  }

  to {
    background-position: 58px 58px, 116px -116px, -116px 116px;
    transform: rotate(2deg) scale(1.04);
  }
}

@keyframes orbitMesh {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(22deg) scale(1.08);
  }
}

@keyframes pulseGlow {
  from {
    opacity: 0.35;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0.75;
    transform: translateX(22px) scale(1.14);
  }
}

@keyframes floatNode {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.35);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.cta div {
  max-width: 760px;
}

.cta p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .hero,
  .band,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    grid-template-columns: minmax(220px, 0.58fr) minmax(280px, 1fr);
    align-items: center;
    justify-items: start;
  }

  .hero-image-frame {
    width: min(320px, 42vw);
  }

  .site-header {
    min-height: 56px;
  }

  .brand {
    width: min(168px, 38vw);
  }

  .service-grid,
  .case-grid,
  .timeline,
  .visual-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-tile.large,
  .visual-tile.wide {
    grid-column: span 2;
  }

  .timeline li:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 84px;
    padding: 8px 5vw;
  }

  .site-header.is-compact {
    min-height: 84px;
  }

  .hero,
  .section,
  .band,
  .cta {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-image-frame {
    width: min(310px, 82vw);
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .service-grid,
  .case-grid,
  .timeline,
  .visual-mosaic {
    grid-template-columns: 1fr;
  }

  .visual-mosaic {
    grid-auto-rows: 240px;
  }

  .visual-tile.large,
  .visual-tile.tall,
  .visual-tile.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .timeline li,
  .timeline li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline li:last-child {
    border-bottom: 0;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Capa final del modelo visual aprobado. */
/* Modelo hero AIMIND: imagen protagonista, texto limpio y header compacto. */
body {
  padding-top: 104px;
  background: #f7fbfd;
}

.site-header,
.site-header.is-compact {
  min-height: 104px;
  padding: 16px 3.4vw;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(0, 40, 96, 0.08);
}

.brand,
.site-header.is-compact .brand {
  width: min(250px, 24vw);
}

nav {
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  color: #1d3658;
  font-size: 1.02rem;
}

nav a.active {
  color: #0b5cff;
  font-weight: 760;
}

.nav-cta {
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #125cf5;
  border-radius: 6px;
  font-weight: 760;
  box-shadow: 0 14px 34px rgba(18, 92, 245, 0.24);
}

.hero {
  grid-template-columns: minmax(390px, 0.98fr) minmax(420px, 0.92fr);
  gap: 4.8vw;
  min-height: calc(100svh - 104px);
  padding: 0 3.4vw 0 0;
  background:
    radial-gradient(circle at 86% 16%, rgba(8, 192, 216, 0.14), transparent 19%),
    radial-gradient(circle at 98% 68%, rgba(18, 92, 245, 0.08), transparent 24%),
    linear-gradient(90deg, #f7fbfd 0%, #ffffff 58%, #f9fcfe 100%);
}

.hero::before {
  right: 4vw;
  top: 12vh;
  width: min(46vw, 720px);
  height: min(46vw, 720px);
  border: 1px solid rgba(8, 192, 216, 0.42);
  border-left-color: transparent;
  background: transparent;
  border-radius: 999px;
  opacity: 0.78;
  animation: none;
}

.hero::after {
  right: 2.6vw;
  bottom: 6vh;
  left: auto;
  width: 300px;
  height: 210px;
  border-right: 2px solid rgba(8, 192, 216, 0.45);
  border-bottom: 2px solid rgba(8, 192, 216, 0.45);
  border-radius: 0 0 46px 0;
  background: transparent;
  filter: none;
  opacity: 0.9;
  animation: none;
}

.data-field::before,
.data-field::after {
  display: none;
}

.data-field span {
  width: 8px;
  height: 8px;
  background: #22bdec;
  opacity: 0.55;
  animation: floatNode 8s ease-in-out infinite;
}

.data-field span:nth-child(1) { left: 12%; top: 10%; }
.data-field span:nth-child(2) { left: 8%; top: 23%; width: 20px; height: 20px; opacity: 0.34; }
.data-field span:nth-child(3) { right: 18%; top: 10%; }
.data-field span:nth-child(4) { right: 8%; top: 22%; width: 4px; height: 4px; box-shadow: 18px 0 #22bdec, 36px 0 #22bdec, 54px 0 #22bdec, 72px 0 #22bdec, 0 18px #22bdec, 18px 18px #22bdec, 36px 18px #22bdec, 54px 18px #22bdec, 72px 18px #22bdec, 0 36px #22bdec, 18px 36px #22bdec, 36px 36px #22bdec, 54px 36px #22bdec, 72px 36px #22bdec; clip-path: none; border-radius: 999px; }
.data-field span:nth-child(5) { left: 76%; bottom: 26%; }
.data-field span:nth-child(6) { right: 11%; bottom: 31%; }

.hero-photo {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  pointer-events: none;
}

.hero-photo img {
  display: block;
  width: 118%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
  filter: saturate(1.06) contrast(1.03);
  transform: translateX(-9%);
}

.hero-photo::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.04) 0%, rgba(247, 251, 253, 0.08) 42%, rgba(255, 255, 255, 0.92) 97%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.56) 100%);
}

.hero-photo::after {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  height: 28%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 3vh;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.1rem, 4.8vw, 5.25rem);
  line-height: 1.04;
  color: #082f66;
}

h1 span {
  color: #1261ff;
}

.eyebrow {
  color: #1261ff;
  letter-spacing: 0.06em;
}

.lead {
  max-width: 620px;
  margin-top: 24px;
  color: #1f3858;
  font-size: clamp(1.05rem, 1.25vw, 1.28rem);
}

.hero-actions {
  gap: 20px;
  margin-top: 40px;
}

.button {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 6px;
  font-size: 1rem;
}

.button.primary {
  border-color: #125cf5;
  background: #125cf5;
  box-shadow: 0 16px 34px rgba(18, 92, 245, 0.22);
}

.button.primary::after {
  margin-left: 14px;
  content: "->";
}

.button.secondary {
  border-color: #125cf5;
  color: #082f66;
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  place-items: center;
  content: "â–¶";
  border: 2px solid #125cf5;
  border-radius: 999px;
  color: #125cf5;
  font-size: 0.58rem;
  line-height: 1;
}

.hero-showcase {
  display: none;
}

@media (max-width: 1120px) {
  body {
    padding-top: 92px;
  }

  .site-header,
  .site-header.is-compact {
    min-height: 92px;
  }

  .brand,
  .site-header.is-compact .brand {
    width: min(220px, 28vw);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
    min-height: calc(100svh - 92px);
    padding-right: 4vw;
  }

  .hero-photo {
    min-height: calc(100svh - 92px);
  }

  h1 {
    font-size: clamp(2.7rem, 5vw, 4.3rem);
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 112px;
  }

  .site-header,
  .site-header.is-compact {
    align-items: flex-start;
    min-height: 112px;
    padding: 12px 5vw;
  }

  nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 5vw 56px;
  }

  .hero-photo {
    min-height: 360px;
    margin-right: -5vw;
    margin-left: -5vw;
  }

  .hero-photo img {
    width: 100%;
    transform: none;
    object-position: center center;
  }

  .hero-photo::before {
    background: linear-gradient(180deg, rgba(247, 251, 253, 0.03), rgba(255, 255, 255, 0.92));
  }

  .hero-copy {
    padding-top: 8px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  padding-top: 56px;
}

body::before {
  position: fixed;
  inset: -20%;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 12% 22%, rgba(8, 192, 216, 0.17), transparent 26%),
    radial-gradient(circle at 78% 16%, rgba(0, 40, 96, 0.10), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(196, 122, 44, 0.10), transparent 24%),
    linear-gradient(120deg, rgba(8, 192, 216, 0.08), transparent 38%, rgba(0, 40, 96, 0.06));
  animation: ambientShift 10s ease-in-out infinite alternate;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 6px 6vw;
  background: rgba(243, 248, 251, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: min-height 220ms ease, padding 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-compact {
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(243, 248, 251, 0.96);
  box-shadow: 0 10px 30px rgba(0, 40, 96, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(185px, 34vw);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition: width 220ms ease;
}

.site-header.is-compact .brand {
  width: min(170px, 32vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  transform: translateZ(0);
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 56px);
  padding: 18px 6vw 48px;
  background:
    linear-gradient(135deg, rgba(8, 192, 216, 0.18), rgba(255, 255, 255, 0.68) 46%, rgba(196, 122, 44, 0.08)),
    var(--paper);
}

.hero::before,
.hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero::before {
  inset: -10% -4% auto auto;
  width: 58vw;
  height: 58vw;
  max-width: 780px;
  max-height: 780px;
  background-image:
    radial-gradient(circle, rgba(8, 192, 216, 0.62) 2px, transparent 3px),
    linear-gradient(32deg, transparent 48%, rgba(8, 192, 216, 0.24) 49%, rgba(8, 192, 216, 0.24) 51%, transparent 52%),
    linear-gradient(128deg, transparent 48%, rgba(0, 40, 96, 0.16) 49%, rgba(0, 40, 96, 0.16) 51%, transparent 52%);
  background-size: 58px 58px, 116px 116px, 116px 116px;
  mask-image: radial-gradient(circle, black, transparent 70%);
  opacity: 0.8;
  animation: neuralDrift 14s linear infinite;
}

.hero::after {
  left: 5vw;
  bottom: 7vh;
  width: 210px;
  height: 70px;
  border-radius: 999px;
  background: rgba(8, 192, 216, 0.16);
  filter: blur(10px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.data-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.data-field span {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  opacity: 0.42;
  animation: floatNode 8s ease-in-out infinite;
}

.data-field::before,
.data-field::after {
  position: absolute;
  content: "";
  width: 34vw;
  height: 34vw;
  min-width: 360px;
  min-height: 360px;
  border: 1px solid rgba(8, 192, 216, 0.26);
  border-radius: 48% 52% 46% 54%;
  opacity: 0.7;
  animation: orbitMesh 13s ease-in-out infinite alternate;
}

.data-field::before {
  right: 7vw;
  top: 8vh;
}

.data-field::after {
  left: -8vw;
  bottom: -12vh;
  animation-delay: 2s;
}

.data-field span:nth-child(1) { left: 7%; top: 18%; animation-delay: 0s; }
.data-field span:nth-child(2) { left: 18%; top: 34%; animation-delay: 1.4s; }
.data-field span:nth-child(3) { right: 18%; top: 18%; animation-delay: 2.2s; }
.data-field span:nth-child(4) { right: 8%; top: 52%; animation-delay: 3.1s; }
.data-field span:nth-child(5) { left: 44%; bottom: 14%; animation-delay: 1.1s; }
.data-field span:nth-child(6) { right: 35%; bottom: 23%; animation-delay: 2.8s; }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.1rem, 3.7vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: 0;
  animation: titleRise 760ms ease-out 80ms both;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--deep);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--deep);
  box-shadow: inset 0 -3px 0 rgba(8, 192, 216, 0.45);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

.hero-showcase {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  animation: panelRise 850ms ease-out 160ms both;
}

.hero-image-frame {
  position: relative;
  width: min(360px, 33vw);
  aspect-ratio: 0.92;
  overflow: hidden;
  border-radius: 44% 16% 34% 14% / 18% 34% 16% 28%;
  background:
    radial-gradient(circle at 20% 12%, rgba(8, 192, 216, 0.92), transparent 22%),
    linear-gradient(135deg, rgba(8, 192, 216, 0.92), rgba(0, 40, 96, 0.92));
  box-shadow: 0 26px 70px rgba(0, 40, 96, 0.2);
}

.hero-image-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(0, 40, 96, 0.22), rgba(8, 192, 216, 0.04));
  mix-blend-mode: multiply;
}

.hero-image-frame::after {
  position: absolute;
  inset: 18px;
  z-index: 2;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: inherit;
}

.hero-showcase::before,
.hero-showcase::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-showcase::before {
  right: -28px;
  top: 14px;
  z-index: -1;
  width: 210px;
  height: 210px;
  background: rgba(8, 192, 216, 0.3);
  border-radius: 38% 62% 52% 48%;
}

.hero-showcase::after {
  left: -38px;
  bottom: 118px;
  z-index: -1;
  width: 116px;
  height: 116px;
  background: rgba(0, 40, 96, 0.86);
  border-radius: 999px 999px 0 999px;
}

.field-mockup {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.05) contrast(1.04);
}

.hero-panel {
  width: min(460px, 100%);
  padding: 16px;
  border: 1px solid rgba(0, 40, 96, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-panel span {
  display: block;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-panel strong {
  display: block;
  font-size: clamp(1.05rem, 1.55vw, 1.34rem);
  line-height: 1.04;
}

.hero-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  padding: 72px 6vw;
  color: var(--white);
  background: var(--deep);
}

.band .eyebrow {
  color: #77e4ef;
}

.band p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
}

.section {
  padding: 92px 6vw;
}

.solutions {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.visual-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}

.visual-tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f8;
  box-shadow: 0 16px 42px rgba(0, 40, 96, 0.08);
}

.visual-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.visual-tile.tall {
  grid-row: span 2;
}

.visual-tile.wide {
  grid-column: span 2;
}

.visual-tile.wide img {
  object-position: center center;
}

.visual-tile:nth-child(6) img {
  object-position: center top;
  transform: scale(1.08);
}

.visual-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: contrast(1.05) saturate(1.08);
  transform: scale(1.04);
  transition: transform 360ms ease, filter 360ms ease;
}

.visual-tile::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 32, 88, 0.78));
}

.visual-tile span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 850;
  line-height: 1.08;
  text-align: left;
}

.visual-tile:hover img {
  filter: contrast(1.08) saturate(1.16);
  transform: scale(1.085);
}

.visual-tile:nth-child(6):hover img {
  transform: scale(1.12);
}

.solution-modal[hidden] {
  display: none;
}

.solution-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 0;
  background: rgba(0, 32, 88, 0.42);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 40, 96, 0.22);
}

.modal-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.modal-card p:last-child {
  color: var(--muted);
  font-size: 1.12rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
}

.service-grid article,
.case-grid article {
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-grid article {
  border-top: 4px solid var(--cyan);
}

.service-grid p,
.case-grid p {
  margin: 0;
  color: var(--muted);
}

.method {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline li {
  min-height: 250px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #fbfdfe;
}

.timeline li:last-child {
  border-right: 0;
}

.timeline span,
.case-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.15;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid article:nth-child(3n + 1) {
  border-top: 4px solid var(--cyan);
}

.case-grid article:nth-child(3n + 2) {
  border-top: 4px solid var(--blue);
}

.case-grid article:nth-child(3n) {
  border-top: 4px solid var(--amber);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 6vw;
  background: #e7f4f8;
  border-top: 1px solid var(--line);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 56px;
  padding: 0;
  color: var(--white);
  background: #128c7e;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(0, 40, 96, 0.22);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.whatsapp-float:hover {
  background: #075e54;
}

@keyframes ambientShift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  to {
    transform: translate3d(-28px, 28px, 0) rotate(1deg);
  }
}

@keyframes neuralDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
    transform: rotate(0deg) scale(1);
  }

  to {
    background-position: 58px 58px, 116px -116px, -116px 116px;
    transform: rotate(2deg) scale(1.04);
  }
}

@keyframes orbitMesh {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(22deg) scale(1.08);
  }
}

@keyframes pulseGlow {
  from {
    opacity: 0.35;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0.75;
    transform: translateX(22px) scale(1.14);
  }
}

@keyframes floatNode {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-18px) scale(1.35);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.cta div {
  max-width: 760px;
}

.cta p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .hero,
  .band,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    grid-template-columns: minmax(220px, 0.58fr) minmax(280px, 1fr);
    align-items: center;
    justify-items: start;
  }

  .hero-image-frame {
    width: min(320px, 42vw);
  }

  .site-header {
    min-height: 56px;
  }

  .brand {
    width: min(168px, 38vw);
  }

  .service-grid,
  .case-grid,
  .timeline,
  .visual-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-tile.large,
  .visual-tile.wide {
    grid-column: span 2;
  }

  .timeline li:nth-child(2) {
    border-right: 0;
  }
}


/* Portada de entrada e idioma */
body.intro-active {
  overflow: hidden;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #001f4f;
  opacity: 1;
  visibility: visible;
  transition: opacity 680ms ease, visibility 680ms ease;
}

.intro-gate.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 32, 88, 0.74), rgba(0, 32, 88, 0.42) 45%, rgba(8, 192, 216, 0.22)),
    url("public/assets/hero-faenatrack-field.jpg") center center / cover no-repeat;
  filter: saturate(1.03) contrast(1.04);
  transform: scale(1.08);
  animation: introImageIn 1200ms ease-out both;
}

.intro-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 18%, rgba(8, 192, 216, 0.3), transparent 20%),
    radial-gradient(circle at 18% 78%, rgba(18, 92, 245, 0.24), transparent 24%),
    rgba(0, 20, 48, 0.18);
  backdrop-filter: blur(3px);
}

.intro-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(820px, 88vw);
  text-align: center;
  animation: introContentIn 900ms ease-out 180ms both;
}

.intro-logo {
  width: min(520px, 72vw);
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.24));
}

.intro-kicker {
  margin: 0 0 14px;
  color: #81f1ff;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-content h1 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5rem);
  text-shadow: 0 18px 52px rgba(0, 20, 48, 0.42);
}

.intro-content p:not(.intro-kicker) {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.intro-lang {
  min-width: 142px;
  min-height: 52px;
  padding: 0 24px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.intro-lang:hover,
.intro-lang.active {
  transform: translateY(-2px);
  border-color: rgba(129, 241, 255, 0.9);
  background: #125cf5;
}

.intro-gate.is-leaving .intro-bg {
  animation: introImageOut 720ms ease both;
}

.intro-gate.is-leaving .intro-content {
  animation: introContentOut 520ms ease both;
}

/* Ajustes finales de la primera pantalla posterior a la entrada */
.site-header,
.site-header.is-compact {
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 10px;
}

body {
  padding-top: 78px;
}

.brand,
.site-header.is-compact .brand {
  width: min(220px, 24vw);
}

.hero {
  grid-template-columns: minmax(420px, 0.96fr) minmax(430px, 0.9fr);
  min-height: calc(100svh - 78px);
  padding-right: 4.4vw;
}

.hero-photo {
  min-height: calc(100svh - 78px);
}

.hero-photo img {
  width: 112%;
  object-position: 44% center;
  transform: translateX(-5%);
}

.hero-photo::before {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0) 0%, rgba(247, 251, 253, 0.18) 46%, rgba(255, 255, 255, 0.96) 98%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.46));
}

.hero-copy {
  padding-top: 0;
}

.hero-copy h1 {
  font-size: clamp(2.85rem, 4.45vw, 4.8rem);
}

.lead {
  max-width: 660px;
}

@keyframes introImageIn {
  from { opacity: 0; transform: scale(1.16); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes introImageOut {
  from { opacity: 1; transform: scale(1.08); }
  to { opacity: 0; transform: scale(1.18); }
}

@keyframes introContentIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes introContentOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-24px) scale(0.98); }
}

@media (max-width: 820px) {
  body { padding-top: 112px; }

  .site-header,
  .site-header.is-compact { min-height: 112px; }

  .intro-logo { width: min(420px, 78vw); }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 5vw 56px;
  }

  .hero-photo { min-height: 360px; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 38px;
  padding: 0 12px;
  color: #082f66;
  cursor: pointer;
  border: 1px solid rgba(18, 92, 245, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.lang-switch:hover {
  color: #125cf5;
  border-color: rgba(18, 92, 245, 0.55);
}

/* Ajuste final solicitado: portada oscura + hero centrado tipo referencia */
.intro-gate {
  place-items: stretch;
  color: #fff;
  background: #041a3e;
}

.intro-bg {
  background:
    linear-gradient(90deg, rgba(0, 20, 48, 0.96) 0%, rgba(0, 28, 66, 0.76) 42%, rgba(0, 33, 72, 0.28) 100%),
    radial-gradient(circle at 88% 42%, rgba(8, 192, 216, 0.22), transparent 26%),
    url("public/assets/hero-faenatrack-field.jpg") 64% center / cover no-repeat;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.04);
}

.intro-bg::after {
  background:
    linear-gradient(90deg, rgba(0, 20, 48, 0.72), rgba(0, 20, 48, 0.24) 56%, rgba(0, 20, 48, 0.08)),
    radial-gradient(circle at 82% 82%, rgba(8, 192, 216, 0.24), transparent 22%);
  backdrop-filter: blur(2px);
}

.intro-content {
  align-content: center;
  justify-items: start;
  width: min(760px, 52vw);
  min-height: 100svh;
  margin-left: clamp(42px, 5.8vw, 92px);
  padding: 148px 0 86px;
  text-align: left;
}

.intro-logo {
  position: fixed;
  top: clamp(34px, 5vw, 70px);
  left: clamp(34px, 5vw, 70px);
  width: min(420px, 30vw);
  margin: 0;
}

.intro-kicker {
  margin-bottom: 22px;
  color: #0fe4ff;
  font-size: clamp(0.78rem, 1vw, 0.98rem);
}

.intro-content h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(3.05rem, 5.2vw, 5.65rem);
  line-height: 1.04;
  text-align: left;
}

.intro-content h1 span {
  color: #12c8e8;
}

.intro-content h1::after {
  display: block;
  width: 72px;
  height: 3px;
  margin: 24px 0 0;
  content: "";
  background: #12c8e8;
}

.intro-content p:not(.intro-kicker) {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.55vw, 1.42rem);
  line-height: 1.55;
}

.intro-actions {
  position: fixed;
  top: clamp(38px, 5.4vw, 76px);
  right: clamp(32px, 4vw, 64px);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: min(312px, 34vw);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(0, 20, 48, 0.38);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(8, 192, 216, 0.18);
  backdrop-filter: blur(14px);
}

.intro-actions span {
  grid-column: 1 / -1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1rem;
  font-weight: 720;
}

.intro-actions span::before {
  margin-right: 10px;
  content: "?";
  color: #69e8ff;
  font-size: 0.72rem;
}

.intro-lang {
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.intro-lang:hover,
.intro-lang.active {
  transform: none;
  background: linear-gradient(135deg, #08c0d8, #125cf5);
  box-shadow: 0 0 26px rgba(8, 192, 216, 0.45);
}

.intro-gate::before,
.intro-gate::after {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.intro-gate::before {
  right: 7vw;
  top: 25vh;
  width: min(520px, 34vw);
  height: min(520px, 34vw);
  border: 1px solid rgba(8, 192, 216, 0.44);
  border-radius: 50%;
}

.intro-gate::after {
  right: -2vw;
  bottom: 4vh;
  width: 48vw;
  height: 24vw;
  border-bottom: 2px solid rgba(8, 192, 216, 0.42);
  border-radius: 0 0 50% 50%;
}

/* Hero principal más centrado y legible */
.site-header,
.site-header.is-compact {
  min-height: 86px;
  padding: 12px 4vw;
}

body {
  padding-top: 86px;
}

.brand,
.site-header.is-compact .brand {
  width: min(240px, 25vw);
}

.hero {
  grid-template-columns: minmax(430px, 0.92fr) minmax(500px, 0.98fr);
  gap: 2.8vw;
  min-height: calc(100svh - 86px);
  padding: 0 5.1vw 0 0;
}

.hero-photo {
  min-height: calc(100svh - 86px);
}

.hero-photo img {
  width: 118%;
  object-position: 50% center;
  transform: translateX(-7%);
}

.hero-photo::before {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0) 0%, rgba(247, 251, 253, 0.16) 50%, rgba(255, 255, 255, 0.98) 98%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34));
}

.hero-copy {
  max-width: 720px;
  justify-self: center;
  padding-top: 0;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3rem, 4.65vw, 5rem);
}

.hero-actions .button {
  min-width: 230px;
}

@media (max-width: 980px) {
  .intro-content {
    width: min(720px, 86vw);
    margin-left: 7vw;
    padding-top: 190px;
  }

  .intro-logo {
    width: min(360px, 62vw);
  }

  .intro-actions {
    width: min(300px, 82vw);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 0 5vw 58px;
  }

  .hero-photo {
    min-height: 430px;
    margin: 0 -5vw;
  }
}

/* Limpieza final: sin pantalla previa, hero principal directo */
.intro-gate {
  display: none !important;
}

body,
body.intro-active {
  overflow: auto;
  padding-top: 90px;
}

.site-header,
.site-header.is-compact {
  min-height: 90px;
  padding: 13px 4.7vw;
  background: rgba(248, 252, 254, 0.94);
}

.brand,
.site-header.is-compact .brand {
  width: min(250px, 24vw);
}

nav {
  gap: clamp(16px, 1.8vw, 28px);
}

.hero {
  grid-template-columns: minmax(500px, 0.95fr) minmax(520px, 1fr);
  gap: clamp(34px, 4.2vw, 76px);
  align-items: center;
  min-height: calc(100svh - 90px);
  padding: 0 clamp(48px, 5vw, 90px) 0 clamp(42px, 4.8vw, 84px);
  background:
    radial-gradient(circle at 88% 20%, rgba(8, 192, 216, 0.08), transparent 22%),
    linear-gradient(90deg, #f7fbfd 0%, #ffffff 52%, #fbfdfe 100%);
}

.hero::before {
  right: 5vw;
  top: 12vh;
  width: min(520px, 35vw);
  height: min(520px, 35vw);
  border: 1px solid rgba(8, 192, 216, 0.36);
  border-left-color: transparent;
  background: transparent;
  border-radius: 999px;
}

.hero::after {
  right: 3.8vw;
  bottom: 8vh;
  left: auto;
  width: 290px;
  height: 170px;
  border-right: 2px solid rgba(8, 192, 216, 0.34);
  border-bottom: 2px solid rgba(8, 192, 216, 0.34);
  border-radius: 0 0 42px 0;
  background: transparent;
  filter: none;
}

.hero-photo {
  min-height: calc(100svh - 90px);
  margin-left: calc(clamp(42px, 4.8vw, 84px) * -1);
}

.hero-photo img {
  width: 122%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  transform: translateX(-8%);
}

.hero-photo::before {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.02) 0%, rgba(247, 251, 253, 0.12) 50%, rgba(255, 255, 255, 0.98) 99%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.38));
}

.hero-copy {
  max-width: 760px;
  justify-self: start;
  padding-top: 0;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
  color: #0a7fa7;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 4.5vw, 5rem);
  line-height: 1.06;
}

.hero-copy h1 span {
  color: #1261ff;
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  color: #344a66;
  font-size: clamp(1.05rem, 1.22vw, 1.24rem);
  line-height: 1.52;
}

.hero-actions {
  margin-top: 38px;
}

.hero-actions .button {
  min-width: 240px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 5vw 60px;
  }

  .hero-photo {
    min-height: 430px;
    margin: 0 -5vw;
  }

  .hero-copy {
    justify-self: start;
    padding-top: 28px;
  }
}

/* Ajuste 90%: primera vista completa y centrada */
body,
body.intro-active {
  padding-top: 78px;
}

.site-header,
.site-header.is-compact {
  min-height: 78px;
  padding: 9px 4.6vw;
}

.brand,
.site-header.is-compact .brand {
  width: min(218px, 22vw);
}

nav {
  gap: clamp(14px, 1.45vw, 24px);
  font-size: 0.95rem;
}

.nav-cta {
  min-height: 44px;
  padding: 0 22px;
}

.lang-switch {
  min-width: 44px;
  min-height: 34px;
  font-size: 0.84rem;
}

.hero {
  grid-template-columns: minmax(460px, 0.95fr) minmax(500px, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  min-height: calc(100svh - 78px);
  padding: 0 clamp(42px, 4.4vw, 76px) 0 clamp(34px, 4vw, 68px);
}

.hero-photo {
  min-height: calc(100svh - 78px);
  margin-left: calc(clamp(34px, 4vw, 68px) * -1);
}

.hero-photo img {
  width: 112%;
  object-position: 62% center;
  transform: translateX(-7%) scale(0.98);
}

.hero-photo::before {
  background:
    linear-gradient(90deg, rgba(247, 251, 253, 0.02) 0%, rgba(247, 251, 253, 0.1) 48%, rgba(255, 255, 255, 0.97) 98%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.3));
}

.hero-copy {
  align-self: center;
  justify-self: center;
  max-width: 660px;
  padding-bottom: 18px;
  transform: translateY(-2vh);
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
  font-size: 0.72rem;
}

.hero-copy h1 {
  max-width: 660px;
  font-size: clamp(2.35rem, 3.6vw, 4.1rem);
  line-height: 1.05;
}

.lead {
  max-width: 620px;
  margin-top: 18px;
  font-size: clamp(0.96rem, 1.05vw, 1.1rem);
  line-height: 1.48;
}

.hero-actions {
  gap: 14px;
  margin-top: 26px;
}

.hero-actions .button {
  min-width: 210px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.whatsapp-float {
  width: 52px;
  min-height: 52px;
  right: 22px;
  bottom: 22px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 5vw 52px;
  }

  .hero-copy {
    transform: none;
  }

  .hero-photo {
    min-height: 390px;
    margin: 0 -5vw;
  }
}

/* Ajuste fino de encuadre inicial: texto e imagen centrados en viewport real */
body,
body.intro-active {
  padding-top: 72px;
}

.site-header,
.site-header.is-compact {
  min-height: 72px;
  padding: 8px 4.4vw;
}

.brand,
.site-header.is-compact .brand {
  width: min(205px, 21vw);
}

nav {
  gap: clamp(12px, 1.25vw, 22px);
  font-size: 0.9rem;
}

.nav-cta {
  min-height: 40px;
  padding: 0 20px;
}

.lang-switch {
  min-width: 42px;
  min-height: 32px;
}

.hero {
  grid-template-columns: minmax(440px, 0.9fr) minmax(500px, 1fr);
  gap: clamp(28px, 3.2vw, 58px);
  min-height: calc(100svh - 72px);
  padding: 0 clamp(44px, 4.6vw, 82px) 0 clamp(28px, 3.4vw, 62px);
}

.hero-photo {
  min-height: calc(100svh - 72px);
  margin-left: calc(clamp(28px, 3.4vw, 62px) * -1);
}

.hero-photo img {
  width: 108%;
  object-position: 61% 58%;
  transform: translateX(-4%) scale(0.96);
}

.hero-copy {
  max-width: 620px;
  justify-self: center;
  align-self: center;
  padding-bottom: 0;
  transform: translateY(-7vh);
}

.hero-copy .eyebrow {
  margin-bottom: 12px;
  font-size: 0.68rem;
}

.hero-copy h1 {
  max-width: 620px;
  font-size: clamp(2.18rem, 3.25vw, 3.65rem);
  line-height: 1.06;
}

.lead {
  max-width: 590px;
  margin-top: 16px;
  font-size: clamp(0.92rem, 0.98vw, 1.04rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 22px;
}

.hero-actions .button {
  min-width: 190px;
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}

@media (max-width: 1120px) {
  .hero-copy {
    transform: none;
  }
}
