/* ============================================================
   DESIGN TOKENS
   Editorial consulting-firm system. White canvas, midnight
   blue brand, terracotta accent, hairline gray rules.
   (Paleta provisional inspirada en redts.com.mx; se ajusta
   cuando llegue el logo definitivo.)
   ============================================================ */
:root {
  --white: #ffffff;
  --ink: #1a1a1a;        /* primary text / headings */
  --blue: #0d1b2a;       /* brand / midnight blue */
  --muted: #565e6e;      /* secondary text (oscurecido para legibilidad sobre surface tintado) */
  --line: #e6e7f1;       /* borders/dividers, tintados hacia la marca */
  --surface: #f3f4fb;    /* panel fill, tintado hacia el violeta de marca */

  /* Brand palette (del logo): violeta -> magenta -> azul */
  --violet: #7b2ff7;
  --magenta: #d6249f;
  --sky: #1aa3f0;
  --terra: #d6249f;      /* accent sólido = magenta de marca */
  --brand-grad: linear-gradient(100deg, #7b2ff7 0%, #d6249f 50%, #1aa3f0 100%);

  /* Hero oscuro */
  --hero-bg: #070a1a;
  --hero-ink: #f4f6fd;
  --hero-muted: #aab2cc;

  --font-display: "Montserrat", system-ui, -apple-system, sans-serif; /* eco del wordmark del logo MAR */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--muted);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* Foco visible para navegación por teclado (a11y).
   Solo se muestra con :focus-visible, así no molesta al usar el mouse. */
:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Sobre fondos oscuros (hero / banda de contacto) el anillo claro contrasta mejor */
.hero :focus-visible,
.contact-dark :focus-visible,
.nav.over-hero :focus-visible {
  outline-color: #fff;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Emphasis helper (marca) — color sólido, sin gradient-clip */
.grad-text { color: var(--magenta); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--ink);
  max-width: 20ch;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 60ch;
}

/* ============================================================
   BUTTONS  (rectangular, sharp corners)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border: 1px solid var(--blue);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-grad); color: var(--white); border-color: transparent; box-shadow: 0 8px 22px -12px rgba(123, 47, 247, 0.6); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 12px 28px -12px rgba(214, 36, 159, 0.6); }

.btn-secondary { background: transparent; color: var(--blue); border-color: var(--violet); }
.btn-secondary:hover { background: var(--brand-grad); color: var(--white); border-color: transparent; }

/* ============================================================
   1. NAVBAR
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); transition: background 0.3s ease, border-color 0.3s ease; }
/* Las secciones con ancla no quedan ocultas tras la barra fija */
section[id] { scroll-margin-top: 90px; }
/* Sobre el hero oscuro: barra transparente con texto claro */
.nav.over-hero { background: transparent; border-bottom-color: transparent; }
.nav.over-hero .brand { color: #fff; }
.nav.over-hero .nav-links a { color: rgba(255, 255, 255, 0.82); }
.nav.over-hero .nav-links a:hover { color: #fff; }
.nav.over-hero .nav-toggle span { background: #fff; }
.nav-inner {
  display: flex;
  align-items: center;
  height: 78px;
}
.nav-links { flex: 1; justify-content: center; }
.nav-cta { margin-left: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--ink);
}
.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}
.brand-logo--mark {
  height: 46px;
}
.brand-logo--full {
  height: 118px;
}

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font-size: 0.94rem; font-weight: 500; color: var(--ink); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--terra); }

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--ink); }

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 16vh, 170px) 0 clamp(64px, 9vw, 110px);
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
}
/* Glows radiales sutiles (decorativos) */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 55% at 14% 18%, rgba(123, 47, 247, 0.26), transparent 62%),
    radial-gradient(55% 52% at 86% 72%, rgba(26, 163, 240, 0.20), transparent 62%),
    radial-gradient(42% 42% at 72% 26%, rgba(214, 36, 159, 0.16), transparent 60%);
}
/* FlickeringGrid: textura animada de fondo, enmascarada y sutil */
#flickerCanvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask: radial-gradient(115% 95% at 62% 42%, #000 0%, rgba(0,0,0,0.55) 45%, transparent 78%);
          mask: radial-gradient(115% 95% at 62% 42%, #000 0%, rgba(0,0,0,0.55) 45%, transparent 78%);
}
.hero .shell { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
.hero-content { max-width: 38rem; }
.hero .eyebrow { color: #c98be8; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--hero-ink); margin: 26px 0 0; }
.hero p.sub { margin-top: 26px; font-size: clamp(1.05rem, 1.35vw, 1.18rem); color: var(--hero-muted); max-width: 56ch; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.26); background: transparent; }
.hero .btn-secondary:hover { background: var(--brand-grad); border-color: transparent; color: #fff; }

/* Hero: tres focos de trabajo, sobrios y sin repetir el proceso */
.hero-focus {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  max-width: 56ch;
}

.hero-focus span {
  position: relative;
  color: var(--hero-ink);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-focus span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 18px;
  vertical-align: 0.15em;
  background: #ee7ac6;
}

@media (max-width: 420px) {
  .hero-focus { gap: 9px 14px; }
  .hero-focus span { font-size: 0.84rem; }
  .hero-focus span:not(:last-child)::after { margin-left: 14px; }
}

/* Hero visual: globo punteado/wireframe 3D (Three.js -> canvas, sin imagen externa) */
.hero-visual { position: relative; width: 100%; min-height: 520px; aspect-ratio: 1 / 1; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#heroCanvas:active { cursor: grabbing; }

/* ============================================================
   3. STATS BAR
   ============================================================ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 52px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--blue); }
.stat .label { margin-top: 12px; font-size: 0.86rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section.block { padding: clamp(80px, 11vw, 140px) 0; }
.block.tint { background: var(--surface); }
.section-head { max-width: 700px; margin-bottom: 64px; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-head p { margin-top: 20px; }

/* ============================================================
   4. SERVICIOS  (2-column list, thin rules)
   ============================================================ */
.services-list { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; border-top: 1px solid var(--line); }
.service { padding: 34px 0; border-bottom: 1px solid var(--line); }
.service .svc-no { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--terra); }
.service h3 {
  font-size: 1.4rem; color: var(--ink); margin: 8px 0 10px;
  text-decoration-line: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}
.service:hover h3 { text-decoration-color: var(--terra); }
.service p { font-size: 0.98rem; color: var(--muted); max-width: 44ch; }

/* ============================================================
   5. NOSOTROS  (filosofía + misión / visión)
   ============================================================ */
.mv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.mv-item { position: relative; padding: 38px 36px; background: var(--white); border: 1px solid var(--line); }
.mv-item::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px; background: var(--blue); }
.mv-item .mv-tag { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra); }
.mv-item h3 { font-size: 1.5rem; color: var(--ink); margin: 10px 0 14px; }
.mv-item p { font-size: 1rem; color: var(--muted); }

/* Valores: 3 principios rectores destacados + 4 de soporte en peso menor */
.values-lead {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.value-lead { display: flex; flex-direction: column; gap: 14px; }
.value-lead-ico svg { width: 34px; height: 34px; color: var(--muted); stroke-width: 1.4; transition: color 0.25s ease; }
.value-lead:hover .value-lead-ico svg { color: var(--terra); }
.value-lead h3 { font-size: 1.5rem; color: var(--ink); text-wrap: balance; }
.value-lead p { font-size: 1rem; line-height: 1.65; color: var(--muted); max-width: 38ch; }

.values-support {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.value-support {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.value-support svg { width: 20px; height: 20px; color: var(--muted); stroke-width: 1.5; margin-top: 3px; transition: color 0.25s ease; }
.value-support:hover svg { color: var(--terra); }
.value-support h4 { font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 3px; line-height: 1.25; }
.value-support p { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   7. IMAGEN DESTACADA (una foto panorámica)
   ============================================================ */
.media-feature { position: relative; }
.feature-ph, .feature-img { width: 100%; aspect-ratio: 16 / 7; display: block; }
.feature-ph {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted);
}
.feature-ph svg { width: 46px; height: 46px; color: #c2c7d2; }
.feature-ph span { font-size: 0.85rem; letter-spacing: 0.04em; }
.feature-img { object-fit: cover; }

/* ============================================================
   8. TESTIMONIOS
   ============================================================ */
/* Fundadora / CEO */
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo::before { content: ""; position: absolute; left: -18px; top: -18px; width: 58%; height: 58%; background: var(--blue); opacity: 0.08; z-index: 0; }
.founder-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 28px 64px -52px rgba(13, 27, 42, 0.62);
}
.founder-text .eyebrow { display: block; margin-bottom: 18px; }
.founder-text .section-title { max-width: 16ch; }
.founder-lead { margin-top: 22px; font-size: 1.08rem; color: var(--ink); }
.founder-text p + p { margin-top: 16px; }
.founder-sign { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.founder-name { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.founder-role { font-size: 0.9rem; color: var(--terra); }

/* ============================================================
   8b. EXPERIENCIA  (logos de organizaciones)
   ============================================================ */
#experiencia .section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
#experiencia .section-title { max-width: 100%; margin: 0 auto; }
.client-note {
  margin: 18px auto 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.05rem);
}
.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}
.client-logo {
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 170px;
  max-width: 190px;
  min-height: 112px; padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px -32px rgba(13, 27, 42, 0.42);
  transform: translateY(0);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.client-logo img {
  width: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(1); opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.client-logo--tall img { max-height: 78px; }
.client-logo--wide img { max-height: 54px; }
.client-grid:hover .client-logo,
.client-grid.reveal.in:hover .client-logo {
  opacity: 0.56;
}
.client-grid:hover .client-logo:hover,
.client-grid.reveal.in:hover .client-logo:hover {
  opacity: 1;
  border-color: rgba(214, 36, 159, 0.28);
  box-shadow: 0 22px 42px -30px rgba(13, 27, 42, 0.55);
  transform: translateY(-3px);
}
.client-grid:hover .client-logo:not(:hover) img,
.client-grid.reveal.in:hover .client-logo:not(:hover) img {
  filter: grayscale(1) blur(0.6px);
  opacity: 0.5;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.035); }
.client-grid.reveal .client-logo {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(14px);
}
.client-grid.reveal.in .client-logo {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition-delay: var(--client-delay, 0ms);
}
.client-grid.reveal.in:hover .client-logo {
  transition-delay: 0ms;
}
.client-grid.reveal.in .client-logo:nth-child(1) { --client-delay: 40ms; }
.client-grid.reveal.in .client-logo:nth-child(2) { --client-delay: 85ms; }
.client-grid.reveal.in .client-logo:nth-child(3) { --client-delay: 130ms; }
.client-grid.reveal.in .client-logo:nth-child(4) { --client-delay: 175ms; }
.client-grid.reveal.in .client-logo:nth-child(5) { --client-delay: 220ms; }
.client-grid.reveal.in .client-logo:nth-child(6) { --client-delay: 265ms; }
.client-grid.reveal.in .client-logo:nth-child(7) { --client-delay: 310ms; }
.client-grid.reveal.in .client-logo:nth-child(8) { --client-delay: 355ms; }
.client-grid.reveal.in .client-logo:nth-child(9) { --client-delay: 400ms; }
.client-grid.reveal.in .client-logo:nth-child(10) { --client-delay: 445ms; }
.client-grid.reveal.in .client-logo:nth-child(11) { --client-delay: 490ms; }
.client-grid.reveal.in .client-logo:nth-child(12) { --client-delay: 535ms; }
.client-grid.reveal.in .client-logo:nth-child(13) { --client-delay: 580ms; }
.client-logo span {
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--muted); text-align: center;
}
@media (max-width: 560px) {
  .client-grid { gap: 12px; }
  .client-logo {
    flex-basis: calc(50% - 6px);
    max-width: none;
    min-height: 96px;
    padding: 18px;
  }
}

/* ============================================================
   9. CONTACTO  (form + direct channels)
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }

.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa1ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-btn { justify-self: start; margin-top: 4px; }
.form-note { font-size: 0.82rem; color: var(--muted); }

.channels { display: grid; gap: 14px; align-content: start; }
.channels .ch-title { font-family: var(--font-sans); font-weight: 700; color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }

/* Contacto centrado (solo canales, sin formulario) */
.contact-center { max-width: 860px; margin: 0 auto; text-align: center; }
.contact-center .section-head { max-width: 640px; margin: 0 auto 48px; }
.contact-center .section-title { max-width: 100%; }
.contact-center .lede { margin-left: auto; margin-right: auto; }
.channels--center { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.channels--center .channel { flex: 1 1 220px; max-width: 260px; min-height: 88px; text-align: left; }
.channel {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.channel:hover { border-color: var(--terra); background: var(--surface); }
.channel svg { width: 22px; height: 22px; color: var(--terra); flex: none; }
.channel .ch-label { font-weight: 600; color: var(--ink); font-size: 0.96rem; line-height: 1.3; }
.channel .ch-sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }

/* Contacto sobre banda oscura: refleja el hero y cierra la página en clave de marca */
.contact-dark { position: relative; background: var(--hero-bg); overflow: hidden; isolation: isolate; }
.contact-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 52% at 16% 22%, rgba(123, 47, 247, 0.24), transparent 62%),
    radial-gradient(48% 50% at 84% 76%, rgba(26, 163, 240, 0.18), transparent 62%),
    radial-gradient(40% 42% at 70% 28%, rgba(214, 36, 159, 0.15), transparent 60%);
}
#contactFlicker {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block; pointer-events: none;
  opacity: 0.5;
  -webkit-mask: radial-gradient(120% 100% at 50% 45%, #000 0%, rgba(0,0,0,0.5) 48%, transparent 80%);
          mask: radial-gradient(120% 100% at 50% 45%, #000 0%, rgba(0,0,0,0.5) 48%, transparent 80%);
}
.contact-dark .shell { position: relative; z-index: 2; }
.contact-dark .section-title { color: #fff; }
.contact-dark .lede { color: var(--hero-muted); }
.contact-dark .channel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}
.contact-dark .channel:hover { border-color: var(--magenta); background: rgba(255, 255, 255, 0.08); }
.contact-dark .channel svg { color: #ee7ac6; }
.contact-dark .channel .ch-label { color: #fff; }
.contact-dark .channel .ch-sub { color: var(--hero-muted); }

/* Botón de correo con menú de opciones (Gmail / Outlook / app / copiar) */
.channel-wrap { position: relative; display: flex; flex: 1 1 220px; max-width: 260px; }
.channel-wrap .channel { width: 100%; height: 100%; cursor: pointer; font: inherit; text-align: left; }
.channels--center .channel-wrap .channel { max-width: none; }
.mail-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 5;
  display: grid; gap: 2px; padding: 6px;
  background: #14101f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.mail-menu[hidden] { display: none; }
.channel-wrap.open { z-index: 20; }
.channel-wrap.open .mail-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mail-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; min-height: 44px;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500;
  color: #fff; background: none; border: 0; width: 100%; text-align: left;
  cursor: pointer; transition: background 0.15s ease;
}
.mail-opt svg { width: 18px; height: 18px; color: #ee7ac6; flex: none; }
.mail-opt:hover { background: rgba(255, 255, 255, 0.08); }
.mail-opt.copied { color: #6ee7a8; }
.mail-opt.copied svg { color: #6ee7a8; }

/* ============================================================
   10. FOOTER  (multi-columna)
   ============================================================ */
.footer { position: relative; padding: clamp(56px, 8vw, 88px) 0 32px; background: var(--white); border-top: 1px solid var(--line); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-grad); }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 360px; }
.footer .brand { line-height: 1; }
.footer-desc { font-size: 0.92rem; color: var(--muted); max-width: 42ch; }

.footer-social { display: flex; align-items: center; gap: 14px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-social svg { width: 18px; height: 18px; }
.footer-social a:hover { color: var(--terra); border-color: var(--terra); background: var(--surface); }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 40px 72px; }
.footer-col h3 { font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--terra); }

.footer-bottom {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.82rem; color: var(--muted); transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--terra); }

@media (max-width: 760px) {
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 460px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL REVEAL (subtle, IntersectionObserver-driven)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .mv-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  /* Logo a la izquierda, hamburguesa pegada a la esquina derecha */
  .nav-inner { display: flex; justify-content: space-between; }
  .brand-logo--mark { height: 40px; }
  .brand-logo--full { height: 104px; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
  }
  .nav-links.open a { padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
  /* El panel desplegado es blanco: los enlaces van en tinta
     aunque la barra esté sobre el hero oscuro */
  .nav.over-hero .nav-links.open a { color: var(--ink); }
  .nav.over-hero .nav-links.open a:hover { color: var(--terra); }
  .hero { min-height: auto; padding: 120px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { max-width: 100%; }
  .hero-visual { min-height: 320px; max-width: 420px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); padding: 36px 24px; }
  .stat:first-child { border-top: none; }
  .services-list { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr; gap: 36px; }
  .founder-photo { max-width: 340px; }
  .values-lead { grid-template-columns: 1fr; gap: 28px; }
  .values-support { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .footer-tag, .footer-copy { text-align: center; }
}

@media (max-width: 460px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .client-grid.reveal .client-logo {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   CÓMO TRABAJAMOS  (#enfoque)
   ============================================================ */
#enfoque { padding-top: clamp(80px, 11vw, 140px); }

.enfoque-header { padding-bottom: 34px; }
.enfoque-header .section-head { margin-bottom: 0; }
.enfoque-header .section-title { max-width: 16ch; }

.execution-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--line);
}

.proof-row {
  display: grid;
  gap: 14px;
  padding-top: 20px;
}

.proof-kicker {
  align-self: start;
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.proof-row h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  letter-spacing: 0;
}

.proof-row p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 42ch;
}

.enfoque-proof { padding-bottom: clamp(36px, 5vw, 60px); }
.enfoque-btn { margin-top: clamp(28px, 4vw, 42px); }
.enfoque-btn svg { transition: transform 0.2s ease; }
.enfoque-btn:hover svg { transform: translateX(3px); }

/* Scroll-driven horizontal carousel */
.scroll-carousel {
  position: relative;
  height: 200vh;
}

.scroll-carousel-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 40px 0;
}

.carousel-fade-left {
  pointer-events: none;
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 12vw;
  z-index: 10;
  background: linear-gradient(90deg, var(--surface) 35%, transparent);
}

.carousel-fade-right {
  pointer-events: none;
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 15vw;
  z-index: 10;
  background: linear-gradient(270deg, var(--surface) 35%, transparent);
}

.carousel-track {
  display: flex;
  gap: 14px;
  width: fit-content;
  will-change: transform;
  padding-left: 32px;
}

.carousel-item {
  min-width: 42vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.carousel-item:hover img { transform: scale(1.04); }
.enfoque-cta { display: flex; justify-content: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 9vw, 110px); }

@media (max-width: 980px) {
  .execution-proof { grid-template-columns: 1fr; gap: 28px; }
  .proof-row { border-top: 1px solid var(--line); }
  .proof-row:first-child { border-top: none; }
}

@media (max-width: 620px) {
  #enfoque { padding-top: 72px; }
  .proof-row {
    gap: 8px;
    padding: 20px 0;
  }
  .carousel-item { min-width: 80vw; }
  .carousel-fade-left { width: 8vw; }
  .carousel-fade-right { width: 10vw; }
}

/* ============================================================
   HOME: botón "ver todos los servicios"
   ============================================================ */
.services-more { margin-top: 48px; display: flex; }

/* ============================================================
   PÁGINA SERVICIOS (servicios.html)
   ============================================================ */
.page-header { padding: calc(78px + clamp(56px, 9vw, 96px)) 0 clamp(44px, 6vw, 68px); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-header .eyebrow { display: block; margin-bottom: 18px; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--ink); max-width: 18ch; }
.page-header p { margin-top: 20px; max-width: 62ch; }

.svc-fit-block { padding-bottom: 0; }
.svc-fit {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.svc-fit .eyebrow { display: block; margin-bottom: 18px; }
.svc-fit h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; }
.svc-fit p { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.12rem); max-width: 62ch; }

.svc-detail { display: grid; gap: clamp(72px, 10vw, 120px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-row:nth-child(even) .svc-text { order: 2; }
.svc-no-lg { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; color: var(--terra); }
.svc-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); margin: 12px 0 18px; }
.svc-text p { color: var(--muted); font-size: 1.02rem; }
.svc-text p + p { margin-top: 14px; }
.svc-list { margin-top: 24px; display: grid; gap: 11px; }
.svc-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.98rem; }
.svc-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 13px; height: 2px; background: var(--terra); }

.svc-media { position: relative; }
.svc-media::before { content: ""; position: absolute; left: -16px; top: -16px; width: 48%; height: 48%; background: var(--blue); opacity: 0.08; z-index: 0; }
.svc-ph, .svc-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; display: block; }
.svc-ph { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.svc-ph svg { width: 44px; height: 44px; color: #c2c7d2; }
.svc-ph span { font-size: 0.82rem; letter-spacing: 0.04em; }
.svc-img {
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 60px -44px rgba(13, 27, 42, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.svc-media:hover .svc-img {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -46px rgba(13, 27, 42, 0.6);
}

/* ------------------------------------------------------------
   Cómo trabajamos: recorrido de 4 etapas con entregable.
   La línea de avance se dibuja con scroll (ver script de
   servicios.html); cada tramo recorre la paleta de marca.
   ------------------------------------------------------------ */
.journey {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.journey-intro { position: sticky; top: 120px; }
.journey-intro .eyebrow { display: block; margin-bottom: 20px; }
.journey-intro .lede { margin-top: 20px; }

.journey-steps { display: block; counter-reset: none; }
.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(44px, 6vw, 68px);
  --step-color: var(--violet);
}
.journey-step:nth-child(2) { --step-color: var(--magenta); }
.journey-step:nth-child(3) { --step-color: var(--sky); }
.journey-step:nth-child(5) { --step-color: var(--magenta); }
.journey-step:last-child { padding-bottom: 0; }

/* Riel base entre marcadores + tramo de avance coloreado */
.journey-step:not(:last-child)::before,
.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 58px;
  bottom: 6px;
}
.journey-step:not(:last-child)::before {
  width: 1px;
  background: var(--line);
}
.journey-step:not(:last-child)::after {
  width: 2px;
  margin-left: -0.5px;
  background: linear-gradient(to bottom, var(--step-color), var(--next-color, var(--violet)));
  transform: scaleY(var(--seg, 0));
  transform-origin: top;
}
.journey-step:nth-child(1) { --next-color: var(--magenta); }
.journey-step:nth-child(2) { --next-color: var(--sky); }
.journey-step:nth-child(3) { --next-color: var(--violet); }
.journey-step:nth-child(4) { --next-color: var(--magenta); }

.journey-marker {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--line);
  display: grid;
  place-items: center;
}
.journey-marker::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: var(--surface);
}
.journey-marker span {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.3s ease;
}
.journey-step.passed .journey-marker { background: var(--step-color); }
.journey-step.passed .journey-marker::before { inset: 2px; }
.journey-step.passed .journey-marker span { color: var(--ink); }
.journey-step:last-child.passed .journey-marker { background: var(--brand-grad); }

.journey-body h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  padding-top: 8px;
}
.journey-body > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 52ch;
}
.journey-deliverable {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px 24px;
  box-shadow: 0 20px 44px -36px rgba(13, 27, 42, 0.45);
}
.journey-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}
.journey-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--step-color, var(--terra));
}
.journey-deliverable h4 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.3;
}
.journey-deliverable p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 50ch;
}

/* ------------------------------------------------------------
   Por qué nosotros: razones compactas con entregables concretos.
   ------------------------------------------------------------ */
.why-list { border-top: 1px solid var(--line); }
.why-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(30px, 4.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.why-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}

.why-title span {
  color: var(--terra);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding-top: 10px;
}

.why-title h3 {
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  max-width: 19ch;
  text-wrap: balance;
}
.why-detail p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

.why-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.why-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Banda CTA final (oscura) */
.cta-band { position: relative; background: var(--hero-bg); text-align: center; overflow: hidden; isolation: isolate; }
.cta-band .shell { position: relative; z-index: 2; }
/* FlickeringGrid: textura animada de fondo, enmascarada y sutil */
#ctaFlicker {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.55;
  -webkit-mask: radial-gradient(110% 100% at 50% 50%, #000 0%, rgba(0,0,0,0.5) 48%, transparent 80%);
          mask: radial-gradient(110% 100% at 50% 50%, #000 0%, rgba(0,0,0,0.5) 48%, transparent 80%);
}
.cta-band .eyebrow { color: #c98be8; display: block; margin-bottom: 18px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); max-width: 20ch; margin: 0 auto; }
.cta-band p { color: var(--hero-muted); margin: 18px auto 0; max-width: 54ch; }
.cta-band .btn-wrap { margin-top: 34px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.cta-band .btn-secondary:hover { background: var(--brand-grad); border-color: transparent; }

@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr; gap: 56px; }
  .journey-intro { position: static; }
}

@media (max-width: 760px) {
  .svc-fit { grid-template-columns: 1fr; gap: 20px; }
  .svc-row { grid-template-columns: 1fr; gap: 30px; }
  .svc-row:nth-child(even) .svc-text { order: 0; }
  .journey-step { grid-template-columns: 42px 1fr; gap: 16px; }
  .journey-marker { width: 42px; height: 42px; }
  .journey-marker span { font-size: 0.7rem; }
  .journey-step:not(:last-child)::before,
  .journey-step:not(:last-child)::after { left: 20px; top: 48px; }
  .journey-body h3 { padding-top: 4px; }
  .journey-deliverable { padding: 16px 18px; }
  .why-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   PÁGINAS LEGALES  (terminos.html / privacidad.html)
   ============================================================ */
.legal { max-width: 820px; }
.legal .legal-updated { font-size: 0.86rem; color: var(--muted); margin-bottom: 40px; }
.legal h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.legal p { color: var(--muted); font-size: 1rem; margin-bottom: 14px; }
.legal a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.legal ul { display: grid; gap: 9px; margin: 4px 0 18px; }
.legal ul li { position: relative; padding-left: 24px; color: var(--muted); font-size: 1rem; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--terra); }
.legal strong { color: var(--ink); font-weight: 600; }
/* Resaltado de huecos por llenar */
.legal .ph {
  background: rgba(214, 36, 159, 0.10);
  color: var(--terra);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.92em;
}
