/* ==========================================================
   Nexion Technology LTDA — estilos del sitio
   Paleta tomada del isotipo: degradado #38B6F0 → #0A6AA6,
   nodo navy #0D4A6E, wordmark #10A5E6.
   ========================================================== */

:root {
  --ink: #061224;        /* fondo principal (navy profundo) */
  --ink-2: #0A1C33;      /* superficies */
  --ink-3: #0F2744;      /* superficies elevadas */
  --node: #0D4A6E;       /* punto del logo */
  --deep: #0A6AA6;       /* fin del degradado */
  --blue: #10A5E6;       /* wordmark */
  --sky: #38B6F0;        /* inicio del degradado */
  --paper: #EAF4FB;      /* texto principal */
  --mist: #A3B5C9;       /* texto secundario */
  --line: rgba(148, 196, 235, 0.14);
  --line-strong: rgba(148, 196, 235, 0.28);
  --wa: #25D366;

  --grad: linear-gradient(135deg, var(--sky) 0%, var(--deep) 100%);

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-icon: 23%;         /* mismo radio que el isotipo */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--mist); max-width: 60ch; }
.muted { color: var(--mist); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sky); color: var(--ink); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--mist); font-size: 1.125rem; }

/* fondo de puntos, como en el folleto */
.dots {
  background-image: radial-gradient(rgba(148, 196, 235, 0.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: #fff;
  font: 600 1rem/1.2 var(--font-display);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 28px -10px rgba(56, 182, 240, 0.65);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(56, 182, 240, 0.8); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-ghost {
  background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sky); background: rgba(56, 182, 240, 0.08); }

.btn-wa { background: var(--wa); color: #062b14; box-shadow: 0 8px 28px -12px rgba(37, 211, 102, .7); }
.btn-wa:hover { box-shadow: 0 14px 34px -12px rgba(37, 211, 102, .85); }

.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }

.text-link {
  color: var(--sky); font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid rgba(56, 182, 240, .35);
  transition: border-color .15s;
}
.text-link:hover { border-color: var(--sky); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 18, 36, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  position: relative; padding: 8px 14px; border-radius: 999px;
  color: var(--mist); text-decoration: none; font-weight: 500;
  transition: color .15s, background-color .15s;
}
.site-nav a:not(.btn):hover { color: var(--paper); background: rgba(148, 196, 235, .07); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--paper); }
.site-nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px;
  border-radius: 50%; background: var(--sky); transform: translateX(-50%);
}
.site-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 12px;
  background: rgba(148, 196, 235, .08); color: var(--paper); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: rgba(6, 18, 36, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; border-radius: 12px; }
  .site-nav a[aria-current="page"]:not(.btn)::after { left: auto; right: 14px; bottom: 50%; transform: translateY(50%); }
  .site-nav .btn { margin: 12px 0 0; }
}

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 76px);
  display: flex; align-items: center;
  padding-block: 56px 88px;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; z-index: -2;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(16, 165, 230, .22), transparent 70%);
}
#network { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero h1 { max-width: 17ch; margin-bottom: .4em; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-tagline {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding: 6px 16px 6px 8px;
  border-radius: 999px; background: rgba(13, 74, 110, .45);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--paper); font-size: .95rem;
}
.hero-tagline i {
  width: 10px; height: 10px; border-radius: 50%; background: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 182, 240, .2);
}

/* La "N" que se dibuja: el momento memorable de la página */
.mark { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1; }
.mark svg { width: 100%; height: 100%; overflow: visible; }
.mark .frame { fill: rgba(10, 28, 51, .55); stroke: url(#markStroke); stroke-width: .6; }
.mark .n-path {
  fill: none; stroke: url(#markStroke); stroke-width: 9.7;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 200; stroke-dashoffset: 200;
  animation: draw 1.8s cubic-bezier(.65, 0, .35, 1) .3s forwards;
  filter: drop-shadow(0 0 10px rgba(56, 182, 240, .45));
}
.mark .joint { fill: var(--paper); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .35s ease-out forwards; }
.mark .joint:nth-of-type(1) { animation-delay: .3s; }
.mark .joint:nth-of-type(2) { animation-delay: .9s; }
.mark .joint:nth-of-type(3) { animation-delay: 1.6s; }
.mark .dot { fill: var(--node); stroke: var(--sky); stroke-width: 1.2; transform-origin: 71.7px 25.9px; transform: scale(0); animation: dot .5s cubic-bezier(.34, 1.56, .64, 1) 2s forwards; }
.mark .pulse { fill: none; stroke: var(--sky); stroke-width: .6; transform-origin: 71.7px 25.9px; opacity: 0; animation: pulse 2.6s ease-out 2.4s infinite; }
.mark .pulse.two { animation-delay: 3.7s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes dot { to { transform: scale(1); } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

.mark-caption {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  white-space: nowrap; color: var(--mist); font-size: .95rem; font-style: italic;
}

@media (max-width: 880px) {
  .hero { min-height: auto; padding-block: 40px 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .mark { width: min(55vw, 230px); order: -1; }
  .mark-caption { display: none; }
}

/* ---------- Áreas (inicio) ---------- */
.areas { border-top: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(16px, 3vw, 40px); align-items: start;
  padding-block: 36px; border-bottom: 1px solid var(--line);
}
.area h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: .3em; }
.area p { color: var(--mist); }
.area ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.area li {
  padding: 6px 14px; border-radius: 999px; font-size: .95rem;
  background: rgba(15, 39, 68, .8); box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 760px) {
  .area { grid-template-columns: 56px minmax(0, 1fr); }
  .area ul { grid-column: 1 / -1; }
}

.icon-tile {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: var(--r-icon);
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(56, 182, 240, .7);
}
.icon-tile svg { width: 26px; height: 26px; }
.area .icon-tile { width: 64px; height: 64px; }
@media (max-width: 760px) { .area .icon-tile { width: 52px; height: 52px; } }

.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Proceso (secuencia real: numerada) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: step; }
.process::before {
  content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--deep), var(--node));
}
.process li { position: relative; counter-increment: step; }
.process li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
  border-radius: 50%; background: var(--ink); color: var(--sky);
  box-shadow: inset 0 0 0 2px var(--sky);
  font: 600 1rem var(--font-display); position: relative;
}
.process li:last-child::before { background: var(--node); color: var(--paper); box-shadow: inset 0 0 0 2px var(--sky), 0 0 0 6px rgba(56, 182, 240, .15); }
.process h3 { margin-bottom: .35em; }
.process p { color: var(--mist); font-size: 1rem; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--sky), var(--node)); }
  .process li { padding: 0 0 32px 72px; }
  .process li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Por qué Nexion ---------- */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.statement {
  position: sticky; top: 120px;
  font: 600 clamp(1.55rem, 2.6vw, 2.15rem)/1.25 var(--font-display); letter-spacing: -0.015em;
  margin: 0;
}
.statement::before {
  content: ""; display: block; width: 18px; height: 18px; margin-bottom: 24px;
  border-radius: 50%; background: var(--node); box-shadow: 0 0 0 2px var(--sky), 0 0 0 10px rgba(56, 182, 240, .12);
}
.statement cite { display: block; margin-top: 20px; font: 400 1rem var(--font-body); color: var(--mist); font-style: normal; }
.reasons { display: grid; gap: 0; }
.reason { padding-block: 26px; border-top: 1px solid var(--line); }
.reason:last-child { border-bottom: 1px solid var(--line); }
.reason h3 { margin-bottom: .3em; }
.reason p { color: var(--mist); }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .statement { position: static; }
}

/* ---------- Equipo teaser ---------- */
.team-teaser {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.team-teaser h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: .3em; }
.team-teaser p { color: var(--mist); max-width: 52ch; }
.stack { display: flex; }
.stack .avatar { width: 64px; height: 64px; font-size: 1.05rem; margin-left: -14px; box-shadow: 0 0 0 4px var(--ink-2); }
.stack .avatar:first-child { margin-left: 0; }

/* ---------- Avatares ---------- */
.avatar {
  position: relative; display: grid; place-items: center; flex: none;
  width: 96px; height: 96px; border-radius: var(--r-icon); overflow: hidden;
  background: var(--grad); color: #fff;
  font: 600 1.6rem var(--font-display); letter-spacing: .02em;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.alt { background: linear-gradient(135deg, var(--deep), var(--node)); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 72px); border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0C3A5E 0%, var(--ink-2) 60%);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(56, 182, 240, .25);
  box-shadow: 0 0 0 60px rgba(56, 182, 240, .04), 0 0 0 120px rgba(56, 182, 240, .03);
}
.cta h2 { max-width: 20ch; }
.cta p { color: var(--mist); max-width: 56ch; margin-bottom: 28px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera de página interior ---------- */
.page-hero { position: relative; padding-block: clamp(64px, 9vw, 112px) clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -20% auto auto;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(16, 165, 230, .18), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); max-width: 18ch; }
.crumb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--mist); font-size: .95rem; }
.crumb::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(56, 182, 240, .2); }

/* ---------- Servicios ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  min-height: 42px; padding: 8px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--mist);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 500 .98rem var(--font-body);
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.filter:hover { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--sky); }
.filter[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }

.service-group { margin-bottom: 56px; }
.service-group[hidden] { display: none; }
.service-group > h2 {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); padding-bottom: 18px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}
.service-group > h2 small { font: 400 1rem var(--font-body); color: var(--mist); letter-spacing: 0; margin-left: auto; }

.service {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 24px; align-items: start;
  padding-block: 28px; border-bottom: 1px solid var(--line);
}
.service h3 { font-size: 1.3rem; margin-bottom: .35em; }
.service p { color: var(--mist); max-width: 62ch; }
.service .tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.service .tags li { font-size: .88rem; padding: 4px 12px; border-radius: 999px; color: var(--paper); background: rgba(15, 39, 68, .9); box-shadow: inset 0 0 0 1px var(--line); }
.service .btn { align-self: center; }
@media (max-width: 760px) {
  .service { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .service .icon-tile { width: 48px; height: 48px; }
  .service .btn { grid-column: 2; justify-self: start; }
}

/* ---------- Nosotros ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--sky), var(--deep), var(--node)); }
.timeline li { position: relative; padding: 0 0 48px 64px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); box-shadow: inset 0 0 0 2px var(--sky);
}
.timeline li:last-child::before { background: var(--node); box-shadow: inset 0 0 0 2px var(--sky), 0 0 0 8px rgba(56, 182, 240, .15); }
.timeline .step { display: block; color: var(--sky); font: 500 .95rem var(--font-body); margin-bottom: 6px; }
.timeline h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.timeline p { color: var(--mist); max-width: 62ch; }

.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv article {
  position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.mv article:first-child { background: linear-gradient(160deg, #0C3A5E, var(--ink-2) 75%); }
.mv h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.mv p { font-size: 1.15rem; line-height: 1.7; }
.mv .icon-tile { margin-bottom: 24px; }
@media (max-width: 860px) { .mv { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 32px; }
.value { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.value h3 { font-size: 1.15rem; margin-bottom: .3em; }
.value p { color: var(--mist); font-size: 1rem; }

/* ---------- Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.member {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 20px;
  padding: 32px; border-radius: var(--r-lg);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.member:nth-child(4) { grid-column: 2 / span 2; }
.member:nth-child(5) { grid-column: 4 / span 2; }
.member h2 { font-size: 1.4rem; margin-bottom: .15em; }
.member .role { color: var(--sky); font-weight: 600; margin-bottom: .6em; }
.member .role span { color: var(--mist); font-weight: 400; }
.member .career { color: var(--mist); font-size: 1rem; }
.member .linkedin {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: box-shadow .15s, background-color .15s;
}
.member .linkedin svg { width: 20px; height: 20px; color: var(--sky); }
.member .linkedin:hover { box-shadow: inset 0 0 0 1.5px var(--sky); background: rgba(56, 182, 240, .08); }
@media (max-width: 960px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member, .member:nth-child(4), .member:nth-child(5) { grid-column: auto; }
}
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(56px, 8vw, 96px); }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(28px, 4vw, 40px); border-radius: var(--r-lg);
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.contact-card .avatar { width: 72px; height: 72px; font-size: 1.25rem; margin-bottom: 16px; }
.contact-card h2 { font-size: 1.5rem; margin-bottom: 0; }
.contact-card .role { color: var(--sky); font-weight: 600; margin-bottom: 16px; }
.contact-card dl { margin: 0 0 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.contact-card dt { color: var(--mist); }
.contact-card dd { margin: 0; overflow-wrap: anywhere; }
.contact-card .cta-actions { margin-top: auto; }
@media (max-width: 760px) { .contacts { grid-template-columns: 1fr; } }

.form-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.form-wrap > div p { color: var(--mist); }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 0; border-radius: var(--r-sm);
  background: var(--ink-2); color: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 400 1rem var(--font-body);
  transition: box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3B5C9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--sky); }
.field input::placeholder, .field textarea::placeholder { color: rgba(163, 181, 201, .6); }
.form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; color: var(--mist); font-size: .95rem; margin: 0; }
.form-error { grid-column: 1 / -1; color: #FFB4A8; margin: 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-btn {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .18s;
}
.wa-btn:hover { transform: scale(1.06); }
.wa-btn svg { width: 32px; height: 32px; }
.wa-menu {
  width: min(300px, calc(100vw - 40px)); padding: 16px; border-radius: var(--r-md);
  background: var(--ink-3); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line-strong);
  transform-origin: bottom right; animation: menu-in .18s ease-out;
}
.wa-menu[hidden] { display: none; }
.wa-menu p { margin: 0 4px 10px; font-weight: 600; font-family: var(--font-display); }
.wa-menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px;
  text-decoration: none; transition: background-color .15s;
}
.wa-menu a:hover { background: rgba(148, 196, 235, .08); }
.wa-menu .avatar { width: 42px; height: 42px; font-size: .9rem; }
.wa-menu strong { display: block; font-weight: 600; }
.wa-menu small { display: block; color: var(--mist); font-size: .88rem; }
@keyframes menu-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 32px; color: var(--mist); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer-grid h2 { font-size: 1rem; color: var(--paper); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; transition: color .15s; }
.footer-grid a:hover { color: var(--sky); }
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .icon-tile { margin: 0 auto 28px; width: 72px; height: 72px; }
.notfound .lead { margin-inline: auto; margin-bottom: 28px; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mark .pulse { display: none; }
}
