*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --brand: oklch(44% 0.13 255);
  --brand-light: oklch(58% 0.12 255);
  --brand-subtle: oklch(88% 0.05 255);
  --ink: oklch(18% 0.05 253);
  --ink-mid: oklch(32% 0.07 253);
  --ink-muted: oklch(50% 0.06 253);
  --ink-faint: oklch(68% 0.04 253);
  --surface: oklch(99% 0.006 255);
  --surface-alt: oklch(96.5% 0.009 255);
  --dark-bg: oklch(15% 0.05 253);
  --dark-surface: oklch(20% 0.055 253);
  --accent: oklch(62% 0.14 57);
  --accent-light: oklch(91% 0.07 57);
  --border: oklch(88% 0.02 255);
  --border-dark: oklch(28% 0.06 253);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

input,
textarea,
select {
  font-family: 'Karla', sans-serif;
}

section {
  scroll-margin-top: 78px;
}

summary::-webkit-details-marker {
  display: none;
}

@keyframes asymFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================== NAV ============================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 56px;
  background: oklch(99% 0.006 255 / 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo-text {
  line-height: 1;
}

.nav-logo-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.07em;
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-wa:hover {
  background: var(--brand-light);
}

/* ---------- Selector de idioma: dropdown de banderas (F4) ---------- */

.lang-dd {
  position: relative;
}

.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: border-color 0.2s, color 0.2s;
}

.lang-dd-btn:hover {
  color: var(--ink);
  border-color: oklch(78% 0.02 255);
}

.lang-dd-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand);
}

.lang-dd-flag {
  display: inline-flex;
}

.lang-dd-flag .flag-svg {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(12, 30, 60, 0.14);
}

.lang-dd-caret {
  display: inline-flex;
}

.lang-dd-caret svg {
  display: block;
  width: 12px;
  height: 12px;
}

.lang-dd-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  background: oklch(99% 0.006 255 / 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 18px 40px oklch(30% 0.03 255 / 0.18);
}

.lang-dd-list[hidden] { display: none; }

.lang-dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background 0.15s, color 0.15s;
}

.lang-dd-opt:hover,
.lang-dd-opt:focus {
  background: var(--surface-alt);
  color: var(--ink);
  outline: none;
}

.lang-dd-opt[aria-selected="true"] {
  color: var(--brand);
  font-weight: 700;
}

/* ============================== HERO ============================== */

.hero {
  position: relative;
  overflow: hidden;
  background: #081120;
  border-bottom: 1px solid oklch(30% 0.05 253);
}

.hero-logo-rain {
  position: absolute;
  inset: -320px;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/asymco-logo.png");
  background-repeat: repeat;
  background-size: 96px 114px;
  /* logo original azul -> silueta clara plana */
  filter: brightness(0) invert(1);
  opacity: 0.09;
  animation: logo-rain 5.5s linear infinite;
  will-change: transform;
}

/* rotate() inclina los logos; translate() de un tile exacto = loop sin costuras */
@keyframes logo-rain {
  from { transform: rotate(-18deg) translate(0, 0); }
  to   { transform: rotate(-18deg) translate(96px, 114px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-rain { animation: none; }
}

/* Subtle dot grid — precision signal */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(44% 0.13 255 / 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(44% 0.13 255 / 0.07), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-2 {
  position: absolute;
  bottom: -200px;
  left: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(62% 0.14 57 / 0.05), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 56px 88px;
  gap: 32px;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--accent-light);
  color: oklch(48% 0.14 57);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: oklch(55% 0.14 57);
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  margin: 0;
  color: #eef4fc;
  letter-spacing: -0.025em;
  max-width: 820px;
}

.hero-title-gradient {
  color: #6fb0f5;
}

.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.65;
  color: #a9bdd8;
  margin: 0;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary {
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--brand-light);
}

.btn-secondary {
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(158, 200, 244, 0.32);
  color: #dbe8f8;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: #6fb0f5;
  color: #ffffff;
  background: rgba(111, 176, 245, 0.12);
}

.hero-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: #8ea2bf;
}

.hero-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(60% 0.15 145);
  box-shadow: 0 0 6px oklch(60% 0.15 145);
}

/* ============================== ORBIT STAGE ============================== */

.orbit-stage-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.orbit-container {
  position: relative;
  width: 800px;
  height: 680px;
}

.orbit-ellipse {
  position: absolute;
  left: 400px;
  top: 340px;
  width: 530px;
  height: 310px;
  border: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-glow {
  position: absolute;
  left: 400px;
  top: 340px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(44% 0.13 255 / 0.1), transparent 64%);
  filter: blur(20px);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.orbit-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 296px;
  padding: 18px;
  border-radius: 16px;
  background: oklch(100% 0 0 / 0.97);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px oklch(18% 0.05 253 / 0.07), 0 2px 6px oklch(18% 0.05 253 / 0.04);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.orbit-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid oklch(88% 0.02 255);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.orbit-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orbit-card-title {
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 7px;
  color: var(--ink);
}

.orbit-card-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 13px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.orbit-card-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  margin-top: auto;
}

/* ============================== SERVICES ============================== */

.services {
  background: var(--surface);
  padding: var(--space-4xl) 56px 104px;
}

.services-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.services-header {
  max-width: 760px;
  margin: 0 0 72px;
}

.services-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.services-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.services-lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0;
  max-width: 600px;
}

.service-block {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 120px;
}

.service-block-left {
  flex: 0 0 42%;
}

.service-number {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.service-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.service-right {
  flex: 1;
  padding-top: 52px;
}

.service-quote {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0 0 22px;
  font-weight: 500;
}

.service-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 65ch;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

/* Dev panel */
.dev-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--dark-bg);
  border: 1px solid oklch(24% 0.06 253);
  padding: 60px;
  margin-bottom: 64px;
  display: flex;
  gap: 56px;
  align-items: center;
}

.dev-panel-blob {
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(44% 0.13 255 / 0.1), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.dev-panel-content {
  position: relative;
  flex: 1;
}

.dev-panel-number {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.dev-panel-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: oklch(95% 0.01 255);
}

.dev-panel-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: oklch(65% 0.04 255);
  margin: 0 0 30px;
  max-width: 440px;
}

.dev-panel-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dev-panel-tag {
  padding: 8px 15px;
  border-radius: 4px;
  background: oklch(22% 0.055 253);
  border: 1px solid oklch(30% 0.06 253);
  color: oklch(72% 0.05 255);
  font-size: 12.5px;
  font-weight: 600;
}

.dev-panel-visual {
  position: relative;
  flex: 0 0 42%;
}

.dev-panel-window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid oklch(26% 0.06 253);
  background: oklch(18% 0.05 253);
  box-shadow: 0 32px 64px oklch(8% 0.04 253 / 0.5);
}

.dev-panel-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: oklch(21% 0.055 253);
  border-bottom: 1px solid oklch(26% 0.06 253);
}

.dev-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dev-panel-dot.red    { background: #ff5f57; }
.dev-panel-dot.yellow { background: #febc2e; }
.dev-panel-dot.green  { background: #28c840; }

.dev-panel-url {
  margin-left: 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: oklch(48% 0.04 255);
}

.dev-panel-screen {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dark-bg);
}

.dev-panel-screen img,
.dev-panel-construction {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Mantenimiento bento */
.mtto-block {
  margin-bottom: 96px;
}

.mtto-header {
  max-width: 560px;
  margin-bottom: 32px;
}

.mtto-number {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mtto-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mtto-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

.mtto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.mtto-image {
  grid-row: span 2;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid oklch(88% 0.02 255);
  min-height: 340px;
}

.mtto-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mtto-stat {
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mtto-stat-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.mtto-stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.mtto-stat-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--brand);
}

.mtto-stat-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

.mtto-feature {
  border-radius: 18px;
  background: var(--brand);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.mtto-feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mtto-feature-header svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.mtto-feature-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.mtto-feature-desc {
  font-size: 14px;
  line-height: 1.55;
  color: oklch(88% 0.04 255);
  margin: 0;
}

/* Systems */
.systems-block {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.systems-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.systems-header-left {
  max-width: 540px;
}

.systems-number {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.systems-heading {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.systems-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  max-width: 380px;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.systems-item {
  padding: 8px 32px 8px 0;
  border-right: 1px solid var(--border);
}

.systems-item.center {
  padding: 8px 32px;
}

.systems-item.end {
  padding: 8px 0 8px 32px;
  border-right: none;
}

.systems-icon {
  color: var(--brand);
  margin-bottom: 14px;
}

.systems-icon svg {
  width: 24px;
  height: 24px;
}

.systems-item-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.systems-item-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================== ABOUT ============================== */

.about {
  background: var(--surface-alt);
  padding: var(--space-4xl) 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-content {
  flex: 1;
}

.about-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.about-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.about-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 16px;
  max-width: 65ch;
}

.about-text:last-of-type {
  margin-bottom: 32px;
}

.about-stats {
  display: flex;
  gap: 40px;
}

.about-stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.about-stat-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.about-image {
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: oklch(93% 0.015 255);
  border: 1px solid oklch(88% 0.02 255);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============================== ADVANTAGES ============================== */

.advantages {
  background: var(--surface);
  padding: var(--space-4xl) 56px;
}

.advantages-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.advantages-header {
  max-width: 560px;
  margin: 0 0 60px;
}

.advantages-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.advantages-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.advantage-item {
  text-align: left;
}

.advantage-icon {
  color: var(--brand);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
}

.advantage-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}

.advantage-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

/* ============================== TESTIMONIALS ============================== */

.testimonials {
  background: var(--surface-alt);
  padding: var(--space-4xl) 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.testimonials-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.testimonials-header {
  max-width: 560px;
  margin: 0 0 56px;
}

.testimonials-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.testimonials-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: oklch(100% 0 0);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  animation: testimonial-levitate 5s ease-in-out infinite;
  will-change: transform;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.testimonial-author {
  margin-top: auto;
}

.testimonial-card:nth-child(2) { animation-delay: -1.6s; }
.testimonial-card:nth-child(3) { animation-delay: -3.2s; }

.testimonial-card:hover {
  animation-play-state: paused;
  border-color: oklch(82% 0.04 255);
  box-shadow: 0 24px 48px oklch(45% 0.09 255 / 0.16);
}

@keyframes testimonial-levitate {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 10px 24px oklch(45% 0.09 255 / 0.08);
  }
  50% {
    transform: translateY(-12px);
    box-shadow: 0 26px 44px oklch(45% 0.09 255 / 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card {
    animation: none;
  }
}

.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin: 0 0 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-subtle);
  border: 1px solid oklch(82% 0.04 255);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.testimonial-role {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ============================== FAQ ============================== */

.faq {
  background: var(--surface);
  padding: var(--space-4xl) 56px;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  margin-bottom: 52px;
}

.faq-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.faq-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  color: var(--brand);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-answer {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 65ch;
}

/* ============================== CONTACT ============================== */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  padding: var(--space-4xl) 56px;
}

.contact-glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 80%, oklch(44% 0.13 255 / 0.1), transparent 45%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: stretch;
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.contact-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: oklch(95% 0.01 255);
}

.contact-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: oklch(62% 0.04 255);
  margin: 0 0 34px;
  max-width: 400px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(22% 0.055 253);
  border: 1px solid oklch(28% 0.06 253);
  color: oklch(68% 0.06 255);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-label {
  font-size: 11px;
  color: oklch(52% 0.04 255);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-detail-value {
  font-size: 15px;
  font-weight: 600;
  color: oklch(88% 0.025 255);
}

.contact-form-wrap {
  flex: 1;
  position: relative;
}

.contact-form {
  background: oklch(20% 0.055 253);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form-row {
  display: flex;
  gap: 14px;
}

.contact-form-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid oklch(30% 0.06 253);
  background: oklch(16% 0.05 253);
  color: oklch(90% 0.02 255);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form-input:focus {
  border-color: var(--brand);
}

.contact-form-input::placeholder {
  color: oklch(46% 0.04 255);
}

.contact-form-select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid oklch(30% 0.06 253);
  background: oklch(16% 0.05 253);
  color: oklch(90% 0.02 255);
  font-size: 14px;
  outline: none;
}

.contact-form-select option {
  background: oklch(18% 0.05 253);
}

.contact-form-textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid oklch(30% 0.06 253);
  background: oklch(16% 0.05 253);
  color: oklch(90% 0.02 255);
  font-size: 14px;
  outline: none;
  resize: vertical;
  font-family: 'Karla', sans-serif;
  transition: border-color 0.2s;
}

.contact-form-textarea:focus {
  border-color: var(--brand);
}

.contact-form-textarea::placeholder {
  color: oklch(46% 0.04 255);
}

.contact-form-btn {
  margin-top: 6px;
  padding: 14px;
  border-radius: 8px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Karla', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form-btn:hover {
  background: var(--brand-light);
}

.contact-form-done {
  display: none;
  position: absolute;
  inset: 0;
  background: oklch(20% 0.055 253);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  color: oklch(90% 0.02 255);
}

.contact-form-done-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: oklch(44% 0.13 255 / 0.14);
  border: 1px solid oklch(44% 0.13 255 / 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(68% 0.1 255);
}

.contact-form-done-icon svg {
  width: 26px;
  height: 26px;
}

.contact-form-done-title {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.contact-form-done-text {
  font-size: 14px;
  line-height: 1.65;
  color: oklch(58% 0.04 255);
  margin: 0;
  max-width: 260px;
}

/* ============================== FOOTER ============================== */

.footer {
  background: oklch(12% 0.04 253);
  color: oklch(52% 0.04 255);
  padding: 54px 56px 40px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 36px;
  width: auto;
}

.footer-brand-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: oklch(92% 0.015 255);
}

.footer-brand-sub {
  font-size: 9px;
  letter-spacing: 0.07em;
  margin-top: 4px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col-title {
  color: oklch(65% 0.06 255);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  color: oklch(52% 0.04 255);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: oklch(75% 0.06 255);
}

.footer-bottom {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid oklch(22% 0.05 253);
  font-size: 12px;
  color: oklch(40% 0.03 255);
}

/* ============================== WHATSAPP FLOAT ============================== */

.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 80;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px oklch(44% 0.13 255 / 0.38);
  animation: asymFloat 3.5s ease-in-out infinite;
  text-decoration: none;
  transition: background 0.2s;
}

.wa-float:hover {
  background: var(--brand-light);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

/* ============================== POPUP ============================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(18% 0.05 253 / 0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

.popup-modal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow:
    0 40px 100px oklch(18% 0.05 253 / 0.2),
    0 8px 24px oklch(18% 0.05 253 / 0.08);
  transform: scale(0.08);
  opacity: 0;
  will-change: transform, opacity;
}

.popup-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.popup-close-btn:hover {
  background: var(--border);
  color: var(--ink);
}

.popup-label {
  font-family: 'Sora', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.popup-title {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  padding-right: 36px;
}

.popup-intro {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin: 0 0 22px;
}

.popup-items {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.popup-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.popup-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 7px;
}

.popup-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--brand-subtle);
  border: 1px solid oklch(82% 0.05 255);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.popup-cta:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ============================================================
   RESPONSIVE — adaptación a cualquier tamaño de pantalla
   Estrategia: desktop es la base; acá sobrescribimos por breakpoint.
   ============================================================ */

img { max-width: 100%; }
body { overflow-x: hidden; }

/* el botón hamburguesa vive oculto en desktop */
.nav-toggle { display: none; }

/* ---------- Desktop chico / tablet apaisada (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .nav { padding-left: 32px; padding-right: 32px; }
  .nav-links { gap: 20px; }
  .lang-dd-btn { font-size: 13px; padding: 7px 8px; }
  .services, .about, .advantages, .testimonials, .faq, .contact {
    padding-left: 40px; padding-right: 40px;
  }
  .hero-inner { padding-left: 40px; padding-right: 40px; }
  .footer { padding-left: 40px; padding-right: 40px; }
  .service-block { gap: 40px; }
  .dev-panel { padding: 44px; gap: 40px; }
  .about-inner, .contact-inner { gap: 44px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet vertical / móvil grande: apilar (≤ 820px) ---------- */
@media (max-width: 820px) {
  /* NAV -> menú hamburguesa */
  .nav { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    order: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-wa { display: none; } /* el botón flotante de WhatsApp cubre este CTA */
  .nav-links {
    display: none;
    flex: 1 1 100%;
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 0;
    background: oklch(99% 0.006 255 / 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 32px; font-size: 15.5px; }

  /* Selector de idioma: último ítem del panel hamburguesa (fila propia,
     ancho completo) para que siga visible/usable en móvil */
  .lang-dd {
    display: none;
    flex: 1 1 100%;
    order: 3;
    width: auto;
    margin: 0;
    padding: 14px 32px 18px;
    background: oklch(99% 0.006 255 / 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .lang-dd { display: block; }
  .lang-dd-btn { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 15.5px; }
  .lang-dd-list { position: static; top: auto; right: auto; min-width: 0; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Secciones: menos aire lateral y vertical */
  .services, .about, .advantages, .testimonials, .faq, .contact {
    padding-left: 24px;
    padding-right: 24px;
    padding-block: 64px;
  }
  .hero-inner { padding: 96px 24px 56px; }

  /* HERO: escalamos la órbita (px fijos) para que entre sin cortarse */
  .orbit-stage-wrap { overflow: hidden; height: 476px; }
  .orbit-container { transform: scale(0.7); transform-origin: top center; }

  /* Servicios: de fila a columna */
  .service-block { flex-direction: column; gap: 20px; margin-bottom: 72px; }
  .service-block-left { flex: 1 1 auto; }
  .service-right { padding-top: 0; }
  .dev-panel { flex-direction: column; padding: 32px; gap: 28px; margin-bottom: 48px; }
  .dev-panel-visual { flex: 1 1 auto; width: 100%; }
  .mtto-grid { grid-template-columns: 1fr; }
  .mtto-image { grid-row: auto; min-height: 220px; }
  .systems-grid { grid-template-columns: 1fr; }
  .systems-item { padding: 20px 0; border-bottom: 1px solid var(--border); }

  /* Nosotros / Testimonios / Contacto -> una columna */
  .about-inner { flex-direction: column; gap: 32px; align-items: stretch; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-inner { flex-direction: column; gap: 32px; align-items: stretch; }

  /* Footer apilado */
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ---------- Teléfono (≤ 480px) ---------- */
@media (max-width: 480px) {
  .nav { padding-left: 18px; padding-right: 18px; }
  .nav-logo-sub { display: none; }
  .services, .about, .advantages, .testimonials, .faq, .contact {
    padding-left: 18px;
    padding-right: 18px;
    padding-block: 52px;
  }
  .hero-inner { padding: 88px 18px 48px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .contact-form-row { flex-direction: column; }
  .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .btn-primary, .btn-secondary { text-align: center; }

  /* órbita aún más chica en teléfono */
  .orbit-stage-wrap { height: 320px; }
  .orbit-container { transform: scale(0.46); }
}

/* ---------- Popup: scroll interno en pantallas bajitas ---------- */
@media (max-height: 640px), (max-width: 480px) {
  .popup-modal { max-height: 86vh; overflow-y: auto; padding: 28px 24px; }
}

/* ============================================================
   I18N — Ajustes por idioma (F6)
   La clase lang-<code> la setea i18n.js en <html> (REQ-F6.1).
   Acá SOLO absorbemos texto más largo en DE/FR con tipografía y
   fluidez — NUNCA tocamos geometría (órbita Rx/Ry y 240x296 fijos).
   Esta sección va al final para ganar la cascada sobre los
   breakpoints de arriba.
   ============================================================ */

/* Palabras largas (compuestas alemanas) no deben desbordar su caja */
.orbit-card-desc,
.service-quote,
.footer {
  overflow-wrap: break-word;
}

/* ---------- Órbita DE/FR (REQ-F6.2) ---------- */
html.lang-de .orbit-card-title,
html.lang-fr .orbit-card-title {
  font-size: 13px;
}

html.lang-de .orbit-card-desc,
html.lang-fr .orbit-card-desc {
  font-size: 11.5px;
  line-height: 1.4;
}

/* ---------- Nav: banda 821-950px (REQ-F6.3) ----------
   Con 5 links + select + botón WA inline, el nav desktop comprime
   acá para no desbordar. Por debajo de 821px ya es menú hamburguesa. */
@media (min-width: 821px) and (max-width: 950px) {
  .nav { padding-left: 24px; padding-right: 24px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-wa { padding: 8px 13px; font-size: 12.5px; }
  .lang-dd-btn { font-size: 12px; padding: 6px 6px; gap: 4px; }
}

/* ---------- Hero buttons en tablet DE/FR (REQ-F6.4) ---------- */
@media (max-width: 1024px) {
  html.lang-de .hero-buttons,
  html.lang-fr .hero-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---------- mtto-stat DE: el split "Am selben / Werktag" (REQ-F6.5) ---------- */
html.lang-de .mtto-stat-header {
  flex-wrap: wrap;
  row-gap: 4px;
}

html.lang-de .mtto-stat-label {
  font-size: 15px;
}
