/* ==========================================================================
   Accesswork Technology — Sistema de diseño
   Paleta derivada del logo: magenta #C525AD -> violeta #8212CE -> lila #B858F7
   ========================================================================== */

/* ==========================================================================
   Tokens

   El tema oscuro vive en :root y es el que se sirve por defecto.
   El claro sobrescribe los mismos nombres bajo [data-theme="light"], así que
   ningún componente necesita saber en qué tema está: todos leen variables.
   El atributo lo pone un script en el <head> antes de pintar, para que no
   haya un parpadeo del tema equivocado.
   ========================================================================== */
:root {
  /* Marca */
  --brand:         #8212CE;
  --brand-light:   #B858F7;
  --brand-dark:    #640D9A;
  --magenta:       #C525AD;
  --grad:          linear-gradient(120deg, #C525AD 0%, #8212CE 52%, #B858F7 100%);
  --grad-soft:     linear-gradient(120deg, rgba(197,37,173,.16), rgba(130,18,206,.16));

  /* Superficies */
  --bg:            #09060F;
  --bg-2:          #0F0919;
  --bg-3:          #150D24;
  --surface:       rgba(255,255,255,.035);
  --surface-hover: rgba(255,255,255,.06);
  --border:        rgba(255,255,255,.09);
  --border-strong: rgba(184,88,247,.38);

  /* Texto */
  --text:          #F2EEF8;
  --muted:         #A79FB8;
  --muted-2:       #7C7490;

  /* Superficies que dependen del tema */
  --header-bg:      rgba(9,6,15,.82);
  --overlay-bg:     rgba(15,9,25,.97);
  --hairline:       rgba(255,255,255,.045);
  --hairline-2:     rgba(255,255,255,.11);
  --chip-fill:      rgba(255,255,255,.045);
  --input-bg:       rgba(255,255,255,.04);
  --input-bg-focus: rgba(255,255,255,.06);
  --orb-opacity:    .5;
  --card-shadow:    none;
  --ok-text:        #7ce8a4;
  --err-text:       #ff9c9c;

  /* Tipografía */
  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Sombras */
  --shadow: 0 18px 50px -18px rgba(0,0,0,.75);

  --header-h: 76px;
  --ease: cubic-bezier(.22,.75,.3,1);

  color-scheme: dark;
}

/* ---------- Tema claro ---------- */
:root[data-theme="light"] {
  /* El lila final del degradé se oscurece: sobre blanco perdía legibilidad */
  --brand-light:   #7A11C4;
  --brand-dark:    #5A0C8E;
  --grad:          linear-gradient(120deg, #C525AD 0%, #8212CE 55%, #9B3BE8 100%);
  --grad-soft:     linear-gradient(120deg, rgba(197,37,173,.11), rgba(130,18,206,.11));

  --bg:            #FFFFFF;
  --bg-2:          #F8F5FC;
  --bg-3:          #F1E9FA;
  --surface:       #FFFFFF;
  --surface-hover: #FBF7FE;
  --border:        rgba(26,10,46,.11);
  --border-strong: rgba(130,18,206,.32);

  --text:          #160C24;
  --muted:         #574D6B;   /* 7.8:1 sobre blanco */
  --muted-2:       #6F6684;   /* 5.4:1 — el tono original quedaba en 4.0:1 */

  --header-bg:      rgba(255,255,255,.85);
  --overlay-bg:     rgba(255,255,255,.97);
  --hairline:       rgba(26,10,46,.05);
  --hairline-2:     rgba(26,10,46,.12);
  --chip-fill:      rgba(130,18,206,.04);
  --input-bg:       #FFFFFF;
  --input-bg-focus: #FFFFFF;
  --orb-opacity:    .34;
  --card-shadow:    0 1px 2px rgba(30,12,52,.05), 0 14px 34px -20px rgba(58,20,96,.32);
  --ok-text:        #14733C;
  --err-text:       #B3261E;

  --shadow: 0 18px 50px -20px rgba(58,20,96,.3);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.3rem, 4.7vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 3.9vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.28; }
h4 { font-size: 1.05rem; }
p  { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* overflow oculto: recorta los orbes decorativos, que sobresalen a propósito
   de los bordes y si no ensanchan el documento en pantallas chicas. */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; overflow: hidden; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt {
  background: linear-gradient(180deg, transparent, var(--bg-2) 22%, var(--bg-2) 78%, transparent);
}

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.075rem; }

/* Etiqueta superior de sección */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-light);
  padding: .42rem .85rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(130,18,206,.1);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(130,18,206,.9);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(184,88,247,.95); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); box-shadow: none; }
.btn--lg { padding: 1.02rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-wa {
  --btn-bg: linear-gradient(120deg, #22c95e, #159c46);
  box-shadow: 0 10px 30px -12px rgba(34,201,94,.8);
}
.btn-wa:hover { box-shadow: 0 16px 38px -12px rgba(34,201,94,.9); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand-light);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Fondo decorativo ---------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  pointer-events: none;
  z-index: 0;
}
.orb--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(130,18,206,.65), transparent 68%);
  top: -180px; right: -140px;
}
.orb--b {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(197,37,173,.5), transparent 68%);
  bottom: -200px; left: -160px;
}
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 8%, transparent 72%);
}
.section > .container { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; gap: 1.25rem; width: 100%; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .8rem;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: var(--surface-hover); }
.nav__link svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }

/* Dropdown de servicios */
.nav__item { position: relative; }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(660px, 90vw);
  padding: .75rem;
  background: var(--overlay-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.dropdown__link {
  display: flex;
  gap: .8rem;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.dropdown__link:hover { background: var(--surface-hover); }
.dropdown__ico {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
}
.dropdown__ico svg { width: 18px; height: 18px; stroke: var(--brand-light); }
.dropdown__t { font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: block; }
.dropdown__d { font-size: .79rem; color: var(--muted-2); line-height: 1.45; display: block; margin-top: .1rem; }

/* Selector de idioma */
.lang {
  display: flex;
  align-items: center;
  gap: .1rem;
  padding: .22rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lang a {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: var(--muted-2);
  transition: .2s;
}
.lang a.is-active { background: var(--grad); color: #fff; }
.lang a:not(.is-active):hover { color: var(--text); }

.header__cta { display: flex; align-items: center; gap: .7rem; flex: none; }

/* Botón hamburguesa */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s var(--ease);
}
.burger span + span { margin-top: 4.4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }

/* Menú mobile */
.mnav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--overlay-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav a {
  display: block;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
}
.mnav__sub a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  padding-left: 1rem;
  border-bottom-color: rgba(255,255,255,.05);
}
.mnav__label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 1.6rem 0 .4rem;
  font-family: var(--font-head);
}
.mnav .btn { margin-top: 1.8rem; }
body.no-scroll { overflow: hidden; }

/* Selector de tema claro / oscuro */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  color: var(--muted);
  transition: color .2s, border-color .25s var(--ease), background .25s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-hover); }
.theme-toggle svg { width: 17px; height: 17px; }
/* Cada tema muestra su ícono: el sol invita a aclarar, la luna a oscurecer */
.theme-toggle .ico-sun { display: block; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: block; }

/* El logo tiene dos versiones: texto blanco para fondo oscuro y original para claro */
.logo__img--light { display: none; }
:root[data-theme="light"] .logo__img--dark { display: none; }
:root[data-theme="light"] .logo__img--light { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; }
.hero h1 { margin-bottom: 1.4rem; }
.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.hero__proof {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Diagrama de integraciones del hero */
.hero__visual { position: relative; z-index: 1; }
.hd {
  padding: 1.4rem 1.4rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hd__svg { width: 100%; height: auto; overflow: visible; }

.hd__chip rect {
  fill: var(--chip-fill);
  stroke: var(--border);
  stroke-width: 1;
}
.hd__chip text {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-anchor: middle;
}

.hd__lines path { fill: none; stroke: var(--hairline-2); stroke-width: 1.5; }
.hd__flow path {
  fill: none;
  stroke: url(#hd-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 155;
  animation: hd-flow 3.4s linear infinite;
}
@keyframes hd-flow {
  from { stroke-dashoffset: 160; }
  to   { stroke-dashoffset: 0; }
}

.hd__hub rect { fill: url(#hd-hub); }
.hd__hub text {
  fill: #fff;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
}
.hd__hub text.hd__hub-sub {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  fill: rgba(255,255,255,.82);
  letter-spacing: .02em;
}

.hd__caption {
  margin-top: 1.1rem;
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
  color: var(--muted-2);
}
.hero__proof-item { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
.hero__proof-item svg { width: 17px; height: 17px; stroke: var(--brand-light); flex: none; }

/* Hero de páginas internas */
.phero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.phero__inner { position: relative; z-index: 1; max-width: 800px; }
.phero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 1.2rem; }
.phero p { font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 640px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted-2);
  margin-bottom: 1.4rem;
}
.crumbs a:hover { color: var(--brand-light); }
.crumbs span { opacity: .45; }

/* ---------- Stats ---------- */
/* Las separaciones se dibujan con bordes en las celdas, no con gap sobre un
   fondo: así una última fila incompleta no deja un bloque de color a la vista.
   Los márgenes negativos esconden el borde sobrante bajo el del contenedor. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.stat {
  background: var(--bg-2);
  padding: 1.8rem 1.4rem;
  text-align: center;
  border-inline-end: 1px solid var(--border);
  border-block-end: 1px solid var(--border);
  margin-inline-end: -1px;
  margin-block-end: -1px;
}
.stat__v {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}
.stat__l { font-size: .8rem; color: var(--muted-2); margin-top: .6rem; letter-spacing: .03em; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(184,88,247,.1), transparent 42%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-hover); }
.card:hover::after { opacity: 1; }
.card__ico {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.25rem;
}
.card__ico svg { width: 23px; height: 23px; stroke: var(--brand-light); }
.card h3 { margin-bottom: .6rem; transition: color .25s var(--ease); }
.card p { font-size: .93rem; flex: 1; }
.card .link-arrow { margin-top: 1.3rem; }
.card--link:hover h3 { color: var(--brand-light); }

/* Lista de features dentro de card */
.ticks { display: grid; gap: .6rem; margin-top: 1.1rem; }
.ticks li { display: flex; gap: .65rem; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.ticks svg { width: 17px; height: 17px; flex: none; margin-top: .18rem; stroke: var(--brand-light); }

/* ---------- Clientes ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.client {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-2);
  padding: 1.7rem 1.3rem;
  text-align: center;
  transition: background .3s var(--ease);
  border-inline-end: 1px solid var(--border);
  border-block-end: 1px solid var(--border);
  margin-inline-end: -1px;
  margin-block-end: -1px;
}
a.client:hover { background: var(--bg-3); }
.client__n { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; transition: color .25s var(--ease); }
.client__d { font-size: .78rem; color: var(--muted-2); margin-top: .3rem; word-break: break-all; }
.client:hover .client__n { color: var(--brand-light); }

/* ---------- Descargas de soporte ---------- */
.download h3 { margin-bottom: .7rem; }
.download__tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  margin-bottom: .9rem;
  border-radius: 999px;
  color: #4fd18a;
  background: rgba(34,201,94,.12);
  border: 1px solid rgba(34,201,94,.34);
}
:root[data-theme="light"] .download__tag { color: #147a42; }
/* La que requiere instalación se marca en ámbar: no es un error, pero el
   cliente tiene que saberlo antes de hacer clic. */
.download__tag--installs {
  color: #e0a54b;
  background: rgba(224,165,75,.12);
  border-color: rgba(224,165,75,.34);
}
:root[data-theme="light"] .download__tag--installs { color: #8a5a12; }

.download__btn { align-self: flex-start; margin-top: 1.5rem; }
.download__meta {
  margin-top: .85rem;
  font-size: .82rem;
  color: var(--muted-2);
  flex: none;
}
/* Herramienta anunciada pero cuyo archivo todavía no está publicado */
.download--pending { opacity: .78; }
.download__btn.is-disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: .7;
}

/* ---------- Cámaras ---------- */
.memberships {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.memberships__label {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.memberships__list { display: flex; flex-wrap: wrap; gap: .7rem; }
.membership {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: .25s var(--ease);
}
a.membership:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-2px); }
.membership__n {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
}
.membership__d { font-size: .75rem; color: var(--muted-2); line-height: 1.35; }

/* ---------- Proceso ---------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: start;
  padding: 1.6rem 1.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: border-color .3s var(--ease);
}
.step:hover { border-color: var(--border-strong); }
.step__n {
  counter-increment: step;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { font-size: .92rem; }

/* ---------- Stack tecnológico ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.pill {
  font-size: .83rem;
  font-weight: 500;
  color: var(--muted);
  padding: .45rem .95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: .25s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.8rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(197,37,173,.14), rgba(130,18,206,.1) 55%, rgba(184,88,247,.14));
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brand-light);
  border-bottom: 2px solid var(--brand-light);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 1.4rem 1.3rem; font-size: .93rem; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .84rem; font-weight: 600; font-family: var(--font-head); }
.field label span { color: var(--magenta); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s;
  font-size: .94rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  background: var(--input-bg-focus);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field select option { background: var(--bg-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.form__note { font-size: .79rem; color: var(--muted-2); }
.form__msg { padding: .85rem 1.1rem; border-radius: var(--radius-sm); font-size: .9rem; display: none; }
.form__msg.is-ok  { display: block; background: rgba(34,201,94,.12); border: 1px solid rgba(34,201,94,.4); color: var(--ok-text); }
.form__msg.is-err { display: block; background: rgba(255,77,77,.1); border: 1px solid rgba(255,77,77,.35); color: var(--err-text); }

.contact-item { display: flex; gap: .95rem; padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__ico {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
}
.contact-item__ico svg { width: 18px; height: 18px; stroke: var(--brand-light); }
.contact-item__l { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.contact-item__v { font-family: var(--font-head); font-weight: 600; font-size: .97rem; margin-top: .15rem; }
.contact-item a.contact-item__v:hover { color: var(--brand-light); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: 2rem;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem 2rem; }
.footer__brand img { height: 32px; margin-bottom: 1.15rem; }
.footer__brand p { font-size: .89rem; max-width: 300px; }
.footer h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.footer ul { display: grid; gap: .62rem; }
.footer li a { font-size: .89rem; color: var(--muted); transition: color .2s; }
.footer li a:hover { color: var(--brand-light); }
.footer__social { display: flex; gap: .55rem; margin-top: 1.4rem; }
.footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: .25s var(--ease);
}
.footer__social a:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted-2);
}
.footer__bottom a:hover { color: var(--brand-light); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #25d366, #128c46);
  box-shadow: 0 12px 32px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 27px; height: 27px; fill: #fff; }

/* ---------- Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Con cinco ítems en el menú, el botón de la derecha ya no entra en pantallas
   medianas. Se oculta antes: "Contacto" sigue estando en el menú. */
@media (max-width: 1140px) {
  .header__cta .btn { display: none; }
}
@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
}
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: grid; }
  .header__cta { margin-left: auto; }
}
/* El header suma el botón de tema: en pantallas chicas hay que ganar espacio */
@media (max-width: 560px) {
  .logo img { height: 28px; }
  .header__cta { gap: .45rem; }
  .theme-toggle { width: 36px; height: 36px; }
  .burger { width: 38px; height: 38px; }
}
@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .step { grid-template-columns: 1fr; gap: .9rem; }
  .hero__proof { gap: .9rem; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .header, .footer, .wa-float, .mnav, .orb, .grid-bg { display: none !important; }
  body { background: #fff; color: #000; }
}
