/* ============================================
   HOME DE SERVICIOS — Sistemias
   Hoja propia de la home (no usa Bootstrap ni style.css).

   CACHÉ: firebase.json sirve todos los .css como immutable durante un año, así que
   al cambiar este archivo hay que subir el ?v= en index.html
   (<link href="css/home.css?v=X.Y">). Sin eso el cambio no llega a quien ya
   visitó la página.

   TEMA: paleta "Piedra + Naranja Swift". El tema lo fija un script en el
   <head> de index.html con data-theme="claro|oscuro" en <html>, antes de
   pintar. Reglas de color:
     - --accent es el naranja de marca: rellenos y decoración, NUNCA texto
       pequeño (sobre fondo claro no llega a 4.5:1).
     - --accent-text es el naranja para texto.
     - Sobre --accent el texto va en --on-accent (oscuro).
   ============================================ */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f1ee;
  --surface-3: #ece9e4;
  --line: #e7e4df;
  --line-strong: #d6d2cb;
  --text: #1a1714;
  --text-2: #57524c;
  --muted: #716a64;
  --accent: #f05138;
  --accent-text: #b93a20;
  --accent-soft: #fdece7;
  --on-accent: #1a1714;
  --btn: #1a1714;
  --btn-hover: #34302c;
  --on-btn: #ffffff;
  --inv-bg: #1a1714;
  --inv-surface: #24201c;
  --inv-line: #3a3430;
  --inv-text: #faf9f7;
  --inv-text-2: #c2bbb3;
  --inv-muted: #9e968e;
  --inv-accent-text: #ff8a6e;
  --ok-bg: #e3f3e8;
  --ok-text: #1f6b3a;
  --warn-bg: #fdece7;
  --warn-text: #9a2d19;
  --add-bg: #ddf2e5;
  --add-text: #0f5a2f;
  --del-bg: #fbe3de;
  --del-text: #8a2615;
  --wa: #e4f6ea;
  --wa-green: #128c4a;
  --dot: #dad6cf;
  --header-bg: rgba(250, 249, 247, 0.86);
  --bezel: #1a1714;
  --screen: #ffffff;
  --screen-2: #f3f1ee;
  --shadow: rgba(26, 23, 20, 0.3);
  --error: #b42318;

  --font-display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-lg: 28px;
  --radius-md: 22px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="oscuro"] {
  --bg: #0f0e0d;
  --surface: #171514;
  --surface-2: #1f1c1a;
  --surface-3: #262220;
  --line: #2b2724;
  --line-strong: #3d3834;
  --text: #f5f3f0;
  --text-2: #bdb6ae;
  --muted: #948c84;
  --accent: #ff6a47;
  --accent-text: #ff8a6e;
  --accent-soft: #33190f;
  --on-accent: #0f0e0d;
  --btn: #f5f3f0;
  --btn-hover: #dcd7d1;
  --on-btn: #0f0e0d;
  --inv-bg: #1a1715;
  --inv-surface: #24201d;
  --inv-line: #3a3531;
  --inv-text: #f5f3f0;
  --inv-text-2: #bdb6ae;
  --inv-muted: #948c84;
  --inv-accent-text: #ff8a6e;
  --ok-bg: #14301e;
  --ok-text: #7ee2a8;
  --warn-bg: #3a1c14;
  --warn-text: #ffa08a;
  --add-bg: #12301f;
  --add-text: #86e3ae;
  --del-bg: #3a1913;
  --del-text: #ffa08a;
  --wa: #173a2a;
  --wa-green: #25d366;
  --dot: #262220;
  --header-bg: rgba(15, 14, 13, 0.82);
  --bezel: #2b2724;
  --screen: #1c1b1a;
  --screen-2: #262422;
  --shadow: rgba(0, 0, 0, 0.6);
  --error: #ff8a7a;
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Transición suave de colores SOLO mientras se cambia de tema: js/home.js
   pone .theme-anim en <html> durante ~600 ms. Así ni la carga ni los hover
   normales se ralentizan. */
.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-duration: 0.45s;
  transition-timing-function: ease;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent-text);
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn);
  color: var(--on-btn);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: var(--on-btn);
}
.mono {
  font-family: var(--font-mono);
}
.center {
  text-align: center;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow {
  max-width: 880px;
}

/* ── Tipografía ───────────────────────────── */
.hero-title,
.h2,
.h3,
.h4,
.brand span,
.stats__n,
.case__stats b,
.calc__range,
.service-foot b,
.step-num,
.about__photo span,
.ui-big,
.ui-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  font-weight: 750;
}
.h2--sm {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
}
.h3 {
  font-size: 28px;
  line-height: 1.12;
  font-weight: 700;
}
.h4 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  margin-bottom: 14px;
}

/* ── Botones ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-primary {
  background: var(--btn);
  color: var(--on-btn);
}
.btn-primary:hover {
  background: var(--btn-hover);
  color: var(--on-btn);
}
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.btn-accent:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--inv-text);
  border-color: var(--inv-line);
}
.btn-ghost:hover {
  border-color: var(--inv-text);
  color: var(--inv-text);
}
.wa {
  color: var(--wa-green);
}
.btn-ghost .wa {
  color: #25d366;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ── Cabecera ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: 20px;
  font-size: 15px;
  font-weight: 500;
}
.nav a,
.nav-login,
.btn {
  white-space: nowrap;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-login {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}
.menu-btn,
.menu-close,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-btn {
  display: none;
}

/* Interruptor de tema */
.theme-switch {
  position: relative;
  flex: none;
  width: 80px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
}
.theme-switch__knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 8px var(--shadow);
  transition:
    transform 0.4s cubic-bezier(0.3, 1.4, 0.5, 1),
    background-color 0.45s ease;
}
.theme-switch svg {
  position: absolute;
  top: 12px;
}
.theme-switch__sun {
  left: 12px;
  color: var(--accent-text);
}
.theme-switch__moon {
  right: 12px;
}
:root[data-theme="oscuro"] .theme-switch__knob {
  transform: translateX(36px);
}
:root[data-theme="oscuro"] .theme-switch__sun {
  color: var(--muted);
}
:root[data-theme="oscuro"] .theme-switch__moon {
  color: var(--accent-text);
}
/* Sin JS el interruptor no hace nada: mejor no mostrarlo. */
:root:not(.js) .theme-switch {
  display: none;
}

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--inv-bg);
  color: var(--inv-text);
  overflow-y: auto;
}
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--inv-line);
}
.mobile-menu .menu-close {
  background: transparent;
  border-color: var(--inv-line);
  color: var(--inv-text);
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 16px 0;
}
.mobile-menu__nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--inv-line);
  animation: rise 0.5s var(--ease-out) both;
}
.mobile-menu__nav a:nth-child(2) { animation-delay: 0.04s; }
.mobile-menu__nav a:nth-child(3) { animation-delay: 0.08s; }
.mobile-menu__nav a:nth-child(4) { animation-delay: 0.12s; }
.mobile-menu__nav a:nth-child(5) { animation-delay: 0.16s; }
.mobile-menu__nav a:hover {
  color: var(--inv-accent-text);
}
.mobile-menu__nav b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mobile-menu__nav small {
  font-size: 13px;
  color: var(--inv-text-2);
}
.mobile-menu__nav svg {
  color: var(--inv-accent-text);
  flex: none;
}
.mobile-menu__foot {
  margin-top: auto;
  padding: 20px 16px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-menu .btn-outline {
  background: transparent;
  color: var(--inv-text);
  border-color: var(--inv-line);
}
.mobile-menu__login {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--inv-text-2);
}

/* ── Hero ─────────────────────────────────── */
.dots {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero {
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}
.hero-title {
  position: relative;
  z-index: 0;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 0.98;
  font-weight: 750;
  text-wrap: balance;
}
.h2,
.h3 {
  text-wrap: balance;
}
.marker {
  position: relative;
  white-space: nowrap;
}
.marker::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.08em;
  height: 0.22em;
  background: var(--accent);
  opacity: 0.32;
  border-radius: 6px;
  z-index: -1;
  transform-origin: left;
  animation: draw 1.1s 0.6s var(--ease-out) both;
}
.hero-lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.trust-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 15px;
  color: var(--text-2);
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-list svg {
  color: var(--accent-text);
}

/* Visual del hero */
.hero-visual {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.phones {
  position: relative;
  width: 540px;
  max-width: 100%;
  height: 620px;
}
.phone {
  position: absolute;
  border-radius: 44px;
  background: var(--bezel);
  padding: 10px;
  box-shadow: 0 40px 80px -30px var(--shadow);
}
.phone--back {
  left: 10px;
  top: 56px;
  width: 248px;
  height: 510px;
  --rot: -7deg;
  transform: rotate(var(--rot));
}
.phone--front {
  left: 250px;
  top: 0;
  width: 256px;
  height: 530px;
  border-radius: 46px;
  --rot: 4deg;
  transform: rotate(var(--rot));
}
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--screen);
  overflow: hidden;
  padding: 46px 16px 16px;
  font-size: 12px;
  line-height: 1.4;
}
.screen--alt {
  background: var(--screen-2);
  padding-top: 44px;
}
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: #000;
}
.ui-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.ui-label--gap {
  margin: 16px 0 8px;
}
.ui-big {
  margin: 2px 0 12px;
  font-size: 28px;
  font-weight: 750;
}
.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 96px;
  padding: 10px;
  border-radius: 16px;
  background: var(--screen);
}
.ui-bars span {
  flex: 1;
  border-radius: 5px;
  background: var(--line-strong);
}
.ui-bars .is-accent {
  background: var(--accent);
}
.ui-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--screen);
  font-size: 11px;
}
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.badge--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.badge--warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}
.ui-greet {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.ui-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--warn-text);
  font-weight: 700;
}
.ui-title {
  margin: 6px 0 14px;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.1;
}
.ui-days {
  display: flex;
  gap: 6px;
}
.ui-days span {
  flex: 1;
  padding: 8px 0;
  border-radius: 12px;
  background: var(--screen-2);
  text-align: center;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-2);
}
.ui-days b {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.ui-days .is-on {
  background: var(--btn);
  color: var(--on-btn);
}
.ui-days .is-on b {
  color: var(--on-btn);
}
.ui-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  font-weight: 600;
  text-align: center;
}
.ui-slots span {
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.ui-slots .is-on {
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  color: var(--warn-text);
}
.ui-slots .is-off {
  color: var(--muted);
  text-decoration: line-through;
}
.ui-service {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--screen-2);
  font-size: 11px;
}
.ui-service b {
  display: block;
  font-size: 12px;
}
.ui-service small {
  color: var(--muted);
  font-size: 11px;
}
.ui-service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--btn);
  color: var(--on-btn);
}
.ui-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--btn);
  color: var(--on-btn);
  font-size: 13px;
  font-weight: 600;
}

/* Tarjetas flotantes */
.float-card {
  position: absolute;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -22px var(--shadow);
  font-size: 12px;
  line-height: 1.4;
}
.toast-card {
  right: -6px;
  top: 84px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  animation: toast 7s ease-in-out infinite;
}
.toast-card b,
.toast-card small {
  display: block;
}
.toast-card small {
  color: var(--muted);
  font-size: 12px;
}
.toast-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok-text);
}
.chat-card {
  left: -18px;
  bottom: 16px;
  width: 262px;
  padding: 14px;
}
.chat-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-2);
}
.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
}
.bubble {
  max-width: 86%;
  padding: 8px 12px;
}
.bubble--in {
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  background: var(--wa);
}
.bubble--typing,
.bubble--out {
  margin-top: 8px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
}
.bubble--typing {
  width: 58px;
  padding: 9px 12px;
  overflow: hidden;
  animation: typingBox 7s ease-in-out infinite;
}
.bubble--typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite;
}
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
.bubble--out {
  animation: reply 7s ease-in-out infinite;
}
.flow-card {
  right: -14px;
  bottom: -6px;
  width: 236px;
  padding: 14px 16px;
  background: var(--inv-bg);
  border-color: var(--inv-line);
  color: var(--inv-text);
}
.flow-card__head {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--inv-muted);
}
.flow-card__step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  opacity: 0.3;
  animation: stepOn 6s ease-in-out infinite;
}
.flow-card__step:last-child {
  margin-bottom: 0;
}
.flow-card__step svg {
  color: var(--accent);
}
.flow-card__step.s2 { animation-delay: 0.9s; }
.flow-card__step.s3 { animation-delay: 1.8s; }

/* ── Franja de tecnologías ────────────────── */
.stack-strip {
  overflow: hidden;
  padding: 22px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__list {
  display: flex;
  gap: 56px;
  margin: 0;
  padding: 0 28px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Secciones ────────────────────────────── */
.section {
  padding: 120px 0;
}
.section--tight {
  padding: 0 0 120px;
}
.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head > div {
  max-width: 660px;
}
.section-head > .section-aside {
  max-width: 380px;
}
.section-head--stack {
  display: block;
  max-width: 740px;
}
.section-aside {
  max-width: 380px;
  color: var(--text-2);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Selector de moneda ───────────────────── */
/* Solo funciona con JS (js/home.js rellena las opciones y convierte los
   precios), así que sin JS no se muestra y la página queda en USD. */
:root:not(.js) .currency,
:root:not(.js) .currency__select,
:root:not(.js) .currency__note {
  display: none;
}
.currency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.currency__select {
  min-height: 44px;
  padding: 0 40px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 19px,
    calc(100% - 14px) 19px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.currency__select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.currency__select--inv {
  min-height: 40px;
  border-color: var(--inv-line);
  background-color: var(--inv-surface);
  color: var(--inv-text);
}
.currency__note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Tarjetas que se elevan */
.lift {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.45s ease,
    border-color 0.45s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px var(--shadow);
}

/* ── Servicios ────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.service-visual {
  height: 210px;
  padding: 24px;
  background: var(--surface-2);
}
.service-visual--pipeline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.pipe-row {
  display: flex;
  justify-content: space-between;
}
.pipe-row .ok {
  color: var(--ok-text);
}
.pipe-row .warn {
  color: var(--warn-text);
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress__bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  animation: build 4s ease-in-out infinite;
}
.service-visual--flow {
  display: flex;
  align-items: center;
  background: var(--inv-bg);
}
.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.node__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--inv-surface);
  border: 1px solid var(--inv-line);
  color: var(--inv-text);
}
.node__box--wa {
  color: #25d366;
}
.node__box--ai {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
}
.node__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--inv-muted);
}
.conn {
  position: relative;
  flex: 1 1 40px;
  min-width: 28px;
  height: 2px;
  align-self: center;
  list-style: none;
  background: repeating-linear-gradient(90deg, var(--inv-line) 0 6px, transparent 6px 12px);
}
.conn i {
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: travel 2.4s linear infinite;
}
.conn .delay-1 { animation-delay: 0.6s; }
.conn .delay-2 { animation-delay: 1.2s; }
.conn .delay-3 { animation-delay: 1.8s; }
.service-visual--diff {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 22px 20px;
  font-size: 12.5px;
  line-height: 1.5;
}
.service-visual--diff span {
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-visual--diff .del {
  background: var(--del-bg);
  color: var(--del-text);
}
.service-visual--diff .add {
  background: var(--add-bg);
  color: var(--add-text);
}
.service-visual--diff .note {
  color: var(--muted);
}
.service-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 28px;
}
.service-body > p {
  color: var(--text-2);
}
.service-body ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}
.service-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.service-foot small {
  font-size: 13px;
  color: var(--muted);
}
.service-foot b {
  font-size: 24px;
}
.service-foot .mono {
  font-size: 13px;
  color: var(--muted);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.mini-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.mini-card p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-2);
}
.mini-card b {
  color: var(--text);
}
.mini-card a {
  font-weight: 600;
  text-decoration: underline;
  color: var(--text);
}
.mini-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
}
.mini-card__icon--accent {
  background: var(--accent-soft);
  color: var(--warn-text);
}

/* ── Para empezar pequeño ─────────────────── */
.starter {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.starter__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: 28px;
}
.starter__head > div {
  max-width: 560px;
}
.starter__head > p {
  max-width: 400px;
  color: var(--text-2);
}
.starter__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.starter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.starter-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--warn-text);
}
.starter-card__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.starter-card > p:not(.starter-card__price) {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.starter-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.starter-card__price small {
  font-size: 13px;
  color: var(--muted);
}
.starter-card__price b {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.starter-card__price .mono {
  font-size: 13px;
  color: var(--muted);
}
.starter-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--accent-text);
}

/* ── Banda oscura: automatización ─────────── */
.band-inv {
  background: var(--inv-bg);
  color: var(--inv-text);
  border-top: 1px solid var(--inv-line);
  border-bottom: 1px solid var(--inv-line);
}
.band-inv .kicker {
  color: var(--inv-accent-text);
}
.band-inv .section-aside {
  color: var(--inv-text-2);
}
.flow {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-step {
  flex: 0 1 200px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--inv-surface);
  border: 1px solid var(--inv-line);
}
.flow-step__n {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--inv-muted);
}
.flow-step h3 {
  margin: 12px 0 4px;
  font-size: 17px;
  font-weight: 600;
}
.flow-step p:last-child {
  font-size: 14px;
  line-height: 1.5;
  color: var(--inv-text-2);
}
.flow-step--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.flow-step--accent .flow-step__n,
.flow-step--accent p:last-child {
  color: var(--on-accent);
}
.flow-step--accent .flow-step__n {
  opacity: 0.75;
}
.flow-step--accent h3 {
  font-weight: 700;
}
.pulse {
  animation: pulse 2.4s infinite;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--inv-line);
}
.stats__n {
  font-size: 40px;
  font-weight: 750;
  color: var(--inv-accent-text);
  line-height: 1.2;
}
.stats p:last-child {
  margin-top: 4px;
  font-size: 15px;
  color: var(--inv-text-2);
}

/* ── Promesas y comparación ───────────────── */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promises > div {
  padding: 36px;
  background: var(--surface);
}
.promises .kicker {
  margin-bottom: 18px;
}
.promises h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.promises p:last-child {
  font-size: 15px;
  color: var(--text-2);
}
.table-box {
  margin-top: 40px;
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
}
.compare caption {
  padding: 24px 28px 8px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}
.compare thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.compare tbody tr {
  border-top: 1px solid var(--line);
}
.compare tbody th {
  padding: 16px 28px;
  text-align: left;
  font-weight: 500;
}
.compare td {
  padding: 16px 20px;
  color: var(--text-2);
}
.compare .is-us {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

/* ── Proceso ──────────────────────────────── */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.process li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.process li > p {
  font-size: 15px;
  color: var(--text-2);
}
.process h3 {
  margin-top: 8px;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--on-btn);
  font-weight: 700;
}
.step-num--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.process li > .process__tag {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.process li > .process__tag--ok {
  color: var(--ok-text);
}

/* ── Calculadora ──────────────────────────── */
.calc {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}
.calc__form {
  flex: 1 1 420px;
  min-width: 0;
}
.calc__lead {
  margin: 20px 0 32px;
  max-width: 460px;
  color: var(--text-2);
}
.calc__group {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.calc__group[hidden] {
  display: none;
}
.calc__group legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip,
.scope {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.chip {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}
.scopes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}
.scope {
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
}
.scope b {
  display: block;
  font-size: 15px;
}
.scope span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.chip:hover,
.scope:hover {
  border-color: var(--text);
}
.chip[aria-pressed="true"],
.scope[aria-pressed="true"] {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--on-btn);
}
.scope[aria-pressed="true"] span {
  color: var(--on-btn);
  opacity: 0.78;
}
.calc__result {
  position: sticky;
  top: 96px;
  flex: 1 1 400px;
  min-width: 0;
  padding: 40px;
  border-radius: 32px;
  background: var(--inv-bg);
  color: var(--inv-text);
  border: 1px solid var(--inv-line);
  box-shadow: 0 40px 80px -40px var(--shadow);
}
.calc__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.calc__summary {
  font-size: 13px;
  color: var(--inv-muted);
}
.calc__fx {
  margin: -18px 0 24px;
  font-size: 13px;
  color: var(--inv-muted);
}
.calc__fx[hidden] {
  display: none;
}
.calc__range {
  margin: 14px 0 6px;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 750;
  line-height: 1;
}
/* Rangos largos ("COP 26 – 39 millones") bajan de tamaño para caber en una línea */
.calc__range.is-long {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.1;
}
.calc__range.is-updating {
  animation: bump 0.35s var(--ease-out);
}
.calc__weeks {
  margin-bottom: 28px;
  color: var(--inv-text-2);
}
.calc__extra {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--inv-surface);
  font-size: 15px;
  line-height: 1.5;
  color: var(--inv-text-2);
}
.calc__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--inv-text-2);
}
.calc__points li,
.contact__points li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.calc__points svg,
.contact__points svg {
  flex: none;
  color: var(--inv-accent-text);
}

/* ── Caso ─────────────────────────────────── */
.case {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.case__copy {
  flex: 1 1 480px;
  min-width: 0;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case__copy > p:not(.case__meta) {
  color: var(--text-2);
}
.case__copy .h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 750;
}
.case__meta {
  font-size: 13px;
  color: var(--muted);
}
.case__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.case__stats div {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.case__stats b {
  display: block;
  font-size: 30px;
  font-weight: 750;
  line-height: 1.2;
}
.case__stats span {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
}
.case__visual {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--inv-bg);
}
.browser {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--screen);
  border: 1px solid var(--inv-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.browser__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: var(--screen-2);
  border-bottom: 1px solid var(--line);
}
.browser__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.browser__body {
  display: flex;
  min-height: 250px;
}
.browser__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 110px;
  padding: 16px 12px;
  background: var(--bezel);
}
.browser__side span {
  height: 8px;
  width: 75%;
  border-radius: 4px;
  background: var(--inv-line);
}
.browser__side .is-accent {
  width: 60%;
  background: var(--accent);
}
.browser__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.browser__main p {
  font-size: 12px;
  font-weight: 700;
}
.browser__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.browser__tiles span {
  height: 46px;
  border-radius: 10px;
  background: var(--screen-2);
}
.browser__tiles .is-accent {
  background: var(--accent-soft);
}
.browser__main .line {
  height: 10px;
  border-radius: 5px;
  background: var(--screen-2);
}

/* ── Sobre mí ─────────────────────────────── */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.about__media {
  position: relative;
  flex: 0 1 420px;
  min-width: 0;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  object-fit: cover;
}
.about__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--line);
}
.about__photo--placeholder span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 64px;
  font-weight: 750;
}
.about__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px var(--shadow);
}
.about__copy {
  flex: 1 1 480px;
  min-width: 0;
}
.about__copy .h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.4vw, 52px);
}
.about__copy > p:not(.kicker) {
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--text-2);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

/* ── Formación ────────────────────────────── */
.training {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  background: var(--surface-3);
}
.training__copy {
  flex: 1 1 420px;
  min-width: 0;
}
.training__copy .h2 {
  margin-bottom: 14px;
}
.training__copy > p:last-child {
  color: var(--text-2);
}
.training__cards {
  flex: 1 1 420px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.training-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.training-card .mono {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}
.training-card .h4 {
  margin-bottom: 6px;
  font-size: 21px;
}
.training-card p:last-child {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ── FAQ ──────────────────────────────────── */
.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--text);
}
.faq__icon::after {
  transform: rotate(90deg);
}
.faq details[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.faq details p {
  padding: 0 56px 24px 4px;
  color: var(--text-2);
}

/* ── Contacto ─────────────────────────────── */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 64px 56px;
  border-radius: 40px;
  background: var(--inv-bg);
  color: var(--inv-text);
  border: 1px solid var(--inv-line);
}
.contact__copy {
  flex: 1 1 400px;
  min-width: 0;
}
.contact__logo {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 50%;
}
.contact__copy .h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.8vw, 50px);
}
.contact__copy > p {
  color: var(--inv-text-2);
}
.contact__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--inv-text-2);
}
.contact__points a {
  text-decoration: underline;
}
.contact-form {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 15px;
  font-weight: 600;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
/* Los mensajes de error los inserta js/validation.js con color fijo; aquí se
   ajusta al tema para que se lean en claro y en oscuro. */
.contact-form .validation-error {
  color: var(--error) !important;
}
.contact-form [aria-invalid="true"] {
  border-color: var(--error) !important;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-message {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
}
.contact-message.success {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.contact-message.error {
  background: var(--del-bg);
  color: var(--del-text);
}
.contact-message i {
  display: none;
}
.contact-form button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ── Pie ──────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 32px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand img {
  width: 30px;
  height: 30px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-2);
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  font-size: 14px;
}
.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-cols a {
  color: var(--text-2);
}
.footer-title {
  font-weight: 700;
  color: var(--text);
}
.footer-bottom {
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* Barra fija inferior (solo móvil) */
.mobile-cta {
  display: none;
}

/* ── Aparición al hacer scroll ────────────── */
/* .reveal-on la pone js/home.js al arrancar. Si el script no carga, la clase
   nunca existe y todo el contenido se ve: nunca queda nada invisible. */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Animaciones ──────────────────────────── */
.rise {
  animation: rise 0.9s var(--ease-out) both;
}
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.45s; }
.float-a {
  animation: float 7s ease-in-out infinite;
}
.float-b {
  animation: float 8s ease-in-out infinite reverse;
}
.float-c {
  animation: floatSoft 6s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes toast {
  0%, 10% { opacity: 0; transform: translateY(14px) scale(0.96); }
  18%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes stepOn {
  0% { opacity: 0.3; }
  10%, 82% { opacity: 1; }
  92%, 100% { opacity: 0.3; }
}
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes typingBox {
  0%, 30% { opacity: 1; max-height: 40px; }
  36%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; }
}
@keyframes reply {
  0%, 32% { opacity: 0; transform: translateY(8px); }
  40%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes travel {
  from { left: 0; }
  to { left: calc(100% - 10px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 81, 56, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(240, 81, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 81, 56, 0); }
}
@keyframes build {
  0% { width: 6%; }
  70%, 100% { width: 100%; }
}
@keyframes bump {
  0% { transform: scale(0.97); opacity: 0.6; }
  100% { transform: none; opacity: 1; }
}

/* ── Responsive ───────────────────────────── */
/* La cabecera completa necesita ~1200 px; por debajo se quita "Ingresar"
   (sigue en el pie y en el menú móvil) y bajo 1040 px entra el menú móvil. */
@media (max-width: 1199px) {
  .nav-login {
    display: none;
  }
}
@media (max-width: 1040px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}
@media (max-width: 960px) {
  .flow {
    flex-direction: column;
    gap: 12px;
  }
  .flow > .conn {
    display: none;
  }
  .flow-step {
    flex: none;
  }
  .calc__result {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 84px; /* deja sitio a la barra fija inferior */
  }
  .header-cta {
    display: none;
  }
  .section {
    padding: 88px 0;
  }
  .section--tight {
    padding: 0 0 88px;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .hero-grid {
    padding-top: 48px;
    padding-bottom: 56px;
    gap: 24px;
  }
  .hero-lead {
    font-size: 18px;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .training,
  .contact {
    padding: 32px 22px;
    border-radius: 28px;
  }
  .contact-form {
    padding: 22px;
  }
  .case__copy {
    padding: 28px;
  }
  .case__stats {
    grid-template-columns: 1fr;
  }
  .calc__result {
    padding: 28px;
  }
  .promises > div {
    padding: 28px;
  }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .btn {
    flex: 1;
  }
  .mobile-cta .icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
  }
}

@media (max-width: 620px) {
  .phones {
    height: 400px;
    transform: scale(0.62);
    transform-origin: top left;
    width: 540px;
    max-width: none;
  }
  .hero-visual {
    justify-content: flex-start;
    height: 400px;
    overflow: visible;
  }
  .toast-card,
  .flow-card {
    display: none;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 16px;
  }
  .theme-switch {
    width: 72px;
  }
  :root[data-theme="oscuro"] .theme-switch__knob {
    transform: translateX(28px);
  }
  .phones {
    transform: scale(0.56);
  }
  .hero-visual {
    height: 360px;
  }
}

/* ── Movimiento reducido ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-on .reveal {
    opacity: 1;
    transform: none;
  }
  .flow-card__step,
  .bubble--out {
    opacity: 1;
  }
  .bubble--typing {
    display: none;
  }
}
