:root {
  --blue: #1c4661;
  --blue-dark: #102c3f;
  --orange: #f29121;
  --green: #1fa855;
  --text: #1e2a32;
  --muted: #66747d;
  --line: #dce4e8;
  --soft: #f5f7f8;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(16, 44, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@keyframes mediaIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(-8px, -4px, 0);
  }

  to {
    transform: scale(1.08) translate3d(10px, 6px, 0);
  }
}

@keyframes scanSweep {
  from {
    transform: translateX(-120%) skewX(-14deg);
  }

  to {
    transform: translateX(140%) skewX(-14deg);
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(31, 168, 85, 0.24);
  }

  50% {
    box-shadow: 0 18px 42px rgba(31, 168, 85, 0.42);
  }
}

@keyframes lineFlow {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 92px 0;
  }
}

@keyframes edgeRun {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes processPulse {
  0%,
  100% {
    box-shadow: 0 0 0 10px rgba(28, 70, 97, 0.08), 0 0 0 0 rgba(242, 145, 33, 0.34);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(28, 70, 97, 0.08), 0 0 0 12px rgba(242, 145, 33, 0);
  }
}

@keyframes processFlow {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 180px 0, 90px 0;
  }
}

@keyframes nodeGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(242, 145, 33, 0));
  }

  50% {
    filter: drop-shadow(0 0 16px rgba(242, 145, 33, 0.48));
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(-3deg);
  }
}

@keyframes cardSignal {
  0%,
  100% {
    opacity: 0.16;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.32;
    transform: translate3d(-10px, -8px, 0) scale(1.14);
  }
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes heroCinematicScroll {
  from {
    opacity: 1;
    scale: 1;
    filter: saturate(1) contrast(1);
  }

  to {
    opacity: 0.58;
    scale: 1.12;
    filter: saturate(0.82) contrast(1.08);
  }
}

@keyframes titleCinematicScroll {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0.72;
    transform: translateY(-46px) scale(0.94);
  }
}

@keyframes cardViewLift {
  from {
    opacity: 0.35;
    transform: translateY(70px) scale(0.94);
  }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(28, 70, 97, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 390px;
}

.brand-logo {
  width: 148px;
  height: 84px;
  border-radius: 8px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--blue);
  font-size: 1.48rem;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.08;
}

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.main-nav a {
  padding: 10px 0;
}

.main-nav a:hover {
  color: var(--orange);
}

.whatsapp-pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.whatsapp-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 18px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(31, 168, 85, 0.24);
  animation: ctaPulse 2.4s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.whatsapp-pill::before,
.button.primary::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%) skewX(-14deg);
  animation: scanSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.whatsapp-pill svg,
.button svg {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(620px, 82vh, 780px);
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px) clamp(54px, 7vw, 86px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 26, 38, 0.38), rgba(8, 26, 38, 0.62) 58%, rgba(8, 26, 38, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 26, 38, 0.16), rgba(8, 26, 38, 0.54));
}

.hero::selection {
  color: var(--white);
  background: var(--orange);
}

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

.hero::before {
  display: none;
}

.hero::after {
  right: auto;
  bottom: clamp(28px, 5vw, 54px);
  left: 50%;
  width: min(720px, 72vw);
  height: 4px;
  background: linear-gradient(90deg, rgba(242, 145, 33, 0), var(--orange), rgba(242, 145, 33, 0));
  translate: -50% var(--hero-line-y, 0px);
  animation: edgeRun 4s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin-inline: auto;
  animation: fadeUp 720ms ease both;
  transform-origin: center center;
}

.hero .eyebrow {
  font-size: clamp(0.98rem, 1.25vw, 1.2rem);
  letter-spacing: 0.1em;
}

.cinematic-parallax .hero-copy {
  translate: 0 var(--hero-copy-y, 0px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-size: clamp(2.25rem, 4.25vw, 3.95rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  color: var(--white);
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.hero-text {
  max-width: 650px;
  margin-bottom: 26px;
  color: #34444d;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.62;
}

.hero .hero-text {
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.86);
}

.hero .hero-actions {
  justify-content: center;
}

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

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 176px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 30px rgba(31, 168, 85, 0.24);
  animation: ctaPulse 2.4s ease-in-out infinite;
}

.button.secondary {
  color: var(--blue);
  border-color: rgba(28, 70, 97, 0.25);
  background: var(--white);
}

.button.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
}

.button.full {
  width: 100%;
}

.whatsapp-pill:hover,
.button:hover {
  transform: translateY(-2px);
}

.whatsapp-pill:hover,
.button.primary:hover {
  box-shadow: 0 18px 36px rgba(31, 168, 85, 0.3);
}

.button.secondary:hover {
  border-color: rgba(242, 145, 33, 0.6);
  color: var(--orange);
}

.hero .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero .button.secondary:hover {
  color: var(--white);
  border-color: rgba(242, 145, 33, 0.74);
  background: rgba(242, 145, 33, 0.18);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 740px;
  margin-top: 12px;
  margin-right: auto;
  margin-left: auto;
}

.hero-points span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
  animation: mediaIn 820ms 120ms ease both;
  transform-origin: center center;
}

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

.hero-media::before {
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 26, 38, 0.14), rgba(8, 26, 38, 0.42) 58%, rgba(8, 26, 38, 0.66) 100%),
    linear-gradient(180deg, rgba(8, 26, 38, 0.08), rgba(8, 26, 38, 0.58));
}

.hero-media::after {
  display: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82) contrast(1.05) saturate(0.96);
  animation: heroDrift 13s ease-in-out infinite alternate;
  transition: transform 520ms ease;
  transform-origin: center center;
}

.cinematic-parallax .hero-media {
  perspective: none;
  rotate: 0deg;
  translate: 0 var(--hero-card-y, 0px);
  transition: translate 180ms ease-out;
}

.cinematic-parallax .hero-media img {
  translate: var(--hero-img-x, 0px) var(--hero-img-y, 0px);
}

.hero:hover .hero-media img,
.split-heading img:hover,
.contact-copy img:hover {
  animation-play-state: paused;
  transform: scale(1.045);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-separator {
  position: relative;
  overflow: hidden;
  height: 7px;
  background: rgba(242, 145, 33, 0.16);
}

.motion-separator::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--orange), #ffb056, var(--orange));
  transform: translateX(-100%);
  animation: edgeRun 2.2s ease-in-out infinite;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 920px;
}

h2 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  color: var(--blue-dark);
  font-size: 1.12rem;
  line-height: 1.2;
}

.section-heading p,
.project-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.68;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  margin-bottom: 34px;
}

.split-heading .section-heading {
  margin-bottom: 0;
}

.split-heading img,
.contact-copy img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(16, 44, 63, 0.14);
  transition: transform 520ms ease;
}

.cinematic-parallax .split-heading img,
.cinematic-parallax .contact-copy img {
  translate: 0 var(--image-parallax-y, 0px);
}

.split-heading img {
  height: 260px;
}

.problem-section {
  background: var(--white);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.problem-grid article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 25px;
  border: 1px solid rgba(28, 70, 97, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(245, 247, 248, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.84)),
    var(--problem-bg, radial-gradient(circle at 100% 0%, rgba(242, 145, 33, 0.2), transparent 42%)) center / cover no-repeat;
  color: var(--blue-dark);
  box-shadow: 0 12px 34px rgba(16, 44, 63, 0.06);
  isolation: isolate;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.problem-grid article:hover {
  background:
    linear-gradient(135deg, rgba(16, 44, 63, 0.84), rgba(16, 44, 63, 0.42)),
    var(--problem-bg, radial-gradient(circle at 100% 0%, rgba(242, 145, 33, 0.2), transparent 42%)) center / cover no-repeat;
}

.problem-grid article:nth-child(1) {
  --problem-bg: url("assets/respuesta-compras-urgentes.jpg");
}

.problem-grid article:nth-child(2) {
  --problem-bg: url("assets/solutions-review.jpg");
}

.problem-grid article:nth-child(3) {
  --problem-bg: url("assets/respuesta-consolidacion.jpg");
}

.problem-grid article:nth-child(4) {
  --problem-bg: url("assets/proyectos-ahorro.jpg");
}

.problem-grid article:nth-child(5) {
  --problem-bg: url("assets/respuesta-alternativas-tecnicas.jpg");
}

.problem-grid article:nth-child(6) {
  --problem-bg: url("assets/respuesta-proyectos-especiales.jpg");
}

.problem-grid article:nth-child(7) {
  --problem-bg: url("assets/respuesta-generacion-ahorros.jpg");
}

.problem-grid article:nth-child(8) {
  --problem-bg: url("assets/respuesta-un-solo-contacto.jpg");
}

.problem-grid article::before {
  position: absolute;
  right: -34px;
  bottom: -40px;
  z-index: -1;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  content: "";
  background: rgba(242, 145, 33, 0.15);
  transition: transform 260ms ease;
  animation: cardSignal 4.4s ease-in-out infinite;
}

.problem-grid article::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--orange), transparent);
  transform: translateX(-100%);
}

.problem-grid article:hover::before {
  animation: none;
  transform: scale(1.35) translate(-8px, -8px);
}

.problem-grid article:hover::after,
.problem-grid article.is-visible::after {
  animation: edgeRun 1.4s ease-in-out;
}

.problem-grid svg {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 8px;
  fill: var(--blue);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(16, 44, 63, 0.12);
  animation: iconFloat 3.4s ease-in-out infinite;
  transition: transform 260ms ease, background 260ms ease, fill 260ms ease, box-shadow 260ms ease;
}

.problem-grid article:hover svg {
  animation: none;
  fill: var(--white);
  background: var(--orange);
  box-shadow: 0 18px 38px rgba(242, 145, 33, 0.22);
  transform: translateY(-6px) rotate(-6deg) scale(1.12);
}

.problem-grid article:hover strong,
.problem-grid article:hover small {
  color: var(--white);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.problem-grid article:nth-child(2n) svg,
.industry-grid article:nth-child(2n) svg {
  animation-delay: 260ms;
}

.problem-grid article:nth-child(3n) svg,
.industry-grid article:nth-child(3n) svg {
  animation-delay: 520ms;
}

.problem-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.problem-grid small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.problem-grid article:hover,
.solution-card:hover,
.industry-grid article:hover,
.process-list li:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 145, 33, 0.34);
  box-shadow: 0 18px 42px rgba(16, 44, 63, 0.1);
}

.quote-form:hover {
  transform: translateY(-3px);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  border-bottom: 2px solid var(--orange);
}

.solutions-section {
  background: var(--soft);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.solution-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 26px;
  border: 1px solid rgba(28, 70, 97, 0.12);
  border-radius: 8px;
  background: var(--blue-dark);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.solution-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 520ms ease, filter 520ms ease;
}

.solution-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(16, 44, 63, 0.05) 0%, rgba(16, 44, 63, 0.48) 46%, rgba(16, 44, 63, 0.94) 100%),
    linear-gradient(90deg, rgba(16, 44, 63, 0.55), transparent 62%);
}

.solution-card:hover .solution-card-image {
  transform: scale(1.055);
  filter: saturate(1.05) contrast(1.05);
}

.solution-card:nth-child(5) .solution-card-image {
  object-position: center 68%;
}

.solution-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  transform: translateX(-100%);
}

.solution-card:hover::before,
.solution-card.is-visible::before {
  animation: edgeRun 1.8s ease-in-out;
}

.solution-card .icon {
  display: none;
}

.solution-card h3,
.solution-card p {
  position: relative;
  z-index: 3;
}

.solution-card h3 {
  max-width: 300px;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.22rem;
}

.solution-card p {
  max-width: 310px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.accent-card {
  border-color: rgba(242, 145, 33, 0.32);
}

.accent-card::after {
  background:
    linear-gradient(180deg, rgba(16, 44, 63, 0.08) 0%, rgba(16, 44, 63, 0.45) 42%, rgba(16, 44, 63, 0.92) 100%),
    linear-gradient(90deg, rgba(242, 145, 33, 0.44), transparent 62%);
}

.project-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(34px, 6vw, 76px);
  min-height: 660px;
  padding-right: 0;
  padding-left: 0;
  background:
    linear-gradient(90deg, rgba(16, 44, 63, 0.94), rgba(16, 44, 63, 0.74) 54%, rgba(16, 44, 63, 0.42)),
    url("assets/cnc.jpg") center / cover no-repeat;
}

.project-section::before {
  position: absolute;
  inset: -12% 0;
  content: "";
  opacity: 0.13;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.32) 0,
    rgba(255, 255, 255, 0.32) 1px,
    transparent 1px,
    transparent 22px
  );
  background-size: 92px 92px;
  animation: lineFlow 8s linear infinite;
  translate: 0 var(--project-bg-y, 0px);
  pointer-events: none;
}

.project-section > * {
  position: relative;
  z-index: 1;
}

.project-section h2,
.project-section .eyebrow,
.project-section p {
  color: var(--white);
}

.project-copy {
  width: min(980px, calc(100% - clamp(36px, 10vw, 144px)));
  margin-left: clamp(18px, 5vw, 72px);
}

.project-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
}

.capability-marquee {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 44, 63, 0.68);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.capability-marquee::before,
.capability-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(70px, 12vw, 180px);
  content: "";
  pointer-events: none;
}

.capability-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(16, 44, 63, 0.98), rgba(16, 44, 63, 0));
}

.capability-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(16, 44, 63, 0.98), rgba(16, 44, 63, 0));
}

.capability-track {
  display: flex;
  width: max-content;
  min-width: 200%;
  animation: marqueeLeft 32s linear infinite;
  will-change: transform;
}

.capability-track span {
  position: relative;
  flex: 0 0 auto;
  padding: clamp(10px, 1.8vw, 18px) clamp(18px, 3.2vw, 36px);
  color: var(--white);
  font-size: clamp(1.05rem, 2.1vw, 2.25rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.capability-track span::after {
  margin-left: clamp(18px, 3.2vw, 36px);
  color: var(--orange);
  content: "/";
}

.industries-section {
  background: var(--white);
}

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

.industry-grid article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgba(28, 70, 97, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 248, 0.92)),
    repeating-linear-gradient(135deg, rgba(28, 70, 97, 0.06) 0 1px, transparent 1px 18px);
  color: var(--blue-dark);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.industry-grid article:nth-child(1) {
  --industry-bg: url("assets/industria-automotriz.jpg");
}

.industry-grid article:nth-child(2) {
  --industry-bg: url("assets/industria-metalmecanica.jpg");
}

.industry-grid article:nth-child(3) {
  --industry-bg: url("assets/industria-inyeccion-plastico.jpg");
}

.industry-grid article:nth-child(4) {
  --industry-bg: url("assets/industria-fundicion.jpg");
}

.industry-grid article:nth-child(5) {
  --industry-bg: url("assets/industria-alimentos.jpg");
}

.industry-grid article:nth-child(6) {
  --industry-bg: url("assets/industria-empaque.jpg");
}

.industry-grid article:nth-child(7) {
  --industry-bg: url("assets/industria-logistica.jpg");
}

.industry-grid article:nth-child(8) {
  --industry-bg: url("assets/industria-manufactura-general.jpg");
}

.industry-grid article::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.24;
  background:
    linear-gradient(135deg, rgba(245, 247, 248, 0.72), rgba(245, 247, 248, 0.5)),
    var(--industry-bg, url("assets/plant-wide.jpg")) center / cover no-repeat;
  transition: opacity 260ms ease, transform 520ms ease;
  transform: scale(1.06);
}

.industry-grid article::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  content: "";
  background: rgba(242, 145, 33, 0.14);
  animation: cardSignal 4.8s ease-in-out infinite;
  transition: transform 260ms ease, background 260ms ease;
}

.industry-grid svg {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 8px;
  fill: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(16, 44, 63, 0.1);
  animation: iconFloat 3.6s ease-in-out infinite;
  transition: transform 260ms ease, background 260ms ease, fill 260ms ease, box-shadow 260ms ease;
}

.industry-grid strong,
.industry-grid small {
  position: relative;
  z-index: 1;
  display: block;
}

.industry-grid strong {
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.industry-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.industry-grid article:hover::before {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(28, 70, 97, 0.88), rgba(28, 70, 97, 0.42)),
    var(--industry-bg, url("assets/plant-wide.jpg")) center / cover no-repeat;
  transform: scale(1);
}

.industry-grid article:hover::after {
  animation: none;
  transform: scale(1.35);
  background: rgba(242, 145, 33, 0.32);
}

.industry-grid article:hover svg {
  animation: none;
  fill: var(--white);
  background: var(--orange);
  transform: translateY(-6px) scale(1.12);
}

.industry-grid article:hover strong,
.industry-grid article:hover small {
  color: var(--white);
}

.process-section {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}

.process-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background:
    linear-gradient(90deg, transparent, var(--orange), transparent),
    repeating-linear-gradient(90deg, rgba(28, 70, 97, 0.18) 0 22px, transparent 22px 44px);
  background-size: 40% 100%, 88px 100%;
  animation: scanSweep 4.6s ease-in-out infinite, lineFlow 6s linear infinite;
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list::before {
  position: absolute;
  top: 58px;
  right: 7%;
  left: 7%;
  height: 12px;
  content: "";
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(28, 70, 97, 0.18), rgba(28, 70, 97, 0.5), rgba(28, 70, 97, 0.18)),
    repeating-linear-gradient(90deg, rgba(28, 70, 97, 0.18) 0 18px, transparent 18px 36px);
  box-shadow: inset 0 0 0 1px rgba(28, 70, 97, 0.1), 0 14px 34px rgba(16, 44, 63, 0.12);
}

.process-list::after {
  position: absolute;
  top: 55px;
  right: 7%;
  left: 7%;
  height: 18px;
  content: "";
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(242, 145, 33, 0.15) 12%, var(--orange) 34%, rgba(242, 145, 33, 0.18) 55%, transparent 74%),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.72) 34px 42px, transparent 42px 82px);
  background-size: 360px 100%, 164px 100%;
  mix-blend-mode: multiply;
  animation: processFlow 3.2s linear infinite;
  pointer-events: none;
}

.process-list li {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 292px;
  padding: 105px 24px 26px;
  border: 1px solid rgba(28, 70, 97, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 44, 63, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-list li::before {
  position: absolute;
  top: 26px;
  left: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at center, var(--blue) 0 52%, transparent 54%),
    conic-gradient(from 90deg, rgba(242, 145, 33, 0.12), var(--orange), rgba(28, 70, 97, 0.16), var(--orange), rgba(242, 145, 33, 0.12));
  box-shadow: 0 0 0 10px rgba(28, 70, 97, 0.08), 0 0 0 0 rgba(242, 145, 33, 0.38);
  animation: processPulse 2.8s ease-in-out infinite, nodeGlow 3.4s ease-in-out infinite;
}

.process-list li::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  content: "";
  background: linear-gradient(135deg, rgba(242, 145, 33, 0.18), transparent 70%);
}

.process-list span {
  position: absolute;
  top: 27px;
  left: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0;
  color: var(--white);
  font-weight: 950;
  font-size: 1.32rem;
}

.process-list svg {
  position: absolute;
  top: 30px;
  right: 22px;
  z-index: 2;
  width: 54px;
  height: 54px;
  padding: 12px;
  border-radius: 8px;
  fill: var(--orange);
  background: rgba(242, 145, 33, 0.12);
  animation: iconFloat 3.8s ease-in-out infinite;
  transition: transform 260ms ease, background 260ms ease, fill 260ms ease;
}

.process-list li:nth-child(2n) svg {
  animation-delay: 280ms;
}

.process-list li:nth-child(3n) svg {
  animation-delay: 560ms;
}

.process-list strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-dark);
  font-size: 1.32rem;
}

.process-list li:hover {
  transform: translateY(-10px) scale(1.025);
}

.process-list li:hover::before {
  background: var(--orange);
}

.process-list li:hover svg {
  animation: none;
  fill: var(--white);
  background: var(--blue);
  transform: translateY(-8px) rotate(5deg) scale(1.08);
}

.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 44, 63, 0.97), rgba(28, 70, 97, 0.96)),
    radial-gradient(circle at 80% 20%, rgba(242, 145, 33, 0.32), transparent 30%);
}

.contact-section h2,
.contact-section p,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-copy img {
  height: 250px;
  margin: 24px 0;
}

.quote-form {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}

.quote-form h3 {
  margin-bottom: 18px;
}

.quote-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.email-submit {
  background: var(--white);
}

.email-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@supports (animation-timeline: view()) {
  .hero {
    view-timeline-name: --hero-view;
    view-timeline-axis: block;
  }

  .hero-copy {
    animation: fadeUp 720ms ease both, titleCinematicScroll linear both;
    animation-timeline: auto, --hero-view;
    animation-range: normal, exit 0% exit 88%;
  }

  .hero-media {
    animation: mediaIn 820ms 120ms ease both, heroCinematicScroll linear both;
    animation-timeline: auto, --hero-view;
    animation-range: normal, exit 0% exit 95%;
  }

  .solution-card,
  .process-list li,
  .industry-grid article {
    animation: cardViewLift linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 34%;
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.8);
  background: #0b2231;
}

.site-footer::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 24vw, 360px);
  aspect-ratio: 1;
  content: "";
  opacity: 0.14;
  background: url("assets/logo-watermark.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 6px 0 0;
  max-width: 520px;
  line-height: 1.55;
}

.site-footer div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

.site-footer a {
  color: var(--white);
}

.mobile-whatsapp {
  display: none;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1.22rem;
  }

  .brand small {
    max-width: 230px;
    font-size: 0.78rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    order: 4;
    padding-top: 8px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-media,
  .hero-media img {
    min-height: 100%;
  }

  .problem-grid,
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-heading {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 68px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    min-height: 70px;
    padding: 10px 12px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

  .brand strong {
    font-size: 1.05rem;
    line-height: 1;
  }

  .brand small {
    display: block;
    max-width: 190px;
    color: var(--blue-dark);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.08;
  }

  .brand-logo {
    width: 68px;
    height: 46px;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--blue);
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 4px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .main-nav a[href="#proceso"],
  .process-section {
    display: none;
  }

  .whatsapp-pill {
    width: 46px;
    min-width: 46px;
    padding: 0;
    font-size: 0;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .hero {
    min-height: 560px;
    padding-top: 76px;
    padding-bottom: 46px;
  }

  .project-section {
    min-height: 360px;
    gap: 18px;
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .project-section::before {
    opacity: 0.06;
  }

  .project-copy {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .project-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .project-section h2,
  .process-section h2,
  .contact-section h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .process-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .process-section .section-heading {
    margin-bottom: 18px;
  }

  .process-section .section-heading p {
    display: none;
  }

  .capability-track span {
    padding: 9px 16px;
    font-size: 0.9rem;
    line-height: 1;
  }

  .capability-track span::after {
    margin-left: 16px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 100%;
  }

  .hero-points {
    display: none;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .solution-grid,
  .problem-grid,
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .split-heading img,
  .contact-copy img {
    height: 220px;
  }

  .solutions-section .split-heading {
    margin-bottom: 18px;
  }

  .solutions-section .split-heading img {
    display: none;
  }

  .solution-card,
  .problem-grid article,
  .process-list li {
    min-height: auto;
  }

  .solution-card {
    min-height: 168px;
    padding: 14px;
  }

  .problem-grid article {
    min-height: 178px;
    padding: 14px;
  }

  .industry-grid article {
    min-height: 174px;
    padding: 14px;
  }

  .problem-grid svg {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    padding: 12px;
  }

  .industry-grid svg {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    padding: 12px;
  }

  .problem-grid strong {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .industry-grid strong {
    margin-bottom: 5px;
    font-size: 0.92rem;
    line-height: 1.1;
  }

  .solution-card h3 {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.08;
  }

  .problem-grid small {
    font-size: 0.73rem;
    line-height: 1.32;
  }

  .industry-grid small {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .solution-card p {
    display: none;
  }

  .process-list li {
    min-height: 118px;
    padding: 56px 12px 12px;
  }

  .process-list li::before {
    top: 13px;
    left: 12px;
    width: 36px;
    height: 36px;
    box-shadow: 0 0 0 6px rgba(28, 70, 97, 0.08);
  }

  .process-list span {
    top: 13px;
    left: 12px;
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .process-list svg {
    top: 14px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 8px;
  }

  .process-list strong {
    margin-bottom: 0;
    font-size: 0.84rem;
    line-height: 1.1;
  }

  .process-list p {
    display: none;
  }

  .process-list::before,
  .process-list::after {
    display: none;
  }

  .contact-section {
    gap: 16px;
    padding-top: 36px;
    padding-bottom: 76px;
  }

  .contact-copy p {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .contact-copy img,
  .contact-actions {
    display: none;
  }

  .quote-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    padding: 18px;
  }

  .quote-form h3 {
    grid-column: 1 / -1;
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .quote-form label {
    margin-bottom: 9px;
    font-size: 0.78rem;
  }

  .quote-form input,
  .quote-form textarea {
    margin-top: 5px;
    padding: 10px 11px;
  }

  .quote-form textarea {
    min-height: 82px;
  }

  .quote-form label:nth-of-type(3),
  .quote-form label:nth-of-type(4),
  .form-actions,
  .form-status {
    grid-column: 1 / -1;
  }

  .form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .form-actions .button {
    min-width: 0;
    min-height: 44px;
    padding-right: 8px;
    padding-left: 8px;
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.08;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px 88px;
  }

  .site-footer::before {
    top: auto;
    right: auto;
    bottom: 34px;
    left: 50%;
    width: 240px;
    opacity: 0.11;
    transform: translateX(-50%);
  }

  .site-footer p {
    max-width: none;
    margin-top: 5px;
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .site-footer div:last-child {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    gap: 7px;
    text-align: left;
  }

  .site-footer div:last-child a,
  .site-footer div:last-child span {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
  }

  .mobile-whatsapp {
    position: fixed;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 60;
    display: grid;
    place-items: center;
    min-height: 52px;
    border-radius: 7px;
    color: var(--white);
    background: var(--green);
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(16, 44, 63, 0.26);
    animation: ctaPulse 2.4s ease-in-out infinite;
  }

  .mobile-whatsapp svg {
    width: 23px;
    height: 23px;
    margin-right: 8px;
    fill: currentColor;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .process-list::before,
  .process-list::after {
    display: none;
  }
}
