@import url("./fonts/google-sans.css");

/*
 * Nexus Editorial 2026
 * Visual system adapted from the supplied COGNITRA reference.
 * It deliberately sits after the legacy stylesheet so the production
 * behaviors (forms, PWA, i18n, trials and product links) remain intact.
 */

:root {
  --bg-deep: #111111;
  --bg-base: #c5c5c5;
  --bg-elevated: #eceae5;
  --bg-card: transparent;
  --bg-card-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #171717;
  --text-secondary: #494949;
  --text-muted: #686868;
  --accent-cyan: #171717;
  --accent-blue: #171717;
  --accent-indigo: #171717;
  --border: rgba(0, 0, 0, 0.18);
  --border-strong: rgba(0, 0, 0, 0.42);
  --gradient-text: linear-gradient(90deg, #171717, #4a4a4a);
  --shadow-card: none;
  --nx-gray: #c5c5c5;
  --nx-paper: #eceae5;
  --nx-ink: #171717;
  --nx-white: #f8f7f2;
}

html {
  scroll-behavior: smooth;
  background: var(--nx-gray);
}

body {
  background: var(--nx-gray);
  color: var(--nx-ink);
  font-family: "Google Sans Flex", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: clip;
}

body,
button,
input,
select,
textarea {
  font-family: "Google Sans Flex", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.ambient,
.grid-overlay,
.neural-bg,
.deco-glow,
.deco-ring,
.deco-line,
.cursor-main,
.cursor-trail {
  display: none !important;
}

.container {
  max-width: none;
  width: 100%;
  padding-inline: 32px;
}

section {
  padding: clamp(88px, 10vw, 144px) 0;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Navigation */
.nav {
  padding: 0;
  min-height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--nx-ink);
  transition: background-color 0.3s ease, min-height 0.3s ease;
}

.nav.scrolled {
  min-height: 64px;
  padding: 0;
  background: rgba(197, 197, 197, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav .container {
  max-width: none;
}

.nav-inner {
  width: 100%;
  min-height: inherit;
  gap: 28px;
}

.brand {
  color: var(--nx-ink);
  min-width: 190px;
}

.brand-mark-3d,
.brand-tag {
  display: none !important;
}

.brand-text {
  display: block !important;
}

.brand-name {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.nav .brand-name::after {
  content: " IA";
}

.nav-links {
  justify-content: center;
  gap: clamp(22px, 3.2vw, 48px);
  flex: 1;
}

.nav-links > li:nth-child(4),
.nav-links > li:nth-child(6),
.nav-links > li:nth-child(7),
.nav-links > li:nth-child(8) {
  display: none;
}

.nav-links a,
.nav-drop-btn {
  color: var(--nx-ink) !important;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-drop-btn:hover {
  opacity: 0.55;
}

.nav-drop-menu {
  top: calc(100% + 22px);
  background: rgba(236, 234, 229, 0.98);
  border-color: rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.nav-drop-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.lang-switch {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 8px;
  padding: 0;
}

.lang-switch button {
  color: #555;
  border-radius: 0;
  padding: 4px 0;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.lang-switch button.active {
  color: var(--nx-ink);
  background: transparent;
  border-bottom: 1px solid var(--nx-ink);
}

.nav-cta {
  border-radius: 999px;
  border: 1px solid var(--nx-ink);
  background: var(--nx-ink);
  color: #fff;
  padding: 10px 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: none;
}

.nav-cta:hover {
  background: transparent;
  border-color: var(--nx-ink);
  color: var(--nx-ink);
  box-shadow: none;
}

.nav-cta-bear {
  display: none !important;
}

/* Fixed cinematic video */
.cine-robot {
  background: #111;
}

.cine-robot video {
  filter: saturate(0.18) contrast(1.04) brightness(0.82);
  object-position: 60% center;
}

.cine-scrim {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 48%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.32)) !important;
}

body.cine-off .cine-robot {
  opacity: 0;
}

/* Hero */
.hero-video-wrap {
  height: 100svh !important;
  min-height: 100svh !important;
  padding: 0 !important;
  background: transparent !important;
}

.hero-video-sticky {
  height: 100svh !important;
  min-height: 100svh !important;
  overflow: hidden;
  background: transparent !important;
}

.hero-video-overlay {
  display: none !important;
}

#scroll-hero .hero-video-grid,
#scroll-hero .hero-corner,
#scroll-hero .hero-particles,
#scroll-hero .hero-rays,
#scroll-hero .hero-bracket,
#scroll-hero .hero-sidebar-info,
#scroll-hero .hero-glitch,
#scroll-hero .hyperdrive,
#scroll-hero .tron-overlay,
#scroll-hero .hero-visual,
#scroll-hero .hero-act,
#scroll-hero .hero-sticky-cta,
#scroll-hero .scroll-progress-bar {
  display: none !important;
}

.hero-content-wrap {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: clamp(390px, 64svh, 560px);
  opacity: 1 !important;
  transform: none !important;
  background: var(--nx-gray);
  transition: none !important;
}

.hero-content-wrap.hero-dim {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

.hero-content-wrap .container {
  height: 100%;
  padding-top: 92px;
  padding-bottom: 24px;
  pointer-events: auto;
}

.hero-content-wrap .hero-grid {
  display: block;
  width: 100%;
  height: 100%;
  grid-template-columns: none;
  gap: 0;
}

.hero-content {
  width: 100%;
  height: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "title copy"
    "counter ctas";
  column-gap: clamp(36px, 5vw, 72px);
  row-gap: 18px;
  align-items: end;
  max-width: none;
}

.hero-content .hero-badge,
.hero-content .hero-kicker,
.hero-content .hero-ctas-secondary,
.hero-content .hero-bear-link,
.hero-content .hero-caps,
.hero-content .hero-offer,
.hero-content .hero-trust {
  display: none !important;
}

.hero-content h1 {
  grid-area: title;
  max-width: 10.8em;
  margin: 0;
  color: var(--nx-ink);
  font-size: clamp(2.75rem, 4.15vw, 4.35rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: none !important;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-wrap: balance;
}

.hero-content h1 .line,
.hero-content h1 .accent {
  display: block;
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-content h1 .accent .char {
  color: var(--nx-ink) !important;
  -webkit-text-fill-color: currentColor !important;
}

.hero-content h1 .line + .line::before {
  content: none;
}

.hero-content .lead {
  grid-area: copy;
  max-width: 430px;
  margin: 0;
  color: #4b4b4b;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 400;
  line-height: 1.58;
  text-shadow: none !important;
}

.hero-content .lead strong {
  color: inherit !important;
  font-weight: 500;
}

.hero-content .hero-ctas {
  grid-area: ctas;
  display: flex;
  gap: 10px;
  margin: 0;
  opacity: 1 !important;
  transform: none !important;
}

.hero-content .btn,
.btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow: none;
}

.hero-content .btn-primary,
.contact-form .btn-primary,
.zt-submit {
  color: #fff;
  background: var(--nx-ink);
  border: 1px solid var(--nx-ink);
}

.hero-content .btn-primary:hover,
.contact-form .btn-primary:hover {
  color: var(--nx-ink);
  background: transparent;
}

.hero-content .btn-secondary {
  color: var(--nx-ink);
  background: transparent;
  border: 1px solid var(--nx-ink);
}

.hero-content .btn-secondary:hover {
  color: #fff;
  background: var(--nx-ink);
}

.nx-hero-counter {
  grid-area: counter;
  align-self: end;
  color: #5f5f5f;
  font-size: 11px;
  letter-spacing: 0.09em;
}

.nx-hero-bottom-copy {
  position: absolute;
  z-index: 4;
  top: 73%;
  left: 32px;
  max-width: 290px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.65;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.58);
}

.scroll-hint {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 12;
  transform: translateX(-50%);
  color: #fff;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-hint.is-hidden,
.scroll-hint.nx-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Keep the first viewport focused: the assistant remains available through
   the orb, without an unsolicited tooltip covering the primary actions. */
#nx-hint {
  display: none !important;
}

.scroll-hint > span {
  display: none;
}

.scroll-hint .mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid currentColor;
  border-radius: 11px;
  animation: nxScrollBounce 2s ease-in-out infinite;
}

.scroll-hint .mouse::before {
  width: 3px;
  height: 8px;
  top: 6px;
  background: currentColor;
  border-radius: 2px;
}

@keyframes nxScrollBounce {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.nx-share {
  position: fixed;
  right: 96px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nx-share::before {
  content: "↗";
  font-size: 16px;
  font-weight: 400;
}

.nx-share:hover {
  opacity: 0.6;
}

/* Statement */
.nx-statement {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 90px 32px 40px;
  color: #fff;
  background: transparent;
}

.nx-statement-inner {
  width: 100%;
  max-width: 900px;
  padding: 80px 0;
}

.nx-statement-count {
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.nx-statement h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12em 0.24em;
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 4.65rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.38);
}

.nx-statement h2 span {
  display: inline-block;
}

.nx-statement p {
  max-width: 320px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.65;
}

/* Shared editorial section language */
.marquee {
  z-index: 3;
  padding: 18px 0;
  color: #fff;
  background: #111;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.marquee-item {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.marquee-item::after {
  color: rgba(255, 255, 255, 0.35);
}

.clients {
  z-index: 3 !important;
  padding: 72px 0;
  background: var(--nx-paper);
}

.clients-eyebrow,
.eyebrow,
.nxr-eye {
  color: inherit !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
  text-shadow: none !important;
}

.clients-wall {
  max-width: none;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}

.client-tile {
  width: min(15vw, 150px);
  height: 72px;
  animation: none;
  border: 0;
  border-radius: 0;
  filter: grayscale(1);
  opacity: 0.66;
}

.client-tile:hover {
  transform: none;
  opacity: 1;
}

.clients-trust {
  max-width: none;
  color: #5a5a5a;
  text-shadow: none;
}

.built-with-label,
.bw-pill {
  color: var(--nx-ink);
  text-shadow: none;
}

.bw-pill {
  border-color: rgba(0, 0, 0, 0.18);
  background: transparent;
  border-radius: 999px;
}

.bw-dot {
  background: var(--nx-ink);
  box-shadow: none;
}

.nxr {
  z-index: 3 !important;
  padding: 110px 0;
  color: var(--nx-ink);
  background: var(--nx-gray) !important;
  border-top: 0 !important;
}

.nxr-in {
  max-width: none !important;
  padding-inline: 32px !important;
}

.nxr h2 {
  color: var(--nx-ink) !important;
  font-family: inherit !important;
  font-size: clamp(2rem, 4vw, 4rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  text-transform: uppercase;
}

.nxr h2 .g,
.gradient-text {
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.nxr p,
.nxr-stat .l {
  color: #4a4a4a !important;
  text-shadow: none !important;
}

.nxr-stat .n {
  color: var(--nx-ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.nxr-map {
  opacity: 0.72;
  filter: grayscale(1);
}

#nosotros {
  z-index: 3 !important;
  color: var(--nx-white);
  background: #111;
}

#nosotros .about-grid {
  gap: clamp(48px, 7vw, 110px);
}

#nosotros .about-text h2 {
  color: var(--nx-white);
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  filter: none;
}

#nosotros .about-text p {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: none;
}

#nosotros .feature-row {
  border-color: rgba(255, 255, 255, 0.16);
}

#nosotros .feature-row strong {
  color: #fff;
}

#nosotros .feature-row span {
  color: rgba(255, 255, 255, 0.62);
  text-shadow: none;
}

#nosotros .feature-row svg {
  color: #fff;
}

.terminal {
  background: #eceae5;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  color: #171717;
}

.terminal-header {
  border-color: rgba(0, 0, 0, 0.14);
}

.terminal-header .title,
.terminal-line,
.terminal-line .comment,
.terminal-line .key,
.terminal-line .val,
.terminal-line.success,
.terminal-line .prompt {
  color: #3d3d3d;
}

.pillars {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pillar {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
}

.pillar h3,
.pillar-tag,
.pillar-icon {
  color: #fff;
}

.pillar p {
  color: rgba(255, 255, 255, 0.66);
}

/* Services */
#soluciones {
  z-index: 3 !important;
  color: var(--nx-ink);
  background: var(--nx-gray);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(260px, 32%) minmax(0, 1fr);
  column-gap: 48px;
  align-items: start;
  max-width: none;
  margin: 0 0 42px;
  text-align: left;
}

.section-header .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  filter: none;
}

.section-header p {
  max-width: 390px;
  margin: 6px 0 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
  text-shadow: none;
}

#soluciones .section-header::before {
  content: "003 / 005";
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 18px;
  color: #626262;
  font-size: 11px;
  letter-spacing: 0.09em;
}

#soluciones .section-header .eyebrow {
  display: none;
}

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

.service-card,
.service-card-featured {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
  color: var(--nx-ink);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.service-card::before,
.service-card-featured::after {
  display: none;
}

.service-card:hover,
.service-card-featured:hover {
  color: #fff;
  background: #171717;
  border-color: #171717;
  transform: translateY(-3px);
  box-shadow: none;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 58px;
  color: currentColor;
  background: transparent;
  border-color: currentColor;
  border-radius: 50%;
}

.service-card:hover .service-icon {
  color: #fff;
  background: transparent;
  transform: none;
}

.service-num {
  top: 28px;
  right: 28px;
  color: currentColor;
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.service-card h3 {
  color: currentColor;
  font-size: 1.25rem;
  line-height: 1.16;
}

.service-card .service-sub,
.service-card p,
.service-benefits li,
.service-tag,
.service-demo-link,
.svc-portfolio-link {
  color: currentColor;
}

.service-card .service-sub {
  font-size: 13px;
  font-weight: 500;
}

.service-card p {
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.78;
}

.service-benefits {
  margin-top: auto;
  border-color: currentColor;
  opacity: 0.82;
}

.service-benefits li {
  font-size: 12px;
}

.service-benefits li::before {
  content: "—";
  color: currentColor;
  font-size: 10px;
}

.service-tag {
  margin-top: 10px;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.service-tag::before {
  background: currentColor;
}

.featured-badge {
  color: currentColor;
  background: transparent;
  border-color: currentColor;
}

.svc-portfolio-link,
.service-demo-link,
.service-card a[style] {
  align-self: flex-start;
  color: currentColor !important;
  background: transparent !important;
  border: 1px solid currentColor !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 10px !important;
}

/* Stats, process, cases, FAQ */
.stats {
  z-index: 3 !important;
  color: #fff;
  background: #111;
}

.stats-grid {
  border-color: rgba(255, 255, 255, 0.16);
}

.stat-item {
  border-color: rgba(255, 255, 255, 0.16);
}

.stat-number,
.stat-label {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.stat-label {
  color: rgba(255, 255, 255, 0.65);
}

#proceso,
#faq {
  z-index: 3 !important;
  color: var(--nx-ink);
  background: var(--nx-paper);
}

#proceso .process-timeline {
  max-width: none;
}

.process-timeline::before {
  background: rgba(0, 0, 0, 0.22);
}

.process-content {
  color: var(--nx-ink);
  background: transparent;
  border-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.process-content p {
  color: #505050;
}

.process-number {
  color: #fff;
  background: var(--nx-ink);
  border: 0;
  box-shadow: none;
}

#casos {
  z-index: 3 !important;
  color: #fff;
  background: #111;
}

#casos .section-header p {
  color: rgba(255, 255, 255, 0.68);
}

.case-card {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: none;
}

.case-card::before {
  display: none;
}

.case-card:hover {
  background: #f2f0eb;
  border-color: #f2f0eb;
  box-shadow: none;
}

.case-icon,
.case-tag,
.case-card h3,
.case-card p,
.case-metrics strong,
.case-metrics span {
  color: currentColor;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.case-card p,
.case-metrics span {
  opacity: 0.68;
}

.case-icon {
  background: transparent;
  border-color: currentColor;
}

.case-metrics {
  border-color: currentColor;
}

.faq-list {
  max-width: none;
}

.faq-item,
.faq-item[open] {
  color: var(--nx-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.faq-item summary,
.faq-item p {
  color: inherit;
}

.faq-item summary {
  padding-inline: 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.faq-item p {
  max-width: 780px;
  padding-left: 0;
  color: #505050;
}

.faq-item .faq-icon {
  color: currentColor;
  border-color: currentColor;
}

.faq-item[open] .faq-icon {
  background: transparent;
}

/* CTAs and contact */
.cta-banner {
  z-index: 3 !important;
  color: #fff;
  background: #111;
}

.cta-card {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.cta-card::before {
  display: none;
}

.cta-card h2 {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.68);
}

.cta-card .btn-primary {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.cta-card .btn-secondary {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

#diagnostico {
  z-index: 3 !important;
  color: var(--nx-ink);
  background: var(--nx-gray);
}

#diagnostico .container > div {
  max-width: none !important;
  color: inherit;
  background: transparent !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 20px !important;
}

#diagnostico p {
  color: #4e4e4e !important;
}

#contacto {
  z-index: 3 !important;
  color: var(--nx-ink);
  background: var(--nx-gray);
}

.contact-grid {
  gap: clamp(44px, 7vw, 100px);
}

.contact-info h2 {
  max-width: 12ch;
  color: var(--nx-ink);
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.contact-info > p {
  color: #4c4c4c;
}

.contact-method {
  color: var(--nx-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  padding-inline: 0;
}

.contact-method:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.contact-method:hover {
  background: transparent;
  transform: translateX(6px);
}

.contact-method-icon {
  color: var(--nx-ink);
  background: transparent;
  border-color: var(--nx-ink);
}

.contact-method-label,
.contact-method-value,
.phone-link {
  color: inherit;
}

.contact-form {
  color: var(--nx-ink);
  background: var(--nx-paper);
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

.contact-form > p,
.form-group label {
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  color: var(--nx-ink);
  background: transparent;
  border-color: rgba(0, 0, 0, 0.24);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #858585;
}

.svc-chip label {
  color: #454545;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.2);
}

.svc-chip input:checked + label {
  color: #fff;
  background: var(--nx-ink);
  border-color: var(--nx-ink);
}

/* Footer and fixed UI */
.footer {
  position: relative;
  z-index: 3;
  color: #fff;
  background: #111;
  border-color: rgba(255, 255, 255, 0.16);
}

.footer .brand,
.footer h4,
.footer ul a,
.footer-bottom,
.footer-bottom p,
.footer-legal a {
  color: #fff;
}

.footer-brand p,
.footer ul a,
.footer-bottom,
.footer-legal a {
  opacity: 0.65;
}

.footer .brand-text {
  display: block !important;
}

.cookie-banner,
.install-banner {
  color: #fff;
  background: rgba(17, 17, 17, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
}

.cookie-banner p,
.install-banner-sub {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-banner a {
  color: #fff;
}

/* FadeUp behavior mirrors the supplied easing values. */
.nx-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--nx-delay, 0s);
}

.nx-fade.nx-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-content .nx-fade,
.hero-content .reveal,
.nx-hero-bottom-copy {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 20px;
  }

  .nav-cta {
    display: none;
  }

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

@media (max-width: 900px) {
  .container {
    padding-inline: 18px;
  }

  section {
    padding-block: 92px;
  }

  .nav {
    min-height: 64px;
  }

  .nav-inner {
    gap: 10px;
  }

  .brand {
    min-width: auto;
  }

  .brand-text {
    display: block !important;
  }

  .brand-name {
    font-size: 12px;
  }

  .lang-switch {
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-color: rgba(0, 0, 0, 0.42);
    border-radius: 50%;
  }

  .menu-toggle span {
    background: var(--nx-ink);
    height: 2px;
    flex: 0 0 2px;
    margin: 3px 0;
  }

  .nav-links {
    inset: 64px 0 auto;
    width: 100%;
    max-height: calc(100svh - 64px);
    overflow-y: auto;
    padding: 24px 18px 30px;
    background: rgba(236, 234, 229, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.16);
  }

  .nav.menu-open .nav-links {
    display: flex;
  }

  .nav-links > li:nth-child(4),
  .nav-links > li:nth-child(6),
  .nav-links > li:nth-child(7),
  .nav-links > li:nth-child(8) {
    display: block;
  }

  .nav-links a,
  .nav-drop-btn {
    color: var(--nx-ink) !important;
    font-size: 13px;
  }

  .hero-content-wrap {
    height: clamp(440px, 68svh, 620px);
  }

  .hero-content-wrap .container {
    padding: 78px 18px 22px;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "title"
      "copy"
      "ctas";
    row-gap: 14px;
    align-content: end;
  }

  .hero-content h1 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 7.8vw, 3.1rem);
  }

  .hero-content .lead {
    max-width: 560px;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .nx-hero-counter {
    display: none;
  }

  .nx-hero-bottom-copy {
    top: auto;
    right: 18px;
    bottom: 78px;
    left: 18px;
    max-width: none;
  }

  .nx-statement {
    padding-inline: 18px;
  }

  .nx-statement h2 {
    font-size: clamp(2rem, 8.6vw, 4.2rem);
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-header .eyebrow,
  #soluciones .section-header::before {
    grid-column: auto;
  }

  .section-header p {
    max-width: 560px;
    margin-top: 0;
  }

  .nxr-in {
    padding-inline: 18px !important;
  }

  .clients-wall {
    justify-content: center;
  }

  .client-tile {
    width: 120px;
  }

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

  .nx-share {
    display: none;
  }
}

@media (max-width: 640px) {
  .lang-switch button {
    padding: 4px 2px;
  }

  .hero-content-wrap {
    height: clamp(520px, 74svh, 680px);
  }

  .hero-content .hero-ctas {
    flex-wrap: wrap;
  }

  .hero-content .btn {
    min-height: 40px;
    padding: 10px 19px;
    font-size: 9px;
  }

  .nx-hero-bottom-copy {
    font-size: 13px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-featured {
    min-height: 390px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step {
    grid-template-columns: 52px 1fr;
  }

  .process-timeline::before {
    left: 26px;
  }

  .process-number {
    width: 52px;
    height: 52px;
  }

  .contact-form {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .nx-fade {
    opacity: 1;
    transform: none;
  }
}
