/* ==========================================================================
   Master Marketing — sitio público (OWNER: front agent)
   Estilo "dark void + particle brain" (DESIGN-1.md) con la paleta del logo.
   Los tokens (--mm-*) y @font-face viven en tokens.css, que head.ejs ya enlaza
   antes de este archivo (no se usa @import para no encadenar descargas).
   Mobile-first. Contenido agrupado en tarjetas con borde sutil (ver bloque "Claridad / affordance" al final).
   ========================================================================== */

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

html {
  background: var(--mm-bg);
  color: var(--mm-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mm-header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: var(--mm-font-body);
  font-weight: var(--mm-fw-body);
  font-size: var(--mm-fs-body);
  line-height: var(--mm-lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.nav-open, .nav-open body { overflow: hidden; }

img, picture, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-display);
  line-height: var(--mm-lh-heading);
  letter-spacing: var(--mm-track-heading);
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* En teléfonos, palabras largas ("automatizaciones") no deben desbordar a 42px */
@media (max-width: 480px) { h1, h2, h3 { hyphens: auto; } }
p { margin: 0; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong, b { font-weight: 500; }
address { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }

a { color: var(--mm-accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--mm-text); }

::selection { background: var(--mm-selection); color: var(--mm-text); }

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

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--mm-radius);
  background: var(--mm-accent);
  color: var(--mm-accent-contrast);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: var(--mm-fs-label);
  text-transform: uppercase;
  letter-spacing: var(--mm-track-label);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: calc(var(--mm-max) + 2 * var(--mm-gutter));
  margin-inline: auto;
  padding-inline: max(var(--mm-gutter), env(safe-area-inset-left)) max(var(--mm-gutter), env(safe-area-inset-right));
}

.section {
  position: relative;
  padding-block: calc(var(--mm-section-y) / 2);
}
.section--flush-top { padding-top: 0; }
main > .section:last-child:not(.cta) { padding-bottom: var(--mm-section-y); }

/* ---------------------------------------------------------------- tipografía */
.display {
  font-size: var(--mm-fs-display); /* 34px en teléfonos → ~50px tablet → 72px */
  line-height: 1.06;
  letter-spacing: var(--mm-track-display);
}
.display--md { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); line-height: 1.06; }

.h-page {
  font-size: var(--mm-fs-h1);
  line-height: 1.08;
  letter-spacing: var(--mm-track-display);
  max-width: 18ch;
}
.h-section {
  font-size: var(--mm-fs-h2);
  line-height: 1.12;
  letter-spacing: var(--mm-track-display);
}
.h-sub {
  font-size: var(--mm-fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  font-size: var(--mm-fs-lead);
  color: var(--mm-text-muted);
  max-width: 46ch;
}
.lead > p + p { margin-top: 0.8em; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--mm-space-5);
  color: var(--mm-accent-text);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: var(--mm-fs-label);
  line-height: 1.2;
  letter-spacing: var(--mm-track-label);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  flex: none;
  width: 10px;
  height: 9px;
  background: var(--mm-accent-strong);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M5 .8 9.3 8.3H.7Z' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M5 .8 9.3 8.3H.7Z' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.hl { font-style: normal; color: var(--mm-accent-text); }

.icon { width: 24px; height: 24px; flex: none; }
.icon--lg { width: 32px; height: 32px; }

/* ---------------------------------------------------------------- botones y links
   Reglas (docs/THEMING.md → "Componentes"):
   - .btn-primary: relleno cian + texto negro, borde fino para que se recorte sobre blanco; hover/active/foco.
   - .btn-outline (alias .btn-ghost / .btn-secondary): contorno 1.5px visible, para acciones secundarias importantes.
   - .link-arrow: enlace de texto con flecha, en color de enlace; subraya al pasar. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--mm-radius-pill);
  font-family: var(--mm-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--mm-dur) var(--mm-ease), color var(--mm-dur) var(--mm-ease), border-color var(--mm-dur) var(--mm-ease), box-shadow var(--mm-dur) var(--mm-ease), transform 120ms var(--mm-ease);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--mm-focus-color); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: var(--mm-accent);
  border-color: color-mix(in srgb, var(--mm-accent) 70%, #000);
  color: var(--mm-accent-contrast);
  box-shadow: 0 1px 2px rgba(11, 15, 20, 0.12);
}
.btn-primary:hover { background: var(--mm-accent-hover); border-color: color-mix(in srgb, var(--mm-accent-hover) 70%, #000); color: var(--mm-accent-contrast); box-shadow: 0 4px 14px rgba(26, 185, 239, 0.3); }
.btn-primary:active { box-shadow: none; }
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }
.btn-outline, .btn-ghost, .btn-secondary {
  background: transparent;
  border-color: var(--mm-text);
  color: var(--mm-text);
  box-shadow: none;
}
.btn-outline:hover, .btn-ghost:hover, .btn-secondary:hover { background: var(--mm-surface-2); border-color: var(--mm-accent-strong); color: var(--mm-text); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.875rem; }
.btn-wa svg, .wa-ico { color: #1DA851; }
:root[data-theme="dark"] .btn-wa svg { color: #25D366; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--mm-accent-text);
  font-family: var(--mm-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  text-transform: none;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color var(--mm-dur) var(--mm-ease), text-decoration-color var(--mm-dur) var(--mm-ease);
}
.link-arrow__icon { width: 18px; height: 18px; transition: transform var(--mm-dur) var(--mm-ease); }
.link-arrow:hover { color: var(--mm-text); text-decoration-color: currentColor; }
.link-arrow:hover .link-arrow__icon { transform: translateX(4px); }
.link-arrow--muted { color: var(--mm-text-muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: var(--mm-space-6);
}
.actions--center { justify-content: center; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color var(--mm-dur) var(--mm-ease);
}
.site-header.is-scrolled { background: var(--mm-header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--mm-border); }
.nav-open .site-header { background: var(--mm-bg); box-shadow: none; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--mm-header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--mm-text);
  text-decoration: none;
  font-family: var(--mm-font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--mm-text); }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; }

/* Navegación de escritorio (≥ 1100px). Por debajo: botón hamburguesa + hoja a pantalla completa.
   Ítems en tipografía normal (no versalitas) para que se lean de un vistazo; el activo lleva subrayado cian. */
.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--mm-radius-pill);
  background: transparent;
  color: var(--mm-text);
  font-family: var(--mm-font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--mm-dur) var(--mm-ease), background-color var(--mm-dur) var(--mm-ease);
}
.site-nav__link:hover, .site-nav__btn[aria-expanded="true"] { color: var(--mm-text); background: var(--mm-surface-2); }
.site-nav__link[aria-current="page"], .site-nav__btn.is-active {
  color: var(--mm-accent-text);
  text-decoration: underline;
  text-decoration-color: var(--mm-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.site-nav__chev { width: 16px; height: 16px; flex: none; transition: transform var(--mm-dur) var(--mm-ease); }
.site-nav__btn[aria-expanded="true"] .site-nav__chev { transform: rotate(180deg); }

/* Panel del desplegable: tarjeta con borde + sombra (ambos temas). Visible con .is-open (JS) o, sin JS,
   con :hover / :focus-within. Un "puente" invisible evita que se cierre al bajar el mouse. */
.site-nav__dd {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 60;
  width: max-content;
  min-width: 260px;
  max-width: 340px;
  padding: 8px;
  border: 1px solid var(--mm-border-strong);
  border-radius: 16px;
  background: var(--mm-surface);
  box-shadow: var(--mm-shadow-lg);
  transform: translateX(-50%);
}
.site-nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
:root.js .site-nav__item:not(.is-open) > .site-nav__dd { display: none; }
:root:not(.js) .site-nav__item:not(:hover):not(:focus-within) > .site-nav__dd { display: none; }
.site-nav__item.is-open > .site-nav__dd { animation: mm-dd-in 180ms var(--mm-ease); }
@keyframes mm-dd-in { from { opacity: 0; transform: translate(-50%, -4px); } to { opacity: 1; transform: translate(-50%, 0); } }
.site-nav__dd-list { list-style: none; display: grid; gap: 2px; }
.site-nav__dd-link {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--mm-text);
  text-decoration: none;
  transition: background-color var(--mm-dur) var(--mm-ease);
}
.site-nav__dd-link:hover, .site-nav__dd-link:focus-visible { background: var(--mm-surface-2); color: var(--mm-text); }
.site-nav__dd-link:focus-visible { outline-offset: -2px; }
.site-nav__dd-label { font-family: var(--mm-font-display); font-weight: 600; font-size: 0.9375rem; }
.site-nav__dd-desc { color: var(--mm-text-subtle); font-size: 0.875rem; line-height: 1.35; }
.site-nav__dd-link[aria-current="page"] .site-nav__dd-label { color: var(--mm-accent-text); }
.site-nav__dd-link[aria-current="page"] { background: var(--mm-accent-soft); }

/* Campus: acceso de alumnos, distinto de la navegación (píldora con contorno + ícono de birrete) */
.site-campus {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px 8px 13px;
  border: 1.5px solid var(--mm-border-strong);
  border-radius: var(--mm-radius-pill);
  color: var(--mm-text);
  font-family: var(--mm-font-display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color var(--mm-dur) var(--mm-ease), background-color var(--mm-dur) var(--mm-ease), color var(--mm-dur) var(--mm-ease);
}
.site-campus__ico { width: 18px; height: 18px; flex: none; color: var(--mm-accent-strong); }
.site-campus:hover { border-color: var(--mm-accent-strong); background: var(--mm-accent-soft); color: var(--mm-text); }
.site-campus[aria-current="page"] { border-color: var(--mm-accent-strong); color: var(--mm-accent-text); }

.site-header__cta { display: none; }

.nav-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--mm-border-strong);
  border-radius: 12px;
  background: var(--mm-surface);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--mm-text); }
.nav-toggle__bar {
  position: absolute;
  left: 11px;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--mm-text);
  transition: transform var(--mm-dur) var(--mm-ease), opacity var(--mm-dur) var(--mm-ease);
}
.nav-toggle__bar:nth-child(1) { transform: translateY(-6px); }
.nav-toggle__bar:nth-child(3) { transform: translateY(6px); }
.nav-open .nav-toggle__bar:nth-child(1) { transform: rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg); }

/* Menú móvil: hoja a pantalla completa abierta por /js/site.js (sin JS, la navegación completa está en el footer).
   Enlaces de 56px de alto, grupos (ítems con subítems) con título y sublista con sangría, CTA + WhatsApp +
   Campus como botones a lo ancho, selector de tema y márgenes seguros (notch / barra de gestos). */
.mobile-menu {
  position: fixed;
  inset: var(--mm-header-h) 0 0 0;
  z-index: 49;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 8px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  background: var(--mm-bg);
  border-top: 1px solid var(--mm-border);
}
.nav-open .mobile-menu { display: block; animation: mm-sheet-in 280ms var(--mm-ease); }
@keyframes mm-sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu__list, .mobile-menu__sub { list-style: none; }
.mobile-menu__list > li + li { border-top: 1px solid var(--mm-border); }
.mobile-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-block: 8px;
  color: var(--mm-text);
  font-family: var(--mm-font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.mobile-menu__list a::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
}
.mobile-menu__list a[aria-current="page"] { color: var(--mm-accent-text); }
.mobile-menu__list a[aria-current="page"]::after { opacity: 1; }
.mobile-menu__group { padding-block: 12px 8px; }
.mobile-menu__group-title {
  margin-bottom: 4px;
  color: var(--mm-text-subtle);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mobile-menu__sub { margin-left: 4px; padding-left: 16px; border-left: 2px solid var(--mm-accent-strong); }
.mobile-menu__sub a { min-height: 48px; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem); }
.mobile-menu__foot { display: grid; gap: 10px; margin-top: 24px; }
.mobile-menu__theme { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--mm-border); }
.mobile-menu__label {
  margin-bottom: 10px;
  color: var(--mm-text-subtle);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 1100px) {
  .site-nav { display: block; margin-left: auto; }
  .site-campus { display: inline-flex; margin-left: 8px; }
  .site-header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu, .nav-open .mobile-menu { display: none; }
  .brand { margin-right: 0; }
  .site-header__inner { gap: 12px; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  .site-nav__link { padding-inline: 11px; }
  .site-campus { padding-inline: 11px 13px; }
}

/* ---------------------------------------------------------------- canvas del cerebro */
.brain-canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--mm-ease);
}
.brain-canvas.is-ready { opacity: 1; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: calc(var(--mm-section-y) / 2);
}
.hero__grid {
  display: grid;
  gap: clamp(8px, 3vw, 48px);
  align-items: center;
}
.hero__text { position: relative; z-index: 1; }
.hero__lead { margin-top: var(--mm-space-5); max-width: 42ch; }
.hero .display { max-width: 16ch; }

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  margin-block: -8% -10%;
}
/* halo previo al JS / sin JS */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: var(--mm-brain-halo, radial-gradient(closest-side, rgba(26, 185, 239, 0.14), rgba(11, 95, 128, 0.06) 55%, transparent 75%));
  pointer-events: none;
}
.hero__visual canvas { position: absolute; inset: -6%; width: 112%; height: 112%; }
.hero__visual--image { aspect-ratio: auto; margin-block: 0; }
.hero__visual--image::before { display: none; }
.hero__visual--image img { width: 100%; border-radius: var(--mm-radius); object-fit: cover; }
.hero__visual--compact { max-width: 440px; }
.hero--none .hero__grid { grid-template-columns: 1fr; }

@media (min-width: 960px) {
  .hero--brain, .hero--image { min-height: min(700px, calc(100svh - var(--mm-header-h))); display: flex; align-items: center; }
  .hero--brain > .container, .hero--image > .container { width: 100%; }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .hero__visual { margin-block: 0; max-width: 560px; }
  .hero--service .hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- intro de página */
.page-intro {
  padding-top: clamp(24px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 88px);
}
.page-intro__lead { margin-top: var(--mm-space-5); }
.page-intro__meta { margin-top: var(--mm-space-4); color: var(--mm-text-subtle); font-size: var(--mm-fs-small); }
.crumbs-wrap { padding-top: 12px; }

/* ---------------------------------------------------------------- migas de pan */
.breadcrumbs { margin-bottom: var(--mm-space-6); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-size: var(--mm-fs-small); color: var(--mm-text-subtle); }
.breadcrumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--mm-text-subtle); opacity: .6; }
.breadcrumbs a { color: var(--mm-text-subtle); text-decoration: none; }
.breadcrumbs a:hover { color: var(--mm-text); }
.breadcrumbs [aria-current] { color: var(--mm-text-muted); }

/* ---------------------------------------------------------------- encabezado de sección */
.section-head { display: grid; gap: var(--mm-space-5); margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .h-section { max-width: 18ch; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 64px; }
  .section-head--split .section-head__body { padding-bottom: 8px; }
}
.section-foot { margin-top: var(--mm-space-7); }

/* ---------------------------------------------------------------- texto + visual (zigzag) */
.split { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__body { margin-top: var(--mm-space-5); }
.split__cta { margin-top: var(--mm-space-6); }
.split__visual { position: relative; }
.split__img, .split__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--mm-radius);
  background: var(--mm-surface-2);
}
.split__visual--brain { aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-inline: auto; background: var(--mm-brain-halo-mini, none); }
.split__visual--brain canvas { position: absolute; inset: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.is-reverse > .split__visual { order: -1; }
}

.ticks { list-style: none; margin-top: var(--mm-space-6); display: grid; gap: 12px 32px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--mm-text-muted);
  font-size: 1rem;
  line-height: 1.45;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 10px;
  background: var(--mm-accent-strong);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M5 .8 9.3 8.3H.7Z' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Cpath d='M5 .8 9.3 8.3H.7Z' fill='none' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (min-width: 600px) { .ticks--cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- números */
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
@media (min-width: 480px) { .stats { gap: 48px 24px; } }
.stat { display: grid; gap: 12px; align-content: start; }
.stat__value {
  font-family: var(--mm-font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  line-height: 1;
  letter-spacing: var(--mm-track-display);
  color: var(--mm-text);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--mm-text-subtle); font-size: 0.9375rem; line-height: 1.4; max-width: 26ch; }
@media (min-width: 600px) { .stat__label { font-size: 1rem; } }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 48px; } }

/* ---------------------------------------------------------------- pasos */
.steps { list-style: none; display: grid; gap: 40px 32px; }
.step { display: grid; gap: 12px; align-content: start; }
.step__num {
  font-family: var(--mm-font-display);
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 3rem);
  line-height: 1;
  letter-spacing: var(--mm-track-display);
  color: transparent;
  -webkit-text-stroke: 1px var(--mm-accent-strong);
}
@supports not (-webkit-text-stroke: 1px #000) { .step__num { color: var(--mm-accent-text); } }
.step__title { font-size: 1.375rem; letter-spacing: -0.02em; }
.step__text { color: var(--mm-text-subtle); font-size: 1rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }

/* ---------------------------------------------------------------- servicios (filas) */
.svc-list { list-style: none; display: grid; gap: 8px 64px; }
@media (min-width: 900px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  gap: 20px;
  align-items: start;
  padding-block: 24px;
  color: var(--mm-text);
  text-decoration: none;
}
.svc-row__icon { color: var(--mm-accent-text); padding-top: 4px; }
.svc-row__title { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.02em; transition: color var(--mm-dur) var(--mm-ease); }
.svc-row__excerpt { display: block; margin-top: 8px; color: var(--mm-text-subtle); font-size: 1rem; }
.svc-row__arrow { width: 22px; height: 22px; margin-top: 8px; color: var(--mm-text-subtle); transition: transform var(--mm-dur) var(--mm-ease), color var(--mm-dur) var(--mm-ease); }
.svc-row:hover { color: var(--mm-text); }
.svc-row:hover .svc-row__title { color: var(--mm-accent-text); }
.svc-row:hover .svc-row__arrow { color: var(--mm-accent-text); transform: translateX(4px); }

/* listado /servicios (zigzag) */
.svc-zigzag { list-style: none; display: grid; gap: clamp(72px, 10vw, 160px); }
.svc-item__kicker { color: var(--mm-accent-text); }
.svc-item__kicker::before { display: none; }
.svc-item__kicker span { color: var(--mm-text-subtle); }
.svc-item .h-section { font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem); max-width: 20ch; }
.svc-item .lead { margin-top: var(--mm-space-5); }
.svc-item__link { color: inherit; text-decoration: none; }
.svc-item__link:hover { color: var(--mm-accent-text); }

/* ---------------------------------------------------------------- logos */
.logos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Logos a color real (sin filtros). En oscuro, cada uno sobre una ficha clara: --mm-logo-tile-bg. */
.logos__item {
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--mm-logo-tile-bg);
  transition: transform var(--mm-dur) var(--mm-ease), box-shadow var(--mm-dur) var(--mm-ease);
}
.logos__img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.logos__item:hover { transform: translateY(-2px); box-shadow: var(--mm-shadow); }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1100px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px; } }

/* ---------------------------------------------------------------- testimonios */
.quotes { display: grid; gap: 56px 64px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { margin: 0; display: grid; gap: 20px; align-content: start; }
.quote__stars { color: var(--mm-accent-text); letter-spacing: 0.2em; font-size: 0.9375rem; }
.quote__text { margin: 0; }
.quote__text p {
  font-family: var(--mm-font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.quote__text p::before { content: "“"; color: var(--mm-accent-text); }
.quote__text p::after { content: "”"; color: var(--mm-accent-text); }
.quote__who {
  color: var(--mm-text);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: var(--mm-fs-label);
  letter-spacing: var(--mm-track-label);
  text-transform: uppercase;
}
.quote__who span { color: var(--mm-text-subtle); }

/* ---------------------------------------------------------------- CTA */
.cta {
  overflow: hidden;
  padding-block: calc(var(--mm-section-y) * 0.9);
  text-align: center;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__inner { position: relative; display: grid; justify-items: center; }
.cta__title {
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: var(--mm-track-display);
  max-width: 20ch;
}
.cta__body { margin-top: var(--mm-space-5); margin-inline: auto; }

/* ---------------------------------------------------------------- texto enriquecido */
.rich { display: grid; gap: var(--mm-space-6); }
@media (min-width: 1000px) {
  .rich:not(.rich--solo) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .rich__head { position: sticky; top: calc(var(--mm-header-h) + 24px); }
}

/* ---------------------------------------------------------------- imagen */
.figure { margin-block: 0; }
.figure__img { width: 100%; border-radius: var(--mm-radius); }
.figure__caption { margin-top: 12px; color: var(--mm-text-subtle); font-size: var(--mm-fs-small); }

/* ---------------------------------------------------------------- prose (contenido largo: blog, servicios, legales) */
.prose {
  max-width: var(--mm-max-prose);
  color: var(--mm-text);
  font-size: var(--mm-fs-body);
  line-height: 1.7;
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table, .prose pre { margin: 0 0 1.25em; }
.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.prose h3 { margin: 1.8em 0 0.5em; font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; }
.prose h4 { margin: 1.6em 0 0.4em; font-size: 1.2rem; letter-spacing: -0.01em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; padding-left: 0.2em; }
.prose li::marker { color: var(--mm-accent-text); }
.prose ol li::marker { font-family: var(--mm-font-display); font-weight: 500; }
.prose strong { color: var(--mm-text); font-weight: 500; }
.prose a { color: var(--mm-accent-text); text-decoration: underline; }
.prose a:hover { color: var(--mm-text); }
.prose blockquote {
  padding-left: 24px;
  border-left: 2px solid var(--mm-accent-strong);
  font-family: var(--mm-font-display);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--mm-text);
}
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: var(--mm-radius); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose figcaption { margin-top: 10px; color: var(--mm-text-subtle); font-size: var(--mm-fs-small); }
.prose hr { height: 1px; margin: 3em 0; border: 0; background: var(--mm-border); }
.prose code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--mm-code-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
.prose pre { padding: 20px; overflow-x: auto; border-radius: 16px; background: var(--mm-code-bg); border: 1px solid var(--mm-border); line-height: 1.5; }
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--mm-border); text-align: left; vertical-align: top; }
.prose th { font-family: var(--mm-font-display); font-weight: 600; font-size: var(--mm-fs-label); letter-spacing: var(--mm-track-label); text-transform: uppercase; color: var(--mm-text-muted); }

/* ---------------------------------------------------------------- detalle de servicio */
.service__layout { display: grid; gap: 56px; }
.service__aside { display: grid; gap: 16px; align-content: start; }
.service__aside .kicker { margin-bottom: 0; }
.service__aside p { margin: 0; }
.service__aside-text { color: var(--mm-text-muted); font-size: 1rem; max-width: 36ch; }
.service__figure { margin: 0 0 16px; }
.service__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--mm-radius); }
@media (min-width: 1024px) {
  .service__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 96px; align-items: start; }
  .service__aside { position: sticky; top: calc(var(--mm-header-h) + 32px); }
}

/* ---------------------------------------------------------------- FAQ */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .faq-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq-wrap__head { position: sticky; top: calc(var(--mm-header-h) + 24px); }
}
.faq__item { border-bottom: 1px solid var(--mm-border); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color var(--mm-dur) var(--mm-ease);
}
.faq__q:hover .faq__q-text { color: var(--mm-accent-text); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; margin-top: 6px; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--mm-accent-strong);
  transition: transform var(--mm-dur) var(--mm-ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding-bottom: 28px; color: var(--mm-text-muted); max-width: 64ch; }
.faq__a p + p { margin-top: 0.8em; }

/* ---------------------------------------------------------------- contacto */
.contact { display: grid; gap: 72px; }
@media (min-width: 1000px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 96px; align-items: start; } }
.contact__hint { margin-top: 12px; color: var(--mm-text-subtle); font-size: var(--mm-fs-small); }
.contact__info { display: grid; gap: 28px; align-content: start; }
.contact__brain { position: relative; aspect-ratio: 1 / 1; max-width: 360px; width: 100%; background: var(--mm-brain-halo-mini, none); }
.contact__brain canvas { position: absolute; inset: 0; }

.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; color: var(--mm-text-muted); }
.contact-list .icon { color: var(--mm-accent-text); margin-top: 2px; }
.contact-list a { color: var(--mm-text); text-decoration: none; }
.contact-list a:hover { color: var(--mm-accent-text); }
.contact-list .link-arrow { min-height: 36px; }

.form { margin-top: 32px; }
.form__grid { display: grid; gap: 8px 32px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label {
  color: var(--mm-text-muted);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: 0.8125rem;
  letter-spacing: var(--mm-track-label);
  text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--mm-border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--mm-text);
  font-family: var(--mm-font-body);
  font-weight: 300;
  font-size: 1.125rem;
  transition: border-color var(--mm-dur) var(--mm-ease), box-shadow var(--mm-dur) var(--mm-ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--mm-accent-strong); box-shadow: 0 1px 0 0 var(--mm-accent-strong); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--mm-danger); box-shadow: 0 1px 0 0 var(--mm-danger); }
.field__error { min-height: 1.5em; color: var(--mm-danger-text); font-size: 0.875rem; }
.field__meta { display: flex; justify-content: space-between; gap: 16px; }
.field__count { color: var(--mm-text-subtle); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.form__legal { margin: 16px 0 28px; color: var(--mm-text-subtle); font-size: var(--mm-fs-small); }
.form__legal a { color: var(--mm-text-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
input:-webkit-autofill, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--mm-text);
  -webkit-box-shadow: 0 0 0 1000px var(--mm-bg) inset;
  caret-color: var(--mm-text);
}

.notice { display: grid; gap: 10px; padding: 24px 28px; border-radius: var(--mm-radius); }
.notice--ok { background: var(--mm-accent-soft); }
.notice--error { margin-top: 20px; background: rgba(255, 90, 95, 0.12); color: var(--mm-danger-text); }
.notice__title { font-family: var(--mm-font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.notice:focus { outline: none; }

/* ---------------------------------------------------------------- errores */
.error-page { position: relative; overflow: hidden; min-height: 72vh; display: flex; align-items: center; padding-block: 64px; }
.error-page__bg { position: absolute; inset: 0; pointer-events: none; }
.error-page__inner { position: relative; }
.error-page .display { max-width: 14ch; }
.error-page .lead { margin-top: var(--mm-space-5); }
.error-page__links { margin-top: 64px; }
.error-page__links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.error-page__links a { color: var(--mm-text-muted); }
.error-page__stack { margin-top: 32px; max-height: 40vh; overflow: auto; white-space: pre-wrap; font-size: 12px; color: var(--mm-text-subtle); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  color: var(--mm-text-muted);
  font-size: 1rem;
}
.footer-grid { display: grid; gap: 48px 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand__tagline { color: var(--mm-text); font-family: var(--mm-font-display); font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.3; max-width: 22ch; }
.footer-brand__desc { color: var(--mm-text-subtle); font-size: 0.9375rem; max-width: 40ch; }
.footer-col__title {
  margin-bottom: 18px;
  color: var(--mm-text-subtle);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: 0.8125rem;
  letter-spacing: var(--mm-track-label);
  text-transform: uppercase;
}
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a, .footer-nap a {
  display: inline-block;
  padding-block: 5px;
  color: var(--mm-text-muted);
  text-decoration: none;
}
.footer-col a:hover, .footer-nap a:hover { color: var(--mm-accent-text); }
.footer-nap { display: grid; gap: 10px; }
.footer-nap strong { color: var(--mm-text); font-weight: 500; }
.social { list-style: none; display: flex; gap: 8px; margin-top: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--mm-text-muted); border-radius: 50%; }
.social a:hover { color: var(--mm-accent-text); }

.footer-wordmark {
  margin: clamp(48px, 6vw, 88px) 0 0;
  font-family: var(--mm-font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--mm-accent-strong) 45%, transparent);
  user-select: none;
  overflow: hidden;
}
@supports not (-webkit-text-stroke: 1px #000) { .footer-wordmark { color: rgba(26, 185, 239, 0.12); } }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 32px;
  color: var(--mm-text-subtle);
  font-size: 0.875rem;
}
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal a { color: var(--mm-text-subtle); text-decoration: none; }
.footer-legal a:hover { color: var(--mm-text); }

/* ---------------------------------------------------------------- reveal on scroll (solo con JS) */
[data-reveal] { transition: opacity 0.9s var(--mm-ease), transform 0.9s var(--mm-ease); }
.js [data-reveal].is-pending { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
  .js [data-reveal].is-pending { opacity: 1; transform: none; }
  .brain-canvas { transition: none; }
}

/* ---------------------------------------------------------------- impresión */
@media print {
  .site-header, .site-footer, .brain-canvas, .cta, .nav-toggle, .theme-toggle { display: none !important; }
  body, html { background: #fff; color: #000; }
  .prose, .lead { color: #000; }
}

/* ---------------------------------------------------------------- teasers de blog (home, servicios) */
.teasers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--mm-space-7); }
@media (min-width: 900px) { .teasers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--mm-space-6); } }
.teaser__link { display: grid; gap: var(--mm-space-3); color: var(--mm-text); text-decoration: none; }
.teaser__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--mm-radius); margin-bottom: var(--mm-space-2); }
.teaser__cat { margin: 0; }
.teaser__title { font-family: var(--mm-font-display); font-weight: var(--mm-fw-display); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: var(--mm-lh-heading); letter-spacing: -0.02em; margin: 0; transition: color var(--mm-dur) var(--mm-ease); }
.teaser__excerpt { color: var(--mm-text-subtle); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.teaser__link:hover .teaser__title, .teaser__link:focus-visible .teaser__title { color: var(--mm-accent-text); }

/* ==========================================================================
   Tema claro / oscuro / sistema (docs/THEMING.md)
   ========================================================================== */
.theme-menu { position: relative; display: inline-flex; }
.theme-menu__btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--mm-text-subtle);
  cursor: pointer;
  transition: color var(--mm-dur) var(--mm-ease), background-color var(--mm-dur) var(--mm-ease), border-color var(--mm-dur) var(--mm-ease);
}
.theme-menu__btn:hover, .theme-menu__btn[aria-expanded="true"] { color: var(--mm-text); border-color: var(--mm-border); background: var(--mm-surface-2); }
.theme-ico { display: none; grid-area: 1 / 1; }
:root[data-theme="light"] .theme-ico--light,
:root[data-theme="dark"] .theme-ico--dark,
:root[data-theme="system"] .theme-ico--system { display: block; }
.theme-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 184px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  background: var(--mm-surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.theme-menu__list[hidden] { display: none; }
.theme-menu__list button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--mm-text);
  font-family: var(--mm-font-body);
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}
.theme-menu__list button:hover, .theme-menu__list button:focus-visible { background: var(--mm-surface-2); outline: none; }
.theme-menu__list button[aria-checked="true"] { color: var(--mm-accent-text); font-weight: 500; }
.theme-menu__list button[aria-checked="true"]::after {
  content: "";
  width: 10px;
  height: 6px;
  margin-left: auto;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
}
.theme-menu__ico { width: 20px; height: 20px; flex: none; }

.theme-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-pill);
  background: var(--mm-bg-alt);
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--mm-radius-pill);
  background: transparent;
  color: var(--mm-text-subtle);
  font-family: var(--mm-font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color var(--mm-dur) var(--mm-ease), color var(--mm-dur) var(--mm-ease);
}
.theme-switch button[aria-checked="true"] { background: var(--mm-surface); color: var(--mm-text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--mm-border); }
.theme-switch__ico { width: 18px; height: 18px; flex: none; }
/* Sin JS no hay forma de cambiar el tema: se ocultan los controles */
:root:not(.js) .theme-menu, :root:not(.js) .mobile-menu__theme { display: none; }

/* utilidades compartidas (ver docs/THEMING.md) */
.section--alt { background: var(--mm-bg-alt); }
.card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--mm-border); border-radius: var(--mm-radius); background: var(--mm-surface); }
.btn-block { display: flex; width: 100%; }

/* ==========================================================================
   Tira de logos de clientes (sección clients con layout "strip", home debajo del hero)
   ========================================================================== */
.logo-strip { position: relative; padding-block: 8px clamp(40px, 6vw, 72px); }
.logo-strip__title {
  color: var(--mm-text-subtle);
  font-family: var(--mm-font-display);
  font-weight: var(--mm-fw-label);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.logo-strip__title .hl { color: inherit; }
.logo-strip__viewport {
  --gap: clamp(40px, 6vw, 72px);
  display: flex;
  margin-top: clamp(20px, 3vw, 32px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-strip__track {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  margin: 0;
  padding: 8px var(--gap) 8px 0;
  list-style: none;
  animation: mm-marquee 45s linear infinite;
}
.logo-strip__viewport:hover .logo-strip__track,
.logo-strip__viewport:focus-within .logo-strip__track,
.logo-strip__viewport.is-offscreen .logo-strip__track { animation-play-state: paused; }
@keyframes mm-marquee { to { transform: translateX(-100%); } }
/* Logos a color real, sin filtros: scripts/home-logos.js ya los normaliza (lienzo de alto fijo con el tamaño
   óptico resuelto), así que acá sólo se fija la altura. En oscuro van sobre una ficha clara (--mm-logo-tile-bg). */
.logo-strip__item {
  flex: none;
  display: grid;
  place-items: center;
  padding: var(--mm-logo-tile-pad);
  border-radius: 12px;
  background: var(--mm-logo-tile-bg);
  transition: transform var(--mm-dur) var(--mm-ease), opacity var(--mm-dur) var(--mm-ease);
}
.logo-strip__img {
  width: auto;
  height: clamp(44px, 2vw + 30px, 58px);
  max-width: none;
  object-fit: contain;
}
.logo-strip__item:hover { transform: translateY(-2px); opacity: 0.9; }
@media (prefers-reduced-motion: reduce) {
  .logo-strip__viewport { -webkit-mask-image: none; mask-image: none; }
  .logo-strip__track { animation: none; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; gap: 24px 40px; padding: 8px var(--mm-gutter); }
  .logo-strip__track--clone { display: none; }
  .logo-strip__item:hover, .logos__item:hover, .lp-trust__item:hover { transform: none; }
}

/* ==========================================================================
   Mobile (< 960px): hero, cerebro, acciones
   ========================================================================== */
@media (max-width: 959px) {
  /* El cerebro va DETRÁS del titular (no empuja el contenido): la tira de logos queda inmediatamente
     debajo del botón principal. */
  .hero--brain, .hero--service { padding-top: 16px; padding-bottom: 28px; isolation: isolate; }
  .hero--brain .hero__visual, .hero--service .hero__visual {
    position: absolute;
    z-index: -1;
    top: -24px;
    right: -38%;
    width: min(118vw, 560px);
    max-width: none;
    margin: 0;
    opacity: var(--mm-brain-mobile-opacity, 0.38);
    pointer-events: none;
  }
  :root[data-theme="dark"] .hero--brain .hero__visual, :root[data-theme="dark"] .hero--service .hero__visual { opacity: 0.5; }
  .hero--brain .hero__visual::before, .hero--service .hero__visual::before { display: none; }
  /* Home: el cerebro va DEBAJO de los botones, en el flujo y a opacidad completa (pedido del dueño). */
  .hero--brain .hero__visual,
  :root[data-theme="dark"] .hero--brain .hero__visual {
    position: relative;
    z-index: 0;
    top: auto;
    right: auto;
    width: min(100%, 420px);
    margin: var(--mm-space-5) auto 0;
    opacity: 1;
  }
  .hero--brain .hero__visual::before { display: block; }
  .hero__lead { margin-top: var(--mm-space-4); }
  .hero .actions { margin-top: var(--mm-space-5); }
}
@media (max-width: 599px) {
  /* Botón principal a lo ancho; el enlace secundario debajo, centrado */
  .hero .actions, .cta .actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero .actions .btn, .cta .actions .btn { width: 100%; }
  .hero .actions .link-arrow, .cta .actions .link-arrow { justify-content: center; }
  .btn { padding-inline: 22px; }
  .kicker { font-size: 0.75rem; letter-spacing: 0.06em; margin-bottom: var(--mm-space-4); }
  .lead { font-size: 1.0625rem; }
  .brand { font-size: 1rem; gap: 10px; }
  .brand__mark { width: 36px; height: 36px; }
  .site-header__inner { gap: 4px; }
}
@media (max-width: 699px) {
  /* Footer: navegación y servicios lado a lado; marca de agua entera (sin cortar) */
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 20px; }
  .footer-brand, .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col a, .footer-nap a { padding-block: 8px; }
  .footer-wordmark { font-size: 10vw; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 999px) {
  .contact__brain { display: none; }
}
@media (max-width: 599px) {
  .form [type="submit"] { width: 100%; }
  .notice { padding: 20px; }
}

/* Áreas táctiles mínimas en header y footer (mobile) */
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.site-nav__link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .footer-col a, .footer-legal a, .footer-nap a, .site-footer .social a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .footer-col li { margin: 0; }
}

/* ==========================================================================
   Claridad / affordance (feedback del cliente: la UX/UI se tiene que entender mejor).
   Reglas en docs/THEMING.md → "Componentes": contenido agrupado = tarjeta con borde --mm-border y
   radio --mm-radius-md; secciones alternan --mm-bg / --mm-bg-alt; controles con borde visible y foco claro.
   ========================================================================== */
.section--alt { background: var(--mm-bg-alt); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .h-section { max-width: 22ch; }
.kicker { margin-bottom: var(--mm-space-4); font-size: 0.8125rem; }
.section-foot { margin-top: var(--mm-space-6); }
.actions { gap: 12px 16px; }

/* Servicios (filas → tarjetas cliqueables) */
.svc-list { gap: 12px 16px; }
.svc-row {
  grid-template-columns: 44px minmax(0, 1fr) 22px;
  gap: 16px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  transition: border-color var(--mm-dur) var(--mm-ease), box-shadow var(--mm-dur) var(--mm-ease);
}
.svc-list > li { display: flex; }
.svc-list > li > .svc-row { flex: 1; }
.svc-row:hover { border-color: var(--mm-card-hover-border); box-shadow: var(--mm-shadow); }
.svc-row:focus-visible { outline-offset: 2px; border-radius: var(--mm-radius-md); }
.svc-row__icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; background: var(--mm-accent-soft); color: var(--mm-accent-text); }
.svc-row__icon .icon--lg { width: 26px; height: 26px; }
.svc-row__title { font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); font-weight: 500; }
.svc-row__excerpt { font-size: 0.9375rem; color: var(--mm-text-muted); }
.svc-row__arrow { color: var(--mm-accent-strong); }

/* Números: cada cifra en su propia ficha */
.stats { gap: 12px; }
@media (min-width: 900px) { .stats { gap: 16px; } }
.stat { gap: 8px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--mm-border); border-radius: var(--mm-radius-md); background: var(--mm-surface); }
.stat__value { color: var(--mm-accent-text); }
.stat__label { color: var(--mm-text-muted); }

/* Pasos del proceso */
.steps { gap: 12px; }
@media (min-width: 640px) { .steps { gap: 16px; } }
.step { padding: 22px; border: 1px solid var(--mm-border); border-radius: var(--mm-radius-md); background: var(--mm-surface); }
.step__title { font-size: 1.1875rem; font-weight: 500; }
.step__text { color: var(--mm-text-muted); font-size: 0.9375rem; }

/* Testimonios */
.quotes { gap: 16px; }
.quote { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--mm-border); border-radius: var(--mm-radius-md); background: var(--mm-surface); }
.quote__text p { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); }

/* Teasers de blog (home) */
.teasers { gap: 16px; }
.teaser { display: flex; }
.teaser__link {
  flex: 1;
  align-content: start;
  padding: 12px 12px 20px;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-md);
  background: var(--mm-surface);
  transition: border-color var(--mm-dur) var(--mm-ease), box-shadow var(--mm-dur) var(--mm-ease);
}
.teaser__link > :not(.teaser__img) { margin-inline: 8px; }
.teaser__img { border-radius: 10px; }
.teaser__link:hover { border-color: var(--mm-card-hover-border); box-shadow: var(--mm-shadow); }
.teaser__title { font-weight: 500; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); }
.teaser__excerpt { color: var(--mm-text-muted); font-size: 0.9375rem; }

/* Listado /servicios */
.svc-zigzag { gap: clamp(40px, 6vw, 80px); }

/* FAQ (sección de servicio) */
.faq__item { margin-bottom: 10px; padding-inline: 20px; border: 1px solid var(--mm-border); border-radius: 12px; background: var(--mm-surface); transition: border-color var(--mm-dur) var(--mm-ease); }
.faq__item:hover, .faq__item[open] { border-color: var(--mm-card-hover-border); }
.faq__q { padding-block: 18px; }
.faq__q-text { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 500; }
.faq__a { padding-bottom: 20px; }

/* Formularios: caja con borde visible, etiqueta legible y anillo de foco */
.form__grid { gap: 4px 20px; }
.field label { color: var(--mm-text); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; }
.field input, .field textarea, .field select {
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--mm-border-strong);
  border-radius: 12px;
  background: var(--mm-surface);
  font-weight: 400;
  font-size: 1rem;
}
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--mm-text) 45%, transparent); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--mm-accent-strong); box-shadow: var(--mm-focus); }
.field [aria-invalid="true"] { border-color: var(--mm-danger); box-shadow: none; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.3); }
.field input::placeholder, .field textarea::placeholder { color: var(--mm-text-subtle); opacity: 1; }
input:-webkit-autofill, textarea:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--mm-surface) inset; }
.contact__form { padding: clamp(20px, 3.5vw, 40px); border: 1px solid var(--mm-border); border-radius: var(--mm-radius-md); background: var(--mm-surface); box-shadow: var(--mm-shadow); }
.contact__info { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--mm-border); border-radius: var(--mm-radius-md); background: var(--mm-bg-alt); }
.contact__wa { justify-self: start; }
.contact { gap: clamp(24px, 4vw, 40px); }
@media (min-width: 1000px) { .contact { gap: 40px; } }

.notice { border: 1px solid var(--mm-border); }
.notice--ok { border-color: color-mix(in srgb, var(--mm-accent-strong) 45%, transparent); }

.breadcrumbs { margin-bottom: var(--mm-space-5); }
.prose a, .lead a { text-decoration-thickness: 1.5px; }

/* Footer: enlace de WhatsApp con ícono; franja con borde superior para cerrar la página */
.footer-wa { display: inline-flex !important; align-items: center; gap: 8px; }
.footer-wa svg { color: #1DA851; flex: none; }
:root[data-theme="dark"] .footer-wa svg { color: #25D366; }
.site-footer { margin-top: clamp(32px, 5vw, 64px); padding-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--mm-border); background: var(--mm-bg-alt); }
/* Footer mínimo (pedido del dueño): sólo © + legales en letra chica, en una línea */
.site-footer--min { padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); font-size: 0.875rem; color: var(--mm-text-subtle); }
.footer-min { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; text-align: center; }
.footer-min__copy { margin: 0; color: var(--mm-text-muted); }
.footer-min__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; font-size: 0.75rem; }
.footer-min__legal a { display: inline-flex; align-items: center; min-height: 40px; color: var(--mm-text-subtle); text-decoration: none; }
.footer-min__legal a:hover, .footer-min__legal a:focus-visible { color: var(--mm-text); text-decoration: underline; }
@media (max-width: 599px) { .site-footer--min { padding-right: 72px; } }

/* ==========================================================================
   Botón flotante de WhatsApp (footer.ejs). Hooks para otras vistas:
   - body.no-wa → oculto (lecciones / evaluaciones del Campus).
   - --mm-wa-offset (en body o :root) → lo sube por encima de barras fijas inferiores (CTA sticky móvil).
   ========================================================================== */
.wa-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + var(--mm-wa-offset, 0px) + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: transform var(--mm-dur) var(--mm-ease), box-shadow var(--mm-dur) var(--mm-ease), bottom var(--mm-dur) var(--mm-ease);
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); }
.wa-float:focus-visible { outline: 3px solid var(--mm-focus-color); outline-offset: 3px; border-radius: 50%; }
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 900px) { .wa-float { right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + var(--mm-wa-offset, 0px) + env(safe-area-inset-bottom)); } }
body.no-wa .wa-float, .nav-open .wa-float { display: none; }
@media print { .wa-float { display: none !important; } }
.service__box { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--mm-border); border-radius: var(--mm-radius-md); background: var(--mm-bg-alt); }
.service__box .kicker { margin-bottom: 0; }
.service__box .link-arrow { justify-self: start; min-height: 36px; }
/* Listado /servicios: cada servicio es un bloque con borde (se lee como unidad) */
.svc-zigzag { gap: 16px; }
.svc-item { gap: clamp(20px, 4vw, 56px); padding: clamp(16px, 3vw, 40px); border: 1px solid var(--mm-border); border-radius: var(--mm-radius-md); background: var(--mm-surface); }
.svc-item .split__img { border-radius: 12px; }
.svc-item__kicker .icon { width: 22px; height: 22px; }
/* Tablet: el botón "Hablemos" ya entra junto a la hamburguesa */
@media (min-width: 600px) and (max-width: 1099px) { .site-header__cta { display: inline-flex; } }

/* «Dónde trabajamos» (/nosotros y /contacto): enlaces a las landings locales (reemplaza la columna del footer) */
.where__lead { margin-top: var(--mm-space-4, 16px); max-width: 62ch; color: var(--mm-text-muted); }
.where__list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.where__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--mm-border); border-radius: 999px;
  color: var(--mm-text); text-decoration: none; font-size: 0.9375rem; background: var(--mm-bg);
  transition: border-color .2s, color .2s;
}
.where__link:hover, .where__link:focus-visible { border-color: var(--mm-accent-strong); color: var(--mm-accent-text); }
.where__link--hub { border-color: color-mix(in srgb, var(--mm-accent-strong) 55%, var(--mm-border)); font-weight: 500; }
.where__more { margin-top: 20px; }
.where--compact { padding-block: clamp(24px, 4vw, 48px); }
.where--compact .where__list { margin-top: 16px; gap: 8px; }
.where--compact .where__link { min-height: 40px; padding: 6px 14px; font-size: 0.875rem; }

