/* =========================================================
   VICSOFT — Dark editorial premium
   ========================================================= */

:root {
  /* Acentos de marca (sage / mint del portfolio) */
  --sage-1: #A7D5C0;
  --sage-2: #7FB89D;
  --sage-3: #6AA98C;
  --mint-1: #D8F1EA;

  /* Fondos oscuros con matiz verde */
  --bg-0:   #070A09;
  --bg:     #0B0F0D;
  --bg-2:   #0E1411;
  --panel:  #101613;
  --panel-2:#131B17;

  /* Hairlines */
  --line:        rgba(233, 244, 238, 0.09);
  --line-strong: rgba(233, 244, 238, 0.16);

  /* Texto */
  --ink:   #EEF3F0;
  --ink-2: #C3CEC7;
  --ink-3: #8D9A92;
  --ink-4: #5D6963;

  /* Tipografía */
  --sans:   'Inter', system-ui, -apple-system, sans-serif;
  --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
  --mono:   'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Layout */
  --pad-x: clamp(20px, 4.5vw, 88px);
  --maxw:  1440px;
  --radius: 16px;

  --ease: cubic-bezier(.22, .7, .18, 1);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Grano sutil sobre toda la página */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  letter-spacing: 0;
}

::selection {
  background: color-mix(in oklab, var(--sage-2) 80%, transparent);
  color: var(--bg-0);
}

:focus-visible {
  outline: 2px solid var(--sage-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar discreto */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: #26302B;
  border-radius: 5px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: #35423C; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--sage-2);
  color: var(--bg-0);
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Marca */
.brand-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  flex: none;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  padding: 16px var(--pad-x);
  background: color-mix(in oklab, var(--bg-0) 55%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: padding .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
body.menu-open .nav {
  z-index: 130;
}
.nav.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: color-mix(in oklab, var(--bg-0) 82%, transparent);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 13px;
  font-size: 20px;
}
.nav__wordmark {
  font-family: 'Archivo Black', 'Inter', system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav__links {
  display: flex; gap: 30px;
  margin-left: auto;
  font-size: 14px; color: var(--ink-3);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--sage-2);
  transition: right .35s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { right: 0; }

.nav__cta { padding: 10px 18px; font-size: 13px; }

/* Botón hamburguesa (solo móvil) */
.nav__toggle {
  display: none;
  position: relative;
  z-index: 130;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  place-items: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav__toggle:hover { border-color: var(--sage-2); }
.nav__toggle i {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__toggle i:nth-child(1) { top: 17px; }
.nav__toggle i:nth-child(2) { top: 25px; }
body.menu-open .nav__toggle i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__toggle i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Menú móvil a pantalla completa */
.menu {
  position: fixed; inset: 0;
  z-index: 120;
  display: flex; flex-direction: column;
  padding: 100px var(--pad-x) 40px;
  background:
    radial-gradient(circle at 85% 0%, color-mix(in oklab, var(--sage-3) 16%, transparent) 0%, transparent 50%),
    var(--bg-0);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
body.menu-open .menu {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s var(--ease);
}
body.menu-open { overflow: hidden; }

.menu__links { display: grid; gap: 6px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 500;
  letter-spacing: -.02em;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .25s var(--ease);
}
.menu__links a:hover { color: var(--sage-1); }
.menu__links .mono { color: var(--ink-4); font-size: 12px; }
body.menu-open .menu__links a { transform: translateY(0); opacity: 1; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: .08s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .14s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .20s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .26s; }

.menu__foot {
  margin-top: auto;
  display: grid; gap: 10px;
  color: var(--ink-3);
  font-size: 14px;
}
.menu__foot a:hover { color: var(--sage-1); }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500; font-size: 14px;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--sage-2);
  color: #0A120E;
  box-shadow: 0 0 0 0 transparent;
}
.btn--primary:hover {
  background: var(--sage-1);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -12px color-mix(in oklab, var(--sage-2) 55%, transparent);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--sage-2);
  color: var(--sage-1);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 64px var(--pad-x) 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 78% 30%, color-mix(in oklab, var(--sage-3) 14%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 8% 90%, color-mix(in oklab, var(--sage-2) 7%, transparent) 0%, transparent 60%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto auto auto;
  column-gap: 48px;
  row-gap: 24px;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__chrome {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage-2);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage-2) 25%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage-2) 25%, transparent); }
  50%      { box-shadow: 0 0 0 9px color-mix(in oklab, var(--sage-2) 0%, transparent); }
}
.hero__title {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(52px, 8.6vw, 148px);
  line-height: .95;
  letter-spacing: -.03em;
  margin: 0;
  font-weight: 600;
}
.hero__title-line { display: block; }
.hero__title-line em {
  color: var(--sage-1);
  font-weight: 320;
}

.hero__lede {
  grid-column: 1;
  grid-row: 3;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 50ch;
  margin: 14px 0 0;
}
.hero__lede strong { font-weight: 600; color: var(--ink); }

.hero__ctas {
  grid-column: 1;
  grid-row: 4;
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}

/* Escenario del logo */
.hero__stage {
  grid-column: 2;
  grid-row: 2 / span 3;
  position: relative;
  aspect-ratio: 1 / 1;
  align-self: center;
  perspective: 1400px;
  perspective-origin: 50% 60%;
}
.hero__stage-floor {
  position: absolute; inset: 6% 2% -4% 2%;
  background:
    radial-gradient(ellipse at 50% 62%, color-mix(in oklab, var(--sage-3) 20%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, var(--panel-2) 0%, var(--bg-0) 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    0 60px 90px -50px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(233, 244, 238, .07);
}
.hero__stage-floor::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 75%);
}
.hero__caption {
  position: absolute; left: 22px; bottom: 16px;
  color: var(--ink-4);
  z-index: 3;
}
.hero__hex {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  --rx: 0deg; --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.hero__logo {
  width: 76%;
  height: auto;
  filter:
    drop-shadow(0 40px 70px rgba(0, 0, 0, .65))
    drop-shadow(0 0 60px color-mix(in oklab, var(--sage-2) 22%, transparent));
  animation: float 9s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotateZ(0deg); }
  50%      { transform: translateY(-1.5%) rotateZ(.4deg); }
}

/* =========================================================
   KPIS
   ========================================================= */
.kpis {
  position: relative;
  margin: 72px auto 0;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi {
  padding: 30px 26px;
  display: flex; flex-direction: column;
  align-items: flex-start;
}
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi__row { display: flex; align-items: baseline; gap: 4px; }
.kpi__value {
  font-size: clamp(40px, 4.5vw, 62px);
  font-weight: 480;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.kpi__plus {
  font-size: clamp(20px, 2vw, 28px);
  color: var(--sage-2);
  font-weight: 500;
  line-height: 1;
}
.kpi__label {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 10px;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.services__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: end;
}
.services__title {
  grid-column: 1 / span 2;
  font-size: clamp(44px, 6.6vw, 112px);
  line-height: .97;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 12px 0 0;
}
.services__title em { color: var(--sage-1); font-weight: 320; }
.services__sub {
  grid-column: 2;
  font-size: 17px;
  color: var(--ink-3);
  max-width: 56ch;
  line-height: 1.6;
  margin: 0;
  justify-self: end;
}

.svc-list { border-top: 1px solid var(--line); }

.svc {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.svc::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--sage-3) 8%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.svc:hover::before,
.svc.is-open::before { opacity: 1; }

.svc__h { margin: 0; font-weight: normal; }
.svc__head {
  display: grid;
  grid-template-columns: 72px 84px 1fr 72px;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 30px 0;
  text-align: left;
  transition: padding .35s var(--ease);
}
.svc:hover .svc__head,
.svc.is-open .svc__head { padding-left: 16px; padding-right: 8px; }

.svc__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-4);
}
.svc__hex { display: grid; place-items: center; }
.svc__hex-img {
  width: 64px; height: 64px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
  transition: transform .4s var(--ease), filter .4s var(--ease);
}
.svc:hover .svc__hex-img,
.svc.is-open .svc__hex-img {
  transform: rotate(-10deg) scale(1.08);
  filter:
    drop-shadow(0 10px 18px rgba(0, 0, 0, .55))
    drop-shadow(0 0 24px color-mix(in oklab, var(--sage-2) 35%, transparent));
}

.svc__title {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.08;
  position: relative;
  z-index: 1;
}
.svc__title em { color: var(--sage-1); font-weight: 320; }

.svc__cta { display: grid; place-items: center; color: var(--ink-3); }
.svc__cta .arrow {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform .4s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease);
}
.svc:hover .svc__cta .arrow {
  border-color: var(--sage-2);
  color: var(--sage-1);
}
.svc.is-open .svc__cta .arrow {
  background: var(--sage-2);
  color: #0A120E;
  border-color: var(--sage-2);
  transform: rotate(90deg);
}

/* Cuerpo desplegable (clic/tap, accesible) */
.svc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.svc.is-open .svc__body { grid-template-rows: 1fr; }
.svc__body-inner {
  overflow: hidden;
  display: grid; gap: 14px;
  padding: 0 72px 0 calc(72px + 84px + 48px);
  opacity: 0;
  transition: opacity .4s var(--ease), padding .4s var(--ease);
}
.svc.is-open .svc__body-inner {
  opacity: 1;
  padding-bottom: 34px;
}
.svc__desc {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0;
  line-height: 1.6;
}
.svc__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags li {
  font-family: var(--mono); font-size: 11px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--sage-1);
  background: color-mix(in oklab, var(--sage-3) 8%, transparent);
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in oklab, var(--sage-3) 16%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, color-mix(in oklab, var(--sage-2) 9%, transparent) 0%, transparent 50%),
    var(--bg-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  overflow: hidden;
}
.manifesto__text {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.22;
  letter-spacing: -.015em;
  font-weight: 300;
  color: var(--ink-3);
}
.manifesto__hl { color: var(--ink); font-weight: 480; }
.manifesto__sig {
  position: relative;
  max-width: var(--maxw);
  margin: 44px auto 0;
  color: var(--sage-2);
}

/* =========================================================
   CTA / CONTACTO
   ========================================================= */
.cta {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--pad-x) clamp(80px, 10vw, 120px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.cta__title {
  font-size: clamp(52px, 9vw, 148px);
  line-height: .95;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 64px;
}
.cta__title em { color: var(--sage-1); font-weight: 320; }

.cta__panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.cta__col--info { display: grid; gap: 28px; align-content: start; }
.cta__lead {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 34ch;
}
.cta__bullets {
  display: grid; gap: 12px;
  font-size: 15px; color: var(--ink-2);
}
.cta__bullets li { display: flex; align-items: center; gap: 12px; }
.cta__bullets .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage-2);
  box-shadow: 0 0 8px color-mix(in oklab, var(--sage-2) 60%, transparent);
  flex: none;
}
.cta__contacts { display: grid; margin-top: 8px; }
.cta__contact {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .25s var(--ease), color .25s var(--ease);
}
.cta__contact:hover { padding-left: 8px; color: var(--sage-1); }
.cta__contact:last-child { border-bottom: 1px solid var(--line); }
.cta__contact span:last-child { font-size: 16px; }
.cta__contact .mono { color: var(--ink-4); }

/* Formulario */
.cta__col--form {
  display: grid; gap: 18px;
  align-content: start;
  background:
    linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.field { display: grid; gap: 8px; position: relative; }
.field__label {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .06em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  font: inherit; font-size: 15px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-0);
  color: var(--ink);
  outline: 0;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus,
.field textarea:focus {
  border-color: var(--sage-2);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--sage-2) 18%, transparent);
}
.field.is-error input,
.field.is-error textarea { border-color: #C96A62; }
.field__error {
  display: none;
  font-size: 13px;
  color: #DE9089;
}
.field.is-error .field__error { display: block; }

/* Honeypot antispam: fuera de vista, fuera del tab order */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--bg-0);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip:hover span { border-color: var(--sage-2); color: var(--ink); }
.chip input:checked + span {
  background: var(--sage-2);
  color: #0A120E;
  border-color: var(--sage-2);
  font-weight: 500;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--sage-2);
  outline-offset: 3px;
}

/* Botón de envío: estado de carga */
.btn .spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(10, 18, 14, .3);
  border-top-color: #0A120E;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__arrow { display: none; }

.form__success {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--sage-1);
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  max-height: 0;
  overflow: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), max-height .35s var(--ease);
}
.form__success.is-on {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
}
.form__error {
  display: none;
  font-size: 14px;
  color: #DE9089;
}
.form__error.is-on { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-0);
  color: var(--ink-3);
  padding: 80px var(--pad-x) 24px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer .nav__brand { color: var(--ink); }
.footer__tagline {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  color: var(--ink-2);
  margin: 0;
  font-weight: 300;
  letter-spacing: -.01em;
  justify-self: end;
  max-width: 28ch;
}
.footer__tagline em { color: var(--sage-1); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 0 64px;
}
.footer__h { color: var(--sage-2); margin-bottom: 16px; }
.footer__cols ul { display: grid; gap: 10px; font-size: 14px; }
.footer__cols a { transition: color .2s var(--ease); }
.footer__cols a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--ink); }

.footer__bigmark {
  position: absolute;
  left: 0; right: 0; bottom: -3vw;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(120px, 22vw, 360px);
  line-height: .78;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 244, 238, .06);
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.footer > * { position: relative; z-index: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { grid-column: 1; grid-row: 2; }
  .hero__lede  { grid-column: 1; grid-row: 4; }
  .hero__ctas  { grid-column: 1; grid-row: 5; }
  .hero__stage {
    grid-column: 1; grid-row: 3;
    aspect-ratio: 5 / 4;
    max-width: 560px; width: 100%;
    margin: 12px auto 0;
  }

  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .kpi:nth-child(4) { border-top: 1px solid var(--line); }

  .services__head { grid-template-columns: 1fr; }
  .services__sub { grid-column: 1; justify-self: start; }
  .services__title { grid-column: 1; }

  .svc__head { grid-template-columns: 44px 56px 1fr 46px; gap: 14px; padding: 24px 0; }
  .svc__title { min-width: 0; font-size: clamp(22px, 5.6vw, 46px); overflow-wrap: break-word; }
  .svc__hex-img { width: 52px; height: 52px; }
  .svc__cta .arrow { width: 38px; height: 38px; }
  .svc__body-inner { padding: 0 0 0 calc(44px + 56px + 28px); }
  .svc:hover .svc__head,
  .svc.is-open .svc__head { padding-left: 0; padding-right: 0; }

  .cta__panel { grid-template-columns: 1fr; }
  .cta__col--form { padding: 26px 20px; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__tagline { justify-self: start; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .svc__body-inner { padding-left: 0; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo { animation: none; }
  .eyebrow__dot { animation: none; }
  .hero__hex { transition: none; }
  .menu, .menu__links a { transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
