/* Contrast improvements for secondary copy and utility labels. */
:root {
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
}

.section-index,
.eyebrow,
.hero-kicker,
.visual-label,
.node small,
.hero-metrics span,
.section-top > p,
.intro-copy > p:not(.big-copy),
.service-tag,
.service-text,
.service-footer,
.selector-content small,
.tech-copy > p:last-child,
.process-step p,
.solutions-bottom p,
.solution-info > div > p:last-child {
  color: #cbd5e1;
}

.hero-description {
  color: #e2e8f0;
  text-shadow: 0 1px 8px rgba(2, 8, 23, 0.8);
}

.hero-kicker,
.visual-label {
  text-shadow: 0 1px 8px rgba(2, 8, 23, 0.9);
}

.status-pill {
  background: rgba(4, 23, 42, 0.9);
}

.hero-metrics span {
  font-size: 10px;
}

.service-text,
.section-top > p,
.intro-copy > p:not(.big-copy),
.tech-copy > p:last-child,
.process-step p,
.solution-info > div > p:last-child {
  color: #e2e8f0;
}

.service-footer,
.service-tag,
.selector-content small,
.solutions-bottom p {
  color: #cbd5e1;
}

.scenario span,
.scenario i,
.result-stack span,
.tech-wall span,
.contact-links small,
.footer-top p,
.footer-top > a:last-child,
.chat-head small,
.chat-head button,
input::placeholder,
textarea::placeholder {
  color: #cbd5e1;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
}

.result-stack span {
  border-color: rgba(184, 224, 240, 0.3);
}

.solution-selector {
  color: #cbd5e1;
}

.solution-selector.active {
  color: #fff;
}

.hero-visual,
.visual-terminal {
  min-width: 0;
}

/* Recent work / illustrative project cards */
.projects {
  max-width: var(--max);
}

.projects-heading {
  align-items: end;
}

.projects-heading h2 {
  margin-top: 18px;
  font: 700 clamp(40px, 5.2vw, 70px) / 0.99 "Space Grotesk", sans-serif;
  letter-spacing: -0.052em;
}

.projects-heading h2 span {
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(32, 221, 255, 0.14);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(150, 210, 234, 0.24);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(8, 29, 48, 0.97), rgba(3, 15, 29, 0.97));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
}

.project-preview {
  position: relative;
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(150, 210, 234, 0.2);
  background:
    radial-gradient(circle at 50% 50%, rgba(32, 221, 255, 0.17), transparent 58%),
    linear-gradient(135deg, #07182b, #0a2036);
}

.project-preview::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 220, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 220, 240, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 84%);
}

.preview-index {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #e2e8f0;
  font: 700 9px "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 8px #020817;
}

.preview-window,
.logistics-mock,
.service-mock {
  position: relative;
  z-index: 1;
  width: min(82%, 340px);
  min-height: 160px;
  overflow: hidden;
  border: 1px solid rgba(184, 224, 240, 0.35);
  border-radius: 10px;
  background: rgba(3, 13, 26, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  transform: perspective(800px) rotateY(-6deg) rotateX(2deg);
}

.preview-window-bar {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(184, 224, 240, 0.18);
}

.preview-window-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b7cad5;
}

.commerce-mock {
  padding: 11px 13px 12px;
}

.mock-nav,
.service-mock-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font: 700 7px "Space Grotesk", sans-serif;
}

.mock-nav b,
.service-mock-top b {
  margin-right: auto;
  color: #fff;
}

.mock-nav > span {
  width: 21px;
  height: 3px;
  background: #7992a1;
}

.mock-nav i {
  width: 10px;
  height: 10px;
  border: 1px solid #35ddff;
  border-radius: 50%;
}

.mock-banner {
  min-height: 76px;
  margin-top: 9px;
  padding: 10px;
  background: linear-gradient(105deg, rgba(0, 119, 255, 0.32), rgba(115, 92, 255, 0.18));
}

.mock-banner small,
.service-mock-main small,
.mock-dashboard > small {
  display: block;
  color: #d4e5ee;
  font: 700 6px "Space Grotesk", sans-serif;
  letter-spacing: 0.13em;
}

.mock-banner b,
.service-mock-main b,
.mock-dashboard > b {
  display: block;
  margin-top: 5px;
  color: #fff;
  font: 700 17px/1.05 "Space Grotesk", sans-serif;
}

.mock-banner > span {
  width: 34px;
  height: 5px;
  display: block;
  margin-top: 7px;
  border-radius: 5px;
  background: #20ddff;
}

.mock-products,
.mock-stats {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.mock-products i,
.mock-stats span {
  height: 20px;
  flex: 1;
  border: 1px solid rgba(150, 210, 234, 0.2);
  border-radius: 3px;
  background: linear-gradient(145deg, rgba(32, 221, 255, 0.12), rgba(115, 92, 255, 0.1));
}

.preview-logistics {
  background:
    radial-gradient(circle at 75% 34%, rgba(115, 92, 255, 0.22), transparent 40%),
    linear-gradient(135deg, #07182b, #0b2031);
}

.logistics-mock {
  min-height: 150px;
  display: grid;
  grid-template-columns: 34% 1fr;
  transform: perspective(800px) rotateY(6deg) rotateX(2deg);
}

.mock-side {
  padding: 13px 8px;
  border-right: 1px solid rgba(184, 224, 240, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.mock-side b,
.mock-side span {
  display: block;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #d2e3ec;
}

.mock-side b {
  height: auto;
  margin-bottom: 16px;
  background: none;
  font: 700 6px "Space Grotesk", sans-serif;
}

.mock-side span {
  width: 74%;
  background: #91adbf;
}

.mock-dashboard {
  padding: 14px 12px;
}

.mock-dashboard > b {
  font-size: 14px;
}

.mock-route {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.mock-route i {
  width: 9px;
  height: 9px;
  border: 2px solid #20ddff;
  border-radius: 50%;
}

.mock-route span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, #20ddff, #735cff);
}

.mock-stats span {
  height: 16px;
}

.preview-services {
  background:
    radial-gradient(circle at 26% 70%, rgba(32, 221, 255, 0.16), transparent 45%),
    linear-gradient(135deg, #07182b, #102033);
}

.service-mock {
  min-height: 152px;
  padding: 12px;
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
}

.service-mock-top {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 224, 240, 0.22);
}

.service-mock-top span {
  color: #d4e5ee;
  font-size: 6px;
}

.service-mock-main {
  padding-top: 11px;
}

.service-mock-main b {
  font-size: 15px;
}

.service-mock-main i {
  width: 47px;
  height: 5px;
  display: block;
  margin-top: 7px;
  border-radius: 5px;
  background: #20ddff;
}

.service-mock-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 9px;
  color: #e2e8f0;
  font: 600 6px "Space Grotesk", sans-serif;
}

.service-mock-calendar span,
.service-mock-calendar b {
  padding: 4px;
  border: 1px solid rgba(184, 224, 240, 0.18);
  border-radius: 3px;
  text-align: center;
}

.service-mock-calendar b {
  color: #fff;
  background: rgba(32, 221, 255, 0.12);
}

.project-card-content {
  padding: 22px;
}

.project-sector {
  color: #cbd5e1;
  font: 700 9px "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
}

.project-card h3 {
  min-height: 52px;
  margin-top: 10px;
  color: #f3fbff;
  font: 700 21px/1.15 "Space Grotesk", sans-serif;
  letter-spacing: -0.025em;
}

.project-details {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.project-details div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}

.project-details dt {
  color: #cbd5e1;
  font: 700 9px "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-details dd {
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.55;
}

.project-outcome {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 12px;
  border-left: 2px solid var(--cyan);
  background: rgba(32, 221, 255, 0.06);
}

.project-outcome span {
  color: #cbd5e1;
  font: 700 8px "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
}

.project-outcome strong {
  color: #f3fbff;
  font-size: 11px;
  line-height: 1.5;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.project-stack span {
  padding: 5px 7px;
  border: 1px solid rgba(184, 224, 240, 0.24);
  border-radius: 4px;
  color: #e2e8f0;
  font: 700 8px "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}

.project-case {
  margin-top: 16px;
  border-top: 1px solid rgba(184, 224, 240, 0.18);
  border-bottom: 1px solid rgba(184, 224, 240, 0.18);
}

.project-case summary {
  padding: 12px 0;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.project-case summary::marker {
  color: var(--cyan);
}

.project-case p {
  padding: 0 0 12px;
  color: #e2e8f0;
  font-size: 11px;
  line-height: 1.65;
}

.project-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #f3fbff;
  font-size: 11px;
  font-weight: 800;
}

.project-link span {
  color: var(--cyan);
  font-size: 17px;
}

.project-link:focus-visible,
.project-case summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.projects-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.projects-trust > div {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(150, 210, 234, 0.22);
  border-radius: 12px;
  background: rgba(5, 19, 34, 0.76);
}

.projects-trust > div > span {
  flex: 0 0 auto;
  color: var(--cyan);
  font: 700 17px "Space Grotesk", sans-serif;
}

.projects-trust p {
  display: grid;
  gap: 4px;
}

.projects-trust strong {
  color: #f3fbff;
  font: 700 11px "Space Grotesk", sans-serif;
}

.projects-trust small {
  color: #e2e8f0;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .projects-grid,
  .projects-trust {
    grid-template-columns: 1fr;
  }

  .projects-heading h2 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .project-card h3 {
    min-height: 0;
  }
}

/* Consistent vertical rhythm and shared section containers */
.intro.section,
.services.section {
  padding-block: clamp(6rem, 9vw, 8rem);
}

.intro.section {
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#servicios {
  scroll-margin-top: 7rem;
}

.services-content {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

.services-content .section-top {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.service-grid {
  width: 100%;
  margin-inline: auto;
}

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

.service-number,
.service-tag,
.service-footer {
  color: #e2e8f0;
}

.service-tag {
  color: #38bdf8;
}

.service-text {
  color: #e2e8f0;
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 720px) {
  .intro.section,
  .services.section {
    padding-block: 5.5rem;
  }

  .intro.section {
    min-height: 0;
    display: block;
  }

  #servicios {
    scroll-margin-top: 5rem;
  }

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

/* Hero stacking and first-viewport fit on laptop-sized desktop screens */
.hero-grid,
.hero-beam {
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-visual {
  z-index: 1;
}

@media (min-width: 1101px) and (max-height: 850px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 108px 24px 18px;
  }

  .hero-inner {
    min-height: 0;
  }

  .status-pill {
    margin-bottom: 2px;
  }

  .hero-kicker {
    margin: 18px 0 10px;
  }

  .hero h1 {
    font-size: clamp(48px, 5.2vw, 70px);
    line-height: 0.96;
  }

  .hero-description {
    margin: 16px 0 18px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-metrics {
    margin-top: 20px;
    padding-top: 12px;
  }

  .hero-visual {
    height: min(470px, 62dvh);
  }

  .hero-visual::before {
    width: min(500px, 64dvh);
    height: min(500px, 64dvh);
  }

  .visual-core {
    width: min(430px, 56dvh);
    height: min(430px, 56dvh);
  }

  .node {
    transform: scale(0.82);
  }

  .label-top {
    top: 18px;
  }

  .label-bottom {
    bottom: 18px;
  }
}

  @media (min-width: 821px) and (max-width: 1100px) and (max-height: 850px) {
    .hero {
      min-height: 100vh;
      min-height: 100dvh;
      padding: 108px 24px 18px;
    }

    .hero-inner {
      min-height: 0;
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
      gap: 12px;
    }

    .hero-copy {
      max-width: none;
    }

    .hero-kicker {
      margin: 18px 0 10px;
    }

    .hero h1 {
      font-size: clamp(42px, 5vw, 56px);
      line-height: 0.98;
    }

    .hero-description {
      margin: 16px 0 18px;
      font-size: 14px;
      line-height: 1.5;
    }

    .hero-metrics {
      margin-top: 20px;
      padding-top: 12px;
    }

    .hero-visual {
      height: min(400px, 52dvh);
      margin-top: 0;
    }

    .hero-visual::before {
      width: min(420px, 54dvh);
      height: min(420px, 54dvh);
    }

    .visual-core {
      width: min(380px, 50dvh);
      height: min(380px, 50dvh);
    }
  }

  /* Decision section copy and breathing room around the fixed chat control */
  .section-top > p {
    max-width: min(42rem, 48%);
  }

  .problem-section {
    padding-bottom: clamp(12rem, 24vh, 15rem);
  }

  .problem-section .section-top {
    max-width: 48rem;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .problem-section .section-top > p:last-child {
    width: min(100%, 42rem);
    max-width: 42rem;
    margin-top: 1rem;
  }

  .chatbot {
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 200;
  }

  @media (max-width: 720px) {
    .section-top > p {
      max-width: 42rem;
    }

    .problem-section {
      padding-bottom: 11rem;
    }

    .chatbot {
      right: max(12px, env(safe-area-inset-right));
      bottom: max(12px, env(safe-area-inset-bottom));
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .project-link,
    .project-case summary {
    scroll-behavior: auto;
  }
}
