/* ==========================================================================
   PalmCode — Sistema de diseño
   1. Tokens   2. Base   3. Layout   4. Tipografía   5. Botones
   6. Navbar   7. Hero   8. Bento   8b. Soluciones y licencia    9. Enfoque (sección oscura)
   10. CTA     11. Footer  11b. WhatsApp  12. Páginas internas  13. Utilidades / motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Superficies */
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #FBFBFD;
  --hairline: rgba(0, 0, 0, 0.08);

  /* Texto (contraste medido sobre #F5F5F7) */
  --text: #1D1D1F;        /* 15.4:1 */
  --text-2: #6E6E73;      /* 4.7:1  texto secundario pequeño */
  --text-3: #86868B;      /* 3.3:1  solo texto ≥ 18px o decorativo */

  /* Acento: verde palma (derivado del isotipo) */
  --accent: #0A7A55;      /* 5.3:1 sobre blanco */
  --accent-press: #07603F;
  --accent-soft: rgba(10, 122, 85, 0.10);
  --accent-text: #07603F; /* texto de acento sobre fondos tintados: 6.4:1 */
  --on-accent: #FFFFFF;
  --sand: #EDE6D6;        /* acento cálido secundario, solo en degradados */

  /* Vidrio (solo capa funcional: navbar y menú) */
  --glass: rgba(245, 245, 247, 0.72);
  --glass-strong: rgba(245, 245, 247, 0.92);

  /* Forma y profundidad */
  --r-xl: 28px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --r-pill: 980px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 40px rgba(0, 0, 0, 0.08);

  /* Movimiento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.45s;

  /* Tipografía */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --nav-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #151516;
    --hairline: rgba(255, 255, 255, 0.10);
    --text: #F5F5F7;
    --text-2: #A1A1A6;
    --text-3: #86868B;
    --accent: #3CC48E;
    --accent-press: #2FA87A;
    --accent-soft: rgba(60, 196, 142, 0.14);
    --accent-text: #3CC48E;
    --on-accent: #04130D;
    --sand: #2A261E;
    --glass: rgba(22, 22, 23, 0.72);
    --glass-strong: rgba(22, 22, 23, 0.94);
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 18px 40px rgba(0, 0, 0, 0.5);
  }
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17px, tamaño por defecto de Apple */
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* 3. LAYOUT ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.is-center { margin-inline: auto; text-align: center; }

/* 4. TIPOGRAFÍA ------------------------------------------------------------ */
.display {
  margin: 0;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.9vw, 3.5rem);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-size: 1.3125rem;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lead {
  margin: 20px 0 0;
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.38;
  color: var(--text-2);
  letter-spacing: -0.018em;
  text-wrap: pretty;
  max-width: 34em;
}
.body-2 { color: var(--text-2); margin: 8px 0 0; text-wrap: pretty; }
.small { font-size: 0.875rem; line-height: 1.43; letter-spacing: -0.01em; }

/* 5. BOTONES --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.016em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }

.btn-tinted { background: var(--accent-soft); color: var(--accent-text); }
.btn-tinted:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }

.btn-plain { background: transparent; color: var(--accent); padding-inline: 8px; }
.btn-plain:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn-sm { min-height: 32px; padding: 0 14px; font-size: 0.875rem; }
/* El área táctil se mantiene en 44px aunque el botón se vea pequeño */
.btn-sm { position: relative; }
.btn-sm::after { content: ""; position: absolute; inset: -6px 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.is-center { justify-content: center; }

/* 6. NAVBAR (capa funcional → único lugar con vidrio) ---------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.brand-mark { width: 26px; height: 27px; fill: currentColor; flex: none; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-links-cta,
.nav-links .nav-links-utility { display: none; }

/* Acceso clientes: enlace utilitario, separado de la navegación y sin competir con el CTA */
.nav-utility {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-right: -8px;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.nav-utility::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 16px;
  background: var(--hairline);
  transform: translateY(-50%);
}
.nav-utility:hover { color: var(--text); }
.nav-utility-icon,
.nav-links-utility svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
/* En tablet horizontal solo se muestra el ícono; el texto sigue disponible para lectores de pantalla */
@media (min-width: 768px) and (max-width: 979px) {
  .nav-utility { padding-left: 14px; }
  .nav-utility-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-lines span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.nav-toggle-lines span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav-toggle-lines { display: grid; }

@media (max-width: 767px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    min-height: calc(100dvh - var(--nav-h));
    padding: 8px var(--gutter) 28px;
    /* Superficie opaca: un blur anidado dentro de la barra no desenfoca la página */
    background: var(--bg);
    box-shadow: 0 1px 0 var(--hairline);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a {
    display: flex;
    min-height: 52px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }
  .nav-links .nav-links-cta { display: block; margin-top: 20px; }
  .nav-links .nav-links-cta a { border: 0; }
  .nav-utility { display: none; }
  .nav-links .nav-links-utility { display: block; }
  .nav-links .nav-links-utility a {
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-top: 8px;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text-2);
    border: 0;
  }
  .nav-links .nav-links-cta .btn { width: 100%; font-size: 1.0625rem; color: var(--on-accent); border-radius: var(--r-pill); justify-content: center; }
}

/* 7. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: var(--section-y);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* Degradado sutil: verde palma + arena, detrás del isotipo */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -10%;
  width: min(1100px, 140vw);
  aspect-ratio: 1.4;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 42% 42%, var(--accent-soft), transparent 70%),
    radial-gradient(closest-side at 62% 52%, color-mix(in srgb, var(--sand) 70%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero .lead { margin-inline: auto; }
/* Titular B2B más largo: escala algo menor para que los CTA queden sobre el pliegue */
.hero .display {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2.5rem, 1.2rem + 4.4vw, 4.75rem);
}
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 20px; color: var(--text-2); }

/* Firma visual: la palmera se abre una sola vez al cargar */
.hero-palm {
  width: clamp(84px, 11vw, 128px);
  height: auto;
  margin: 0 auto clamp(20px, 3vw, 32px);
  fill: var(--text);
  overflow: visible;
}
.hero-palm .trunk {
  transform-box: view-box;
  transform-origin: 640px 1132px;
  animation: trunk-rise 0.8s var(--ease) both;
}
.hero-palm .frond {
  transform-box: view-box;
  transform-origin: 627px 560px;
  animation: frond-open 0.9s var(--ease) both;
  animation-delay: calc(0.35s + var(--i) * 45ms);
}
@keyframes trunk-rise { from { transform: scaleY(0.2); opacity: 0; } }
@keyframes frond-open { from { transform: scale(0.3) rotate(-6deg); opacity: 0; } }

.hero-copy { animation: rise 0.9s var(--ease) 0.55s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* 8. BENTO GRID ------------------------------------------------------------ */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 680px) and (max-width: 1023px) {
  .bento .span-wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .bento > * { grid-column: span 2; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-3 { grid-column: span 3; }
  .bento .row-2 { grid-row: span 2; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card.is-lg { border-radius: var(--r-lg); }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  padding: 8px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card .h3 + .body-2 { max-width: 30em; }
.card-foot { margin-top: auto; padding-top: 28px; }

/* Visual: anillos de rendimiento (tarjeta Desarrollo web) */
.scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.score { display: grid; justify-items: center; gap: 10px; text-align: center; }
.score-ring { position: relative; width: clamp(56px, 8vw, 84px); aspect-ratio: 1; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 7; }
.score-ring .track { stroke: var(--accent-soft); }
.score-ring .value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: calc(264 - 264 * var(--v) / 100);
}
.score-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(1rem, 0.8rem + 0.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.score span { font-size: 0.8125rem; line-height: 1.3; color: var(--text-2); letter-spacing: -0.005em; }

/* Visual: línea de código (tarjeta APIs) */
.code-line {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-2);
  overflow-x: auto;
  white-space: nowrap;
}
.code-line .ok { color: var(--accent); font-weight: 600; }

/* Visual: estado (tarjeta Soporte) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--text-2);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* 8b. TARJETAS DE SOLUCIÓN (A medida / SaaS local) ------------------------- */
.solution .h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  letter-spacing: -0.026em;
}
.solution > .body-2 { font-size: 1.0625rem; max-width: 34em; }
.solution-visual { margin-top: 28px; }
.solution-fit {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--text-2);
}
.solution-fit strong { color: var(--text); font-weight: 600; }
.solution-link { margin: 10px 0 0 -8px; }
.solution .card-foot { padding-top: 32px; }

/* Etiquetas de lo que incluye */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Ventana de ejemplo: sistemas instalados en el equipo del cliente */
.app-window {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
}
.app-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
}
.app-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: 0.35;
}
.app-window-bar p {
  flex: 1;
  margin: 0 33px 0 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}
.app-window ul,
.app-window ol { margin: 0; padding: 0; list-style: none; }
.app-window li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.app-window li + li { border-top: 1px solid var(--hairline); }
.app-row-icon {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 6px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-row-name { flex: 1; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.01em; }
.app-row-name small {
  display: block;
  margin-top: 1px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
/* Número de etapa: el contenido sí es una secuencia */
.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.app-row-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.app-row-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.app-window-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  color: var(--text-2);
}

/* Fases de la licencia */
.phase-note { margin: 4px 0 8px; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.feature-list li:last-child { padding-bottom: 0; }
.feature-list .card-icon { width: 36px; height: 36px; padding: 7px; margin: 0; }
.feature-list .body-2 { margin-top: 2px; font-size: 0.9375rem; }
.feature-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

/* Badge del hero */
.badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 0 0 24px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
}
.badge svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.badge-sep { width: 1px; height: 12px; background: var(--hairline); }
@media (max-width: 420px) { .badge-sep { display: none; } .badge { gap: 2px 8px; border-radius: var(--r-md); } }

/* Nota bajo las etiquetas de tecnología */
.tags-note { margin: 12px 0 0; max-width: 36em; }

/* Lo que incluye la suscripción, bajo el panel */
.solution-includes {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
  font-style: italic;
}

/* Beneficios de ejecución local (sección oscura) */
.benefits {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 800px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.benefit { padding: clamp(28px, 3.5vw, 44px); background: #000; }
.benefit .body-2 { max-width: 30em; }
.dark .card-icon { background: var(--accent-soft); color: var(--accent); }

/* Panel de ingeniería */
.engineering { padding: clamp(28px, 5vw, 64px); }
@media (hover: hover) { .engineering:hover { transform: none; box-shadow: var(--shadow-1); } }

/* 9. ENFOQUE (sección oscura, siempre en negro) ---------------------------- */
.dark {
  --text: #F5F5F7;
  --text-2: #A1A1A6;   /* 8.2:1 sobre #000 */
  --hairline: rgba(255, 255, 255, 0.14);
  --accent: #3CC48E;
  --accent-soft: rgba(60, 196, 142, 0.14);
  --accent-text: #3CC48E;
  background: #000;
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(56px, 8vw, 96px);
  padding: 0;
  list-style: none;
  background: var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metric { padding: clamp(24px, 3vw, 36px); background: #0A0A0A; }
.metric-value {
  display: block;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.metric-value small { font-size: 0.5em; font-weight: 600; letter-spacing: -0.02em; margin-left: 2px; }
.metric-label { display: block; margin-top: 12px; font-size: 0.9375rem; line-height: 1.4; color: var(--text-2); }

.principles {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { padding-top: 24px; border-top: 1px solid var(--hairline); }
.principles.mt-m { margin-top: 24px; }

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.stack .tech {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
/* Tecnologías optimizadas para alta densidad: punto de acento + tooltip */
.stack .tech.is-dense { padding-left: 26px; color: var(--text); cursor: default; }
.tech.is-dense::before,
.tech-legend-dot {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}
.tech.is-dense::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 7px 12px;
  border-radius: 10px;
  background: #1D1D1F;
  color: #F5F5F7;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.tech.is-dense:hover,
.tech.is-dense:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.tech.is-dense:hover::after,
.tech.is-dense:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.tech.is-dense:focus-visible { outline-offset: 2px; border-radius: var(--r-pill); }
@media (prefers-color-scheme: dark) {
  .tech.is-dense::after { background: #F5F5F7; color: #1D1D1F; }
}
.tech-legend { position: relative; margin: 16px 0 0; padding-left: 14px; }
.tech-legend-dot { left: 0; }

/* 10. CTA ------------------------------------------------------------------ */
.cta-panel {
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-1);
  text-align: center;
}
.cta-panel .lead { margin-inline: auto; }
.cta-panel .btn-row { margin-top: 32px; }

/* 11. FOOTER --------------------------------------------------------------- */
.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { margin: 0 0 8px; }
.footer-brand p { margin: 0; max-width: 28em; }
.footer-col h2 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a:hover { color: var(--text); }

/* 11b. BOTÓN FLOTANTE DE WHATSAPP (capa funcional → vidrio permitido) ----- */
.wa-fab {
  --wa-glass: rgba(255, 255, 255, 0.72);
  --wa-border: rgba(0, 0, 0, 0.08);
  position: fixed;
  z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px 7px 7px;
  border: 1px solid var(--wa-border);
  border-radius: var(--r-pill);
  background: var(--wa-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.07);
  color: var(--text);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              opacity 0.3s var(--ease), visibility 0.3s;
  animation: wa-in 0.6s var(--ease) 1.4s both;
}
@media (min-width: 768px) {
  .wa-fab { right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes wa-in { from { opacity: 0; transform: translateY(12px); } }

@media (hover: hover) {
  .wa-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 32px rgba(0, 0, 0, 0.10);
  }
}
.wa-fab:active { transform: scale(0.97); }
.wa-fab:focus-visible { border-radius: var(--r-pill); }

.wa-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.wa-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.wa-icon .wa-dots { stroke-width: 2.2; }

/* Punto de disponibilidad: verde en horario de atención, gris fuera de él */
.wa-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 0 0 2px var(--surface);
}
.wa-fab[data-state="online"] .wa-dot { background: var(--accent); }

.wa-text { display: grid; line-height: 1.2; }
.wa-title { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.012em; }
.wa-sub { font-size: 0.75rem; color: var(--text-2); letter-spacing: -0.004em; }

/* Móvil: solo el ícono, para no tapar contenido */
@media (max-width: 767px) {
  .wa-fab { gap: 0; padding: 5px; }
  .wa-icon { width: 42px; height: 42px; }
  .wa-text {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .site-footer { padding-bottom: 96px; }
}

/* Se oculta mientras el menú móvil está abierto */
.menu-open .wa-fab { opacity: 0; visibility: hidden; pointer-events: none; }

@media (prefers-color-scheme: dark) {
  .wa-fab {
    --wa-glass: rgba(44, 44, 46, 0.72);
    --wa-border: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
}
/* Sobre secciones oscuras, el vidrio pasa a su variante oscura */
.site-header.on-dark:not(.is-open),
.wa-fab.on-dark {
  --text: #F5F5F7;
  --text-2: #A1A1A6;
  --surface: #2C2C2E;
  --hairline: rgba(255, 255, 255, 0.12);
  --accent: #3CC48E;
  --accent-press: #2FA87A;
  --accent-soft: rgba(60, 196, 142, 0.16);
  --on-accent: #04130D;
  --glass: rgba(22, 22, 23, 0.72);
  --bg: #161617;
}
.wa-fab.on-dark {
  --wa-glass: rgba(44, 44, 46, 0.72);
  --wa-border: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

@media (prefers-reduced-transparency: reduce) {
  .wa-fab { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wa-fab { background: var(--surface); }
}
@media print { .wa-fab { display: none; } }

/* 12. PÁGINAS INTERNAS ----------------------------------------------------- */
.page-hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
}
.page-hero .display { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.grid-2 { display: grid; gap: 16px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.checklist { margin: 16px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.checklist li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--hairline); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* 12b. DOCUMENTOS LEGALES ------------------------------------------------- */
.legal-meta { margin-top: 20px; }
.summary-grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .summary-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.summary-grid .card-icon { margin-bottom: 16px; }

.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.toc {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.toc h2 { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: -0.005em; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.toc a:hover { color: var(--text); }

.prose { max-width: 42em; }
.prose h2 {
  margin: 56px 0 12px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.022em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.016em; }
.prose p, .prose li { color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 1.2em; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .table-wrap { margin: 16px 0 20px; overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--hairline); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.prose th { font-size: 0.8125rem; font-weight: 600; background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.prose .callout {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.prose .callout p:last-child { margin-bottom: 0; }

/* Datos por completar antes de publicar: muy visibles a propósito */
mark.todo {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 196, 0, 0.32);
  color: var(--text);
  font-weight: 500;
}

/* 12c. PÁGINAS DE SERVICIO (/a-medida, /saas-local) ------------------------ */
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-hero .btn-row { margin-top: 32px; }

/* Tarjetas de servicio con ejemplos */
.service .tags { margin-top: 18px; }
.service .h3 { font-size: clamp(1.3125rem, 1.15rem + 0.5vw, 1.5rem); }

/* Casos de clientes */
.cases { display: grid; gap: 16px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.case-industry { margin: 0 0 6px; }
.case-facts { margin: 20px 0 0; }
.case-facts div { padding: 14px 0; border-top: 1px solid var(--hairline); }
.case-facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.case-facts dd { margin: 4px 0 0; font-size: 0.9375rem; color: var(--text-2); }
.case-result {
  margin-top: auto;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.case-facts + .case-result { margin-top: 8px; }
.case-result strong {
  display: block;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--accent);
}
.case-result span { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--text); }

/* Proceso en etapas (secuencia real → numerada) */
.process { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 680px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.process .step-num { width: 36px; height: 36px; margin-bottom: 20px; background: var(--accent-soft); font-size: 1rem; }
.process .body-2 { font-size: 0.9375rem; }
.process-output { margin: auto 0 0; padding-top: 18px; font-size: 0.875rem; color: var(--text-2); }
.process .body-2 + .process-output { margin-top: auto; }
.process-output strong { display: block; color: var(--text); font-weight: 600; }

/* Preguntas frecuentes (details nativo: accesible y sin JavaScript) */
.faq { max-width: 820px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { margin: 0 0 22px; max-width: 40em; color: var(--text-2); }

/* Módulos del sistema de gestión */
.module .checklist { margin-top: 18px; font-size: 0.9375rem; }
.module-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.module.is-featured { background: linear-gradient(160deg, var(--accent-soft), transparent 55%), var(--surface); }
@media (min-width: 680px) { .module.is-featured .checklist { columns: 2; column-gap: 32px; } .module.is-featured .checklist li { break-inside: avoid; } }

/* Precio y formas de prueba */
.pricing { display: grid; gap: 16px; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.15fr 1fr; gap: 20px; } }
.pricing-side { display: grid; gap: 16px; }
@media (min-width: 900px) { .pricing-side { gap: 20px; } }
.price { margin: 8px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price strong {
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 3.75rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price span { font-size: 1.0625rem; color: var(--text-2); }
.price-note { margin: 0; }
.pricing .checklist { margin-top: 24px; }
.pricing .card-foot .btn-row { margin-top: 4px; }

/* 12d. FORMULARIOS -------------------------------------------------------- */
.contact-layout { display: grid; gap: 16px; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; } }
.contact-side { display: grid; gap: 16px; }
@media (min-width: 960px) { .contact-side { gap: 20px; position: sticky; top: calc(var(--nav-h) + 20px); } }

.form { display: grid; gap: 20px; margin-top: 24px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--text);
}
.field .optional { font-weight: 400; color: var(--text-2); }
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1.0625rem;
  letter-spacing: -0.016em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.input:user-invalid { border-color: #D70015; }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.45; }
select.input {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
@media (prefers-color-scheme: dark) { .input:user-invalid { border-color: #FF6961; } }

/* Selector de tipo de solución: radios con aspecto de píldora */
fieldset.field { margin: 0; padding: 0; border: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.choice input:hover + span { border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-legal { margin: 0; }
.form-legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 14px 16px; border-radius: var(--r-sm); background: rgba(215, 0, 21, 0.08); color: var(--text); }
.form-success { text-align: center; padding: clamp(24px, 5vw, 48px) 0; }
.form-success .card-icon { margin: 0 auto 20px; width: 56px; height: 56px; padding: 12px; }
.form-success .body-2 { margin-inline: auto; max-width: 28em; }

.contact-channel .btn-row { margin-top: 4px; }
@media (min-width: 1024px) { .process.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 13. UTILIDADES Y MOVIMIENTO ---------------------------------------------- */
.mt-0 { margin-top: 0; }
.section.pt-0 { padding-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(48px, 6vw, 72px); }
.text-center { text-align: center; }
.text-2 { color: var(--text-2); }
.accent { color: var(--accent); }

/* Aparición al hacer scroll: solo si JS está activo (sin JS todo es visible) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Sin vidrio si el sistema lo pide o el navegador no lo soporta */
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .site-header.is-open, .nav-links {
    background: var(--bg) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled, .site-header.is-open, .nav-links { background: var(--bg); }
}

@media (prefers-contrast: more) {
  :root { --text-2: var(--text); --hairline: rgba(127, 127, 127, 0.6); }
  .card { box-shadow: 0 0 0 1px var(--hairline); }
}

/* En modo oscuro la sección negra se separa con una superficie apenas más clara */
@media (prefers-color-scheme: dark) {
  .dark { background: var(--surface-2); }
  .dark .benefit, .dark .metric { background: #000; }
}
