/* =========================================================
   IISOHE — Landing
   Paleta tomada del logo: verde institucional, lima, azul casco,
   y las flechas rojo/amarillo del ciclo de mejora continua.
   ========================================================= */

:root {
  --paper: #f4f6f0;
  --paper-2: #e8ede2;
  --surface: #ffffff;
  --ink: #0f1f17;
  --ink-2: #435349;
  --line: rgba(15, 31, 23, 0.12);

  --green-950: #071f15;
  --green-900: #0a2e1f;
  --green-800: #0d3d29;
  --brand: #006b3a;
  --lime: #8cc63f;
  --lime-soft: #c9e6a3;
  --navy: #1027a0;
  --red: #e5392d;
  --yellow: #f5b50a;

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }

::selection { background: var(--lime); color: var(--green-950); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía compartida ---------- */

.eyebrow,
.kicker {
  font: 600 0.78rem/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow) 0 33%, var(--brand) 33% 66%, var(--red) 66%);
}
.kicker--light { color: var(--lime); }

.section-title {
  font: 700 clamp(2rem, 4.2vw, 3.4rem)/1.04 var(--font-display);
  font-stretch: 78%;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 22ch;
  margin-top: 14px;
}
.section-title--light { color: #fff; }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--row {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 48px;
}

/* ---------- Botones ---------- */

.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.98rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform 200ms var(--ease-out); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--green-900); color: #fff; }
.btn--ghost { border-color: rgba(15, 31, 23, 0.22); color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--green-950); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand); }
  .btn--primary:hover svg { transform: translateX(3px); }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn--lime:hover { background: #9dd252; }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 240, 0);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}
.nav[data-scrolled] {
  background: rgba(244, 246, 240, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.nav__brand img { width: 168px; height: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; color: var(--ink-2); text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav__links a[aria-current="true"] { color: var(--ink); background: rgba(15, 31, 23, 0.07); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--ink); background: rgba(15, 31, 23, 0.06); }
}

.nav__toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); margin-inline: auto;
  transition: transform 220ms var(--ease-out), opacity 160ms ease;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { transform: translateY(-6px); }
.nav__bars::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: rotate(-45deg); }

.menu {
  display: grid; gap: 4px; padding: 8px var(--gutter) 24px;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.menu a:not(.btn) {
  padding: 14px 4px; font: 600 1.4rem/1.1 var(--font-display); font-stretch: 80%;
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu .btn { margin-top: 16px; }
.menu[hidden] { display: none; }
.menu:not([hidden]) { animation: menu-in 260ms var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { height: 66px; }
  .nav__brand img { width: 140px; }
}
@media (min-width: 901px) { .menu { display: none !important; } }

/* ---------- Hero ---------- */

.hero {
  --nav-h: 76px;
  position: relative; isolation: isolate; overflow: hidden;
  /* El fondo sube por detrás del nav transparente */
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* Fondo: retícula técnica + halos de color del logo + foco que sigue al cursor */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 75% 45% at 70% 80%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 45% at 70% 80%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(80px);
  will-change: transform;
}
.hero__glow--a {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  right: -8vw; bottom: 0; background: rgba(140, 198, 63, 0.38);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.hero__glow--b {
  width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
  left: -10vw; bottom: -6vw; background: rgba(0, 107, 58, 0.18);
  animation: drift-b 22s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(-6vw, 5vw, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(8vw, -4vw, 0) scale(0.92); } }
.hero__spot {
  position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(140, 198, 63, 0.16), transparent 70%);
}
.hero[data-pointer] .hero__spot { opacity: 1; }

/* Insignia con indicador "en vivo" */
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.7rem; line-height: 1.35;
}
.hero .hero__badge { max-width: 100%; }
.pulse { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--brand); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.hero__top {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 80px); align-items: end;
}
.hero__copy { padding-top: 8px; }
.hero .eyebrow { color: var(--ink-2); max-width: 34ch; }
.hero__title {
  isolation: isolate;
  margin-top: 22px;
  font: 800 clamp(2.6rem, 6vw, 5.2rem)/0.96 var(--font-display);
  font-stretch: 72%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0.12em; bottom: 0.04em; height: 0.12em;
  background: var(--lime); border-radius: 4px; z-index: -1;
  transform-origin: left; transform: scaleX(var(--u, 1));
}
.hero__lead { max-width: 46ch; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--ink-2); }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Cifras tomadas del propio catálogo de servicios */
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin-top: clamp(28px, 3vw, 40px);
}
.hero__stats div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
  padding-right: clamp(14px, 3vw, 36px);
}
.hero__stats div + div { padding-left: clamp(14px, 3vw, 36px); border-left: 1px solid var(--line); }
.hero__stats dd {
  font: 800 clamp(2rem, 3.4vw, 2.75rem)/1 var(--font-display); font-stretch: 75%;
  font-variant-numeric: tabular-nums; color: var(--green-900);
}
.hero__stats dd::after { content: "+"; color: var(--lime); margin-left: 2px; }
.hero__stats div:nth-child(1) dd::after, .hero__stats div:nth-child(3) dd::after { content: none; }
.hero__stats dt { font-size: 0.84rem; color: var(--ink-2); max-width: 14ch; line-height: 1.3; }

/* Botón principal: destello al pasar el cursor */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(201, 230, 163, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::before { transform: translateX(120%); transition: transform 700ms var(--ease-out); }
}

/* Titular: palabras que emergen desde una máscara */
.hero__title .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: 0.1em; margin-bottom: -0.1em;
}
.hero__title .w > span { display: inline-block; }

/* ---------- Portada: collage de sectores ----------
   Una sola imagen (1672×941) recortada en 4 paneles con clip-path
   siguiendo las diagonales del diseño, más el círculo central.
   Las coordenadas están en % de la imagen original. */

.cover {
  --cx: 48.92%; --cy: 46.76%;
  /* A sangre: todo el ancho de la ventana y la imagen completa, sin recortes */
  position: relative; margin: 0; width: 100%;
  aspect-ratio: 1672 / 941; overflow: hidden;
  background: var(--green-950);
}
.cover__stage { position: absolute; inset: 0; }
.cover__panels {
  position: absolute; inset: 0;
  /* Hueco central: el retrato llega en su propia capa */
  -webkit-mask-image: radial-gradient(16.45% 29.22% at var(--cx) var(--cy), transparent 98%, #000 100%);
  mask-image: radial-gradient(16.45% 29.22% at var(--cx) var(--cy), transparent 98%, #000 100%);
}
.cover__panel, .cover__core {
  position: absolute; inset: 0;
  background-image: url("../img/portada-sectores.jpg");
  background-image: image-set(url("../img/portada-sectores.webp") type("image/webp"), url("../img/portada-sectores.jpg") type("image/jpeg"));
  background-size: 100% 100%;
}
.cover__panel--1 { clip-path: polygon(0 0, 54.55% 0, var(--cx) var(--cy), 32.3% 54.2%, 0 46.76%); }
.cover__panel--2 { clip-path: polygon(54.55% 0, 100% 0, 100% 47.29%, 65.79% 54.73%, var(--cx) var(--cy)); }
.cover__panel--3 { clip-path: polygon(var(--cx) var(--cy), 65.79% 54.73%, 100% 47.29%, 100% 100%, 46.05% 100%, 49.04% 77.05%); }
.cover__panel--4 { clip-path: polygon(0 46.76%, 32.3% 54.2%, var(--cx) var(--cy), 49.04% 77.05%, 46.05% 100%, 0 100%); }
.cover__core { clip-path: circle(20.93% at var(--cx) var(--cy)); pointer-events: none; }

/* Anillo de "radar" que orbita alrededor del especialista */
.cover__ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cover__ring-track { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; stroke-dasharray: 2 12; }
.cover__ring-arc {
  fill: none; stroke: var(--lime); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 18 82;
}
.cover__ring-dot { fill: var(--lime); filter: drop-shadow(0 0 10px rgba(140, 198, 63, 0.9)); }
.cover__orbit { transform-box: view-box; transform-origin: 818px 440px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* Etiquetas de sector */
.cover__labels { list-style: none; position: absolute; inset: 0; pointer-events: none; }
.cover__label {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 clamp(0.72rem, 0.9vw, 0.86rem)/1 var(--font-body);
  box-shadow: 0 10px 30px -12px rgba(7, 31, 21, 0.45);
  transition: background-color 240ms ease, color 240ms ease;
}
.cover__label span { width: 8px; height: 8px; border-radius: 50%; }
.cover__label--1 { left: 2.2%; top: 4%; }
.cover__label--2 { right: 2.2%; top: 4%; }
.cover__label--3 { right: 2.2%; bottom: 5%; }
.cover__label--4 { left: 2.2%; bottom: 5%; }
.cover__label--1 span { background: var(--yellow); }
.cover__label--2 span { background: var(--red); }
.cover__label--3 span { background: var(--navy); }
.cover__label--4 span { background: var(--brand); }

/* Al pasar el cursor por un sector, los demás se atenúan */
@media (hover: hover) and (pointer: fine) {
  .cover__panels:hover .cover__panel:not(:hover) { filter: brightness(0.5) saturate(0.6); }
  .cover:has(.cover__panel--1:hover) .cover__label--1,
  .cover:has(.cover__panel--2:hover) .cover__label--2,
  .cover:has(.cover__panel--3:hover) .cover__label--3,
  .cover:has(.cover__panel--4:hover) .cover__label--4 { background: var(--green-900); color: #fff; }
}

@media (max-width: 640px) {
  .cover__labels { display: none; }
  .cover__ring-arc { stroke-width: 7; }
}

.domains {
  list-style: none;
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 10px 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.domains li {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 clamp(1rem, 1.5vw, 1.2rem)/1 var(--font-display); font-stretch: 85%;
  padding-right: clamp(18px, 3vw, 40px);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--green { background: var(--brand); }
.dot--navy { background: var(--navy); }
.dot--lime { background: var(--lime); }
.dot--red { background: var(--red); }
.dot--yellow { background: var(--yellow); }

@media (max-width: 900px) {
  .hero { --nav-h: 66px; }
  .hero__top { grid-template-columns: 1fr; }
  .hero__lines { mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 10%, transparent 75%); }
}

/* ---------- Nosotros ---------- */

.about { padding-block: var(--section); background: var(--surface); }
.about__head { max-width: 960px; }
.about__statement {
  margin-top: 18px;
  font: 500 clamp(1.6rem, 3.3vw, 2.6rem)/1.18 var(--font-display);
  font-stretch: 88%;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--ink-2);
}
.about__statement strong { color: var(--ink); font-weight: 700; }

.about__grid {
  margin-top: clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.mv { border-top: 2px solid var(--ink); padding-top: 20px; }
.mv__label {
  display: flex; align-items: baseline; gap: 14px;
  font: 700 1.6rem/1 var(--font-display); font-stretch: 80%;
  margin-bottom: 16px;
}
.mv__label span { font: 600 0.8rem/1 var(--font-body); color: var(--brand); letter-spacing: 0.08em; }
.mv p { color: var(--ink-2); }
.about__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; margin-top: -40px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

.values {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center;
  padding: 22px 0; border-block: 1px solid var(--line);
}
.values__label { font: 600 0.78rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.values__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; }
.values__list li {
  font: 700 clamp(1.15rem, 2vw, 1.55rem)/1 var(--font-display); font-stretch: 80%;
}
.values__list li:not(:last-child)::after { content: "·"; color: var(--lime); padding-inline: 14px; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { margin-top: 0; aspect-ratio: 4 / 3; order: -1; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Servicios (tabs) ---------- */

.services { padding-block: var(--section); }

.svc {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.svc__tabs { display: grid; position: sticky; top: 100px; }
.svc__tabs button {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center;
  width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line);
  background: none; cursor: pointer; text-align: left; color: var(--ink-2);
  font: 600 1.35rem/1 var(--font-display); font-stretch: 80%;
  transition: color 180ms ease, padding-left 220ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.svc__tabs button:first-child { border-top: 1px solid var(--line); }
.svc__num { font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.06em; color: var(--ink-2); opacity: 0.7; }
.svc__count {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center;
  font: 600 0.75rem/1 var(--font-body); background: rgba(15, 31, 23, 0.06);
  transition: background-color 180ms ease, color 180ms ease;
}
.svc__tabs button[aria-selected="true"] { color: var(--ink); padding-left: 10px; }
.svc__tabs button[aria-selected="true"] .svc__num { color: var(--brand); opacity: 1; }
.svc__tabs button[aria-selected="true"] .svc__count { background: var(--green-900); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .svc__tabs button:hover { color: var(--ink); }
}

.svc__panels { display: grid; }
.svc__panel {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(7, 31, 21, 0.25);
}
.js .svc__panel[hidden] { display: grid; visibility: hidden; opacity: 0; transform: translateY(6px); filter: blur(2px); pointer-events: none; }
.js .svc__panel {
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), filter 260ms var(--ease-out), visibility 0s linear 0s;
}
.js .svc__panel[hidden] {
  transition: opacity 140ms ease, transform 140ms ease, filter 140ms ease, visibility 0s linear 140ms;
}

.svc__body { display: flex; flex-direction: column; }
.svc__body .checklist { margin-bottom: 28px; }
.svc__cta {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--green-900); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.svc__cta:active { transform: scale(0.97); }
.svc__cta svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc__cta:hover { background: var(--brand); }
  .svc__cta:hover svg { transform: translateX(3px); }
}
.svc__body h3 { font: 800 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-display); font-stretch: 75%; letter-spacing: -0.01em; }
.svc__intro { margin-top: 14px; color: var(--ink-2); max-width: 40ch; }

.checklist { list-style: none; margin-top: 26px; display: grid; gap: 0; }
.checklist li {
  position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--line);
  font-weight: 500; line-height: 1.4;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%230a2e1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.checklist--cols { grid-template-columns: 1fr; }

.svc__img { margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--paper-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover;}
.svc__img--salud img { object-position: 70% center; }
.svc__img--monitoreo img { object-position: -20% center; }
.svc__img--informes img { object-position: 10% center; }
.svc__img--ventas img { object-position: 70% center; }

@media (max-width: 1100px) {
  .svc { grid-template-columns: 1fr; }
  .svc__tabs {
    position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }
  .svc__tabs::-webkit-scrollbar { display: none; }
  .svc__tabs button {
    display: inline-flex; gap: 10px; width: auto; flex: none; scroll-snap-align: start;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 1.1rem;
  }
  .svc__tabs button:first-child { border-top: 1px solid var(--line); }
  .svc__tabs button[aria-selected="true"] { padding-left: 16px; background: var(--green-900); color: #fff; border-color: var(--green-900); }
  .svc__tabs button[aria-selected="true"] .svc__num { color: var(--lime); }
  .svc__tabs button[aria-selected="true"] .svc__count { background: rgba(255, 255, 255, 0.16); }
}
@media (max-width: 1100px) {
  /* En pantallas angostas el panel no reserva la altura del más largo */
  .js .svc__panel[hidden] { display: none; }
  .js .svc__panel:not([hidden]) { animation: panel-in 260ms var(--ease-out); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 720px) {
  .svc__panel { grid-template-columns: 1fr; }
  .svc__img { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
}

/* ---------- Método ---------- */

.method { padding-block: var(--section); background: var(--paper-2); }
.method__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.method__lead { margin-top: 20px; color: var(--ink-2); max-width: 52ch; }

.steps { list-style: none; margin-top: 40px; display: grid; }
.steps li {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px;
  padding: 20px 0; border-top: 1px solid rgba(15, 31, 23, 0.14);
}
.steps__n { font: 700 1rem/1.5 var(--font-display); color: var(--ink-2); transition: color 200ms ease; }
.steps h3 { font: 700 1.45rem/1.2 var(--font-display); font-stretch: 80%; }
.steps p { margin-top: 4px; color: var(--ink-2); max-width: 46ch; }
.steps li[data-step="1"] { --c: var(--brand); }
.steps li[data-step="2"] { --c: var(--red); }
.steps li[data-step="3"] { --c: #c48f00; }
.steps li[data-step="4"] { --c: var(--navy); }
.steps li:hover .steps__n,
.steps li:focus-within .steps__n { color: var(--c); }

.cycle { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1; }
.cycle svg { width: 100%; height: 100%; overflow: visible; }
.cycle__track { fill: none; stroke: rgba(15, 31, 23, 0.08); stroke-width: 22; }
.cycle__arc {
  fill: none; stroke-width: 22; stroke-linecap: round;
  stroke-dasharray: 88 100; stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms var(--ease-in-out), opacity 220ms ease;
}
.cycle__arc--1 { stroke: var(--brand); }
.cycle__arc--2 { stroke: var(--red); transition-delay: 180ms; }
.cycle__arc--3 { stroke: var(--yellow); transition-delay: 360ms; }
.cycle__arc--4 { stroke: var(--navy); transition-delay: 540ms; }
.js .cycle:not([data-in]) .cycle__arc { stroke-dashoffset: 88; }
.cycle[data-focus] .cycle__arc { opacity: 0.18; transition-delay: 0s; }
.cycle[data-focus="1"] .cycle__arc--1,
.cycle[data-focus="2"] .cycle__arc--2,
.cycle[data-focus="3"] .cycle__arc--3,
.cycle[data-focus="4"] .cycle__arc--4 { opacity: 1; }
.cycle__labels text { font: 700 15px var(--font-display); fill: var(--ink-2); text-anchor: middle; }
.cycle__core {
  position: absolute; inset: 22%; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: var(--surface);
  box-shadow: 0 20px 50px -30px rgba(7, 31, 21, 0.4);
}
.cycle__core img { width: 46%; min-width: 80px; }
.cycle__core span { font: 600 0.74rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 900px) {
  .method__grid { grid-template-columns: 1fr; }
  .cycle { order: -1; width: min(78%, 340px); }
}

/* ---------- Normativa ---------- */

.norms { padding-block: var(--section); background: var(--green-900); color: #fff; position: relative; overflow: hidden; }
.norms::before {
  content: ""; position: absolute; right: -12%; top: -30%; width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 198, 63, 0.16), transparent);
  pointer-events: none;
}
.norms__head { position: relative; display: grid; gap: 0; }
.norms__sub { margin-top: 18px; color: rgba(255, 255, 255, 0.72); }
.norms__list {
  position: relative; margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.norms__list > div { padding: 28px 28px 8px 0; }
.norms__list > div + div { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.norms__list dt { font: 800 clamp(1.7rem, 2.8vw, 2.4rem)/1 var(--font-display); font-stretch: 72%; color: var(--lime); }
.norms__list dd { margin-top: 12px; color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; }

@media (max-width: 900px) {
  .norms__list { grid-template-columns: 1fr 1fr; }
  .norms__list > div { padding: 24px 16px 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .norms__list > div + div { padding-left: 0; border-left: 0; }
  .norms__list > div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
}
@media (max-width: 520px) {
  .norms__list { grid-template-columns: 1fr; }
  .norms__list > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- En campo ---------- */

.field { padding-block: var(--section); }
.field__note { max-width: 36ch; color: var(--ink-2); }
.field__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 14vw, 190px);
}
.field__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.field__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.field__item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(7, 31, 21, 0.72); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.82rem; font-weight: 600;
}
.field__item--a { grid-column: span 7; grid-row: span 2; }
.field__item--b { grid-column: span 5; grid-row: span 4; }
.field__item--b img { object-position: 50% 30%; }
.field__item--c { grid-column: span 3; grid-row: span 2; }
.field__item--d { grid-column: span 4; grid-row: span 2; }
@media (hover: hover) and (pointer: fine) {
  .field__item:hover img { transform: scale(1.03); }
}
@media (max-width: 760px) {
  .field__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .field__item--a { grid-column: span 2; grid-row: span 2; }
  .field__item--b { grid-column: span 1; grid-row: span 2; }
  .field__item--c { grid-column: span 1; grid-row: span 2; }
  .field__item--d { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Equipo ---------- */

.team { padding-block: var(--section); background: var(--surface); }
.team__lead {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.team__portrait { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #0c3a7a; }
.team__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.team__quote blockquote { margin: 0; }
.team__quote blockquote p {
  font: 500 clamp(1.45rem, 2.6vw, 2.15rem)/1.25 var(--font-display); font-stretch: 88%;
  letter-spacing: -0.01em; text-wrap: pretty;
}
.team__quote em { font-style: normal; color: var(--brand); font-weight: 800; }
.person { display: grid; gap: 2px; margin-top: 28px; }
.person strong { font: 700 1.15rem/1.2 var(--font-display); font-stretch: 90%; }
.person span { font-size: 0.92rem; color: var(--brand); font-weight: 600; }

.team__members {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.member {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center;
  padding: 16px; border-radius: var(--radius-lg); background: var(--paper);
}
.member img { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; object-position: 35% 35%; }
.member .member__img--portrait { object-position: 50% 20%; }
.member .person { margin-top: 0; }
.member__area { margin-top: 8px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }

@media (max-width: 900px) {
  .team__lead { grid-template-columns: 1fr; }
  .team__portrait { aspect-ratio: 4 / 3.6; }
  .team__members { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .member { grid-template-columns: 84px 1fr; gap: 14px; }
  .member img { width: 84px; height: 84px; }
}

/* ---------- Contacto ---------- */

.contact { padding-block: var(--section); background: var(--green-950); color: #fff; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__lead { margin-top: 18px; color: rgba(255, 255, 255, 0.74); max-width: 44ch; }
.contact__info { list-style: none; margin-top: 40px; display: grid; gap: 0; }
.contact__info li {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact__info svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact__info a { text-decoration: none; font-weight: 500; font-size: 1.08rem; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .contact__info a:hover { color: var(--lime); } }

.form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg);
  background: var(--green-900); border: 1px solid rgba(255, 255, 255, 0.08);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-input { display: grid; gap: 8px; }
.field-input span { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.field-input input,
.field-input select,
.field-input textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05); color: #fff;
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field-input textarea { resize: vertical; min-height: 110px; }
.field-input select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c9e6a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field-input select option { color: var(--ink); }
.field-input ::placeholder { color: rgba(255, 255, 255, 0.4); }
.field-input input:focus,
.field-input select:focus,
.field-input textarea:focus { outline: none; border-color: var(--lime); background: rgba(255, 255, 255, 0.08); }
.field-input input[aria-invalid="true"] { border-color: #ff8a80; }
.form__error { color: #ffb4ab; font-size: 0.9rem; }
.form__note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); text-align: center; }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.footer { background: var(--green-950); color: rgba(255, 255, 255, 0.66); border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.92rem; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px clamp(24px, 5vw, 72px); padding-block: 56px 40px;
}
.footer__brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.footer__brand img { width: 72px; padding: 6px; background: #fff; border-radius: 14px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h2 { font: 600 0.74rem/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.footer__col a { text-decoration: none; color: rgba(255, 255, 255, 0.86); width: fit-content; transition: color 160ms ease; }
.footer__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem;
}
.footer__meta a { text-decoration: none; color: #fff; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover, .footer__meta a:hover { color: var(--lime); } }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__meta { padding-bottom: 96px; }
}

/* ---------- Volver arriba ---------- */

.to-top {
  position: fixed; right: 24px; bottom: 88px; z-index: 55;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 10px 28px -12px rgba(7, 31, 21, 0.45), 0 0 0 1px var(--line);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.to-top:not([data-show]),
body[data-chat-open] .to-top { opacity: 0; transform: translateY(10px) scale(0.92); pointer-events: none; }
.to-top[data-show]:active { transform: scale(0.94); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: rgba(15, 31, 23, 0.08); stroke-width: 2.5; }
.to-top__ring .to-top__progress { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.to-top__arrow { position: relative; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .to-top:hover .to-top__arrow { transform: translateY(-2px); } }

/* ---------- Asistente (chatbot) ---------- */

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.chat > * { pointer-events: auto; }

.chat__launcher {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green-900); color: #fff;
  font: 600 0.95rem/1 var(--font-body);
  box-shadow: 0 14px 34px -12px rgba(7, 31, 21, 0.55);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.chat__launcher:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chat__launcher:hover { background: var(--brand); } }
.chat__launcher-icon { position: relative; width: 24px; height: 24px; display: grid; place-items: center; color: var(--lime); }
.chat__launcher-icon svg { position: absolute; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.chat__launcher .i-close { opacity: 0; transform: rotate(-45deg) scale(0.8); }
.chat__launcher[aria-expanded="true"] .i-open { opacity: 0; transform: scale(0.8); }
.chat__launcher[aria-expanded="true"] .i-close { opacity: 1; transform: none; }

.chat__panel {
  width: min(384px, calc(100vw - 32px));
  height: min(600px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: 22px;
  box-shadow: 0 30px 70px -24px rgba(7, 31, 21, 0.45), 0 0 0 1px var(--line);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(8px) scale(0.96);
  transition: opacity 150ms ease, transform 150ms ease;
}
.chat__panel[hidden] { display: none; }
.chat__panel[data-open] {
  opacity: 1; transform: none;
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}

.chat__head {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 4px 10px;
  padding: 12px 10px 12px 14px; background: var(--green-900); color: #fff;
}
.chat__head img { width: 32px; height: auto; padding: 5px; background: #fff; border-radius: 10px; box-sizing: content-box; }
.chat__head h2 { font: 700 1.05rem/1.2 var(--font-display); font-stretch: 88%; }
.chat__head p { font-size: 0.76rem; color: rgba(255, 255, 255, 0.7); }
.chat__icon-btn {
  width: 38px; height: 38px; border: 0; border-radius: 10px; display: grid; place-items: center;
  background: transparent; color: rgba(255, 255, 255, 0.82); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.chat__icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .chat__icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; } }

.chat__log {
  position: relative;
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 14px; background: var(--paper);
  scrollbar-width: thin;
}
.msg {
  max-width: 88%; padding: 10px 14px;
  font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere;
  animation: msg-in 240ms var(--ease-out);
}
.msg--bot { align-self: flex-start; background: var(--surface); color: var(--ink); border-radius: 16px 16px 16px 4px; box-shadow: 0 0 0 1px var(--line); }
.msg--user { align-self: flex-end; background: var(--green-900); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg ul { list-style: none; display: grid; gap: 4px; }
.msg li { position: relative; padding-left: 14px; }
.msg li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.msg strong { font-weight: 600; }
.msg a:not(.msg__action) { color: var(--brand); font-weight: 600; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }

.msg__action {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--lime); color: var(--green-950); text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.msg__action:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .msg__action:hover { background: #9dd252; } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; animation: msg-in 240ms var(--ease-out) 60ms both; }
.chat__chips button {
  min-height: 36px; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(0, 107, 58, 0.35); background: var(--surface); color: var(--brand);
  font: 600 0.86rem/1.2 var(--font-body);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.chat__chips button:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chat__chips button:hover { background: var(--green-900); color: #fff; border-color: var(--green-900); } }

.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); opacity: 0.3; animation: typing 900ms ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 150ms; }
.typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes typing { 50% { opacity: 0.9; } }

.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat__form input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 400 1rem/1 var(--font-body);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.chat__form input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.chat__form button {
  width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--green-900); color: #fff;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.chat__form button:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .chat__form button:hover { background: var(--brand); } }

@media (max-width: 640px) {
  .chat { right: 16px; bottom: 16px; }
  .chat__launcher { width: 56px; padding: 0; justify-content: center; }
  .chat__launcher-label { display: none; }
  .to-top { right: 20px; bottom: 84px; }
  /* En móvil el panel es una hoja inferior que cubre el lanzador */
  .chat__panel {
    position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto;
    height: min(82dvh, 640px);
    transform: translateY(24px); transform-origin: bottom center;
  }
  body[data-chat-open] .chat__launcher { opacity: 0; pointer-events: none; }
}

/* ---------- Clientes ---------- */

.clients { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.clients__note { max-width: 36ch; color: var(--ink-2); }
.clients__grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.client {
  display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: start; gap: 14px;
  padding: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 24px) 18px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms ease, background-color 300ms ease;
}
/* Misma caja para todos los logos: anchos y altos se ajustan sin deformarse */
.client img {
  width: 100%; height: clamp(84px, 9vw, 116px);
  object-fit: contain;
  transition: transform 400ms var(--ease-out);
}
.client span {
  display: block;
  font-size: 0.8rem; font-weight: 500; line-height: 1.3; text-align: center; color: var(--ink-2);
  text-wrap: balance;
}
@media (hover: hover) and (pointer: fine) {
  .client:hover {
    transform: translateY(-4px); border-color: rgba(0, 107, 58, 0.3);
    box-shadow: 0 24px 40px -28px rgba(7, 31, 21, 0.45);
  }
  .client:hover img { transform: scale(1.05); }
}
@media (max-width: 760px) {
  .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal[data-in] { opacity: 1; transform: none; }

.js .hero__title em::after { --u: 0; transition: transform 700ms var(--ease-in-out); transition-delay: calc(var(--words, 10) * 55ms + 450ms); }
.js .hero[data-ready] .hero__title em::after { --u: 1; }

/* Titular palabra por palabra */
.js .hero__title .w > span {
  transform: translateY(105%);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--wi) * 55ms + 120ms);
}
.js .hero[data-ready] .hero__title .w > span { transform: none; }

/* El texto secundario entra después del titular */
.js .hero__side .reveal { transition-delay: calc(var(--i, 0) * 110ms + 520ms); }

.js .domains li { opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--di) * 80ms + 300ms); }
.js .domains[data-in] li { opacity: 1; transform: none; }

/* Portada: los cuatro sectores convergen, luego se abre el retrato central,
   el anillo se dibuja y aparecen las etiquetas. Después, solo "respira". */
.js .cover__panel {
  opacity: 0; transform: translate(var(--fx), var(--fy)) scale(1.04);
  transition:
    opacity 700ms var(--ease-out) var(--pd),
    transform 1200ms var(--ease-out) var(--pd),
    filter 400ms ease;
}
.cover__panel--1 { --fx: -7%; --fy: -9%; --pd: 0ms; }
.cover__panel--2 { --fx: 7%; --fy: -9%; --pd: 140ms; }
.cover__panel--3 { --fx: 7%; --fy: 9%; --pd: 280ms; }
.cover__panel--4 { --fx: -7%; --fy: 9%; --pd: 420ms; }
.js .cover[data-in] .cover__panel { opacity: 1; transform: none; }

.js .cover__core {
  clip-path: circle(0% at var(--cx) var(--cy));
  transform: scale(1.12); transform-origin: var(--cx) var(--cy);
  transition: clip-path 1100ms var(--ease-in-out) 700ms, transform 1600ms var(--ease-out) 700ms;
}
.js .cover[data-in] .cover__core { clip-path: circle(20.93% at var(--cx) var(--cy)); transform: none; }

.js .cover__ring { opacity: 0; transform: scale(0.92); transform-origin: var(--cx) var(--cy); transition: opacity 600ms ease 1500ms, transform 900ms var(--ease-out) 1500ms; }
.js .cover[data-in] .cover__ring { opacity: 1; transform: none; }

.js .cover__label { opacity: 0; translate: 0 10px; transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out), background-color 240ms ease, color 240ms ease; }
.js .cover__label--1 { transition-delay: 1700ms, 1700ms, 0ms, 0ms; }
.js .cover__label--2 { transition-delay: 1800ms, 1800ms, 0ms, 0ms; }
.js .cover__label--3 { transition-delay: 1900ms, 1900ms, 0ms, 0ms; }
.js .cover__label--4 { transition-delay: 2000ms, 2000ms, 0ms, 0ms; }
.js .cover[data-in] .cover__label { opacity: 1; translate: 0 0; }

.js .cover[data-in] .cover__stage { animation: breathe 14s ease-in-out 2.4s infinite alternate; }
@keyframes breathe { to { transform: scale(1.035); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; transition-delay: 0s; }
  .js .hero__title .w > span, .js .domains li, .js .cover__panel, .js .cover__core, .js .cover__ring, .js .cover__label { transform: none; translate: none; transition: opacity 300ms ease; transition-delay: 0s; }
  .js .cover__core { clip-path: circle(20.93% at var(--cx) var(--cy)); }
  .js .cover[data-in] .cover__stage, .cover__orbit, .hero__glow, .pulse::after { animation: none; }
  .hero__spot { display: none; }
  .btn--primary::before { display: none; }
  .cycle__arc { transition: opacity 200ms ease; }
  .js .cycle:not([data-in]) .cycle__arc { stroke-dashoffset: 0; }
  .js .svc__panel, .js .svc__panel[hidden] { transform: none; filter: none; }
  .js .svc__panel:not([hidden]), .menu:not([hidden]) { animation: none; }
  .field__item img { transition: none; }
  .msg, .chat__chips { animation: none; }
  .chat__panel, .chat__panel[data-open] { transform: none !important; }
  .to-top, .to-top:not([data-show]) { transform: none; }
  .typing span { animation-duration: 1800ms; }
}
