/* ==========================================================================
   components.css — Componentes de UI (nav, hero, cards, quiz, acordeón,
   proceso, trust, faq, formulario, footer, FAB).
   Refleja 1:1 el diseño de Claude Design, extraído a clases reutilizables.
   ========================================================================== */

/* ============================ NAV ============================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}
.nav.is-scrolled {
  background: rgba(11, 24, 33, .82);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
  padding-block: 14px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__brand-name {
  font-family: var(--font-serif); font-weight: 600; font-size: 23px;
  color: #fff; letter-spacing: .3px;
}
.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__link {
  color: rgba(255, 255, 255, .82); text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: .2px;
  transition: color .2s ease;
}
.nav__link:hover { color: #fff; }
/* Enlace de la página actual (lo marca $page['nav']['active'] + aria-current).
   El subrayado va con offset para no chocar con las tildes de "Tecnología". */
.nav__link.is-current {
  color: #fff; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: var(--c-teal-200);
}
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-xs);
  background: #fff; color: var(--c-ink-900); text-decoration: none;
  font-size: 14.5px; font-weight: 600; letter-spacing: .2px;
  box-shadow: 0 1px 2px rgba(12, 27, 38, .18);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(12, 27, 38, .2), 0 14px 28px -12px rgba(0, 0, 0, .55); }
.nav__cta:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(12, 27, 38, .18); }
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-xs); background: rgba(255, 255, 255, .05);
  color: #fff; cursor: pointer;
}

/* ============================ BOTONES ============================
   Los botones son objetos físicos: reciben luz arriba (--edge-light), la
   pierden abajo (--edge-dark) y al presionarse se hunden (--edge-press, con
   la sombra colapsada a solo contacto). Nunca una sombra suelta y opaca.
   ================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 9px; font-weight: 600; font-size: 16px; letter-spacing: .2px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .2s ease, border-color .2s ease;
}
.btn--lg { padding: 16px 28px; }
.btn--block { width: 100%; padding: 16px; }

/* Primario — la única acción que grita en cada sección. */
.btn--primary {
  background: var(--g-teal); color: #fff; border-color: transparent;
  box-shadow: var(--edge-light), var(--edge-dark), var(--sh-cta);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--edge-light), var(--edge-dark), var(--sh-cta-hover);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--edge-press), var(--sh-cta-active);
}

/* Fantasma — secundario sobre fondo oscuro. */
.btn--ghost {
  padding: 16px 24px; background: rgba(255, 255, 255, .05); color: #fff;
  border-color: rgba(255, 255, 255, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 26px -14px rgba(0, 0, 0, .65);
}
.btn--ghost:active { transform: translateY(0); box-shadow: var(--edge-press); }

/* WhatsApp sólido — SOLO donde WhatsApp es la acción primaria: el estado de
   éxito del formulario y el FAB. Su verde saturado gana cualquier comparación
   de peso visual, así que puesto al lado de un CTA teal invierte la jerarquía. */
.btn--wa {
  background: var(--c-wa); color: var(--c-wa-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), var(--edge-dark),
              0 1px 2px rgba(12, 27, 38, .2), 0 10px 22px -8px rgba(37, 211, 102, .38);
}
.btn--wa:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), var(--edge-dark),
              0 2px 4px rgba(12, 27, 38, .22), 0 16px 30px -10px rgba(37, 211, 102, .46);
}
.btn--wa:active { transform: translateY(0); box-shadow: var(--edge-press), 0 1px 2px rgba(12, 27, 38, .28); }

/* WhatsApp callado — vidrio sobre oscuro, con el verde reducido al ícono y a un
   filo de borde. Es el WhatsApp que acompaña a un CTA primario sin robarle el
   ojo (el hero de la home ya usaba .btn--ghost con esta misma intención). */
.btn--wa-quiet {
  padding: 16px 24px;
  background: rgba(37, 211, 102, .07); color: #fff;
  /* .5, no .3: sobre el petróleo del hero (#0C1B26) un borde a .3 daba 1.91:1 y el
     botón perdía su contorno. A .5 son 3.14:1 — el mínimo de WCAG 1.4.11 para el
     borde de un control. Sigue muy por debajo del bloque teal del CTA primario. */
  border-color: rgba(37, 211, 102, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.btn--wa-quiet:hover {
  background: rgba(37, 211, 102, .13); border-color: rgba(37, 211, 102, .7);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 26px -14px rgba(37, 211, 102, .42);
}
.btn--wa-quiet:active { transform: translateY(0); box-shadow: var(--edge-press); }
/* Gana al atributo stroke="#0b2e1a" del SVG, que existe para el verde sólido. */
.btn--wa-quiet svg { stroke: var(--c-wa); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative; background: var(--g-hero); color: #fff;
  padding: clamp(150px, 17vh, 210px) var(--gutter) clamp(70px, 9vw, 110px);
  overflow: hidden;
}
.hero__halo {
  position: absolute; top: -12%; right: -6%;
  width: min(60vw, 720px); height: min(60vw, 720px); border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 140, 147, .34) 0%, rgba(47, 140, 147, 0) 62%);
  filter: blur(8px); animation: glowPulse 7s ease-in-out infinite; pointer-events: none;
}
.hero__mark {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: min(54vw, 640px); height: auto; opacity: .16;
  animation: triFloat 9s ease-in-out infinite; pointer-events: none;
}
.hero__inner { position: relative; max-width: var(--container); margin-inline: auto; }
.hero__content { max-width: 840px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px;
  padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.hero__eyebrow-item { display: inline-flex; align-items: center; gap: 7px; }
.hero__dot { width: 7px; height: 7px; border-radius: 50%; }
.hero__dot--tec { background: var(--c-tec); }
.hero__dot--ven { background: var(--c-ven); }
.hero__dot--fin { background: #6BA083; }
.hero__sep { opacity: .3; }
.hero__title {
  font-size: var(--fs-h1); line-height: 1.04; margin: 0 0 26px; color: #fff;
}
.hero__title-mut { color: rgba(255, 255, 255, .55); }
.hero__title em { color: var(--c-teal-200); }
.hero__lead {
  font-size: var(--fs-lead); line-height: 1.55; color: var(--c-on-dark-soft);
  max-width: 620px; margin: 0 0 36px; font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__textcta {
  color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 15px; font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.hero__textcta:hover { color: #fff; border-color: #fff; }
.hero__strip {
  position: relative; max-width: var(--container); margin: clamp(54px, 7vw, 84px) auto 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero__strip-em { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--c-teal-200); }
.hero__strip-sep { opacity: .25; }
.hero__strip-item { font-size: 14px; color: rgba(255, 255, 255, .6); letter-spacing: .2px; }

/* ============================ ÁREAS (Por qué) ============================ */
.area-card {
  position: relative; background: var(--c-cream-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: clamp(28px, 3vw, 40px); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Hover = --e4 (α pico .207), que conserva el peso del --sh-card viejo (.211). */
.area-card:hover { transform: translateY(-6px); box-shadow: var(--e4); border-color: #dcd3bf; }
.area-card__deco { position: absolute; right: -22px; bottom: -26px; width: 150px; height: 150px; opacity: .1; }
.area-card__ico {
  width: 52px; height: 52px; border-radius: 13px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 22px;
}
.area-card__kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 8px;
}
.area-card__title { font-size: 1.55rem; margin: 0 0 10px; }
.area-card__text { font-size: 1rem; line-height: 1.55; color: #5a6470; margin: 0; }
.area-card--tec .area-card__ico { background: var(--c-tint-tec); }
.area-card--tec .area-card__kicker { color: var(--c-tec); }
.area-card--ven .area-card__ico { background: var(--c-tint-ven); }
.area-card--ven .area-card__kicker { color: #26757c; }
.area-card--fin .area-card__ico { background: var(--c-tint-fin); }
.area-card--fin .area-card__kicker { color: #4d8568; }

/* ============================ AUTODIAGNÓSTICO (quiz) ============================ */
.quiz {
  display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(280px, .85fr);
  gap: clamp(32px, 4vw, 64px); align-items: start;
}
.quiz__title { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); margin: 0 0 18px; color: #fff; }
.quiz__lead { font-size: 1.1rem; line-height: 1.6; color: var(--c-on-dark-soft); margin: 0 0 30px; max-width: 440px; }
.quiz__list { display: flex; flex-direction: column; gap: 10px; }
.quiz__item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer; transition: background .2s ease, border-color .2s ease; text-align: left;
}
.quiz__item:hover { border-color: rgba(127, 208, 204, .5); }
.quiz__item[aria-pressed="true"] { background: rgba(127, 208, 204, .12); border-color: rgba(127, 208, 204, .45); }
.quiz__box {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.quiz__item[aria-pressed="true"] .quiz__box { background: var(--c-teal-200); border-color: var(--c-teal-200); }
.quiz__check { opacity: 0; transition: opacity .2s ease; }
.quiz__item[aria-pressed="true"] .quiz__check { opacity: 1; }
.quiz__label { font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .9); }
.quiz__result {
  position: sticky; top: 96px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 38px); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.quiz__result-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin: 0 0 14px; }
.quiz__score { font-family: var(--font-serif); font-weight: 600; font-size: clamp(3rem, 2rem + 4vw, 4.4rem); line-height: 1; margin: 0 0 18px; color: #fff; }
.quiz__bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-bottom: 18px; }
.quiz__fill { position: absolute; inset: 0 auto 0 0; height: 100%; border-radius: 8px; background: var(--g-meter); transition: width .5s cubic-bezier(.22, .61, .36, 1); width: 0; }
.quiz__msg { font-size: 1rem; line-height: 1.5; color: rgba(234, 229, 216, .85); margin: 0 0 24px; min-height: 48px; }
.quiz__cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 22px; border-radius: 9px; background: #fff; color: var(--c-ink-900); font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .2s ease; }
.quiz__cta:hover { transform: translateY(-2px); }

/* ============================ SERVICIOS (acordeón) ============================ */
.services { display: flex; flex-direction: column; gap: 14px; }
.svc {
  background: var(--c-cream-card); border: 1px solid var(--c-border);
  border-radius: var(--r-md); overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease;
}
.svc:hover { box-shadow: 0 20px 44px -30px rgba(20, 34, 46, .5); }
.svc__header {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: clamp(20px, 2.4vw, 28px); background: none; border: none; cursor: pointer; text-align: left;
}
.svc__ico { flex: none; width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.svc__titles { flex: 1; }
.svc__title { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: var(--c-ink); margin-bottom: 3px; }
.svc__sub { display: block; font-size: .95rem; color: var(--c-muted-2); }
.svc__chev { flex: none; transition: transform .3s ease; }
.svc__header[aria-expanded="true"] .svc__chev { transform: rotate(180deg); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-acc); }
.svc__header[aria-expanded="true"] + .svc__panel { grid-template-rows: 1fr; }
.svc__panel-inner { min-height: 0; overflow: hidden; }
.svc__chips {
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 0 clamp(20px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px) clamp(86px, 9vw, 86px);
}
.svc--tec .svc__ico { background: var(--c-tint-tec); }
.svc--ven .svc__ico { background: var(--c-tint-ven); }
.svc--fin .svc__ico { background: var(--c-tint-fin); }
.chip { padding: 8px 15px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; }
.chip--tec { background: rgba(61, 110, 146, .1); color: #345d7d; }
.chip--ven { background: rgba(47, 140, 147, .12); color: #236269; }
.chip--fin { background: rgba(94, 158, 126, .16); color: #3d7a5e; }

/* ============================ PROCESO ============================ */
.proceso__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin: 0 0 clamp(48px, 6vw, 72px);
}
.proceso__title { font-size: var(--fs-h2-lg); line-height: 1.05; margin: 0; max-width: 620px; }
.proceso__lead { font-size: 1.1rem; line-height: 1.55; color: #5a6470; margin: 0 0 6px; max-width: 380px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 2.4vw, 32px); list-style: none; padding: 0; margin: 0; }
.step {
  position: relative; z-index: 1; background: #fff; border: 1px solid var(--c-border-soft);
  border-radius: 18px; padding: clamp(30px, 3.2vw, 40px); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-card-strong); }
.step__wm { position: absolute; top: -18px; right: 8px; font-family: var(--font-serif); font-weight: 700; font-size: 9rem; line-height: 1; pointer-events: none; }
.step--tec .step__wm { color: rgba(61, 110, 146, .07); }
.step--ven .step__wm { color: rgba(47, 140, 147, .08); }
.step--fin .step__wm { color: rgba(94, 158, 126, .1); }
.step__head { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.step__ico { flex: none; width: 72px; height: 72px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.step--tec .step__ico { background: rgba(61, 110, 146, .1); }
.step--ven .step__ico { background: rgba(47, 140, 147, .11); }
.step--fin .step__ico { background: rgba(94, 158, 126, .13); }
.step__kicker { font-family: var(--font-serif); font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.step--tec .step__kicker { color: var(--c-tec); }
.step--ven .step__kicker { color: #26757c; }
.step--fin .step__kicker { color: #4d8568; }
.step__title { position: relative; font-size: var(--fs-h3); margin: 0 0 10px; }
.step__text { position: relative; font-size: 1.05rem; line-height: 1.58; color: #5a6470; margin: 0; }

/* ============================ TRUST + FINANCIAMIENTO ============================ */
.trust { background: var(--c-cream); padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(80px, 10vw, 120px); }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(16px, 2vw, 28px); }
.trust-card { position: relative; background: var(--g-card); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: clamp(34px, 3.6vw, 46px); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.trust-card:hover { transform: translateY(-6px); box-shadow: var(--sh-dark); }
.trust-card__deco { position: absolute; right: -26px; bottom: -34px; width: 170px; height: 170px; opacity: .1; pointer-events: none; }
.trust-card__kicker { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-teal-200); margin: 0 0 16px; }
.trust-card__title { position: relative; font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); line-height: 1.08; margin: 0 0 12px; color: #fff; }
.trust-card__text { position: relative; font-size: 1.02rem; line-height: 1.5; color: rgba(234, 229, 216, .72); margin: 0; }

.finance {
  position: relative; background: var(--g-band); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-lg); padding: clamp(30px, 3.6vw, 46px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 48px); overflow: hidden;
}
.finance__deco { position: absolute; right: -30px; bottom: -50px; width: 240px; height: 240px; opacity: .06; pointer-events: none; }
.finance__body { position: relative; max-width: 520px; }
.finance__kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-teal-200); margin: 0 0 14px; }
.finance__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.15; margin: 0 0 10px; color: #fff; }
.finance__text { font-size: 1.05rem; line-height: 1.55; color: rgba(234, 229, 216, .78); margin: 0; }
.finance__text strong { color: #fff; font-weight: 600; }
.finance__logos { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.finance__logos-label { font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.finance__logo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.finance__logo { display: inline-flex; align-items: center; height: 54px; padding: 0 24px; border-radius: 12px; font-family: var(--font-sans); font-weight: 700; font-size: 1.5rem; }
.finance__logo--solid { background: #fff; letter-spacing: .02em; color: var(--c-ink-900); }
.finance__logo--ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); letter-spacing: .01em; color: #fff; }
/* Logo oficial, cuando el SVG existe en /assets/logos/ (ver fondo_logo()).
   Va sobre placa blanca a propósito: los logos institucionales vienen a color
   sobre transparente y se pierden contra el petróleo. width:auto respeta la
   proporción de cada archivo — nunca fijar el ancho o se deforman. */
.finance__logo-img {
  height: 54px; width: auto; display: block; box-sizing: border-box;
  background: #fff; border-radius: 12px; padding: 9px 18px;
}

/* ============================ FAQ ============================ */
.faq { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--c-border-soft); }
.faq__item:last-child { border-bottom: 1px solid var(--c-border-soft); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 4px; background: none; border: none; cursor: pointer; text-align: left; }
.faq__q-text { flex: 1; font-family: var(--font-serif); font-weight: 500; font-size: 1.18rem; color: var(--c-ink); }
.faq__chev { flex: none; transition: transform .3s ease; }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-acc); }
.faq__q[aria-expanded="true"] + .faq__panel { grid-template-rows: 1fr; }
.faq__panel-inner { min-height: 0; overflow: hidden; }
.faq__a { margin: 0 0 24px; padding-right: 38px; font-size: 1.02rem; line-height: 1.6; color: #5a6470; }

/* ============================ CONTACTO + FORM ============================ */
.contact { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(36px, 4vw, 64px); align-items: start; max-width: 1100px; margin-inline: auto; }
.contact__title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); line-height: 1.05; margin: 0 0 20px; color: #fff; }
.contact__lead { font-size: 1.12rem; line-height: 1.6; color: rgba(234, 229, 216, .8); margin: 0 0 36px; max-width: 420px; }
.contact__methods { display: flex; flex-direction: column; gap: 14px; }
.contact__method { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 13px; text-decoration: none; background: rgba(255, 255, 255, .03); transition: background .2s ease, border-color .2s ease; }
.contact__method:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
.contact__method-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.contact__method-ico--wa { background: rgba(37, 211, 102, .14); }
.contact__method-ico--mail { background: rgba(127, 208, 204, .14); }
.contact__method-k { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .55); letter-spacing: .06em; }
.contact__method-v { display: block; font-size: 1.05rem; font-weight: 500; color: #fff; }

.form-card { background: var(--c-cream-card); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--sh-form); }
.form__step { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-teal); margin: 0 0 16px; }
.form__step--2 { margin: 22px 0 14px; }
.form__step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--c-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 13px; margin-bottom: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { margin-bottom: 13px; }
.field label { font-size: 13px; font-weight: 500; color: var(--c-ink-body); }
/* Los campos son la superficie que RECIBE: se hunden en vez de levantarse, así
   que llevan el filo de sombra por dentro y arriba (--edge-inset).
   Ojo con `outline: none` acá: esta regla tiene especificidad (0,1,1) y le ganaba
   al `:focus-visible` de base.css (0,1,0), dejando todos los formularios del sitio
   sin anillo de foco. El único indicador era un borde teal de 1px (falla WCAG
   2.4.11). Se quitó: el anillo de base.css vuelve a mandar. */
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--c-border-line); border-radius: 9px;
  background: #fff; font-size: 16px; color: var(--c-ink);
  box-shadow: var(--edge-inset);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 60px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc6b1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-teal); box-shadow: inset 0 1px 2px rgba(20, 34, 46, .03); }
/* Chevron propio: el nativo cambia de forma en cada SO y rompe la cascada visual.
   data: en background-image está cubierto por img-src 'self' data: de la CSP. */
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235a6470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.form__pains { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pain { padding: 9px 15px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-border-line); color: var(--c-ink-body); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .18s ease; }
.pain[aria-pressed="true"] { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.form__note { font-size: 12.5px; color: #8a90a3; text-align: center; margin: 14px 0 0; }
/* Honeypot anti-bot: fuera de pantalla para humanos, tentador para bots */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Mensaje de error del formulario (límite, verificación, campos) */
.form__error { margin: 0 0 14px; padding: 11px 15px; border-radius: var(--r-md, 12px); background: rgba(193, 73, 73, .1); border: 1px solid rgba(193, 73, 73, .32); color: #b23b3b; font-size: 14px; line-height: 1.45; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success__ico { width: 60px; height: 60px; border-radius: 50%; background: rgba(94, 158, 126, .15); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success__title { font-size: 1.6rem; margin: 0 0 10px; }
.form-success__text { font-size: 1rem; line-height: 1.55; color: #5a6470; margin: 0 0 22px; }
/* Línea de atribución del Experience Center en el estado de gracias (F5):
   nombra la demo/diagnóstico que trajo al lead. La llena y muestra form.js. */
.form-success__ctx { color: #23303d; font-weight: 600; margin-bottom: 10px; }
/* F6 «PULSO»: el éxito entra con rise y el check se traza (el único
   micro-deleite del funnel; CSS-only, corre al pasar de hidden a visible). */
html:not(.no-js) .form-success:not([hidden]) { animation: fsRise .3s var(--t-acc); }
html:not(.no-js) .form-success:not([hidden]) .form-success__ico path {
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: fsCheck .4s var(--t-acc) .15s forwards;
}
@keyframes fsRise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fsCheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* estado final explícito: sin esto, el kill global dejaría el check invisible */
  html:not(.no-js) .form-success:not([hidden]) { animation: none; }
  html:not(.no-js) .form-success:not([hidden]) .form-success__ico path {
    stroke-dasharray: none; stroke-dashoffset: 0; animation: none;
  }
}

/* ==================== PROOF · Informe 360 (home · 01 La prueba) ==================== */
.proof__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.proof__title { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-h2); line-height: 1.1; color: var(--c-ink); margin: 16px 0 0; letter-spacing: -.01em; text-wrap: balance; }
.proof__title em { font-style: italic; color: var(--c-teal); }
.proof__lead { font-size: var(--fs-lead-sm); color: var(--c-ink-body); line-height: 1.6; margin: 16px 0 0; max-width: 46ch; }
.proof__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.proof__points li { display: flex; align-items: center; gap: 12px; font-size: .98rem; color: var(--c-ink); }
.proof__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.proof__dot--tec { background: var(--c-tec); }
.proof__dot--ven { background: var(--c-ven); }
.proof__dot--fin { background: var(--c-fin); }
.proof__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.proof__textcta { color: var(--c-teal); font-weight: 600; text-decoration: none; font-size: .98rem; }
.proof__textcta:hover { text-decoration: underline; }

/* Documento (mock del Informe 360 · datos de ejemplo) */
.report { background: var(--c-cream-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--sh-card-strong); padding: clamp(20px, 2.4vw, 30px); }
.report__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border-line); }
.report__brand { display: flex; align-items: center; gap: 12px; }
.report__kicker { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: var(--c-ink); margin: 0; }
.report__meta { font-size: .8rem; color: var(--c-muted); margin: 2px 0 0; }
.report__tag { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted-2); background: var(--c-cream-alt); border: 1px solid var(--c-border); border-radius: var(--r-pill); padding: 4px 11px; white-space: nowrap; }
.report__score { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--c-border-line); }
.report__score-ring { width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c-teal) calc(var(--pct, 58) * 1%), var(--c-border) 0); position: relative; }
.report__score-ring::before { content: ""; position: absolute; inset: 9px; background: var(--c-cream-card); border-radius: 50%; }
.report__score-mid { position: relative; text-align: center; line-height: 1; }
.report__score-mid b { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.7rem; color: var(--c-ink); }
.report__score-mid i { font-style: normal; font-size: .64rem; color: var(--c-muted); }
.report__score-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted-2); margin: 0; font-weight: 600; }
.report__score-v { font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; color: var(--c-ink); margin: 3px 0 0; }
.report__score-d { font-size: .85rem; color: var(--c-ink-body); margin: 4px 0 0; }
.report__areas { list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 15px; }
.report__area { display: flex; gap: 12px; align-items: flex-start; }
.report__area-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.report__area--tec .report__area-dot, .report__area--tec .report__bar i { background: var(--c-tec); }
.report__area--ven .report__area-dot, .report__area--ven .report__bar i { background: var(--c-ven); }
.report__area--fin .report__area-dot, .report__area--fin .report__bar i { background: var(--c-fin); }
.report__area-body { flex: 1; min-width: 0; }
.report__area-name { font-size: .92rem; font-weight: 600; color: var(--c-ink); margin: 0; display: flex; justify-content: space-between; gap: 8px; }
.report__area-lvl { color: var(--c-muted); font-weight: 600; }
.report__bar { height: 6px; border-radius: 3px; background: var(--c-border); margin: 7px 0 6px; overflow: hidden; }
.report__bar i { display: block; height: 100%; border-radius: 3px; }
.report__area-find { font-size: .82rem; color: var(--c-muted); margin: 0; line-height: 1.45; }
.report__flag { background: var(--c-cream-alt); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 13px 15px; margin-top: 16px; }
.report__flag-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--c-teal-700); margin: 0; }
.report__flag-v { font-size: .9rem; color: var(--c-ink); margin: 5px 0 0; line-height: 1.5; }
.report__foot { font-size: .72rem; color: var(--c-muted-3); margin: 14px 0 0; text-align: center; }

@media (max-width: 900px) {
  .proof__grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================ FOOTER ============================ */
.footer { background: var(--c-ink-950); color: rgba(255, 255, 255, .6); padding: clamp(48px, 6vw, 72px) var(--gutter) 40px; }
.footer__inner { max-width: var(--container); margin-inline: auto; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__brand-box { max-width: 320px; }
.footer__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 16px; }
.footer__brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 21px; color: #fff; }
.footer__about { font-size: .95rem; line-height: 1.55; margin: 0; }
.footer__cols { display: flex; gap: clamp(40px, 6vw, 80px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col-title { font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--c-footer-muted-aa); margin-bottom: 3px; }
.footer__link { color: rgba(255, 255, 255, .65); text-decoration: none; font-size: 14.5px; transition: color .2s ease; }
.footer__link:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--c-footer-muted-aa); }

/* ============================ FAB WhatsApp ============================ */
.fab-wa {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: var(--z-fab);
  width: 56px; height: 56px; border-radius: 50%; background: var(--c-wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), var(--sh-fab);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .25s var(--ease), visibility .25s var(--ease);
}
.fab-wa:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28),
              0 4px 10px -3px rgba(12, 27, 38, .34), 0 18px 34px -12px rgba(12, 27, 38, .5);
}
.fab-wa:active { transform: translateY(0) scale(.98); box-shadow: var(--edge-press), 0 2px 6px -2px rgba(12, 27, 38, .4); }
/* El FAB es el único control que flota sobre TODO: crema, petróleo, y el punto más
   claro de --g-cta, que cae justo en su esquina (at 85% 100%). Ningún tono único
   llega a 3:1 contra los tres — el teal se cae a 2.80:1 sobre el cierre de /impulsa
   y el teal-200 a 1.58:1 sobre crema. Por eso su anillo lleva dos tonos: el blanco
   contrasta sobre lo oscuro y el halo petróleo contrasta sobre lo claro; siempre hay
   un borde que se ve. El outline se pinta encima del box-shadow, así que el orden
   visual es halo · anillo blanco · halo. */
.fab-wa:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 9px rgba(12, 27, 38, .85),
              inset 0 1px 0 rgba(255, 255, 255, .28), var(--sh-fab);
}

/* ==========================================================================
   PIEZAS VIVAS (canvas) — portadas del prototipo "Triada V2".
   Lógica en assets/js/live.js. Decorativas (aria-hidden); degradan sin JS.
   ========================================================================== */

/* ----- Hero · núcleo vivo (constelación) ----- */
.hero__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero__inner--split .hero__content { max-width: 600px; }
.hero__visual { position: relative; width: 100%; min-height: clamp(380px, 40vw, 520px); }
.hero__nucleo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.no-js .hero__nucleo { display: none; }
.hero__nucleo-tip {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -130%);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 5;
  min-width: 132px; padding: 10px 14px; border-radius: 12px;
  background: rgba(10, 22, 32, .92); border: 1px solid rgba(127, 208, 204, .28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.hero__nucleo-tip-k { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-teal-200); margin: 0 0 3px; }
.hero__nucleo-tip-t { font-family: var(--font-serif); font-size: 1rem; color: #fff; line-height: 1.15; margin: 0 0 3px; }
.hero__nucleo-tip-d { font-size: .76rem; color: rgba(234, 229, 216, .7); line-height: 1.35; margin: 0; }
.hero__nucleo-fallback { display: none; }
.no-js .hero__nucleo-fallback { display: block; width: min(72%, 360px); height: auto; margin: 0 auto; opacity: .9; }

/* ----- Servicios · micro-animación dentro del acordeón ----- */
.svc__panel-body { padding: 4px clamp(20px, 2.4vw, 28px) clamp(22px, 2.4vw, 28px); }
.svc__anim {
  width: 100%; height: 172px; display: block; margin-bottom: 16px;
  border-radius: 12px; border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(20, 34, 46, .03), rgba(20, 34, 46, .01));
}
.svc__anim--tec { background: linear-gradient(180deg, rgba(61, 110, 146, .06), rgba(61, 110, 146, .02)); border-color: rgba(61, 110, 146, .14); }
.svc__anim--ven { background: linear-gradient(180deg, rgba(47, 140, 147, .06), rgba(47, 140, 147, .02)); border-color: rgba(47, 140, 147, .16); }
.svc__anim--fin { background: linear-gradient(180deg, rgba(94, 158, 126, .07), rgba(94, 158, 126, .02)); border-color: rgba(94, 158, 126, .18); }
.svc__chips { padding: 0; }   /* el padding lo aporta .svc__panel-body */

/* ----- Panel vivo (dashboard demo) ----- */
.panel-live { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.panel-live__title { font-size: var(--fs-h2); line-height: 1.08; margin: 0 0 18px; }
.panel-live__title em { color: var(--c-teal); font-style: italic; }
.panel-live__lead { font-size: var(--fs-lead-sm); line-height: 1.6; color: var(--c-ink-body); margin: 0 0 26px; max-width: 30em; }
.panel-live__points { list-style: none; display: flex; flex-direction: column; gap: 13px; padding: 0; margin: 0; }
.panel-live__points li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--c-ink-body); }
.panel-live__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.panel-live__dot--tec { background: var(--c-tec); box-shadow: 0 0 0 4px rgba(61, 110, 146, .14); }
.panel-live__dot--ven { background: var(--c-ven); box-shadow: 0 0 0 4px rgba(47, 140, 147, .14); }
.panel-live__dot--fin { background: #6BA083; box-shadow: 0 0 0 4px rgba(107, 160, 131, .16); }

.panel-device {
  position: relative; border-radius: 22px; padding: clamp(16px, 2.2vw, 24px);
  background: linear-gradient(150deg, #16323f, #0b1a24);
  border: 1px solid rgba(127, 208, 204, .14);
  box-shadow: 0 50px 90px -44px rgba(0, 0, 0, .7);
}
.panel-device__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-device__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: .95rem; }
.panel-device__live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-teal-200); background: rgba(127, 208, 204, .1); }
.panel-device__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #43d6a0; animation: triLivePulse 1.8s ease-in-out infinite; }
.panel-device__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 13px; }
.panel-kpi { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; padding: 14px 16px; }
.panel-kpi__k { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(234, 229, 216, .6); margin: 0 0 7px; }
.panel-kpi__v { font-family: var(--font-serif); color: #fff; font-size: 1.55rem; font-weight: 600; margin: 0; }
.panel-kpi__d { font-size: .72rem; color: #6BA083; margin: 3px 0 0; }
.panel-chart { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; padding: 16px 16px 10px; margin-bottom: 13px; }
.panel-chart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-chart__k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(234, 229, 216, .6); margin: 0; }
.panel-chart__cot { font-size: .72rem; color: var(--c-teal-200); font-weight: 600; }
.panel-chart__canvas { width: 100%; height: 120px; display: block; }
.panel-feed { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; padding: 6px; }
.panel-feed__k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(234, 229, 216, .5); padding: 8px 12px 6px; margin: 0; }
.panel-feed__list { list-style: none; display: flex; flex-direction: column; gap: 2px; min-height: 158px; padding: 0; margin: 0; }
.panel-device__note { font-size: .7rem; color: rgba(234, 229, 216, .4); text-align: center; margin: 10px 0 2px; }

@keyframes triLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ----- Responsive de las piezas vivas ----- */
@media (max-width: 900px) {
  .hero__inner--split { grid-template-columns: 1fr; gap: 30px; }
  .hero__visual { min-height: 320px; }
}
@media (max-width: 860px) {
  .panel-live { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-device__live-dot { animation: none; }
}
