/* SoftLab — hoja de estilos del sitio (rediseño 2026)
   Reemplaza a bootstrap.min.css + creative.css + animate.min.css. */

:root {
  --bg: #07090C;
  --bg-2: #0A0D11;
  --surface: #0F1318;

  --line: rgba(242, 240, 237, 0.08);
  --line-2: rgba(242, 240, 237, 0.09);
  --line-3: rgba(242, 240, 237, 0.12);
  --line-4: rgba(242, 240, 237, 0.14);
  --line-5: rgba(242, 240, 237, 0.18);
  --line-6: rgba(242, 240, 237, 0.22);

  --text: #F2F0ED;
  --text-2: #C8C4BF;
  --muted: #9AA1A9;
  --dim: #767D85;
  --faint: #4E555D;

  --accent: #F05F40;
  --accent-hover: #FF7C60;
  --accent-2: #3FA8C0;

  --radius: 6px;
  --radius-card: 10px;

  --font-display: 'Space Grotesk', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: clamp(20px, 4.4vw, 64px);
  --section-y: clamp(64px, 7.6vw, 110px);
  --wrap: 1312px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }

img, svg { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover, a:focus-visible { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: #0B0D10;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; color: #0B0D10; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
}

section { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  padding-inline: var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover, .brand:focus-visible { color: var(--text); }
.brand svg { flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 20px;
  border: 1px solid var(--line-6);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text) !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.nav__cta:hover { border-color: var(--accent); background: rgba(240, 95, 64, 0.12); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #0B0D10;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--accent-hover);
  color: #0B0D10;
}

.btn--ghost {
  border: 1px solid var(--line-5);
  color: var(--text);
  font-weight: 500;
  padding-inline: 24px;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
}
.link-arrow svg { transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Encabezados de sección ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  text-wrap: balance;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 48px;
}
.section-head__main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.section-head__aside {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Fondo en movimiento ---------- */

.moving-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.moving-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 240, 237, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 240, 237, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: grid-drift 26s linear infinite;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 20%, #000 10%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 60% 20%, #000 10%, transparent 72%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob--warm {
  top: -160px;
  right: -80px;
  width: min(720px, 90vw);
  aspect-ratio: 1.12;
  background: radial-gradient(circle, rgba(240, 95, 64, 0.42), transparent 66%);
  filter: blur(70px);
  animation: blob-a 26s ease-in-out infinite;
}
.blob--cool {
  top: 180px;
  left: -180px;
  width: min(640px, 88vw);
  aspect-ratio: 1.07;
  background: radial-gradient(circle, oklch(0.68 0.13 215 / 0.34), transparent 68%);
  filter: blur(80px);
  animation: blob-b 34s ease-in-out infinite;
}
.blob--soft {
  top: 40px;
  right: -120px;
  width: min(620px, 84vw);
  aspect-ratio: 1.19;
  background: radial-gradient(circle, rgba(240, 95, 64, 0.20), transparent 68%);
  filter: blur(80px);
  animation: blob-c 32s ease-in-out infinite;
}
.blob--soft-cool {
  top: -120px;
  left: 26%;
  width: min(700px, 88vw);
  aspect-ratio: 1.25;
  background: radial-gradient(circle, oklch(0.68 0.13 215 / 0.22), transparent 68%);
  filter: blur(90px);
  animation: blob-b 34s ease-in-out infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 72px 72px, 72px 72px; }
}
@keyframes blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(90px, -70px) scale(1.18); }
}
@keyframes blob-b {
  0%, 100% { transform: translate(0, 0) scale(1.1); }
  50%      { transform: translate(-110px, 60px) scale(0.92); }
}
@keyframes blob-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, 40px) scale(1.22); }
}
/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px;
  max-width: 1480px;
  padding: clamp(48px, 5vw, 72px) var(--pad-x);
  min-height: 616px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.hero__lead {
  max-width: 500px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.hero__art {
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* Illustración del flujo oficina → terreno → cliente. Solo HTML y CSS. */
.operation-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 640px;
  height: 492px;
  font-size: 12px;
  line-height: 1.4;
  color: #dce4eb;
  user-select: none;
}
.operation-scene__glow {
  position: absolute;
  z-index: -1;
  inset: 35px -25px 0;
  background: radial-gradient(ellipse at 65% 35%, #f05f4026, transparent 65%), radial-gradient(ellipse at 25% 75%, #3fa8c030, transparent 65%);
  filter: blur(24px);
}
.operation-scene__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .035em;
  color: #b8c6cf;
  padding-left: 4px;
}
.operation-scene__label > span { width: 6px; height: 6px; background: #65c9b3; border-radius: 50%; box-shadow: 0 0 12px #65c9b380; }
.ops-panel {
  position: absolute;
  top: 39px;
  left: 0;
  width: 88%;
  border: 1px solid #465360;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(130deg, #1b252f, #111920);
  box-shadow: 0 28px 60px #0006, 0 1px 0 #ffffff12 inset;
  transform: perspective(1200px) rotateY(-5deg) rotateZ(-2deg);
}
.ops-panel__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 15px; border-bottom: 1px solid #ffffff10; color: #b8c6cf; font-size: 10px; }
.ops-panel__dots { display: flex; gap: 4px; }
.ops-panel__dots i { width: 5px; height: 5px; border-radius: 50%; background: #53616e; }
.ops-panel__dots i:first-child { background: var(--accent); }
.ops-panel__divider { color: #667887; padding-inline: 7px; }
.ops-panel__avatar { margin-left: auto; border-radius: 50%; background: #3a4652; padding: 4px; font-size: 8px; }
.ops-panel__body { padding: 17px; }
.ops-panel__heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.scene-overline { display: block; font-size: 8px; letter-spacing: .12em; color: #a0b2c0; }
.ops-panel__heading strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 16px; letter-spacing: -.03em; }
.scene-status { display: inline-flex; align-items: center; gap: 4px; color: #93dac2; background: #65c9b313; border: 1px solid #65c9b324; border-radius: 5px; padding: 4px 7px; font-size: 9px; white-space: nowrap; }
.scene-status::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.scene-status--pending { color: #e8b27c; background: #e8b27c0c; border-color: #e8b27c22; }
.ops-map { position: relative; height: 158px; overflow: hidden; border: 1px solid #405361; border-radius: 7px; background-color: #20313b; background-image: repeating-linear-gradient(0deg, transparent 0 28px, #8ba8b31c 29px 32px, transparent 33px 57px), repeating-linear-gradient(90deg, transparent 0 41px, #8ba8b31c 42px 45px, transparent 46px 73px); }
.ops-map__park { position: absolute; background: #35564b; border: 1px solid #6c998125; border-radius: 5px; transform: rotate(-18deg); }
.ops-map__park--one { width: 62px; height: 90px; top: -15px; left: 24px; }
.ops-map__park--two { width: 88px; height: 45px; bottom: -10px; right: 5px; }
.ops-map__avenue { position: absolute; width: 130%; height: 11px; top: 73px; left: -10%; background: #70898f28; border-block: 1px solid #91aeb329; transform: rotate(-27deg); }
.ops-map__district { position: absolute; top: 17px; right: 18px; color: #afc2c8; font-size: 8px; letter-spacing: .18em; }
.ops-map__route { position: absolute; left: 24%; top: 51px; width: 34%; height: 48px; border-left: 3px solid #f68d61; border-bottom: 3px solid #f68d61; border-radius: 0 0 0 10px; filter: drop-shadow(0 0 5px #f05f4050); }
.ops-map__pin { position: absolute; width: 10px; height: 10px; border: 2px solid #fdd3b5; background: #f05f40; border-radius: 50%; box-shadow: 0 0 0 5px #f05f4026; }
.ops-map__pin--start { top: 46px; left: calc(24% - 4px); }
.ops-map__pin--end { top: 93px; left: 57%; animation: map-signal 5s ease-out infinite; }
.ops-map__callout { position: absolute; left: 33%; top: 38px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #667b80; border-radius: 7px; background: #18242ef5; box-shadow: 0 8px 20px #0004; white-space: nowrap; }
.ops-map__callout strong { display: block; font-size: 10px; font-weight: 500; }
.ops-map__callout div > span { display: block; font-size: 8px; color: #a0b2c0; margin-top: 2px; }
.scene-check { display: grid; place-items: center; width: 21px; height: 21px; background: #65c9b321; color: #93dac2; border-radius: 50%; }
.ops-map__key { position: absolute; left: 10px; bottom: 9px; display: flex; align-items: center; gap: 5px; font-size: 8px; color: #b9c9cd; }
.ops-map__key i { width: 4px; height: 4px; background: #f68d61; border-radius: 50%; }
.ops-panel__row { display: flex; align-items: center; gap: 12px; padding-top: 12px; font-size: 10px; }
.ops-panel__row > .scene-status { margin-left: auto; }
.ops-panel__order { color: #a0b2c0; font-size: 9px; }
.ops-panel__row--muted { padding-top: 9px; }
.field-phone { position: absolute; top: 127px; right: 0; width: 180px; height: 326px; border: 1px solid #85919c; border-radius: 28px; padding: 8px; background: #0b1119; box-shadow: 0 24px 50px #0009, 0 0 0 3px #27323c, 0 1px 0 1px #c4d0d033; transform: rotate(5deg); }
.field-phone__camera { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 50px; height: 12px; border-radius: 10px; background: #050709; }
.field-phone__top { display: flex; justify-content: space-between; padding: 3px 7px 12px; font-size: 8px; }
.field-phone__app { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #ffffff12; padding: 0 5px 9px; }
.field-phone__app strong { font-size: 11px; }
.field-phone__app > span:last-child { margin-left: auto; letter-spacing: 1px; color: #98aab7; }
.field-phone__brand { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #111; font-size: 9px; font-weight: 700; }
.field-phone__body { padding: 11px 6px 0; }
.field-phone__title { display: block; font-size: 15px; margin-top: 3px; }
.field-phone__location { display: block; font-size: 9px; color: #a0b2c0; margin-top: 3px; }
.field-phone__photo { position: relative; height: 69px; margin-top: 10px; overflow: hidden; border-radius: 5px; background: linear-gradient(155deg, #78a4ae, #c2d3c9 65%, #7c8d81 65%); }
.field-phone__building { position: absolute; width: 80px; height: 61px; top: 9px; left: 34px; background: repeating-linear-gradient(0deg, transparent 0 11px, #a3b8b8 12px 15px), repeating-linear-gradient(90deg, #335462 0 12px, #b6c4c0 13px 18px); transform: skewY(-8deg); border: 3px solid #bbc8c4; box-shadow: 16px 5px 0 #718989; }
.field-phone__photo-tag { position: absolute; bottom: 0; left: 0; right: 0; padding: 5px; background: #10232bd9; color: #e1e9ea; font-size: 8px; }
.field-phone__task { font-size: 9px; color: #c2cdd5; margin-top: 8px; }
.field-phone__task > span { color: #93dac2; margin-right: 4px; }
.field-phone__complete { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 11px; padding: 8px 3px; border-radius: 5px; background: #e76e4c; color: #151312; font-size: 10px; font-weight: 600; }
.field-phone__sync { margin-top: 6px; font-size: 8px; text-align: center; color: #a0b2c0; }
.field-phone__home { position: absolute; bottom: 6px; width: 47px; height: 3px; left: calc(50% - 23px); background: #75838e; border-radius: 3px; }
.client-message { position: absolute; left: 14px; bottom: 40px; width: 285px; padding: 14px; border: 1px solid #58746c; border-radius: 12px; background: linear-gradient(120deg, #1e3430, #172825); box-shadow: 0 16px 40px #0007; animation: message-arrive .9s .25s both; }
.client-message__header { display: flex; align-items: center; gap: 9px; }
.client-message__icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; background: #78d5a9; border-radius: 9px; color: #123629; font-size: 17px; }
.client-message__header strong { display: block; color: #e0efe7; font-size: 12px; font-weight: 500; }
.client-message__header div > span { display: block; margin-top: 2px; font-size: 9px; color: #a1c0b3; }
.client-message__bubble { margin-top: 10px; padding: 10px 11px 6px; border-radius: 0 8px 8px 8px; background: #29483c; color: #e0efe7; font-size: 11px; line-height: 1.5; }
.client-message__time { display: block; text-align: right; font-size: 8px; color: #a1c0b3; }
.client-message__time b { color: #81cce4; margin-left: 3px; }
.operation-scene__caption { position: absolute; bottom: 0; left: 14px; right: 0; display: flex; align-items: center; gap: 10px; font-size: 10px; color: #b8c6cf; }
.operation-scene__caption > span { color: #f18b70; }
.operation-scene__caption small { margin-left: auto; color: #97a6b2; font-size: 9px; }
@keyframes map-signal { 0%, 100% { box-shadow: 0 0 0 4px #f05f4026; } 50% { box-shadow: 0 0 0 11px #f05f4000; } }
@keyframes message-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1081px) and (max-width: 1240px) {
  .hero__inner { gap: 28px; }
  .client-message { width: 245px; left: 0; }
  .field-phone { width: 166px; }
}
@media (max-width: 600px) {
  .operation-scene { max-width: 410px; height: 530px; }
  .operation-scene__label { font-size: 10px; padding: 0; }
  .ops-panel { top: 34px; width: 100%; transform: none; }
  .ops-panel__body { padding: 12px; }
  .ops-panel__heading strong { font-size: 14px; }
  .ops-panel__heading > .scene-status { display: none; }
  .ops-map { height: 135px; }
  .ops-map__callout { left: 28%; }
  .ops-panel__row--muted { display: none; }
  .field-phone { top: 193px; left: 5px; right: auto; width: 166px; height: 320px; transform: rotate(-4deg); }
  .client-message { left: auto; right: 0; bottom: 49px; width: calc(100% - 151px); padding: 10px; }
  .client-message__header { gap: 6px; }
  .client-message__icon { width: 21px; height: 23px; border-radius: 6px; font-size: 13px; }
  .client-message__header strong { font-size: 10px; }
  .client-message__header div > span { font-size: 8px; }
  .client-message__bubble { padding: 8px; font-size: 10px; }
  .operation-scene__caption { left: 0; bottom: -13px; gap: 7px; font-size: 9px; }
  .operation-scene__caption small { font-size: 8px; }
}

/* ---------- Franja de servicios ---------- */

.strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.strip__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px var(--pad-x) 34px;
  background: var(--bg);
}
.strip__item h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.strip__item p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--dim);
}

/* ---------- Nosotros ---------- */

.about {
  padding: var(--section-y) var(--pad-x);
}
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: 76px;
}
.about__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
}
.about__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.about__body p:first-child {
  font-size: 18px;
  color: var(--text-2);
}

/* ---------- Servicios ---------- */

.services {
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px 36px 38px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-4); transform: translateY(-2px); }

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--faint);
}
.card h3 {
  font-size: clamp(21px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.tag {
  padding: 6px 12px;
  border: 1px solid var(--line-4);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Proyectos ---------- */

.projects {
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
}

.matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.matrix__cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 34px 40px;
  background: var(--bg);
  transition: background-color 0.2s ease;
}
a.matrix__cell:hover { background: var(--surface); }
.matrix__cell span.card__num { color: var(--accent); }
.matrix__cell h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.matrix__cell p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Productos ---------- */

.products {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.products__inner { position: relative; }

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-3);
  border-radius: 14px;
}
.product__visual {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.65;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 75%, #f05f4029, transparent 65%), linear-gradient(135deg, #202b35, #10161d);
  border-bottom: 1px solid var(--line-3);
}
.product__visual--forms {
  background: radial-gradient(ellipse at 70% 75%, #3fa8c036, transparent 65%), linear-gradient(135deg, #1b3034, #10191d);
}
.product__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#ffffff04 1px, transparent 1px), linear-gradient(90deg, #ffffff04 1px, transparent 1px);
  background-size: 32px 32px;
}
.product__visual-label {
  position: absolute;
  top: 7%;
  left: 6%;
  font-size: clamp(8px, .8vw, 10px);
  letter-spacing: .16em;
  color: #b3c5cd;
}
.product__desktop {
  position: absolute;
  top: 17%;
  left: 6%;
  width: 70%;
  padding: 5px;
  border: 1px solid #81939b;
  border-radius: 8px;
  background: #141c23;
  box-shadow: 0 18px 28px #0005;
  transform: perspective(1000px) rotateY(-4deg) rotateZ(-2deg);
}
.product__visual--forms .product__desktop { width: 64%; top: 15%; }
.product__desktop img { display: block; width: 100%; height: auto; border-radius: 3px; }
.product__mobile {
  position: absolute;
  top: 21%;
  right: 5%;
  width: 24%;
  padding: 8px 5px;
  border: 1px solid #95a3aa;
  border-radius: 15px;
  background: #0b1016;
  box-shadow: 0 16px 24px #0008, 0 0 0 2px #25313a;
  transform: rotate(4deg);
}
.product__mobile img { display: block; width: 100%; height: auto; border-radius: 7px; }
.product__visual-caption { position: absolute; bottom: 6%; left: 6%; max-width: 63%; font-size: clamp(9px, .85vw, 11px); color: #c4cfd5; }
.product__copy { display: flex; flex-direction: column; gap: 14px; flex-grow: 1; padding: 30px; }
.product .product__kicker { font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.product h3 { font-size: clamp(23px, 2vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.product p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.product__features { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 2px 8px; }
.product__features span { border: 1px solid var(--line-3); border-radius: 5px; padding: 5px 8px; font-size: 11px; color: #b9c5cd; }
.product__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: auto; padding-top: 6px; }
.product__actions .btn { font-size: 14px; padding-inline: 20px; }
.product__actions .link-arrow { display: inline-flex; min-height: 44px; font-size: 14px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .products .card-grid { grid-template-columns: minmax(0, 1fr); max-width: 650px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .product__copy { padding: 24px 20px; }
  .product__actions { gap: 8px; }
  .product__actions .link-arrow { justify-content: center; width: 100%; }
  .product__mobile { padding: 5px 3px; border-radius: 10px; }
  .product__mobile img { border-radius: 5px; }
  .product__desktop { padding: 3px; border-radius: 6px; }
}

/* ---------- Blog ---------- */

.blog {
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 30px 34px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post:hover { border-color: var(--line-4); transform: translateY(-2px); }
.post__date { font-size: 13px; color: var(--dim); }
.post h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.post p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.post__more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}
.blog__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding-inline: 24px;
  border: 1px solid var(--line-5);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  flex: none;
}
.blog__cta:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Contacto ---------- */

.contact {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
  gap: 76px;
}
.contact__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__copy h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}
.contact__copy p {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 8px;
}

.details {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}
.detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-3);
  color: var(--text);
}
.detail:last-child { border-bottom: 1px solid var(--line-3); }
.detail svg { flex: none; margin-top: 2px; }
.detail__body { display: flex; flex-direction: column; gap: 4px; }
.detail__label { font-size: 13px; color: var(--dim); }
.detail__value {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text);
}
a.detail:hover .detail__value { color: var(--accent); }
.detail__extra { font-size: 14px; color: var(--muted); }

/* ---------- Pie ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px var(--pad-x);
  border-top: 1px solid var(--line);
}
.site-footer .brand { font-size: 16px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 14px;
}
.footer-nav a { color: var(--dim); }
.footer-nav a:hover { color: var(--text); }
.site-footer__legal { font-size: 13px; color: var(--faint); }

/* ---------- Adaptación a pantallas medianas ---------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    min-height: 0;
  }
  .hero__art { order: 2; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ---------- Adaptación a móvil ---------- */

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad-x) 24px;
    background: rgba(7, 9, 12, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta {
    justify-content: center;
    height: 52px;
    margin-top: 16px;
    border-bottom: 1px solid var(--line-6);
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .brand { font-size: 17px; }

  .hero__inner { padding-block: 44px 48px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { height: 54px; width: 100%; }

  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip__item { padding-block: 26px 30px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }

  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 26px 22px 28px; }

  .matrix {
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    background: none;
    gap: 0;
  }
  .matrix__cell {
    padding: 22px 0;
    border-top: 1px solid var(--line-3);
  }
  .matrix__cell:last-child { border-bottom: 1px solid var(--line-3); }


  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .post { padding: 24px 22px 26px; }
  .blog__cta { width: 100%; justify-content: center; }

  .contact__actions { flex-direction: column; align-items: stretch; }
  .detail { padding: 20px 0; }
  .detail__value { font-size: 17px; }

  .site-footer { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 36px 44px; }
}

/* ---------- Respeta la preferencia de menos movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
