/* =========================================================
   Trogiox · Estilos
   Dirección: tecnología clara y de confianza. Inicio y contacto en negro,
   contenido sobre blanco y gris niebla, letra del sistema (SF Pro en Apple),
   un único color de acción y capturas de interfaz como imágenes.
   Índice:
   1. Tokens y base
   2. Navegación
   3. Botones y enlaces
   4. Inicio y logotipo en órbita
   5. Secciones
   6. Capturas de interfaz (ventana y móvil)
   7. Bloques de contenido
   8. Servicios, vídeo y preguntas
   9. Contacto y pie
   10. Responsive
   11. Movimiento e impresión
   ========================================================= */

/* ---------- 1. Tokens y base ---------- */
:root {
  --night: #000000;
  --night-2: #161617;
  --night-3: #1d1d1f;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --steel: #6e6e73;
  --steel-dark: #a1a1a6;
  --line: #d2d2d7;
  --line-dark: rgba(255, 255, 255, 0.16);
  --blue: #0066cc;
  --blue-hover: #0077ed;
  --blue-dark: #2997ff;
  --wa: #25d366;

  --r-tile: 28px;
  --r-window: 16px;
  --r-small: 10px;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1080px;

  /* La letra del sistema: SF Pro en Apple, Segoe UI en Windows, Roboto en Android */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Josefin Sans", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.47; letter-spacing: -0.01em;
  /* Fondo negro: la barra translúcida se ve negra sobre el inicio; cada sección pone su propio fondo */
  color: var(--ink); background: var(--night); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 1rem; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
time { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.section--dark :focus-visible, .hero :focus-visible, .nav :focus-visible, .feature-band :focus-visible, .service-video :focus-visible { outline-color: var(--blue-dark); }

/* Página en inglés: oculta hasta que js/i18n.js aplica la traducción */
.i18n-pending body { opacity: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-small);
  color: var(--paper); background: var(--blue); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 2. Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 max(var(--gutter), calc((100% - var(--maxw) - 160px) / 2));
  color: #f5f5f7;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; flex: none; }
.brand__mark { width: 24px; height: 24px; flex: none; }

/* Logotipo TROGIOX: la primera "O" es un cuadrado, como en la marca */
.wordmark {
  display: inline-flex; align-items: center;
  font-family: var(--font-brand); font-weight: 400; font-size: 0.95rem;
  letter-spacing: 0.32em; line-height: 1; padding-top: 0.12em;
}
.wordmark__o {
  position: relative; display: inline-block;
  width: 0.74em; height: 0.74em; margin: -0.12em 0.32em 0 0;
  border: 0.1em solid currentColor;
}
.wordmark__o::after { content: ""; position: absolute; inset: 22%; background: currentColor; }

.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__link, .nav__projects-btn {
  font: 400 0.82rem/1.2 var(--font); letter-spacing: 0; color: #e8e8ed; text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover, .nav__projects-btn:hover { color: var(--paper); }
.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__lang {
  display: inline-grid; place-items: center; flex: none;
  min-width: 36px; height: 32px; padding: 0 9px; border-radius: 980px; cursor: pointer;
  font: 600 0.75rem/1 var(--font); color: #e8e8ed; background: transparent; border: 1px solid var(--line-dark);
}
.nav__lang:hover { color: var(--paper); border-color: rgba(255, 255, 255, 0.4); }

/* WhatsApp en la navegación */
.nav__wa {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--wa);
  transition: filter 0.2s;
}
.nav__wa:hover { filter: brightness(1.08); }
.nav__wa svg { width: 18px; height: 18px; fill: currentColor; }

.nav__toggle {
  display: none; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  color: var(--paper); background: transparent; border: 0;
}
.nav__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Desplegable «Soluciones» */
.nav__projects { position: relative; }
.nav__projects-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 0;
  cursor: pointer; white-space: nowrap; background: none; border: 0;
}
.nav__projects-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.2s; }
.nav__projects.is-open .nav__projects-btn svg { rotate: 180deg; }
.nav__projects-menu {
  position: absolute; top: calc(100% + 12px); left: -16px; width: 340px;
  padding: 8px; border-radius: var(--r-window);
  background: rgba(29, 29, 31, 0.96); border: 1px solid var(--line-dark);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; translate: 0 -4px;
  transition: opacity 0.2s, translate 0.2s, visibility 0.2s;
}
.nav__projects.is-open .nav__projects-menu { opacity: 1; visibility: visible; translate: 0 0; }
.nav__projects-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-small); text-decoration: none; }
.nav__projects-menu a:hover { background: rgba(255, 255, 255, 0.08); }
.nav__projects-menu strong { font-size: 0.92rem; font-weight: 600; color: var(--paper); }
.nav__projects-menu span { font-size: 0.82rem; line-height: 1.4; color: var(--steel-dark); }
/* Musifolio: proyecto diferenciado, separado de las soluciones */
.nav__projects-menu .nav__project { margin-top: 6px; border-top: 1px solid var(--line-dark); border-radius: 0 0 var(--r-small) var(--r-small); padding-top: 12px; }

/* ---------- 3. Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 980px; border: 1px solid transparent;
  font: 500 1.0625rem/1.2 var(--font); letter-spacing: -0.01em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary { color: var(--paper); background: var(--blue); }
.btn--primary:hover { background: var(--blue-hover); }
.btn--ghost { color: var(--blue); background: transparent; border-color: var(--blue); }
.btn--ghost:hover { color: var(--paper); background: var(--blue); }
.hero .btn--ghost, .section--dark .btn--ghost, .feature-band .btn--ghost { color: var(--blue-dark); border-color: var(--blue-dark); }
.hero .btn--ghost:hover { color: var(--night); background: var(--blue-dark); }
.btn--small { min-height: 32px; padding: 6px 14px; font-size: 0.8rem; white-space: nowrap; }
.btn--block { width: 100%; }
.btn--whatsapp { color: #06230f; background: var(--wa); }
.btn--whatsapp:hover { filter: brightness(1.06); }
.btn__wa { flex: none; width: 20px; height: 20px; fill: currentColor; }

.link { color: var(--blue); font-weight: 500; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }

/* ---------- 4. Inicio y logotipo en órbita ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(32px, 5vw, 64px);
  padding: clamp(64px, 10vh, 112px) max(var(--gutter), calc((100% - var(--maxw)) / 2)) clamp(56px, 8vh, 88px);
  color: #f5f5f7; background: var(--night);
}
.hero h1 { color: var(--paper); }
.hero__title > span { display: block; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 1.1875rem; font-weight: 600; color: var(--steel-dark); letter-spacing: -0.01em; }
.hero__lead { max-width: 60ch; margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.42; color: #d2d2d7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__support { margin-top: 20px; font-size: 0.94rem; color: var(--steel-dark); }

/* Portada: texto a la izquierda y logotipo en órbita a la derecha */
.hero--home { grid-template-columns: 1.25fr 0.75fr; }
.hero--home h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); }
.hero--home .core { width: min(380px, 100%); }

.hero__visual { perspective: 1000px; display: grid; place-items: center; }
.core {
  position: relative; width: min(340px, 78vw); aspect-ratio: 1;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s ease-out;
}
.core__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(206, 206, 206, 0.35);
  box-shadow: 0 0 40px rgba(175, 175, 175, 0.12), inset 0 0 40px rgba(175, 175, 175, 0.08);
}
.core__ring--1 { transform: rotateX(70deg); animation: spin 18s linear infinite; }
.core__ring--2 { inset: 12%; transform: rotateY(70deg); animation: spin 14s linear infinite reverse; border-color: rgba(156, 156, 156, 0.4); }
.core__ring--3 { inset: 24%; transform: rotateX(70deg) rotateY(30deg); animation: spin 10s linear infinite; }
.core__ring::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 14px #c8d0da, 0 0 30px #c8d0da;
}
@keyframes spin { to { rotate: 360deg; } }
.core__logo {
  position: absolute; left: 50%; top: 50%; width: 37%; height: 37%; translate: -50% -50%;
  color: var(--paper);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.15));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* Esquema del servicio bajo el logotipo: tres pasos en secuencia */
.flow { margin: 0; }
.flow--strip { grid-column: 1 / -1; width: 100%; max-width: var(--maxw); padding-top: 28px; border-top: 1px solid var(--line-dark); text-align: left; }
.flow__caption { margin-bottom: 18px; font-size: 0.82rem; color: var(--steel-dark); }
.flow__list { counter-reset: flow; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px clamp(20px, 3vw, 40px); }
.flow__list li { counter-increment: flow; display: grid; gap: 4px; }
.flow__list li::before { content: counter(flow); font: 600 0.94rem/1 var(--font); color: var(--blue-dark); margin-bottom: 4px; }
.flow__list strong { color: var(--paper); font-weight: 600; }
.flow__list span { font-size: 0.94rem; color: var(--steel-dark); }

/* Antes / después de la página de autónomos */
.flow--compare { padding: 26px; border-radius: var(--r-tile); background: var(--night-2); border: 1px solid var(--line-dark); }
.flow--compare .flow__caption { margin-bottom: 16px; }
.compare { display: grid; gap: 20px; }
.compare strong { display: block; margin-bottom: 8px; font-weight: 600; color: var(--paper); }
.compare ol { display: grid; gap: 7px; font-size: 0.95rem; color: var(--steel-dark); }
.compare li { position: relative; padding-left: 18px; }
.compare li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: #48484a; }
.compare__after { padding-top: 18px; border-top: 1px solid var(--line-dark); }
.compare__after ol { color: #f5f5f7; }
.compare__after li::before { background: var(--blue-dark); }

/* ---------- 5. Secciones ---------- */
.section { padding: clamp(72px, 11vh, 120px) var(--gutter); background: var(--paper); }
.section--band { background: var(--mist); }
.section--compact { padding-block: clamp(56px, 8vh, 88px); }
.section--dark { color: #f5f5f7; background: var(--night); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__text { margin-top: 18px; max-width: 60ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.45; color: var(--steel); }
.section__head--media {
  max-width: none; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px clamp(32px, 6vw, 80px);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

/* ---------- 6. Capturas de interfaz ---------- */
.mock { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.mock__caption { margin-top: 12px; font-size: 0.8rem; color: var(--steel); text-align: center; }

/* Ventana de aplicación */
.window {
  overflow: hidden; border-radius: var(--r-window); background: var(--paper);
  border: 1px solid #e5e5ea;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.05);
}
.window__bar {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  font-size: 0.95rem; font-weight: 600; border-bottom: 1px solid #ececf0; background: #fbfbfd;
}
.window__bar::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #d2d2d7; box-shadow: 16px 0 #d2d2d7, 32px 0 #d2d2d7; margin-right: 34px; }
.window__foot { padding: 12px 18px; font-size: 0.82rem; color: var(--steel); background: #fbfbfd; border-top: 1px solid #ececf0; }
.mk-list li { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #f0f0f3; }
.mk-list li:last-child { border-bottom: 0; }
.mk-main { display: grid; flex: 1; min-width: 0; }
.mk-main b { font-size: 0.92rem; font-weight: 600; }
.mk-main small { font-size: 0.78rem; color: var(--steel); }
.mk-chan {
  flex: none; width: 76px; padding: 4px 0; border-radius: 6px; text-align: center;
  font-size: 0.72rem; font-weight: 600; color: var(--steel); background: var(--mist);
}
.mk-chan--wa { color: #0b6b33; background: #e3f7ea; }
.pill { flex: none; padding: 3px 10px; border-radius: 980px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.pill--blue { color: #0055b3; background: #e6f0fb; }
.pill--green { color: #0b6b33; background: #e3f7ea; }
.pill--amber { color: #8a4b00; background: #fdf0dc; }
.pill--grey { color: #48484a; background: #ececf0; }
.mk-check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); position: relative; }
.mk-check::after { content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.mk-check--pending { background: transparent; border: 2px solid #c7c7cc; }
.mk-check--pending::after { display: none; }
.mk-progress { height: 4px; margin: 14px 18px 0; border-radius: 4px; background: #ececf0; overflow: hidden; }
.mk-progress span { display: block; width: 80%; height: 100%; border-radius: inherit; background: var(--blue); }

/* Móvil */
.phone {
  width: min(300px, 100%); margin-inline: auto; padding: 10px; border-radius: 44px;
  background: #1d1d1f; border: 1px solid #3a3a3c;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #2c2c2e;
}
.phone__screen {
  position: relative; min-height: 470px; padding: 44px 16px 20px; border-radius: 35px; overflow: hidden;
  background: var(--mist); color: var(--ink);
}
.phone__screen::before { content: ""; position: absolute; left: 50%; top: 12px; width: 84px; height: 22px; translate: -50% 0; border-radius: 12px; background: #1d1d1f; }
.mk-banner {
  display: grid; gap: 2px; padding: 12px 14px; margin-bottom: 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.mk-banner b { font-size: 0.86rem; }
.mk-banner small { font-size: 0.8rem; color: var(--steel); line-height: 1.35; }
.mk-day { margin: 0 4px 10px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.mk-agenda { display: grid; gap: 8px; }
.mk-agenda li { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 8px; padding: 12px; border-radius: 12px; background: var(--paper); font-size: 0.9rem; }
.mk-agenda time { font-size: 0.82rem; color: var(--steel); }
.mk-agenda .is-next { box-shadow: inset 3px 0 0 var(--blue); }
.mk-chat__head { margin: 0 0 14px; text-align: center; font-size: 0.86rem; font-weight: 600; color: var(--steel); }
.mk-chat { display: grid; gap: 8px; font-size: 0.9rem; line-height: 1.35; }
.mk-chat li { max-width: 82%; padding: 9px 13px; border-radius: 18px; }
.mk-chat .from-client { justify-self: end; color: var(--paper); background: var(--blue); border-bottom-right-radius: 6px; }
.mk-chat .from-bot { justify-self: start; background: #e9e9eb; border-bottom-left-radius: 6px; }
.mk-chat .from-system { justify-self: center; max-width: 100%; margin-top: 6px; font-size: 0.78rem; color: var(--steel); background: transparent; text-align: center; }

/* ---------- 7. Bloques de contenido ---------- */
/* Problemas */
.problems { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.problems--three { grid-template-columns: repeat(3, 1fr); }
.problem { padding: 26px 28px; border-radius: var(--r-tile); background: var(--mist); }
.problem p { margin-top: 8px; color: var(--steel); }
.closing {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px;
  margin-top: 28px; font-size: 1.1875rem; font-weight: 500;
}

/* Criterios y responsabilidades */
.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 32px; }
.criteria dt { font-weight: 600; }
.criteria dd { margin-top: 2px; font-size: 0.97rem; color: var(--steel); }
.roles { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-tile); background: var(--paper); }
.roles h3 { font-size: 1.3125rem; }
.roles h4 { margin: 24px 0 10px; font-size: 0.97rem; color: var(--steel); font-weight: 600; }
.ticks { display: grid; gap: 8px; }
.ticks--spaced { margin-top: 24px; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.38em;
  width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); rotate: -45deg;
}

/* Fases: secuencia real, de ahí los números */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.step { counter-increment: step; position: relative; }
.step::after {
  content: ""; position: absolute; left: 44px; right: calc(-1 * clamp(20px, 2.4vw, 32px)); top: 17px; height: 1px;
  background: var(--line); transform-origin: left; transition: transform 0.8s ease 0.2s;
}
.step:last-child::after { display: none; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%;
  font-size: 0.94rem; font-weight: 600; color: var(--paper); background: var(--ink);
}
.step > p { margin-top: 8px; color: var(--steel); font-size: 0.97rem; }
.step dt { margin-top: 16px; font-size: 0.82rem; font-weight: 600; color: var(--steel); }
.step dd { margin-top: 3px; font-size: 0.97rem; }
.step__out b { display: block; margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--steel); }
.step .step__out { color: var(--ink); }

/* Implantación */
.points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.points li { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: 20px; background: var(--paper); }
.points strong { font-weight: 600; line-height: 1.3; }
.points span { font-size: 0.94rem; color: var(--steel); }

/* Bloque destacado */
.feature-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px clamp(32px, 6vw, 72px);
  padding: clamp(32px, 5vw, 64px); border-radius: var(--r-tile); color: #f5f5f7; background: var(--night);
}
.feature-band h2 { color: var(--paper); }
.feature-band .section__text { color: var(--steel-dark); }
.feature-band > div:first-child { flex: 1 1 420px; }
.feature-band .btn { margin-top: 28px; }
.feature-band > .btn { margin-top: 0; flex: none; }
.feature-band__media { flex: 0 1 320px; display: grid; gap: 20px; }
.feature-band__media .mock__caption { color: var(--steel-dark); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 980px; font-size: 0.86rem; color: #f5f5f7; background: var(--night-3); }

/* Plan de ejemplo y cierre de «Un plan claro» */
.trust { align-items: center; }
.trust__sub { margin-top: 36px; font-size: 1.0625rem; font-weight: 600; }
.plan {
  margin: 0; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--r-tile); background: var(--paper);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.25);
}
.plan figcaption { display: grid; gap: 12px; justify-items: start; }
.plan figcaption strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.plan__tag { padding: 4px 11px; border-radius: 980px; font-size: 0.76rem; font-weight: 600; color: var(--blue); background: #e6f0fb; }
.plan__list { display: grid; margin-top: 14px; }
.plan__list li { display: grid; gap: 3px; padding: 18px 0; border-bottom: 1px solid #ececf0; }
.plan__list li:first-child { padding-top: 6px; }
.plan__list strong { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.plan__list span { font-size: 0.95rem; color: var(--steel); }
.plan__list .plan__prio { font-size: 0.78rem; font-weight: 600; color: var(--blue); }
.plan__list .plan__goal { margin-top: 6px; color: var(--ink); }
.plan__goal b { font-weight: 600; color: var(--blue); }
.plan__note { margin-top: 18px; font-size: 0.84rem; line-height: 1.45; color: var(--steel); }
.trust__close {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(40px, 6vw, 64px); padding: clamp(24px, 3vw, 32px) clamp(24px, 4vw, 40px);
  border-radius: var(--r-tile); background: var(--paper);
}
.trust__close p { font-family: var(--font-display); font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* Ejemplos antes / después */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.example { padding: 26px; border-radius: var(--r-tile); background: var(--paper); }
.example h3 { margin-bottom: 14px; }
.example p { font-size: 0.95rem; color: var(--steel); }
.example b { display: block; font-size: 0.78rem; font-weight: 600; color: var(--steel); }
.example .example__after { margin-top: 12px; color: var(--ink); }
.example__after b { color: var(--blue); }

/* Columnas de alcance */
.columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.columns > div { padding: 24px; border-radius: 20px; background: var(--paper); }
.columns p { margin-top: 8px; font-size: 0.95rem; color: var(--steel); }

/* ---------- 8. Servicios, vídeo y preguntas ---------- */
.service-video { margin: 0 0 clamp(32px, 4vw, 48px); }
.service-video__frame { position: relative; }
.service-video video { display: block; width: 100%; height: auto; border-radius: var(--r-tile); background: var(--night); }
.service-video__play {
  /* Centrado en los anillos de la portada del vídeo, sin tapar el título */
  position: absolute; left: 79.2%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: clamp(52px, 8.5vw, 96px); aspect-ratio: 1;
  padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transition: scale 0.2s;
}
.service-video__play:hover { scale: 1.06; }
.service-video__play[hidden] { display: none; }
.service-video__play svg { width: 46%; margin-left: 6%; fill: var(--ink); }
.service-video figcaption { margin-top: 12px; font-size: 0.86rem; color: var(--steel); }

/* Servicios plegados: objetivo y nombres; la descripción aparece al desplegar */
.outcomes { border-top: 1px solid var(--line); }
.outcome { border-bottom: 1px solid var(--line); }
.outcome summary {
  display: grid; grid-template-columns: 0.85fr 1.15fr auto; align-items: center; gap: 12px clamp(20px, 4vw, 48px);
  padding: 20px 0; cursor: pointer; list-style: none;
}
.outcome summary::-webkit-details-marker { display: none; }
.outcome h3 { display: flex; align-items: center; gap: 14px; }
.outcome__icon { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mist); }
.outcome__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.outcome__names { display: flex; flex-wrap: wrap; gap: 6px; }
.outcome__names span { padding: 4px 12px; border-radius: 980px; font-size: 0.84rem; color: var(--ink); background: var(--mist); }
.outcome[open] .outcome__names { display: none; }
.outcome__more { position: relative; grid-column: 3; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); transition: rotate 0.25s, background-color 0.2s; }
.outcome__more::before, .outcome__more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; border-radius: 1px; background: var(--ink); }
.outcome__more::after { rotate: 90deg; }
.outcome summary:hover .outcome__more { background: #e8e8ed; }
.outcome[open] .outcome__more { rotate: 45deg; }
.outcome__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; padding: 4px 48px 26px 54px; }
.outcome__list li { display: grid; gap: 2px; align-content: start; }
.outcome__list strong { font-weight: 600; }
.outcome__list span { font-size: 0.95rem; color: var(--steel); }

/* Preguntas: dos columnas fijas, una respuesta abierta cada vez */
.faq { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0 clamp(28px, 4vw, 56px); }
.faq__col { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 34px 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.4rem; font-weight: 300; line-height: 1; color: var(--steel); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 34px 18px 0; color: var(--steel); }

/* ---------- 9. Contacto y pie ---------- */
.contact-panel { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-panel__sub { margin-top: 32px; font-size: 1.0625rem; font-weight: 600; }
.section--dark .contact-panel__sub { color: var(--steel-dark); }
.next-steps { counter-reset: next; display: grid; gap: 14px; margin-top: 16px; }
.next-steps li { counter-increment: next; position: relative; padding-left: 38px; color: #d2d2d7; }
.next-steps li::before {
  content: counter(next); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 0.8rem; font-weight: 600; color: var(--night); background: #f5f5f7;
}
.contact { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-tile); background: var(--night-2); }
.contact__list { display: grid; gap: 18px; margin-top: 28px; }
.contact__item dt { font-size: 0.86rem; color: var(--steel-dark); }
.contact__item dd { margin-top: 2px; color: var(--paper); }
.contact__item a { color: var(--blue-dark); text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }

.footer {
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: 36px var(--gutter) 44px; font-size: 0.8rem; color: var(--steel); background: var(--mist);
}
.footer__brand { display: grid; justify-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.footer__mark { width: 32px; height: 32px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer__nav a { color: var(--ink); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1080px) {
  .steps, .columns { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .examples, .problems--three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav__toggle { display: inline-grid; }
  .nav__cta { display: none; }
  .nav__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 56px); overflow-y: auto;
    padding: 8px var(--gutter) 20px; background: var(--night-2); border-bottom: 1px solid var(--line-dark);
  }
  .nav__menu.is-open { display: flex; }
  .nav__link, .nav__projects-btn { display: flex; width: 100%; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line-dark); }
  .nav__projects-btn { justify-content: space-between; }
  .nav__projects-menu {
    position: static; width: auto; display: none; padding: 4px 0 8px; border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; translate: none;
  }
  .nav__projects.is-open .nav__projects-menu { display: block; }

  .hero { grid-template-columns: 1fr; }
  .split, .contact-panel, .section__head--media { grid-template-columns: 1fr; }
  .section__head--media .mock { justify-self: start; }
}

@media (max-width: 760px) {
  .faq { grid-template-columns: 1fr; }
  .faq__col + .faq__col { border-top: 0; }
  .outcome summary { grid-template-columns: 1fr auto; }
  .outcome__names { grid-column: 1; grid-row: 2; padding-left: 54px; }
  .outcome__more { grid-column: 2; grid-row: 1; }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .wordmark { font-size: 0.88rem; letter-spacing: 0.22em; }
  .hero { padding-top: 40px; }
  .eyebrow { font-size: 1rem; margin-bottom: 10px; }
  .hero__actions .btn { width: 100%; }
  .core { width: min(240px, 62vw); }
  .flow__list { grid-template-columns: 1fr; }
  .problems, .problems--three, .steps, .columns, .points, .examples, .outcome__list { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .criteria { grid-template-columns: 1fr; gap: 14px; }
  .feature-band > div:first-child { flex-basis: 100%; }
  .feature-band .btn { width: 100%; }
  .feature-band > .btn { flex: 1 1 100%; }
  .trust__close .btn { width: 100%; }
  .link { white-space: normal; }
  .outcome__names { padding-left: 0; }
  .outcome__list { padding: 4px 0 22px; }
  .mk-chan { width: 64px; }
}

@media (max-width: 360px) {
  /* En pantallas muy estrechas la navegación muestra solo el monograma */
  .nav .wordmark { display: none; }
}

/* ---------- 11. Movimiento e impresión ---------- */
/* Momento de carga: el inicio entra una vez; el logotipo gira de forma continua */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes core-in { from { opacity: 0; transform: scale(0.8); } }
.hero__content > *, .flow { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero__title { animation: none !important; }
.hero__title > span { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero__title > span:nth-child(1) { animation-delay: 0.05s; }
.hero__title > span:nth-child(2) { animation-delay: 0.16s; }
.hero__lead { animation-delay: 0.3s; }
.hero__actions { animation-delay: 0.42s; }
.hero__support { animation-delay: 0.52s; }
.flow { animation-delay: 0.7s; }
.hero__visual { animation: core-in 1.4s cubic-bezier(.2,.8,.2,1) 0.3s both; }

/* Brillo que respira detrás del logotipo */
.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.18), transparent 65%);
  animation: breathe 7s ease-in-out infinite;
}
.hero { isolation: isolate; }
@keyframes breathe { 50% { opacity: 0.45; scale: 0.9; } }

/* ---- Al hacer scroll ----
   La clase .anim la añade js/main.js (solo sin «reducir movimiento»): sin ella todo es visible.
   --d escalona los elementos hermanos */
.anim .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s ease var(--d, 0ms), transform 0.9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
.anim .reveal--scale { transform: translateY(40px) scale(0.96); }
.anim .reveal.in { opacity: 1; transform: none; }

/* Método: la línea se dibuja y los números aparecen con un pequeño rebote */
.anim .step.reveal:not(.in)::after { transform: scaleX(0); }
.anim .step.reveal::before { transition: scale 0.5s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + 0.2s); }
.anim .step.reveal:not(.in)::before { scale: 0.3; }

/* Bloque de autónomos: las etiquetas entran una a una */
.anim .feature-band.reveal .tags li { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s; }
.anim .feature-band.in .tags li { opacity: 1; transform: none; }
.anim .feature-band.in .tags li:nth-child(1) { transition-delay: 0.7s; }
.anim .feature-band.in .tags li:nth-child(2) { transition-delay: 0.8s; }
.anim .feature-band.in .tags li:nth-child(3) { transition-delay: 0.9s; }
.anim .feature-band.in .tags li:nth-child(4) { transition-delay: 1s; }
.anim .feature-band.in .tags li:nth-child(5) { transition-delay: 1.1s; }

/* ---- Capturas de interfaz: se ponen en marcha al aparecer ---- */
@keyframes mk-row { from { opacity: 0; transform: translateX(-14px); } }
@keyframes mk-pop { from { opacity: 0; scale: 0.4; } }
@keyframes mk-bar { from { width: 0; } }
@keyframes mk-drop { from { opacity: 0; transform: translateY(-28px) scale(0.96); } }
@keyframes mk-bubble { from { opacity: 0; transform: translateY(10px) scale(0.85); } }
@keyframes mk-fade { from { opacity: 0; } }
.anim .mock.reveal .mk-list li,
.anim .mock.reveal .mk-agenda li,
.anim .mock.reveal .mk-chat li,
.anim .mock.reveal .mk-banner,
.anim .mock.reveal .window__foot { opacity: 0; }
/* Estado final visible: las animaciones solo definen el inicio */
.anim .mock.in .mk-list li,
.anim .mock.in .mk-agenda li,
.anim .mock.in .mk-chat li,
.anim .mock.in .mk-banner,
.anim .mock.in .window__foot { opacity: 1; }
.anim .mock.in .mk-list li { animation: mk-row 0.6s cubic-bezier(.2,.7,.2,1) both; }
.anim .mock.in .mk-list .pill, .anim .mock.in .mk-list .mk-check { animation: mk-pop 0.45s cubic-bezier(.3,1.6,.5,1) both; }
.anim .mock.in .mk-list li:nth-child(1), .anim .mock.in .mk-agenda li:nth-child(1) { animation-delay: 0.35s; }
.anim .mock.in .mk-list li:nth-child(2), .anim .mock.in .mk-agenda li:nth-child(2) { animation-delay: 0.5s; }
.anim .mock.in .mk-list li:nth-child(3), .anim .mock.in .mk-agenda li:nth-child(3) { animation-delay: 0.65s; }
.anim .mock.in .mk-list li:nth-child(4) { animation-delay: 0.8s; }
.anim .mock.in .mk-list li:nth-child(1) :is(.pill, .mk-check) { animation-delay: 0.7s; }
.anim .mock.in .mk-list li:nth-child(2) :is(.pill, .mk-check) { animation-delay: 0.85s; }
.anim .mock.in .mk-list li:nth-child(3) :is(.pill, .mk-check) { animation-delay: 1s; }
.anim .mock.in .mk-list li:nth-child(4) :is(.pill, .mk-check) { animation-delay: 1.15s; }
.anim .mock.in .window__foot { animation: mk-fade 0.6s ease 1.2s both; }
.anim .mock.in .mk-progress span { animation: mk-bar 1.6s cubic-bezier(.2,.7,.2,1) 0.4s both; }
.anim .mock.in .mk-agenda li { animation: mk-row 0.6s cubic-bezier(.2,.7,.2,1) both; }
.anim .mock.in .mk-banner { animation: mk-drop 0.8s cubic-bezier(.2,.9,.3,1.15) 1.2s both; }
.anim .mock.in .mk-chat li { animation: mk-bubble 0.5s cubic-bezier(.2,.9,.3,1.2) both; }
.anim .mock.in .mk-chat .from-client { transform-origin: right bottom; }
.anim .mock.in .mk-chat .from-bot { transform-origin: left bottom; }
.anim .mock.in .mk-chat li:nth-child(1) { animation-delay: 0.4s; }
.anim .mock.in .mk-chat li:nth-child(2) { animation-delay: 1.3s; }
.anim .mock.in .mk-chat li:nth-child(3) { animation-delay: 2.2s; }
.anim .mock.in .mk-chat li:nth-child(4) { animation-delay: 3s; }

/* ---- Al desplegar servicios y preguntas: el contenido entra suave ---- */
@keyframes open-in { from { opacity: 0; transform: translateY(-8px); } }
.outcome[open] .outcome__list, .faq details[open] p { animation: open-in 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}

@media print {
  .anim .reveal, .anim .mock * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .nav { display: none; }
}
