:root {
  /* GMX design tokens */
  --graphite-black: #111315;
  --warm-off-white: #F4F1EA;
  --operative-orange: #E94B2E;
  --deep-terracotta: #A93422;
  --steel-gray: #747A80;
  --signal-lime: #C9F24D;
  --warm-silver: #B8B8B8;
  --ink-2: #1A1D20;
  --ink-3: #24282C;
  --line-dark: rgba(244, 241, 234, .13);
  --line-light: rgba(17, 19, 21, .12);
  --shadow: 0 24px 70px rgba(17, 19, 21, .28);
  --radius: 8px;
  --container: 1180px;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--graphite-black);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--graphite-black);
  background: var(--warm-off-white);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

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

p { margin: 0; color: rgba(17, 19, 21, .75); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1, h2 { font-weight: 800; }
h3, h4 { font-weight: 700; }

.text-glitch {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  text-shadow: 0 0 10px currentColor;
}

.text-glitch::before {
  color: #ff643f;
  transform: translateX(-1px);
}

.text-glitch::after {
  color: #8f5bff;
  filter: drop-shadow(1px 0 #36d8ff);
  transform: translateX(1px);
}

/* Base state: no animation running until hover trigger */
.text-glitch--word::before,
.text-glitch--word::after,
.text-glitch--hover::before,
.text-glitch--hover::after {
  animation: none;
}

button, input, textarea, select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--operative-orange);
  color: var(--warm-off-white);
  padding: .75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus { left: 12px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: var(--space-8) 0;
}

.section-dark {
  background: var(--graphite-black);
  color: var(--warm-off-white);
}

.section-dark p { color: rgba(244, 241, 234, .72); }

.section-muted {
  background: #ECE7DD;
}

/* Cyberpunk / Neon layout for home "Valor central" section */
#soluciones {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0F15 0%, #111823 50%, #0D1118 100%);
  color: var(--warm-off-white);
}

#soluciones .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

#soluciones .section-head {
  margin-bottom: 0;
  width: 100%;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(233, 75, 46, .3);
  background:
    linear-gradient(155deg, rgba(244, 241, 234, .045), rgba(244, 241, 234, .02)),
    radial-gradient(circle at 82% 18%, rgba(233, 75, 46, .14), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 34px rgba(0, 0, 0, .24);
  grid-template-columns: minmax(0, 1.38fr) minmax(0, .62fr);
  gap: var(--space-4);
  align-items: center;
}

#soluciones .eyebrow {
  color: var(--operative-orange);
  text-shadow: 0 0 14px rgba(233, 75, 46, .38);
}

#soluciones .section-head h2 {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  color: var(--warm-off-white);
  letter-spacing: -.02em;
  max-width: 24ch;
  line-height: .95;
  text-shadow: 0 0 20px rgba(233, 75, 46, .24);
}

#soluciones .section-head p {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  max-width: 34ch;
  color: rgba(244, 241, 234, .84);
  justify-self: end;
  padding-left: clamp(.8rem, 2.8vw, 2.8rem);
}

#soluciones .grid-3 {
  --gx-px: 0px;
  --gy-px: 0px;
  position: relative;
  margin-top: .15rem;
  padding: 1rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(233, 75, 46, .34);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 22px 42px rgba(0, 0, 0, .34);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  isolation: isolate;
  width: 100%;
}

#soluciones .grid-3::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(233, 75, 46, .7) 0 1.7px, transparent 2.5px),
    radial-gradient(circle at 78% 42%, rgba(201, 242, 77, .68) 0 1.9px, transparent 2.7px),
    radial-gradient(circle at 46% 78%, rgba(54, 139, 255, .55) 0 1.6px, transparent 2.4px),
    linear-gradient(rgba(233, 75, 46, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 75, 46, .12) 1px, transparent 1px);
  background-size: 168px 168px, 184px 184px, 156px 156px, 30px 30px, 30px 30px;
  opacity: .55;
  transform: translate(var(--gx-px), var(--gy-px));
  transition: transform .35s ease;
  z-index: -1;
}

#soluciones .grid-3::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(233, 75, 46, .2), transparent 55%);
  transform: translate(calc(var(--gx-px) * -.6), calc(var(--gy-px) * -.6));
  transition: transform .35s ease;
  z-index: -1;
}

#soluciones .grid-3 .card {
  position: relative;
  min-height: 245px;
  border: 1px solid rgba(233, 75, 46, .36);
  background: linear-gradient(180deg, rgba(18, 25, 36, .96), rgba(13, 19, 29, .95));
  box-shadow: 0 14px 24px rgba(0, 0, 0, .26);
  overflow: hidden;
}

#soluciones .grid-3 .card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(233, 75, 46, .0) 24%, rgba(233, 75, 46, .76) 50%, rgba(201, 242, 77, .5) 63%, rgba(233, 75, 46, .0) 82%, transparent 100%);
  opacity: .28;
  transform: translateX(-65%);
  filter: blur(8px);
  transition: opacity .25s ease;
  pointer-events: none;
}

#soluciones .grid-3 .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .05);
  pointer-events: none;
}

#soluciones .grid-3 .card h3 {
  color: var(--warm-off-white);
  margin-bottom: .85rem;
  text-shadow: 0 0 10px rgba(233, 75, 46, .16);
}

#soluciones .grid-3 .card p {
  color: rgba(244, 241, 234, .8);
}

#soluciones .grid-3 .card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 75, 46, .62);
  box-shadow: 0 24px 30px rgba(0, 0, 0, .36), 0 0 30px rgba(233, 75, 46, .18);
}

#soluciones .grid-3 .card:hover::before {
  opacity: .85;
  animation: pillar-frame-run 1.8s linear infinite;
}

@keyframes pillar-frame-run {
  0% { transform: translateX(-68%); }
  100% { transform: translateX(68%); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--operative-orange);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--operative-orange);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .65fr);
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-6);
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(2.15rem, 5vw, 4.9rem);
}

.section-head p,
.page-hero p {
  font-size: 1.04rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-4);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 700;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--operative-orange);
  color: var(--warm-off-white);
  box-shadow: 0 12px 30px rgba(233, 75, 46, .24);
}

.btn-primary:hover {
  background: #F05C41;
  box-shadow: 0 16px 40px rgba(233, 75, 46, .32);
}

.btn-secondary {
  border-color: rgba(244, 241, 234, .24);
  color: var(--warm-off-white);
  background: rgba(244, 241, 234, .06);
}

.btn-secondary:hover {
  border-color: var(--operative-orange);
}

.btn-dark {
  background: var(--graphite-black);
  color: var(--warm-off-white);
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .38);
  padding: var(--space-5);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid transparent;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(233, 75, 46, .45);
  box-shadow: var(--shadow);
}

.card:hover::before { border-top-color: var(--operative-orange); }

.card h3 { font-size: 1.12rem; margin-bottom: .75rem; }
.card p { font-size: .95rem; }

.dark-card {
  background: rgba(244, 241, 234, .045);
  border-color: var(--line-dark);
}

.dark-card p { color: rgba(244, 241, 234, .68); }

.dark-card h3,
.dark-card h4 { color: var(--warm-off-white); }

.site-header {
  /* Sticky glass header */
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  color: var(--warm-off-white);
  transition: background .24s ease, border-color .24s ease, backdrop-filter .24s ease;
}

.site-header.is-scrolled {
  background: rgba(17, 19, 21, .82);
  border-color: var(--line-dark);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, 1240px);
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand-link {
  width: 128px;
  flex: 0 0 auto;
}

.brand-link.brand-subunit {
  width: 184px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.primary-nav a,
.lang-switch a {
  border-radius: var(--radius);
  color: rgba(244, 241, 234, .74);
  font-size: .86rem;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}

.primary-nav a {
  padding: .64rem .78rem;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--warm-off-white);
  background: rgba(233, 75, 46, .14);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .12rem;
  padding: .18rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.lang-switch a {
  padding: .34rem .42rem;
  font-size: .72rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(244, 241, 234, .04);
  color: var(--warm-off-white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  /* Technical grid background with the X as the main visual cue */
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 132px 0 70px;
  background:
    linear-gradient(rgba(244, 241, 234, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, .055) 1px, transparent 1px),
    radial-gradient(circle at 76% 28%, rgba(233, 75, 46, .2), transparent 30%),
    var(--graphite-black);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--warm-off-white);
  overflow: hidden;
}

.hero::before {
  content: "X";
  position: absolute;
  right: -4vw;
  top: 6vh;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 75, 46, .25);
  font-size: clamp(20rem, 43vw, 38rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  margin-top: var(--space-3);
  font-size: clamp(3rem, 7vw, 6.8rem);
  max-width: 870px;
}

.hero:hover .text-glitch--hover::before,
.hero:hover .text-glitch--hover::after {
  animation: glitch-split .58s linear infinite;
}

.text-glitch--hover:hover::before,
.text-glitch--hover:hover::after {
  animation: glitch-split .58s linear infinite;
}

.hero:hover .text-glitch--hover,
.text-glitch--hover:hover,
#unidades .section-head:hover .text-glitch--word,
.text-glitch--word:hover {
  animation: glitch-main .44s linear infinite;
}

.hero:hover .text-glitch--hover::before,
.text-glitch--hover:hover::before,
#unidades .section-head:hover .text-glitch--word::before,
.text-glitch--word:hover::before {
  animation: glitch-split .58s linear infinite;
}

.hero:hover .text-glitch--hover::after,
.text-glitch--hover:hover::after,
#unidades .section-head:hover .text-glitch--word::after,
.text-glitch--word:hover::after {
  animation: glitch-split-rev .58s linear infinite;
}

.hero-brand {
  display: block;
  width: min(280px, 72vw);
  margin-bottom: var(--space-4);
}

.hero-brand img {
  width: 100%;
}

.hero p {
  max-width: 700px;
  margin-top: var(--space-4);
  color: rgba(244, 241, 234, .76);
  font-size: 1.09rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero-panel {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, .72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
  padding: var(--space-4);
}

.browser-bar {
  display: flex;
  gap: .45rem;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line-dark);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--steel-gray);
}

.browser-bar span:first-child { background: var(--operative-orange); }

.module-stack {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
}

.wire-module {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: rgba(244, 241, 234, .045);
}

.wire-module strong {
  display: block;
  color: var(--warm-off-white);
  font-size: .86rem;
  margin-bottom: .55rem;
}

.wire-line {
  display: block;
  height: 8px;
  margin-top: .45rem;
  border-radius: 999px;
  background: rgba(244, 241, 234, .16);
}

.wire-line.short { width: 58%; }
.wire-line.orange { width: 32%; background: var(--operative-orange); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.mini-grid span {
  height: 58px;
  border-radius: var(--radius);
  background: rgba(233, 75, 46, .16);
  border: 1px solid rgba(233, 75, 46, .24);
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}

#unidades .section-head {
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: var(--space-5);
}

#unidades .section-head > div {
  max-width: none;
}

#unidades .section-head h2 {
  max-width: none;
}

.unit-web-lab { --unit-color: #E94B2E; }
.unit-sociedades { --unit-color: #A93422; }
.unit-ai-solutions { --unit-color: #C9F24D; }
.unit-backoffice { --unit-color: #747A80; }
.unit-custom-devs { --unit-color: #B8B8B8; }

.unit-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: transform .36s ease, box-shadow .36s ease, border-color .36s ease, background .36s ease;
  background: linear-gradient(180deg, rgba(244, 241, 234, .055), rgba(244, 241, 234, .032));
}

.unit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--unit-color) 26%, transparent), transparent 42%),
    radial-gradient(circle at 84% 84%, color-mix(in srgb, var(--unit-color) 18%, transparent), transparent 36%);
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
  transform: scale(1.04);
  pointer-events: none;
}

.unit-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, color-mix(in srgb, var(--unit-color) 62%, transparent) 46%, transparent 100%);
  opacity: 0;
  transform: translateX(-72%);
  filter: blur(9px);
  pointer-events: none;
}

.unit-card > * {
  position: relative;
  z-index: 1;
}

.unit-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--unit-color) 72%, transparent);
  box-shadow:
    0 22px 34px rgba(0, 0, 0, .34),
    0 0 28px color-mix(in srgb, var(--unit-color) 22%, transparent);
}

.unit-card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.unit-card:hover::after {
  opacity: .86;
  animation: unit-scan 1.5s linear infinite;
}

.unit-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 241, 234, .95);
  border: 1px solid rgba(17, 19, 21, .12);
  border-radius: var(--radius);
  padding: .9rem;
}

.unit-logo-badge img {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.unit-card .btn {
  align-self: stretch;
  width: 100%;
  margin-top: auto;
  min-height: 48px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  justify-content: center;
}

@keyframes unit-scan {
  0% { transform: translateX(-72%); }
  100% { transform: translateX(72%); }
}

@keyframes glitch-split {
  0% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  12% { opacity: .84; transform: translate(-3px, -1px); clip-path: inset(0 0 66% 0); }
  28% { opacity: .42; transform: translate(2px, 0); clip-path: inset(38% 0 28% 0); }
  44% { opacity: .78; transform: translate(-2px, 1px); clip-path: inset(62% 0 8% 0); }
  66% { opacity: .36; transform: translate(3px, -1px); clip-path: inset(16% 0 48% 0); }
  86% { opacity: .82; transform: translate(-2px, 0); clip-path: inset(48% 0 20% 0); }
  100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-split-rev {
  0% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  16% { opacity: .76; transform: translate(3px, 1px); clip-path: inset(8% 0 62% 0); }
  34% { opacity: .34; transform: translate(-2px, 0); clip-path: inset(36% 0 30% 0); }
  52% { opacity: .82; transform: translate(2px, -1px); clip-path: inset(58% 0 10% 0); }
  74% { opacity: .3; transform: translate(-3px, 1px); clip-path: inset(18% 0 46% 0); }
  100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-main {
  0% { transform: translate(0, 0); }
  18% { transform: translate(-1px, .4px); }
  36% { transform: translate(1px, -.3px); }
  52% { transform: translate(-1.2px, 0); }
  74% { transform: translate(.8px, .2px); }
  100% { transform: translate(0, 0); }
}

.brand-lockup {
  --unit-color: var(--operative-orange);
  display: grid;
  gap: .85rem;
}

.brand-lockup-row {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.brand-lockup .gmx-inline {
  display: inline-flex;
  align-items: baseline;
  color: var(--graphite-black);
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 800;
  line-height: .88;
}

.section-dark .brand-lockup .gmx-inline,
.dark-card .brand-lockup .gmx-inline {
  color: var(--warm-off-white);
}

.brand-lockup .x-cut {
  position: relative;
  color: var(--unit-color);
  display: inline-block;
}

.brand-lockup .x-cut::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 8%;
  width: .16em;
  height: 88%;
  background: currentColor;
  opacity: .32;
  transform: rotate(35deg);
  mix-blend-mode: multiply;
}

.section-dark .brand-lockup .x-cut::after,
.dark-card .brand-lockup .x-cut::after {
  background: var(--graphite-black);
  opacity: .58;
}

.brand-lockup .lockup-divider {
  width: 3px;
  min-height: 48px;
  background: var(--unit-color);
  border-radius: 99px;
}

.brand-lockup .unit-name {
  color: var(--graphite-black);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.08;
}

.section-dark .brand-lockup .unit-name,
.dark-card .brand-lockup .unit-name {
  color: var(--warm-off-white);
}

.unit-meta {
  color: var(--unit-color);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.root-panel {
  display: grid;
  gap: var(--space-3);
}

.root-panel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: var(--space-3);
  background: rgba(244, 241, 234, .045);
}

.root-panel-row span {
  color: rgba(244, 241, 234, .68);
  font-size: .85rem;
}

.root-panel-row strong {
  color: var(--warm-off-white);
}

.root-panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--unit-color, var(--operative-orange));
  box-shadow: 0 0 0 8px rgba(244, 241, 234, .06);
}

.logo-lockup-vertical {
  display: inline-grid;
  justify-items: start;
  gap: .55rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: rgba(244, 241, 234, .035);
}

.logo-lockup-vertical .gmx-word {
  color: var(--warm-off-white);
  font-weight: 800;
  font-size: 2.65rem;
  line-height: .9;
}

.logo-lockup-vertical .gmx-word span { color: var(--operative-orange); }

.logo-lockup-vertical .divider {
  width: 100%;
  height: 3px;
  background: var(--operative-orange);
  border-radius: 99px;
}

.logo-lockup-vertical .subbrand {
  color: var(--warm-off-white);
  font-weight: 700;
  font-size: .95rem;
}

.icon-list {
  display: grid;
  gap: var(--space-3);
}

.icon-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(233, 75, 46, .38);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--operative-orange);
  font-weight: 800;
}

.tech-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}

.tech-strip span {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: var(--space-3);
  color: var(--warm-off-white);
  border-right: 1px solid var(--line-dark);
  background: rgba(244, 241, 234, .045);
  font-weight: 700;
  text-align: center;
}

.tech-strip span:nth-child(4n) { border-right: 0; }

.package-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.package-card .kicker {
  color: var(--operative-orange);
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .5rem;
}

.package-card h3 {
  font-size: 1.75rem;
}

.package-card ul,
.check-list,
.process-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.package-card li,
.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-top: .72rem;
  color: rgba(17, 19, 21, .76);
}

.section-dark .package-card li,
.section-dark .check-list li {
  color: rgba(244, 241, 234, .72);
}

.package-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--operative-orange);
  transform: rotate(45deg);
}

.notice {
  margin-top: var(--space-5);
  border-left: 4px solid var(--operative-orange);
  padding: var(--space-4);
  background: rgba(233, 75, 46, .08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.process-list {
  counter-reset: step;
  display: grid;
  gap: var(--space-3);
}

.process-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .34);
}

.process-list li::before {
  content: counter(step, decimal-leading-zero);
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--graphite-black);
  color: var(--operative-orange);
  font-weight: 800;
}

.page-hero {
  padding: 150px 0 84px;
  background:
    linear-gradient(rgba(244, 241, 234, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, .045) 1px, transparent 1px),
    var(--graphite-black);
  background-size: 38px 38px;
  color: var(--warm-off-white);
}

.page-hero p {
  max-width: 760px;
  margin-top: var(--space-4);
  color: rgba(244, 241, 234, .74);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, .55fr);
  gap: var(--space-6);
  align-items: start;
}

#sobre-gmx .split {
  grid-template-columns: 1fr;
  gap: 1rem;
}

#sobre-gmx h2 {
  font-size: clamp(1.8875rem, calc(5.6vw - 5px), 4.0875rem);
  line-height: 1.02;
  max-width: 24ch;
}

#sobre-gmx p {
  max-width: 1060px;
}

#ecosistema .partnership-layout {
  align-items: stretch;
}

#ecosistema {
  padding-top: clamp(2.4rem, 5vw, 4rem);
  padding-bottom: clamp(2.6rem, 5.4vw, 4.2rem);
}

#ecosistema .partnership-main,
#ecosistema .partnership-side {
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  border: 1px solid rgba(244, 241, 234, .14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(244, 241, 234, .04), rgba(244, 241, 234, .02));
  box-shadow: 0 18px 34px rgba(0, 0, 0, .22);
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease, background .32s ease;
}

#ecosistema .partnership-main {
  border-color: rgba(233, 75, 46, .28);
}

#ecosistema .partnership-main:hover,
#ecosistema .partnership-side:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 103, 182, .58);
  background: linear-gradient(180deg, rgba(14, 63, 121, .2), rgba(14, 63, 121, .08));
  box-shadow:
    0 24px 34px rgba(0, 0, 0, .28),
    0 0 26px rgba(26, 103, 182, .22);
}

#ecosistema .partnership-main h2 {
  display: block;
  width: 100%;
  margin-top: .6rem;
}

#ecosistema .partnership-main p {
  margin-top: 1rem;
}

#ecosistema .partnership-lockup {
  margin-top: 1.15rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(14, 63, 121, .56);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 63, 121, .26), rgba(14, 63, 121, .12));
  display: flex;
  align-items: center;
  gap: .8rem;
  transition: border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

#ecosistema .partnership-lockup img {
  width: 150px;
  height: auto;
  opacity: .96;
}

#ecosistema .partnership-lockup strong {
  color: var(--warm-off-white);
  font-size: .92rem;
  line-height: 1.3;
}

#ecosistema .partnership-main:hover .partnership-lockup {
  border-color: rgba(64, 152, 244, .78);
  background: linear-gradient(180deg, rgba(14, 63, 121, .38), rgba(14, 63, 121, .18));
  box-shadow: 0 0 18px rgba(64, 152, 244, .22);
}

#ecosistema .partnership-lead {
  color: rgba(244, 241, 234, .86);
}

#ecosistema .partnership-points {
  margin-top: 1rem;
  display: grid;
  gap: .7rem;
}

#ecosistema .partnership-point {
  border: 1px solid rgba(14, 63, 121, .48);
  border-radius: var(--radius);
  padding: .8rem .95rem;
  background: linear-gradient(180deg, rgba(14, 63, 121, .2), rgba(14, 63, 121, .08));
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease, background .26s ease;
}

#ecosistema .partnership-point h3 {
  font-size: .95rem;
  margin-bottom: .32rem;
  color: var(--warm-off-white);
}

#ecosistema .partnership-point p {
  color: rgba(244, 241, 234, .76);
  font-size: .92rem;
}

#ecosistema .partnership-point:hover {
  transform: translateX(3px);
  border-color: rgba(64, 152, 244, .62);
  background: linear-gradient(180deg, rgba(14, 63, 121, .3), rgba(14, 63, 121, .14));
  box-shadow: 0 0 16px rgba(64, 152, 244, .16);
}

.stack-offset {
  margin-top: var(--space-6);
}

.contact-form {
  display: grid;
  gap: var(--space-3);
}

.contact-channels {
  margin-top: var(--space-4);
  display: grid;
  gap: .65rem;
}

.contact-channels a:not(.btn) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(233, 75, 46, .6);
  text-underline-offset: 2px;
}

.contact-channels strong {
  color: var(--operative-orange);
}

.macro-contact .card {
  min-height: 100%;
}

.contact-central-row h3 {
  margin-bottom: var(--space-3);
  text-align: center;
}

.contact-central-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  align-items: center;
}

.contact-central-actions .btn {
  justify-content: center;
}

.icon-btn {
  gap: .55rem;
}

.icon-btn svg {
  flex: 0 0 auto;
}

.gmx-form-card h3 {
  margin-bottom: var(--space-3);
  text-align: center;
}

.gmx-form-shell {
  border: 1px solid rgba(233, 75, 46, .28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(244, 241, 234, .06), rgba(244, 241, 234, .03));
  box-shadow: 0 16px 44px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: .85rem;
  display: flex;
  justify-content: center;
}

.unit-cta-row {
  margin-top: 0;
}

.unit-cta-row h3 {
  margin-bottom: var(--space-3);
  text-align: center;
}

.unit-cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.unit-cta-inline .btn {
  justify-content: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(460px, 1.2fr);
  gap: var(--space-4);
  align-items: stretch;
}

#contact .section-head {
  margin-bottom: var(--space-1);
}

.contact-layout > .card {
  width: 100%;
  margin-inline: 0;
}

.contact-central-row {
  display: grid;
  justify-items: center;
  grid-column: 1;
  grid-row: 1;
}

.contact-email-btn {
  background: linear-gradient(135deg, #18273D, #101B2D);
  color: var(--warm-off-white);
  border: 1px solid rgba(135, 170, 225, .44);
  box-shadow: 0 12px 30px rgba(10, 19, 32, .36);
}

.contact-email-btn:hover {
  border-color: rgba(160, 194, 248, .7);
  background: linear-gradient(135deg, #1E3150, #162845);
  box-shadow: 0 16px 34px rgba(22, 47, 83, .45);
}

.gmx-form-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100% !important;
  margin-inline: 0;
  align-self: stretch;
}

.gmx-form-shell .gmx-form-box {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

.unit-cta-row {
  grid-column: 1;
  grid-row: 2;
}

#contact .card {
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

#contact .card:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 75, 46, .28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

#contact .card:hover::before {
  border-top-color: rgba(233, 75, 46, .45);
}

.unit-cta-list {
  display: grid;
  gap: .75rem;
  align-content: start;
}

.unit-cta-list .btn {
  width: 100%;
  justify-content: flex-start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.field {
  display: grid;
  gap: .45rem;
}

.field label {
  font-size: .82rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(17, 19, 21, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .5);
  color: var(--graphite-black);
  min-height: 48px;
  padding: .78rem .9rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
  min-height: 144px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--operative-orange);
  box-shadow: 0 0 0 4px rgba(233, 75, 46, .12);
  background: #fff;
}

.site-footer {
  background: var(--graphite-black);
  color: var(--warm-off-white);
  padding: var(--space-5) 0;
}

.footer-legal-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: flex-start;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 241, 234, .68);
  font-size: .92rem;
}

.footer-legal-left {
  display: grid;
  gap: .35rem;
}

.footer-legal-right {
  text-align: right;
  max-width: 440px;
}

.footer-legal-row p {
  margin: 0;
  color: rgba(244, 241, 234, .68);
}

.footer-legal-row a {
  color: rgba(244, 241, 234, .94);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 75, 46, .56);
  transition: color .2s ease, border-color .2s ease;
}

.footer-legal-row a:hover {
  color: var(--warm-off-white);
  border-color: var(--operative-orange);
}

.reveal {
  /* Scroll reveal state controlled by Intersection Observer */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s ease var(--reveal-delay, 0ms);
}

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

.redirect-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--graphite-black);
  color: var(--warm-off-white);
}

.redirect-shell {
  width: min(100% - 40px, 520px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}

.redirect-shell p { color: rgba(244, 241, 234, .72); }

.component-error {
  padding: .75rem 1rem;
  background: var(--deep-terracotta);
  color: var(--warm-off-white);
}

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

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

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

  #ecosistema .partnership-main,
  #ecosistema .partnership-side {
    padding: 1rem;
  }

  #soluciones .section-head h2 {
    max-width: 20ch;
  }

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

  .primary-nav {
    position: fixed;
    inset: 78px 16px auto;
    display: grid;
    gap: .2rem;
    padding: var(--space-3);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: rgba(17, 19, 21, .96);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }

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

  .contact-central-row,
  .gmx-form-card,
  .unit-cta-row {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  :root {
    --space-7: 3rem;
    --space-8: 4.2rem;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    width: min(100% - 24px, 1240px);
    min-height: 72px;
  }

  .brand-link { width: 112px; }
  .brand-link.brand-subunit { width: 158px; }
  .lang-switch { display: none; }

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

  .hero h1 {
    font-size: clamp(2.5rem, 16vw, 4.2rem);
  }

  .hero p,
  .section-head p,
  .page-hero p {
    font-size: 1rem;
  }

  #soluciones .section-head h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
    max-width: none;
  }

  #soluciones .grid-3 .card {
    min-height: 0;
  }

  #ecosistema .partnership-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  #ecosistema .partnership-lockup img {
    width: 134px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .unit-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .unit-cta-inline .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-central-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .card,
  .hero-panel {
    padding: var(--space-4);
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .tech-strip {
    grid-template-columns: 1fr;
  }

  .tech-strip span {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .footer-legal-row {
    flex-direction: column;
    gap: .9rem;
  }

  .footer-legal-right {
    text-align: left;
    max-width: none;
  }

  .reveal {
    transform: translateY(10px);
  }
}

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

  #soluciones::before,
  #soluciones .grid-3 .card,
  #soluciones .grid-3 .card::before {
    animation: none !important;
  }
}
