:root {
  --navy-950: #05101c;
  --navy-900: #071525;
  --navy-850: #0a1b2e;
  --navy-800: #10243a;
  --blue-600: #235bd8;
  --blue-500: #3578ff;
  --blue-400: #61a0ff;
  --cyan-300: #75dbff;
  --ice-100: #eef5fb;
  --ice-50: #f7fafc;
  --white: #ffffff;
  --ink: #0c1a2b;
  --muted: #617086;
  --line-light: #dce5ef;
  --line-dark: rgba(255, 255, 255, .12);
  --shadow-sm: 0 14px 35px rgba(5, 16, 28, .10);
  --shadow-lg: 0 28px 80px rgba(5, 16, 28, .22);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1220px;
}

/* KW36: historial completo y galerías de servicios. */
.experience-section .experience-grid { display: block; }
.experience-section .experience-copy { width: 100%; }
.project-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 36px 0; }
.project-history-card { min-width: 0; border-top: 2px solid #3578ff; padding-top: 18px; }
.project-history-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.project-history-card h3 { display: flex; align-items: center; gap: 10px; }
.project-history-card h3 img { width: 58px; height: 32px; object-fit: contain; }
.project-history-card h3 img[src*="porsche"] { width: 68px; height: 32px; }
.project-history-card h3 img[src*="man-transparent"] { width: 58px !important; height: 32px !important; object-fit: contain; }
.experience-copy > h2 { margin-bottom: 0; }
.experience-quote { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.3; }
.services-grid + * { margin-top: 0; }
.method-layout { display: flex; flex-direction: column; gap: 38px; }
.method-heading { order: -1; width: 100%; max-width: none; text-align: left; margin: 0; }
.method-heading h2 { max-width: none; }
.method-heading > p { max-width: none; margin: 18px 0 0; }
.process-grid { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.process-step { grid-template-columns: 150px minmax(0, 1fr); min-height: 170px; }
.process-step p { max-width: none; }
.section-light .section-heading { display: block; }
.section-light .section-heading > p { max-width: 900px; margin-top: 18px; }
.project-history-card ul { padding-left: 18px; margin: 0; color: #526278; }
.project-history-card li { margin-bottom: 12px; overflow-wrap: anywhere; }
.service-slideshow { position: absolute; inset: 0; }
.slideshow-toggle { position: absolute; top: 18px; right: 18px; z-index: 3; width: 44px; height: 44px; border: 1px solid #8b9eb4; border-radius: 50%; background: #071525; color: white; font-size: 20px; }
@media (max-width: 1000px) { .project-history { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .project-history { grid-template-columns: 1fr; gap: 20px; } .experience-section .experience-copy { padding: 26px 20px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--cyan-300); outline-offset: 4px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
h1 { margin-bottom: 0; font-size: clamp(3.2rem, 6.4vw, 6.7rem); font-weight: 760; }
h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.7vw, 4.7rem); font-weight: 730; }
h3 { margin-bottom: 0; font-size: 1.45rem; font-weight: 720; }
p { margin-bottom: 0; }
.kicker {
  margin-bottom: 17px;
  color: var(--blue-400);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.section { padding: 118px 0; }
.section-light { background: var(--ice-50); color: var(--ink); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 60px;
}
.section-heading h2 { max-width: 820px; }
.section-heading > p { color: var(--muted); font-size: 1.08rem; }

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: .84rem; }
.btn-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 14px 34px rgba(53, 120, 255, .28); }
.btn-primary:hover { background: #4584ff; box-shadow: 0 18px 40px rgba(53, 120, 255, .36); }
.btn-secondary { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--white); }
.btn-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.11); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.site-header {
  position: relative;
  min-height: 100vh;
  padding: 146px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 18%, rgba(53,120,255,.18), transparent 25%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 55%, #0a2442 100%);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 82%);
}
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(5,16,28,.72);
  backdrop-filter: blur(20px);
  transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled { border-color: var(--line-dark); background: rgba(5,16,28,.94); }
.nav-inner { position: relative; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: inline-flex; width: 220px; height: 76px; flex: 0 0 auto; align-items: center; justify-content: flex-start; }
.brand-block { order: 1; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.linkedin-link { display: inline-flex; align-items: center; gap: 8px; color: #4c9bff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.linkedin-icon { display: block; width: 20px !important; height: 20px !important; min-width: 20px; max-width: 20px; flex: 0 0 20px; fill: currentColor; }
.linkedin-link:hover { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 30px; order: 2; margin-left: auto; font-size: .9rem; font-weight: 650; }
.language-switcher { display: inline-flex; align-items: center; gap: 5px; order: 3; margin-left: 24px; }
.language-btn { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; font-size: 1.05rem; line-height: 1; cursor: pointer; opacity: .68; transition: opacity .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.language-btn:hover, .language-btn.is-active { opacity: 1; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.flag { display: block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.flag-es { background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag-de { background: linear-gradient(to bottom, #111 0 33.33%, #d00 33.33% 66.66%, #ffce00 66.66%); }
.flag-en { background: #174a8b; background-image: linear-gradient(33deg, transparent 43%, #fff 43% 57%, transparent 57%), linear-gradient(-33deg, transparent 43%, #fff 43% 57%, transparent 57%), linear-gradient(33deg, transparent 47%, #c8102e 47% 53%, transparent 53%), linear-gradient(-33deg, transparent 47%, #c8102e 47% 53%, transparent 53%), linear-gradient(to right, transparent 40%, #fff 40% 60%, transparent 60%), linear-gradient(to bottom, transparent 35%, #fff 35% 65%, transparent 65%), linear-gradient(to right, transparent 46%, #c8102e 46% 54%, transparent 54%), linear-gradient(to bottom, transparent 42%, #c8102e 42% 58%, transparent 58%); }
.flag-zh { background: #de2910; position: relative; }
.flag-zh::before { content: ""; position: absolute; left: 3px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #ffde00; }
.nav-links > a:not(.btn) { color: #d8e2ef; transition: color .2s ease; }
.nav-links > a:not(.btn):hover { color: var(--white); }
.menu-btn { display: none; order: 4; width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 50%; background: rgba(255,255,255,.05); }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--white); transition: transform .2s ease, opacity .2s ease; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 84px;
}
.hero-copy { width: 100%; padding: 30px 0 0; text-align: center; }
.hero-copy .kicker { justify-content: center; }
.hero-copy h1 { max-width: 1180px; margin: 0 auto; font-size: clamp(3.4rem, 7vw, 6.8rem); }
.hero-copy h1 span { color: #9dc4ff; }
.hero-after { width: min(920px, 100%); margin: 0 auto; text-align: center; }
.hero-precision { color: #eef5ff; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 650; line-height: 1.35; }
.hero-tagline { margin-top: 18px; color: var(--cyan-300); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 650; letter-spacing: -.025em; }
.hero-lead { max-width: 860px; margin: 18px auto 0; color: #b8c6d7; font-size: clamp(1rem, 1.45vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-visual { position: relative; width: 100%; min-height: 0; aspect-ratio: 3 / 1; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg); background: #081421; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,16,28,.72), transparent 48%); }
.hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; background: #081421; }
.hero-badge {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(5,16,28,.72);
  backdrop-filter: blur(12px);
}
.hero-badge strong { font-size: 1.35rem; }
.hero-badge span { max-width: 90px; color: #c8d4e2; font-size: .7rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em; }
.hero-caption { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 28px; display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; }
.status-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #73e6b6; box-shadow: 0 0 0 7px rgba(115,230,182,.12); }
.proof-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}
.proof-grid article { min-height: 128px; padding: 27px 28px; border-right: 1px solid var(--line-dark); }
.proof-grid article:last-child { border-right: 0; }
.proof-grid strong { display: block; margin-bottom: 7px; font-size: 1.32rem; line-height: 1.15; letter-spacing: -.025em; }
.proof-grid span { display: block; color: #98a9bc; font-size: .72rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; }

.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--radius-md); background: var(--navy-900); box-shadow: var(--shadow-sm); }
.service-card-wide { min-height: 530px; }
.service-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .7s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,14,25,.97) 0, rgba(4,14,25,.68) 40%, rgba(4,14,25,.06) 78%); }
.service-card:hover img { transform: scale(1.04); }
.service-overlay { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 32px; color: var(--white); }
.service-overlay > span { color: var(--cyan-300); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.service-overlay h3 { margin-top: 9px; font-size: clamp(1.65rem, 2.7vw, 2.5rem); }
.service-overlay p { max-width: 580px; margin-top: 13px; color: #cad5e2; }

.value-section { position: relative; overflow: hidden; background: var(--navy-900); }
.value-section::after { content: ""; position: absolute; right: -180px; top: -230px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(53,120,255,.20), transparent 67%); }
.value-layout { position: relative; z-index: 1; }
.value-intro { max-width: 930px; margin: 0 auto; text-align: center; }
.value-intro h2 { max-width: 900px; margin-inline: auto; }
.value-intro > p:not(.kicker) { max-width: 790px; margin: 25px auto 0; color: #aebdce; font-size: 1.08rem; }
.value-statement { margin-top: 38px; color: var(--white); font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.02em; }
.value-statement::after { content: ""; display: block; width: 64px; height: 3px; margin: 18px auto 0; border-radius: 99px; background: var(--blue-500); }
.value-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.value-card { position: relative; display: flex; align-items: flex-start; gap: 17px; min-height: 220px; padding: 30px 29px; border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: rgba(255,255,255,.045); transition: background .2s ease, transform .2s ease; }
.value-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.075); }
.value-card h3 { margin-top: 2px; font-size: 1.38rem; }
.value-card p { margin-top: 13px; color: #9eafc2; }
.value-bullet { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(117,219,255,.42); border-radius: 50%; color: var(--cyan-300); font-size: 1.15rem; line-height: 1; }

.method-heading { display: block; max-width: 520px; margin: 0; text-align: left; }
.method-heading h2 { max-width: 520px; margin-inline: 0; }
.method-heading > p { max-width: 470px; margin: 24px 0 0; }
.method-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 58px; align-items: center; }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.process-step { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 178px; overflow: hidden; padding: 0; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--white); text-align: left; box-shadow: 0 12px 28px rgba(5,16,28,.06); transition: transform .2s ease, box-shadow .2s ease; }
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.process-image { position: relative; height: 100%; min-height: 178px; overflow: hidden; }
.process-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,16,28,.04), rgba(5,16,28,.36)); }
.process-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.process-step:hover .process-image img { transform: scale(1.05); }
.process-body { display: flex; flex-direction: column; justify-content: center; padding: 25px 29px; }
.process-step h3 { color: var(--ink); font-size: 1.55rem; }
.process-step p { max-width: 420px; margin: 11px 0 0; color: var(--muted); }

.experience-section { background: var(--ice-100); color: var(--ink); }
.experience-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(450px, .88fr); gap: 24px; }
.experience-media { position: relative; min-height: 790px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.experience-media > img { width: 100%; height: 100%; object-fit: cover; }
.experience-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,16,28,.72), transparent 45%); }
.experience-label { position: absolute; z-index: 2; left: 34px; bottom: 30px; display: flex; flex-direction: column; color: var(--white); }
.experience-label strong { font-size: 1.18rem; }
.experience-label span { color: #c0cddd; font-size: .8rem; }
.experience-copy { align-self: start; padding: 38px 42px; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.experience-copy h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4vw, 4rem); }
.experience-copy .lead { margin-top: 22px; color: var(--muted); font-size: 1.07rem; }
.check-list { display: grid; gap: 15px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 31px; color: #495a70; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e7f0ff; color: var(--blue-600); font-size: .68rem; font-weight: 900; }
.brands-title { margin-top: 35px; color: var(--ink); font-size: .8rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.robot-brands { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 15px; }
.robot-brand { display: grid; min-height: 76px; place-items: center; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius-sm); background: #e8f1f8; }
.robot-brand img { width: 84%; height: 54px; object-fit: contain; }

.trajectory-section { overflow: hidden; }
.trajectory-heading { margin-bottom: 42px; }
.experience-map { position: relative; width: 100%; max-width: 1080px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius-lg); background: #dfe9f3; box-shadow: var(--shadow-sm); }
.experience-map > img { width: 100%; height: auto; }
.map-animation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.active-route { fill: none; stroke: url(#routeGradient); stroke-width: 5; stroke-linecap: round; opacity: 0; filter: url(#mapGlow); vector-effect: non-scaling-stroke; }
.active-route.is-active { opacity: .96; }
.traveller { fill: #fff; filter: url(#mapGlow); }
.traveller-halo { fill: rgba(53,120,255,.24); animation: mapPulse 1.5s ease-in-out infinite; }
.map-status { position: absolute; z-index: 4; top: 18px; left: 18px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--white); background: rgba(5,16,28,.82); box-shadow: 0 8px 24px rgba(5,16,28,.18); backdrop-filter: blur(10px); font-size: .72rem; }
.map-status span:not(.status-dot) { color: #9fb0c2; }
.map-status strong { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.factory-panel { margin-top: 22px; padding: 34px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.factory-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-bottom: 23px; border-bottom: 1px solid var(--line-light); }
.factory-panel-head h3 { font-size: 1.75rem; }
.factory-panel-head p { color: var(--muted); font-size: .84rem; }
.factory-grid { display: grid; grid-template-columns: 1.2fr 1.7fr .8fr .8fr 1.15fr; gap: 28px; padding-top: 28px; }
.factory-grid h4 { margin: 0 0 12px; color: var(--blue-600); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.factory-grid p { color: #68778b; font-size: .78rem; line-height: 1.85; }
.factory-grid strong { color: #314157; }
.integrator-note { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-light); }
.integrator-note .kicker { margin-bottom: 9px; color: var(--blue-600); }
.integrator-note h4 { color: var(--ink); font-size: 1.35rem; }
.partner-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.partner-card { display: flex; min-width: 0; min-height: 124px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px 12px 13px; border: 1px solid #d7e3f0; border-radius: 15px; background: #f8fbfe; text-align: center; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.partner-card:hover { transform: translateY(-3px); border-color: #b8cde4; box-shadow: 0 10px 24px rgba(5,16,28,.08); }
.partner-logo { display: grid; width: 100%; height: 58px; place-items: center; }
.partner-logo img { width: auto; max-width: 132px; height: 42px; max-height: 42px; object-fit: contain; image-rendering: auto; }
.partner-card > span { color: #314157; font-size: .74rem; font-weight: 750; line-height: 1.25; }
.integrator-note > p:last-child { max-width: 850px; margin-top: 9px; color: #68778b; font-size: .86rem; line-height: 1.7; }

.cta-section { padding: 38px 0; background: var(--ice-50); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 70px; padding: 68px 72px; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, #154dbf 0%, #3578ff 62%, #66b6ff 130%); box-shadow: var(--shadow-lg); }
.cta .kicker { color: #d9ebff; }
.cta h2 { max-width: 850px; font-size: clamp(2.2rem, 4vw, 4rem); }
.cta .btn { flex: 0 0 auto; }

.contact-section { background: var(--navy-900); }
.contact-heading > p { color: #a8b7c8; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.contact-card, .contact-form { border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: rgba(255,255,255,.045); }
.contact-card { padding: 42px; }
.contact-intro { display: flex; align-items: center; gap: 12px; }
.contact-intro p { color: #a8b8ca; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-card h3 { margin-top: 30px; font-size: 2rem; }
.contact-card dl { margin: 30px 0 0; }
.contact-card dl div { padding: 19px 0; border-top: 1px solid var(--line-dark); }
.contact-card dt { color: #8294a8; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-card dd { margin: 7px 0 0; color: #d9e2ed; }
.contact-person-link { color: #9dc4ff; font-weight: 650; }
.contact-card a:hover { color: var(--cyan-300); }
.contact-form { padding: 42px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { color: #b8c6d5; font-size: .78rem; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(5,16,28,.64); color: var(--white); padding: 14px 15px; outline: none; transition: border-color .2s ease, background .2s ease; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue-400); background: rgba(5,16,28,.84); }
.form-submit { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; margin-top: 4px; }
.form-submit p { color: #7f91a5; font-size: .76rem; }

.footer { padding: 76px 0 28px; border-top: 1px solid var(--line-dark); background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .75fr .8fr .9fr; gap: 55px; }
.footer .brand { width: 210px; height: 72px; }
.footer-brand p { max-width: 390px; margin-top: 23px; color: #8698ab; font-size: .86rem; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer h3 { margin-bottom: 9px; color: #d7e2ee; font-size: .82rem; letter-spacing: .06em; }
.footer a, .footer span { color: #7f91a5; font-size: .8rem; transition: color .2s ease; }
.footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* Mantiene la misma composición cuando el alemán necesita más espacio de lectura. */
html[lang="de"] .nav-links { gap: 24px; font-size: .84rem; }
html[lang="de"] .hero-copy h1 { font-size: clamp(3.1rem, 6.1vw, 6.35rem); }
html[lang="de"] h2 { font-size: clamp(2.3rem, 4.45vw, 4.5rem); }
html[lang="de"] .section-heading > p,
html[lang="de"] .hero-lead,
html[lang="de"] .experience-copy .lead { font-size: 1.02rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes mapPulse { 0%,100% { transform: scale(.8); transform-origin: center; opacity: .42; } 50% { transform: scale(1.35); transform-origin: center; opacity: .13; } }

@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .hero-grid { gap: 30px; }
  .hero-visual { min-height: 0; aspect-ratio: 2.6 / 1; }
  .hero-visual > img { min-height: 0; }
  .proof-grid strong { font-size: 1.12rem; }
  .value-cards { gap: 12px; }
  .experience-grid { grid-template-columns: .95fr 1.05fr; }
  .experience-copy { padding: 38px; }
  .factory-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  .container { width: min(var(--container), calc(100% - 34px)); }
  .section { padding: 92px 0; }
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-btn { display: block; position: relative; z-index: 3; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; z-index: 2; width: 100vw; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 110px 34px 44px; background: #071525 !important; background-image: none !important; opacity: 1; backdrop-filter: none; box-shadow: inset 0 0 0 100vmax #071525; transform: translateX(100%); transition: transform .3s ease; }
  .language-switcher { position: absolute; top: 31px; right: 58px; z-index: 4; gap: 2px; margin: 0; }
  .language-btn { width: 27px; height: 27px; font-size: 1rem; }
  .nav-links.open { transform: none; }
  .nav-links > a:not(.btn) { font-size: 1.7rem; }
  .hero-grid { padding-bottom: 58px; }
  .hero-copy { padding-top: 10px; }
  .hero-visual { min-height: 0; aspect-ratio: 2.25 / 1; border-radius: 26px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid article:nth-child(2) { border-right: 0; }
  .proof-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .value-cards { grid-template-columns: 1fr; }
  .value-card { min-height: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-media { min-height: 540px; }
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { align-items: flex-start; flex-direction: column; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .section { padding: 72px 0; }
  .nav-inner { min-height: 78px; }
  .brand { width: 178px; height: 60px; }
  .site-header { padding-top: 112px; }
  h1 { font-size: clamp(2.85rem, 14vw, 4.2rem); }
  h2 { font-size: clamp(2.1rem, 10vw, 3.1rem); }
  .hero-grid { gap: 24px; }
  .hero-copy h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  html[lang="de"] .hero-copy h1 { font-size: clamp(2.35rem, 11.8vw, 3.65rem); }
  html[lang="de"] h2 { font-size: clamp(2rem, 9.4vw, 2.95rem); }
  .hero-visual { height: auto; min-height: 0; aspect-ratio: 1.9 / 1; border-radius: 20px; background: #081421; }
  .hero-visual > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
  .hero-badge { top: 18px; left: 18px; }
  .hero-caption { left: 20px; right: 20px; bottom: 18px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid article { min-height: 112px; padding: 20px 17px; }
  .proof-grid strong { font-size: 1rem; }
  .proof-grid span { font-size: .62rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card-wide { min-height: 390px; }
  .service-card img { display: block; opacity: 1; visibility: visible; object-position: center; }
  .service-card:first-child img { object-fit: contain; background: #071525; }
  .service-overlay { left: 22px; right: 22px; bottom: 23px; }
  .value-card { padding: 25px 22px; }
  .value-card h3 { margin-top: 2px; }
  .method-layout { gap: 28px; }
  .method-heading { order: -1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 110px minmax(0, 1fr); min-height: 150px; }
  .process-image { display: block; height: 100%; min-height: 150px; background: #dfe8f1; }
  .process-image img { display: block; width: 100%; height: 100%; opacity: 1; visibility: visible; object-fit: cover; object-position: center; }
  .process-body { padding: 20px 18px; }
  .process-step h3 { font-size: 1.25rem; }
  .process-step p { margin-top: 8px; font-size: .9rem; }
  .process-step h3 { margin-top: 0; }
  .experience-media { min-height: 420px; }
  .experience-copy { padding: 29px 24px; }
  .robot-brand { min-height: 72px; }
  .robot-brand img { height: 50px; }
  .map-status { top: 10px; left: 10px; gap: 7px; max-width: calc(100% - 20px); padding: 8px 10px; font-size: .62rem; }
  .map-status strong { max-width: 145px; }
  .factory-panel { padding: 25px 20px; }
  .factory-panel-head { display: block; }
  .factory-panel-head p { margin-top: 6px; }
  .factory-grid { grid-template-columns: 1fr; gap: 22px; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .partner-card { min-height: 112px; padding-inline: 8px; }
  .partner-logo { height: 50px; }
  .cta { padding: 44px 27px; }
  .contact-card, .contact-form { padding: 28px 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-submit { flex-direction: column; align-items: stretch; }
  .footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

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

/* Ajuste final de presentación del método: encabezado arriba, tarjetas debajo. */
.method-section .method-layout { display: flex !important; flex-direction: column !important; gap: 38px !important; }
.method-section .method-heading { order: -1 !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
.method-section .method-heading h2 { max-width: none !important; }
.method-section .method-heading > p { max-width: 900px !important; margin: 18px 0 0 !important; }
.method-section .process-grid { display: grid !important; width: 100% !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; }
.method-section .process-step { grid-template-columns: 150px minmax(0, 1fr) !important; min-height: 170px !important; }
.project-history-card h3 img[src*="man-transparent"] { width: 58px !important; height: 32px !important; object-fit: contain; }
.slideshow-toggle { display: none; }
@media (max-width: 900px) {
  .method-section .process-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 620px) {
  .method-section .process-step { grid-template-columns: 110px minmax(0, 1fr) !important; min-height: 150px !important; }
  .project-history-card h3 img[src*="man-transparent"] { width: 58px !important; height: 32px !important; }
}
