/* ==========================================================================
   TimTul · timtul.css — la capa de marca y de página sobre el kit de taste-skill
   Orden de carga (ver docs/COMPONENTES.md, «Head»):
     system.css · ui/cards.css · motion/motion.css · backgrounds/backgrounds.css ·
     layout/layout.css · icons/icon.css · <style>:root (paleta impresa por start.mjs brand)
     · ui/base.css · diagrams/diagram.css · ESTE ARCHIVO
   Aquí solo va lo que el kit no trae:
     1. Solo modo claro, suelo iluminado blanco/azul y los colores de la marca
     2. Logo de TimTul en la barra y el pie
     3. Portada (.tt-hero): degradado violeta → azul → cian, suelo animado y red de nodos
     4. Interfaz de producto dibujada en HTML (.tt-*): ventana, tarjetas, fragmentos
     5. Componentes de lectura: datos destacados, lista con iconos, etiquetas, pestañas, desplegable
     6. Secciones de Inicio (panel, plan Gratis, qué resuelve, planes, consultoría)
     7. Panel FAQ (pestaña fija + panel lateral con buscador)
     8. Formulario en popup (<dialog class="tt-modal">)
     9-11. Bucles de tarjeta, emails del plan Gratis, logos de clientes
     12. Ritmo de secciones (alto de contenido, --tt-sec-pad), fondos alternos y rayas, eyebrow, marcos ajustados a su
         mini-UI, pasos con ilustración y animación del botón «Empieza gratis» (cola: puntos 1, 11, 13 y 14)
   Nada de aquí redefine botones, rejilla, escalas o tarjetas del sistema.
   Estados: :hover/:focus-visible/:active vienen de motion.css y system.css; aquí se
   añaden solo los de los controles propios (pestaña FAQ, cerrar, buscador, desplegable).
   ========================================================================== */

/* ---------------------------------------------------------------- 1. solo claro y colores de marca
   La web es siempre clara, aunque el sistema operativo esté en oscuro: no hay modo oscuro ni botón
   de tema. color-scheme: light también fija los controles nativos (campos, barras de scroll) en claro. */
:root {
  color-scheme: light;
  /* colores de la marca (logo y timtul.com) */
  --tt-violet: #6a4fd8;
  --tt-blue: #2f8fdb;
  --tt-cyan: #08bcd6;
  --tt-action: #0b5fff;          /* botones y enlaces: azul vivo, 5,1:1 con texto blanco */
  --tt-ink: #2b2f36;             /* texto: gris antracita */
  /* el degradado de la marca, en diagonal (la portada); el texto blanco va sobre su parte violeta */
  --tt-gradient: linear-gradient(115deg, #5b40cc 0%, #6a4fd8 30%, #2f8fdb 72%, #08bcd6 100%);
  /* tintes muy suaves de violeta y azul para paneles (nunca beige ni arena) */
  --tt-tint-violet: #f3f1fe;
  --tt-tint-blue: #eef5fe;
}
/* el suelo iluminado del kit (detrás de la interfaz, en paneles y marcos): blanco azulado, no arena.
   <html data-ground="sky"> va escrito en cada página para que system.js no elija otro. */
html[data-ground="sky"] {
  --ground-bg: #eef2fd; --ground-surface: #f6f8fe; --ground-ink: #2b2f36; --ground-muted: #4e5563; --ground-accent: #0b5fff;
}

/* ---------------------------------------------------------------- 2. logo */
/* .tt-brand: el isotipo del cliente (isotipo.webp, recortado de logo.webp sin redibujar: 346×390, justo al hexágono)
   + la palabra TIMTUL en texto, en la tipografía de los títulos (Funnel Display, con el mismo peso que los títulos, --display-weight: petición del cliente del 16/11/2026),
   mayúsculas y espaciada. Todo se mide en --h (el alto del isotipo): así el logo grande de las intros es el mismo a otra escala.
   Palabra: 0,85 --h (altura de mayúsculas ≈ 0,58 --h), espaciado 0,16em (el sobrante tras la L se recoge con el margen),
   hueco 0,42 --h (con 400 y 0,16em el logo mide lo mismo que el antiguo logo.webp: 138 × 27 px); sin kerning (las intros la arman letra a letra y deben medir lo mismo); subida de 0,035em para centrar
   las mayúsculas (no la caja) con el centro del hexágono. 27 px de isotipo (23 px por debajo de 640): el alto del
   antiguo logo.webp a 28 / 24 px, así la cabecera no cambia (72 / 56 px). */
.tt-brand { --h: 27px; display: inline-flex; align-items: center; gap: calc(var(--h) * .42); height: var(--h); color: #2b2f36; }
.tt-brand__mark, .nav__logo .tt-brand__mark { display: block; flex: none; width: auto; height: var(--h); aspect-ratio: 346 / 390; }
.tt-brand__word {
  position: relative; display: block; font: var(--display-weight, 400) calc(var(--h) * .85)/1 var(--font-display); letter-spacing: .16em; margin-right: -.16em;
  text-transform: uppercase; font-kerning: none; white-space: nowrap; translate: 0 -.035em;
}
.tt-brand--cons { color: #0b1530; } /* Consultoría: isotipo dorado (isotipo-consulting.webp) y la palabra en azul noche */
@media (max-width: 639px) { .tt-brand { --h: 23px; } }

/* ---------------------------------------------------------------- 3. portada (.tt-hero)
   Ancho completo: el degradado de la marca en diagonal, un velo violeta a la izquierda (donde va el
   texto blanco, 4,5:1 o más) y el suelo animado del kit (.bg-liquid: manchas de luz que derivan,
   solo transform, con su botón de pausa; quietas con prefers-reduced-motion). Sin animación, el
   degradado es el fallback quieto. A la derecha, en Inicio, la órbita del CRM (.tt-orbit, más abajo); en Funcionalidades,
   la red de nodos (diagrama hub del kit con pulsos). */
.hero.tt-hero {
  --ink: #ffffff; --muted: #ffffff; --bg: #5b46c9; --surface: #5b46c9;
  --line: rgb(255 255 255 / .28); --line-strong: rgb(255 255 255 / .5);
  --accent: #ffffff; --accent-ink: var(--tt-ink);
  --action: var(--p-action); --action-ink: var(--p-action-ink);
  color: #ffffff;
  background-color: #5b44cc;
  background-image:
    radial-gradient(64% 90% at 4% 62%, rgb(52 26 160 / .5), transparent 72%),
    var(--tt-gradient);
}
@media (max-width: 1023px) {
  .hero.tt-hero {
    background-image:
      radial-gradient(140% 70% at 20% 34%, rgb(52 26 160 / .62), transparent 76%),
      radial-gradient(130% 34% at 60% 66%, rgb(52 26 160 / .4), transparent 80%),
      linear-gradient(160deg, #5b40cc 0%, #6a4fd8 48%, #2f8fdb 82%, #08bcd6 100%);
  }
}
/* las manchas de luz del suelo animado, en los colores de la marca y lejos del texto */
.hero.tt-hero.bg-liquid::before {
  background:
    radial-gradient(ellipse 24% 34% at 72% 42%, rgb(8 188 214 / .5), transparent),
    radial-gradient(ellipse 18% 24% at 84% 80%, rgb(255 255 255 / .16), transparent);
}
.hero.tt-hero.bg-liquid::after {
  background:
    radial-gradient(ellipse 22% 30% at 62% 20%, rgb(106 79 216 / .55), transparent),
    radial-gradient(ellipse 16% 22% at 86% 24%, rgb(47 143 219 / .45), transparent);
}
.hero.tt-hero h1 { color: #ffffff; }
.tt-hero .hero__lead { color: #ffffff; }
/* el botón principal azul vivo, separado del degradado por un filo blanco */
.tt-hero .btn-row { --ink: var(--p-ink); --bg: var(--p-bg); --line-strong: color-mix(in oklab, var(--p-ink) 20%, transparent); }
.tt-hero .btn--primary { box-shadow: 0 0 0 1px rgb(255 255 255 / .35), 0 10px 24px -12px rgb(20 10 90 / .6); }
/* datos destacados de la portada (el plan Gratis): cifra grande y una línea */
.tt-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-7) !important; padding: 0; list-style: none;
                  border-top: 1px solid var(--line); padding-top: var(--s-5); }
.tt-hero__facts li { display: grid; gap: var(--s-1); align-content: start; }
.tt-hero__facts b { font: var(--display-weight) 28px/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tt-hero__facts li > span { font-size: var(--t-small); line-height: 1.4; }   /* li > span: el contador del kit (span.m-count__n dentro del <b>) hereda el tamaño de la cifra */
/* la red (Funcionalidades): el diagrama hub sobre el degradado, en un marco blanco translúcido */
.tt-hero .hero__art { align-self: start; height: calc(100% - 64px); overflow: hidden; border-radius: var(--r-lg);
                      background: radial-gradient(70% 70% at 50% 50%, rgb(255 255 255 / .1), rgb(255 255 255 / .03) 70%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.tt-hero .hero__art > .dg { position: absolute; inset: 0; }
.tt-hero .dg {
  --ink: #2b2f36; --muted: #5b6270; --card: #ffffff; --accent: var(--tt-action); --accent-ink: #ffffff;
  --dg-line: rgb(255 255 255 / .6); --dg-faint: rgb(255 255 255 / .32); --dg-dot: rgb(255 255 255 / .22);
  --dg-pulse: #ffffff; --dg-head: #ffffff; --dg-halo: 0;
  --dg-shadow: 0 1px 2px rgb(20 10 90 / .12), 0 12px 24px -12px rgb(20 10 90 / .45);
}
.tt-hero .dg .dg-cap { color: #ffffff; }
@media (max-width: 1023px) { .tt-hero .hero__art { height: auto; align-self: stretch; min-height: 260px; } }
@media (max-width: 639px) {
  .tt-hero .hero__art { min-height: 184px; margin-top: var(--s-5); }
  .tt-hero__facts { margin-top: var(--s-5) !important; padding-top: var(--s-4); gap: var(--s-3); }
  .tt-hero__facts b { font-size: 22px; }
  .tt-hero__facts li > span { font-size: var(--t-label); }
}

/* la órbita del CRM (portada de Inicio): la placa «CRM» (solo el texto) en el centro, con un halo que late, y las funcionalidades
   del CRM en chips sobre dos anillos que giran en sentidos opuestos (interior 44 s, exterior 56 s por vuelta); cada chip
   contrarrota con su anillo y queda siempre horizontal. Solo transform (rotate) y opacity. Sin marco: los anillos lo dibujan.
   Desde 1280 se dibuja a la medida de su caja (--u: 1px a 608 x 600, menos si la caja es más pequeña) y queda centrada
   en vertical con el texto. Radios y anchos medidos para que ningún chip toque a otro en ningún momento del giro
   (cruce de anillos: placa + chip interior + chip exterior caben en media caja). Quieta con prefers-reduced-motion
   (la pose de reposo es el dibujo completo), fuera de pantalla (.is-off) y con el botón de pausa (.is-held, main.js
   sección 7, que también para el suelo). Por debajo de 1280, rejilla quieta: la placa en el centro y 8 chips alrededor. */
.tt-hero .hero__art.tt-orbit-art {
  align-self: stretch; height: auto; min-height: 0; overflow: visible; border-radius: 0; background: none; box-shadow: none;
  container-type: size;
}
.tt-orbit {
  --u: min(1px, calc(100cqw / 608), calc(100cqh / 600));
  --r1: calc(110 * var(--u)); --r2: calc(246 * var(--u));
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  color: var(--tt-ink); font-size: calc(13 * var(--u));
}
.tt-orbit__core { position: absolute; left: 0; top: 0; translate: -50% -50%; display: grid; place-items: center; z-index: 2; }
.tt-orbit__halo, .tt-orbit__plate { grid-area: 1 / 1; width: calc(88 * var(--u)); height: calc(88 * var(--u)); border-radius: 50%; }
.tt-orbit__halo { background: rgb(255 255 255 / .5); opacity: 0; }
.tt-orbit__plate {
  position: relative; display: grid; place-content: center; justify-items: center; gap: calc(4 * var(--u));
  background: #ffffff; box-shadow: 0 0 0 calc(8 * var(--u)) rgb(255 255 255 / .16), 0 1px 2px rgb(20 10 90 / .14), 0 18px 36px -14px rgb(20 10 90 / .55);
}
.tt-orbit__plate b { font: 600 calc(24 * var(--u)) / 1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.tt-orbit__ring {
  --r: var(--r1);
  position: absolute; left: calc(-1 * var(--r)); top: calc(-1 * var(--r)); width: calc(2 * var(--r)); height: calc(2 * var(--r));
  border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4);
}
.tt-orbit__ring--out { --r: var(--r2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
/* cada hueco: un punto del anillo, repartidos a partes iguales (el exterior arranca medio paso girado) */
.tt-orbit__slot {
  --a: calc(var(--i) * 1turn / var(--n) + var(--a0, 0turn));
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
}
.tt-orbit__ring--out .tt-orbit__slot { --a0: calc(.5turn / var(--n)); }
.tt-orbit__chip {
  position: absolute; left: 0; top: 0; translate: -50% -50%; width: max-content;
  display: flex; align-items: center; gap: calc(6 * var(--u));
  padding: calc(7 * var(--u)) calc(11 * var(--u)) calc(7 * var(--u)) calc(8 * var(--u));
  border-radius: calc(10 * var(--u)); background: #ffffff; color: var(--tt-ink);
  font-weight: 500; line-height: 1.25; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(20 10 90 / .12), 0 12px 24px -12px rgb(20 10 90 / .45);
}
.tt-orbit__chip svg {
  flex: none; width: calc(17 * var(--u)); height: calc(17 * var(--u));
  fill: none; stroke: var(--tt-action); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes tt-orbit-cw { to { rotate: 1turn; } }
@keyframes tt-orbit-ccw { to { rotate: -1turn; } }
@keyframes tt-orbit-halo { 0% { opacity: .55; scale: 1; } 70%, 100% { opacity: 0; scale: 1.7; } }
@media (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
  .tt-orbit__ring--out { animation: tt-orbit-cw 56s linear infinite; }
  .tt-orbit__ring--out .tt-orbit__chip { animation: tt-orbit-ccw 56s linear infinite; }
  .tt-orbit__ring--in { animation: tt-orbit-ccw 44s linear infinite; }
  .tt-orbit__ring--in .tt-orbit__chip { animation: tt-orbit-cw 44s linear infinite; }
  .tt-orbit__halo { animation: tt-orbit-halo 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
  .tt-hero:is(.is-held, .is-off) .tt-orbit :is(.tt-orbit__ring, .tt-orbit__chip, .tt-orbit__halo) { animation-play-state: paused; }
}
/* por debajo de 1280: rejilla quieta, la placa en el centro y los 8 chips de la versión del móvil alrededor (3 x 3;
   en el móvil, 2 columnas con la placa en medio). El botón de pausa sigue ahí desde 640 (para el suelo, que se mueve) */
@media (max-width: 1279px) {
  .tt-hero .hero__art.tt-orbit-art { container-type: normal; flex: none; align-self: center; padding-bottom: 52px; }
  .tt-orbit {
    --u: 1px; position: static; width: 100%; max-width: 480px; height: auto; margin-inline: auto;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch;
  }
  .tt-orbit__ring, .tt-orbit__slot { display: contents; }
  .tt-orbit__slot--wide { display: none; }
  .tt-orbit__ring--in .tt-orbit__chip { order: 1; }
  .tt-orbit__core { position: static; translate: none; grid-column: 2; grid-row: 2; }
  .tt-orbit__chip {
    position: static; translate: none; width: auto; flex-direction: column; justify-content: center; gap: 6px;
    padding: 12px 8px; text-align: center; white-space: normal;
  }
  .tt-orbit__chip svg { width: 20px; height: 20px; }
}
@media (max-width: 1023px) { .tt-hero .hero__art.tt-orbit-art { align-self: stretch; margin-top: var(--s-6); } }   /* apilada: a todo el ancho, bajo el texto */
@media (max-width: 639px) {
  .tt-hero .hero__art.tt-orbit-art { padding-bottom: 0; }
  .tt-orbit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tt-orbit__core { grid-column: 1 / -1; grid-row: 3; }
  .tt-orbit__chip { flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 12px 10px 10px; gap: 8px; }
  .tt-orbit__chip svg { width: 18px; height: 18px; }
  .tt-hero button.loop-pause.tt-orbit__pause { display: none; }
}

/* ---------------------------------------------------------------- 4. interfaz de producto (.tt-*)
   Dibujada dentro de .ui (tokens --u-* de ui/base.css): 13 px de texto, 12 px de meta. Siempre en
   blanco sobre el suelo iluminado (blanco azulado). */
.tt-win, .tt-card, .tt-frag { --fx-bg: #ffffff; --fx-surface: #f4f6fd; --fx-ink: #2b2f36; --fx-muted: #5b6270; --fx-accent: #0b5fff; --fx-accent-ink: #ffffff; color: var(--u-ink); }
.tt-win { background: var(--u-bg); border-radius: var(--u-r); box-shadow: 0 0 0 1px var(--u-border), var(--u-shadow); overflow: hidden; }
.tt-win__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); }
.tt-win__dots { display: flex; gap: 6px; } .tt-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--u-fill-3); }
.tt-win__crumb b { color: var(--u-ink); font-weight: 500; }
.tt-win__body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 640px; }
.tt-win__main { display: grid; align-content: start; gap: 16px; padding: 20px 20px 20px 20px; min-width: 0; }
.tt-win__title { font-size: 16px; line-height: 24px; font-weight: 500; }
.tt-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tt-kpi { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--u-r2); background: var(--u-fill); box-shadow: inset 0 0 0 1px var(--u-line); }
.tt-kpi__label { color: var(--u-muted); font-size: 12px; line-height: 16px; }
.tt-kpi__value { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.01em; }
.tt-bar { height: 6px; border-radius: 3px; background: var(--u-fill-3); overflow: hidden; }
.tt-bar > i { display: block; height: 100%; width: var(--v, 50%); border-radius: inherit; background: linear-gradient(90deg, var(--tt-violet), var(--tt-blue) 60%, var(--tt-cyan)); }
.tt-list__head { color: var(--u-muted); font-size: 12px; line-height: 16px; }
.tt-rows { display: grid; border-top: 1px solid var(--u-line); }
.tt-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--u-line); }
.tt-row__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--u-r3); background: var(--tt-tint-blue); color: var(--tt-action); }
.tt-row__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tt-row__text { display: grid; min-width: 0; }
.tt-row__text b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-row__text small { color: var(--u-muted); font-size: 12px; line-height: 16px; }
.tt-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-line-2); }
.tt-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.tt-chip--on { color: var(--u-accent-text); background: var(--u-tint); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--u-accent) 24%, transparent); }
.tt-chip--plain::before { display: none; }
.tt-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--u-r3); background: var(--u-ink); color: var(--u-bg); font-size: 12px; font-weight: 500; }
.tt-btn--accent { background: var(--u-accent); color: var(--u-accent-ink); }

/* la tarjeta pequeña: el resultado (una factura emitida), paso a paso (layout.js [data-ly-steps]) */
.tt-card { display: grid; gap: 8px; padding: 14px 16px; background: var(--u-bg); border-radius: var(--u-r); box-shadow: 0 0 0 1px var(--u-border), var(--u-shadow); }
.tt-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tt-card__row b { font-weight: 500; }
.tt-line { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--u-line); color: var(--u-text-2); }
.tt-line i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--u-tint); color: var(--u-accent-text); font-style: normal; font-size: 12px; font-weight: 500; }

/* fragmento suelto (una lista, una remesa, una convocatoria) */
.tt-frag { display: grid; gap: 10px; padding: 14px 16px; background: var(--u-bg); border-radius: var(--u-r); box-shadow: 0 0 0 1px var(--u-border), var(--u-shadow); }
.tt-frag__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tt-frag__head b { font-weight: 500; }
.tt-frag__meta { color: var(--u-muted); font-size: 12px; line-height: 16px; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-field { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: var(--u-r3); background: var(--u-fill); box-shadow: inset 0 0 0 1px var(--u-line); color: var(--u-muted); }
.tt-field svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ---------------------------------------------------------------- 5. componentes de lectura
   Para partir la información en piezas cortas. Todos funcionan sin JavaScript. */
/* datos destacados: cifra grande + una línea (fuera de tarjetas y paneles) */
.tt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-5); padding: 0; margin: 0; list-style: none; }
.tt-stats li { display: grid; gap: var(--s-1); align-content: start; padding-top: var(--s-4); border-top: 2px solid; border-image: linear-gradient(90deg, var(--tt-violet), var(--tt-blue), var(--tt-cyan)) 1; }
.tt-stats b { font: var(--display-weight) var(--t-stat)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tt-stats span { font-size: var(--t-small); color: var(--muted); }

/* lista con iconos: un icono en un cuadro de tinte suave, el nombre y una línea */
.tt-feats { display: grid; gap: var(--s-4); padding: 0; margin: 0; list-style: none; }
.tt-feats li { display: grid; gap: var(--s-1); }
.tt-feats__ico { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--r-sm);
                 background: linear-gradient(135deg, var(--tt-tint-violet), var(--tt-tint-blue)); color: var(--tt-action); }
.tt-feats__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tt-feats b { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.tt-feats p { margin: 0; color: var(--ink); font-size: var(--t-small); line-height: 1.5; }

/* etiquetas (chips de página, 14 px): datos cortos en línea */
.tt-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: 0; margin: 0; list-style: none; }
.tt-tags li { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 32px; padding: 0 var(--s-3); border-radius: 999px;
              background: var(--tt-tint-blue); color: var(--tt-ink); font-size: var(--t-small); font-weight: 500; }
.tt-tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--tt-violet), var(--tt-cyan)); }

/* lista con marcas de verificación (dentro de un panel de pestaña o de un desplegable) */
.tt-checks { display: grid; gap: var(--s-2); padding: 0; margin: 0; list-style: none; }
.tt-checks li { position: relative; padding-left: 28px; }
.tt-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--tt-tint-blue)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%230b5fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* pestañas (receta tabs-tour del kit): .tabs[role=tablist] + paneles de texto apilados, de una altura
   fija (el panel más alto), para que la sección no cambie de tamaño al cambiar de pestaña. system.js
   muestra y oculta el panel y su pantalla juntos (aria-controls="tab-x screen-x"). */
.tt-tabpanels { display: grid; margin-top: var(--s-5); }
.tt-tabpanels > [role="tabpanel"] { grid-area: 1 / 1; display: grid; align-content: start; gap: var(--s-4); }
.tt-tabpanels > [role="tabpanel"][hidden] { display: grid !important; visibility: hidden; }   /* !important: system.css pone [hidden] { display: none !important } */
.tt-tabpanels > [role="tabpanel"] > p { max-width: 52ch; }


/* desplegable (<details class="tt-disclosure">): para las páginas con mucha información (Precios,
   Funcionalidades). Un resumen en una línea con su chevron; el contenido abierto, sin animar la altura.
   Ojo: el gate abre cada <details> y marca la sección si cambia de altura (section-height,
   T-height-change): úsalo en una sección de dos pantallas con sitio para el contenido abierto, o
   añade un waiver con el motivo «petición explícita del cliente». */
.tt-disclosure { border-bottom: 1px solid var(--line); }
.tt-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; cursor: pointer;
                           list-style: none; font-weight: 500; color: var(--ink); }
.tt-disclosure > summary::-webkit-details-marker { display: none; }
.tt-disclosure > summary::after { content: ""; flex: none; width: 20px; height: 20px; transition: transform var(--dur) var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%232b2f36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.tt-disclosure[open] > summary::after { transform: rotate(180deg); }
.tt-disclosure > summary:hover { color: var(--tt-action); }
.tt-disclosure > summary:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: var(--r-sm); }
.tt-disclosure > :not(summary) { padding-bottom: var(--s-5); }
@media (prefers-reduced-motion: reduce) { .tt-disclosure > summary::after { transition: none; } }

/* ---------------------------------------------------------------- 6. secciones de Inicio */

/* tres tarjetas con icono en una fila (#equipo de /producto/; cola, punto 9): .card del kit con el icono en
   .tt-feats__ico dentro del h3, como en «Qué es TimTul». Por debajo de 1024, una columna. */
.tt-cards3 { row-gap: var(--card-gap); }
.tt-cards3 > .card > h3 { display: flex; align-items: center; gap: var(--s-3); }
.tt-cards3 > .card > h3 + p { margin-top: var(--s-3); }
@media (max-width: 1023px) { .tt-cards3 > * { grid-column: 1 / -1; } }

/* «Qué es TimTul»: a la izquierda el h2 y la definición citable; a la derecha tres tarjetas del sistema
   (.card de ui/cards.css) apiladas, en blanco sobre la superficie (la sección es ground-surface: la abre el momento iris-opens). Por debajo de 1024, una columna con el texto primero. */
.tt-quees__text > * + * { margin-top: var(--s-5); }
.tt-quees__cards { display: grid; gap: var(--s-4); align-content: start; }
#que-es .card { border-color: color-mix(in oklab, var(--tt-violet) 16%, transparent); }   /* blancas: la sección va sobre la superficie (ground-surface) */
#que-es .card > h3 { display: flex; align-items: center; gap: var(--s-3); }
#que-es .card > h3 + * { margin-top: var(--s-3); }
#que-es .card .tt-tags li { background: #ffffff; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tt-action) 18%, transparent); }
.tt-quees__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.tt-quees__price b { font: var(--display-weight) var(--t-stat)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
                     background: linear-gradient(115deg, var(--tt-violet), var(--tt-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt-quees__price span { font-weight: 500; color: var(--ink); }
#que-es .card > .tt-quees__price + p { margin-top: var(--s-1); }

@media (max-width: 1023px) {
  .tt-quees > * { grid-column: 1 / -1; }
  .tt-quees__cards { margin-top: var(--s-6); }
}

/* «Plan Gratis»: el texto a la izquierda, la primera semana en un panel a la derecha */
.tt-gratis__text > * + * { margin-top: var(--s-4); }
.tt-gratis__text .tt-feats { margin-top: var(--s-5); }
.tt-gratis__text .btn-row { margin-top: var(--s-6); }
.tt-gratis__panel { display: grid; place-items: center; }
@media (max-width: 1023px) {
  #gratis .grid > * { grid-column: 1 / -1; }
  .tt-gratis__panel { margin-top: var(--s-6); }
}

/* pestañas con pantalla (Funcionalidades #areas, Consultoría): las pestañas a la izquierda, su pantalla a la derecha. Las pantallas se apilan en la misma
   celda (como los paneles de texto): el marco mide la más alta y no cambia de tamaño al cambiar de pestaña.
   La oculta queda con visibility: hidden (system.js pone y quita [hidden]). */
.tt-screens { position: relative; display: grid; }
.tt-screens > [id^="screen-"] { grid-area: 1 / 1; display: grid; place-items: center; min-width: 0; }
.tt-screens > [id^="screen-"][hidden] { display: grid !important; visibility: hidden; }   /* !important: system.css pone [hidden] { display: none !important } */
@media (max-width: 1023px) {
  .tt-screens { margin-top: var(--s-6); }
}

/* planes (comparison-table): las etiquetas en span-2 y cinco planes en span-2; por debajo de 1024,
   cada plan una fila (nombre y precio a la izquierda, sus datos a la derecha). El Gratis, resaltado. */
#planes { isolation: isolate; }
.tt-plans { margin-top: 0; }
.tt-plans__labels, .tt-plan { display: grid; grid-template-rows: 112px repeat(3, 56px); }
.tt-plans__labels > span, .tt-plan dl > div { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.tt-plans__labels > span:first-child, .tt-plan__head { border-bottom: 1px solid var(--line); }
.tt-plans__labels > span { color: var(--muted); }
.tt-plan dl { display: contents; }
.tt-plan dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tt-plan dd { margin: 0; font-variant-numeric: tabular-nums; }
.tt-plan__head { position: relative; display: grid; align-content: start; gap: var(--s-1); }
.tt-plan__head > .tt-badge { justify-self: start; margin-top: var(--s-1); }
.tt-plan__head h3 { font: 500 var(--t-lead)/1.4 var(--font-text); letter-spacing: 0; }
.tt-plan__price { font: var(--display-weight) var(--t-stat)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-plan__price small { font: 400 var(--t-small)/1 var(--font-text); color: var(--muted); letter-spacing: 0; }
/* el Gratis: un panel de tinte violeta-azul por detrás (fuera de las líneas de la columna, en el hueco
   entre columnas, para que el texto siga en su línea) y una etiqueta */
.tt-plan--free { position: relative; }
.tt-plan--free::before { content: ""; position: absolute; z-index: -1; inset: -12px -12px -12px -12px; border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--tt-tint-violet), var(--tt-tint-blue)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tt-violet) 30%, transparent); }
.tt-plan--free .tt-plan__price { background: var(--tt-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tt-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--tt-action); color: #ffffff; font-size: var(--t-label); font-weight: 500; line-height: 1; }
.tt-plans__foot { margin-top: var(--s-7); max-width: 72ch; }
@media (max-width: 1023px) {
  .tt-plans__labels { display: none; }
  .tt-plans > .tt-plan { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: start; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
  .tt-plans > .tt-plan:first-of-type { padding-top: var(--s-3); }
  .tt-plans > .tt-plan--free { border-bottom-color: transparent; }
  .tt-plan__head { border-bottom: 0; }
  .tt-plan dl { display: grid; gap: var(--s-1); }
  .tt-plan dl > div { display: flex; justify-content: space-between; gap: var(--s-3); border-bottom: 0; font-size: var(--t-small); }
  .tt-plan dt { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--muted); }
  .tt-plans { row-gap: 0; }
  .tt-plan--free::before { inset: 0 -12px; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .tt-plan__price { font-size: 24px; } }
@media (max-width: 639px) {
  .tt-plan__price { font-size: 24px; }
  .tt-plans > .tt-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); padding-block: var(--s-3); }
  .tt-plan__head h3 { font-size: var(--t-body); }
  .tt-plan dl { gap: 0; }
  .tt-plan dl > div { display: block; font-size: var(--t-label); line-height: 18px; }
  .tt-plan dt::after { content: ": "; }
  .tt-plan dt, .tt-plan dd { display: inline; }
  .tt-plan dl > div:last-child { display: none; }   /* «Registros: Ilimitados» lo dice la línea de debajo */
}

/* Consultoría: el texto a la izquierda, el área privada (una pantalla quieta) a la derecha */
.tt-pane { position: relative; display: grid; place-items: center; padding: var(--s-6); border-radius: var(--r-lg);
           background: radial-gradient(60% 80% at 100% 0%, var(--tt-tint-blue), transparent 70%), radial-gradient(60% 70% at 0% 100%, var(--tt-tint-violet), transparent 70%), var(--ground-bg); }
@media (max-width: 1023px) { #consultoria .tt-pane { margin-top: var(--s-6); } }
@media (max-width: 639px) {
  #consultoria .t-lead { font-size: var(--t-body); margin-top: var(--s-4) !important; }
  #consultoria .btn-row { margin-top: var(--s-5) !important; }
}

/* móvil: las tres columnas del pie en una fila */
@media (max-width: 639px) { .closing__links .footer__col { grid-column: span 6; } }
/* 320-379: la barra no cabe con el botón; la acción queda en la barra fija de abajo y en el hero */
@media (max-width: 379px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle { margin-left: auto; }
}

/* ---------------------------------------------------------------- 7. panel FAQ
   Pestaña fija a la derecha (abre el panel) y <dialog> lateral con buscador.
   Markup generado por scripts/build-faq.mjs; lógica en assets/js/main.js. */
.faq-tab {
  position: fixed; right: 0; top: 50%; z-index: 9; transform: translateY(-50%);
  display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: var(--s-3) var(--s-2);
  writing-mode: vertical-rl; border: 1px solid transparent; border-right: 0; border-radius: var(--r-btn) 0 0 var(--r-btn);
  background: color-mix(in oklab, var(--ink) 8%, var(--bg)); color: var(--ink); font: 500 var(--t-small)/1 var(--font-text); cursor: pointer;
  transition: background-color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.faq-tab:hover { background: color-mix(in oklab, var(--ink) 14%, var(--bg)); padding-right: var(--s-3); }
.faq-tab:active { background: color-mix(in oklab, var(--ink) 18%, var(--bg)); }
.faq-tab:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.faq-tab svg { width: 18px; height: 18px; writing-mode: horizontal-tb; }
@media (max-width: 639px) {
  /* en el móvil, un botón redondo de 48 px abajo a la derecha, por encima de la barra fija de acción */
  .faq-tab { top: auto; bottom: calc(16px + var(--bar, 0px)); right: 16px; transform: none; writing-mode: horizontal-tb;
             width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: var(--r-btn); }
  .faq-tab:hover { padding-right: 0; }
  .faq-tab__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.faq-panel {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); height: 100dvh; max-height: none; max-width: none;
  padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.faq-panel::backdrop { background: color-mix(in oklab, #1d1a4a 40%, transparent); }
.faq-panel__inner { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); height: 100%; padding: var(--s-5); gap: var(--s-4); }
.faq-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.faq-panel__head h2 { font-size: var(--t-h3); margin: 0; }
.faq-panel .faq { overflow-y: auto; padding-right: var(--s-2); }
.faq-panel .faq__item h3 { font-size: var(--t-body); }
.faq-panel .faq__item[hidden] { display: none; }
.faq-search { display: grid; gap: var(--s-2); }
.faq-search label { font-size: var(--t-small); font-weight: 500; }
.faq-search input {
  height: 48px; padding: 0 var(--s-4); border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: 400 var(--t-body)/1 var(--font-text);
}
.faq-search input:hover { border-color: color-mix(in oklab, var(--ink) 40%, transparent); }
.faq-search input:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; border-color: var(--action); }
.faq-empty { color: var(--muted); }
.faq-empty[hidden] { display: none; }

/* botón de cerrar de los dos diálogos */
.tt-close {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: var(--r-btn); background: transparent; color: var(--ink); cursor: pointer;
}
.tt-close:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.tt-close:active { background: color-mix(in oklab, var(--ink) 10%, transparent); }
.tt-close:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.tt-close svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- 8. formulario en popup
   Campos con .field / .field__error / .form__status del sistema; el popup es propio. */
.tt-modal {
  width: min(560px, calc(100vw - 2 * var(--gut))); max-height: calc(100dvh - 2 * var(--s-5)); margin: auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); overflow: auto;
}
.tt-modal::backdrop { background: color-mix(in oklab, #1d1a4a 40%, transparent); }
.tt-modal__inner { display: grid; gap: var(--s-5); padding: var(--s-6); }
@media (max-width: 639px) { .tt-modal__inner { padding: var(--s-5); } }
.tt-modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.tt-modal__head h2 { font-size: var(--t-h3); margin: 0; }
.tt-modal .tt-form { display: grid; }
.tt-modal .field__opt { font-weight: 400; color: var(--muted); }
.tt-modal .field--check { grid-template-columns: 24px minmax(0, 1fr); align-items: start; column-gap: var(--s-3); font-weight: 400; font-size: var(--t-body); }
.tt-modal .field--check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--action); }
.tt-modal .field--check .field__error { grid-column: 1 / -1; }
/* selects de entidad (idioma, tipo, país): misma caja que los campos de texto, táctiles (48 px, texto de 16 px para que iOS no haga zoom) */
.tt-modal .field select { min-height: 48px; font-size: max(16px, var(--t-body)); cursor: pointer; text-overflow: ellipsis; }
.tt-modal .field select:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.tt-modal .btn[disabled] { opacity: .6; cursor: progress; }
.tt-modal .tt-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tt-modal .form__error { padding: var(--s-4); border-radius: var(--r-md); background: color-mix(in oklab, var(--error, #c0362c) 10%, var(--bg)); color: var(--ink); }
.tt-modal .form__error a { color: var(--action); text-decoration: underline; }
.tt-modal .form__ok { display: grid; gap: var(--s-4); }
.tt-modal [hidden] { display: none !important; }
:root.is-locked { overflow: hidden; }
/* selector de plan y de facturación (solo en los popups «Plan …»): radios nativos en tarjetitas de 56 px
   (la de facturación, 48 px). Elegida: borde azul vivo de 2 px y tinte azul; foco: el anillo del sistema
   en la tarjetita; hover: borde más oscuro. Cinco planes en 3 + 2 columnas; en el móvil, 2 columnas. */
.tt-choice { display: grid; gap: var(--s-2); min-width: 0; margin-inline: 0; margin-bottom: 0; padding: 0; border: 0; }
.tt-choice > legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--t-small); font-weight: 500; color: var(--ink); }
.tt-choice__opts { display: grid; gap: var(--s-2); }
.tt-choice__opts--plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tt-choice__opts--seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-choice__opt { position: relative; display: grid; align-content: center; gap: 2px; min-height: 56px; padding: var(--s-2) var(--s-3);
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); border-radius: var(--r-sm); background: var(--bg); color: var(--ink);
  cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.tt-choice__opts--seg .tt-choice__opt { min-height: 48px; justify-items: center; text-align: center; }
.tt-choice__opt > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tt-choice__name { font-size: var(--t-body); font-weight: 500; line-height: 1.3; }
.tt-choice__meta { font-size: var(--t-label); line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
.tt-choice__opt:hover { border-color: color-mix(in oklab, var(--ink) 45%, transparent); }
.tt-choice__opt:has(input:checked) { border: 2px solid var(--tt-action); padding: calc(var(--s-2) - 1px) calc(var(--s-3) - 1px); background: var(--tt-tint-blue); }
.tt-choice__opt:has(input:checked) .tt-choice__name { color: var(--tt-action); }
.tt-choice__opt:has(input:checked) .tt-choice__meta { color: var(--ink); }
.tt-choice__opt:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.tt-choice__sum { margin: var(--s-1) 0 0; font-size: var(--t-small); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .tt-choice__opts--plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .tt-choice__opt { transition: none; } }
/* el popup no usa la clase .form del kit (system.js no lo toma), así que define aquí el mismo rojo de error */
.tt-form { --error: color-mix(in oklab, #d92d20 72%, var(--ink)); }

/* ---------------------------------------------------------------- ajustes tras la primera ronda */
/* la pestaña elegida en azul vivo (la píldora que motion.js desliza, y sin motion la propia pestaña) */
.tabs > .m-tab-ind { background: var(--tt-action); }
.tabs:not(.m-has-ind) .tab[aria-selected="true"] { background: var(--tt-action); border-color: var(--tt-action); color: #ffffff; }
.tabs.m-has-ind .tab[aria-selected="true"] { color: #ffffff; }
/* el suelo animado de la portada no lleva botón propio (data-no-pause): el botón de pausa de la red (Funcionalidades)
   o de la órbita del CRM (Inicio) lo para también (main.js, sección 7), así hay un solo botón en la portada */
/* en el móvil la portada no se mueve sola (como hace el kit con sus suelos): el degradado queda quieto */
@media (max-width: 639px) { .hero.tt-hero.bg-liquid::before, .hero.tt-hero.bg-liquid::after { animation: none; } }
/* 1024-1279: la columna del texto de la portada mide lo que en el móvil: los datos, a su tamaño */
@media (min-width: 1024px) and (max-width: 1279px) {
  .tt-hero__facts { gap: var(--s-3); }
  .tt-hero__facts b { font-size: 22px; }
  .tt-hero__facts li > span { font-size: var(--t-label); }
}

/* móvil, ronda 2 */
@media (max-width: 639px) {
  .tt-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-plans > .tt-plan { padding-block: var(--s-2); }
  .tt-plans__foot { margin-top: var(--s-5); }
}
@media (max-width: 639px) {
  .tt-plan__head { grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: var(--s-2); }
  .tt-plan__head > h3 { grid-column: 1 / -1; }
  .tt-plan__head > .tt-badge { margin-top: 0; }
  .tt-plans > .tt-plan:first-of-type { padding-top: var(--s-2); }
}
@media (max-width: 639px) { .tt-hide-phone { display: none; } }

/* precios + consultoría */
/* selector Mensual / Anual (main.js, sección 2: data-period + aria-pressed): el elegido, en el azul de los botones */
.price-toggle { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }
.price-toggle .tab[aria-pressed="true"] { background: var(--tt-action); border-color: var(--tt-action); color: #ffffff; }
/* la nota que main.js añade bajo el precio en anual (mensual tachado y total al año): su sitio ya está reservado */
.tt-plan .price { flex-wrap: wrap; column-gap: var(--s-2); row-gap: 0; }
.price-note { flex-basis: 100%; margin: 0; font: 400 var(--t-label)/1.4 var(--font-text); letter-spacing: 0; color: var(--muted); }
.price-note del { margin-right: var(--s-1); }
/* la tabla de Precios: cinco filas de datos y la fila del botón */
@media (min-width: 1024px) {
  .tt-plans--full > .tt-plans__labels, .tt-plans--full > .tt-plan { grid-template-rows: 156px repeat(6, 40px) 52px; }
}
.tt-plan__cta { display: flex; align-items: center; }
.tt-plan__cta .btn { width: 100%; }
@media (max-width: 1023px) { .tt-plans--full .tt-plan__cta { grid-column: 1 / -1; margin-top: var(--s-3); } }
/* 1024–1279 px: las cinco columnas de la tabla miden ~122 px y los botones (24 px de relleno) las desbordaban y se tocaban
   («Empieza gratis» pisaba la columna de Esencial; «Contáctanos» salía de la rejilla). Revisión 16/11/2026. */
@media (min-width: 1024px) and (max-width: 1279px) { .tt-plans--full .tt-plan__cta .btn { padding-inline: var(--s-2); font-size: 15px; } }
.tt-badge--quiet { background: var(--tt-tint-blue); color: var(--tt-action); }
/* portada de Precios: la tarjeta del plan Gratis en el marco de la derecha */
.tt-hero .hero__art.tt-hero__plan { display: grid; place-items: center; padding: var(--s-6); }
.tt-hero__plan > .tt-frag { width: min(360px, 100%); }
@media (max-width: 639px) { .tt-hero .hero__art.tt-hero__plan { padding: var(--s-4); } }
/* el consumo del mes: barras frente al límite del plan */
.tt-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--u-line); }
.tt-meter > b { font-weight: 500; }
.tt-meter > span { font-variant-numeric: tabular-nums; color: var(--u-text-2); }
.tt-meter > .tt-bar, .tt-meter > small { grid-column: 1 / -1; }
.tt-meter > small { color: var(--u-muted); font-size: 12px; line-height: 16px; }
/* texto a la izquierda y su pieza a la derecha; por debajo de 1024, una columna */
@media (max-width: 1023px) {
  .tt-split > * { grid-column: 1 / -1; }
  .tt-split > .tt-pane, .tt-split > .tt-screens, .tt-split > .tt-discs { margin-top: var(--s-6); }
}
.tt-col > * + * { margin-top: var(--s-5); }
.tt-col > .btn-row { margin-top: var(--s-6); }
/* desplegables apilados (sin borde arriba del primero) */
.tt-discs > .tt-disclosure:first-child > summary { border-top: 1px solid var(--line); }
.tt-discs .tt-disclosure p { max-width: 56ch; }
.tt-feats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-5); align-content: start; }
@media (max-width: 639px) { .tt-feats--2 { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-4); } }
.tt-foot { margin-top: var(--s-8) !important; }
.tt-plans--full > .tt-plans__labels > span:last-child { border-bottom: 0; }
@media (max-width: 1023px) { .tt-plans--full .price:has([data-annual-total]) { min-height: 48px; align-content: flex-start; } }
/* Precios, «Pago anual»: el ejemplo del pago anual de Profesional bajo el texto */
.tt-col > .tt-pane { margin-top: var(--s-6); }
/* las cifras que ruedan (counter-rolls) se arman con spans: conservan el tamaño y el color de la cifra */
.tt-stats b span { font-size: inherit; color: inherit; }
/* móvil: en la tabla de Precios, nombre, precio y etiqueta uno bajo otro (la etiqueta en una línea) */
@media (max-width: 639px) { .tt-plans--full .tt-plan__head { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-1); } .tt-plans--full .tt-badge { white-space: nowrap; } }
/* Precios: las cifras que ruedan, en la tinta (texto de lectura, 7:1) */
.tt-stats.tt-foot > li > span { color: var(--ink); }

/* producto + funcionalidades
   Piezas de /producto/ (CRM) y /funcionalidades/: la ficha de la socia en la portada, las cuatro áreas en
   tarjetas, el momento de cada página, el diagrama sobre el suelo iluminado, etiquetas de disponibilidad,
   la tabla de consumo de créditos y los desplegables con etiqueta. */
/* portada del CRM: la ficha (blanca) dentro del marco translúcido de la portada */
.tt-hero .hero__art.tt-ficha-art { display: grid; place-items: center; padding: var(--s-6); }
.tt-ficha { width: min(440px, 100%); }
.tt-ficha__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
@media (max-width: 1023px) { .tt-hero .hero__art.tt-ficha-art { flex: none; min-height: 0; padding: var(--s-5); } }   /* flex: none: con el flex 1 1 0 del kit y min-height 0 la ficha se recortaba a 24 px en el móvil (revisión 16/11/2026) */
@media (max-width: 639px) {
  .tt-hero .hero__art.tt-ficha-art { padding: var(--s-3); }
  .tt-ficha :is(.tt-ficha__org, .tt-ficha__lh, .tt-ficha__more, .tt-ficha__ev) { display: none; }
  .tt-hero:has(.tt-ficha-art) .tt-hero__facts { display: none; }
}
/* las cuatro áreas del CRM (features-2x2): un alto de panel para el grupo */
#que-hace .panel { --p-h: 248px; }   /* (cola, punto 1) la mini-UI más alta (169) con 40 arriba y 40 abajo */
@media (max-width: 639px) { #que-hace .panel { --p-h: 240px; } }   /* la mini-UI entera (hasta 196) con 24 arriba y 20 abajo */
/* texto + desplegables + botón, en columna */
.tt-mas__text > * + *, .tt-medida__text > * + * { margin-top: var(--s-5); }
.tt-mas__text .btn-row, .tt-medida__text .btn-row { margin-top: var(--s-6); }
/* el diagrama de la web y el área privada sobre el suelo iluminado */
/* el diagrama se dibuja a la medida de su marco: el marco tiene un alto propio (no el de la pantalla) */
.tt-mas__art { position: relative; height: 440px; padding: 0; overflow: hidden; }
.tt-mas__art > .dg { position: absolute; inset: 0; }
@media (max-width: 1023px) {
  #mas-crm .grid > *, #areas .grid > *, #a-medida .grid > * { grid-column: 1 / -1; }
  .tt-mas__art { height: 360px; margin-top: var(--s-6); }
  #areas .tt-screens { margin-top: var(--s-6); }
}
/* etiquetas de disponibilidad: la sólida (todos los planes) y la suave (desde un plan, a medida, prevista) */
.tt-badge--soft { background: var(--tt-tint-blue); color: var(--tt-action); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tt-action) 22%, transparent); }
.tt-area__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font: 500 var(--t-lead)/1.3 var(--font-text); letter-spacing: 0; }
.tt-sum { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.tt-medida__list { align-self: start; border-top: 1px solid var(--line); }
/* tabla de consumo de créditos: filas de 48 px con su filete, el consumo a la derecha */
.tt-table { width: 100%; margin-top: var(--s-6); border-collapse: collapse; font-size: var(--t-body); }
.tt-table th, .tt-table td { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.tt-table thead th { font-size: var(--t-label); color: var(--muted); font-weight: 500; }
.tt-table td, .tt-table thead th:last-child { text-align: right; padding-left: var(--s-4); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.tt-consumo__title { font: 500 var(--t-lead)/1.3 var(--font-text); }
@media (min-width: 640px) { .tt-table th, .tt-table td { padding-block: var(--s-4); } }
@media (max-width: 639px) {
  .tt-table { font-size: var(--t-small); }
  .tt-table td { white-space: normal; }
  .tt-mas__art { height: 280px; }
}
/* producto + funcionalidades: la web conectada bajo el texto de «A medida» */
@media (max-width: 639px) { #a-medida .tt-medida__list { margin-top: var(--s-6); } }

/* programa de recomendación del plan Gratis: una línea con el icono de regalo y su nota con asterisco
   (Inicio, bajo las etiquetas del plan Gratis; Precios, al pie de la tabla, desde la columna del Gratis) */
.tt-refer-box { display: grid; gap: var(--s-2); }
.tt-refer { display: flex; align-items: center; gap: var(--s-2); margin: 0; font-size: var(--t-small); line-height: 1.45; font-weight: 500; color: var(--ink); }
.tt-refer > .tt-feats__ico { flex: none; width: 24px; height: 24px; }
.tt-refer > .tt-feats__ico svg { width: 14px; height: 14px; }
.tt-refer__note { margin: 0; font-size: var(--t-label); line-height: 1.4; color: var(--muted); }
/* Precios: la línea y su nota en una fila al pie de la tabla (la sección es de una pantalla) */
.tt-refer-row { margin-top: var(--s-2); }
/* un solo párrafo (línea y nota) que empieza en el borde de la columna: el icono en línea con el texto */
.tt-refer--inline { display: block; }
.tt-refer--inline > .tt-feats__ico { display: inline-grid; vertical-align: middle; margin-right: var(--s-2); }
.tt-refer--inline > .tt-refer__note { margin-left: var(--s-3); font-weight: 400; color: var(--ink); }   /* dentro del párrafo cuenta como texto de lectura: 7:1 */
/* Inicio, «Plan Gratis»: la línea de recomendación pegada a las etiquetas, para que el bloque quepa en su pantalla */
.tt-gratis__text .tt-refer-box { gap: var(--s-1); margin-top: var(--s-4); }
.tt-gratis__text .tt-refer-box + .btn-row { margin-top: var(--s-4); }
/* móvil: los chips de «Qué incluye» siguen en línea dentro de su tarjeta (no en la rejilla de dos columnas de .tt-tags) */
@media (max-width: 639px) { #que-es .card .tt-tags { display: flex; } }

/* ---------------------------------------------------------------- 9. dinamismo (bucles de tarjeta, portada, móvil)
   Todo sobre los ganchos del kit: los bucles son layout.js [data-ly-steps] (ui.loop: botón de pausa del kit, quieto fuera
   de pantalla, se reinicia al pasar el puntero; en el móvil y con movimiento reducido muestra la imagen terminada, que es
   el markup tal cual). Aquí solo cambia CÓMO llega cada paso: un chip o una etiqueta que se activa (sigue visible), una
   barra que se llena, una marca que se marca. Nada de esto deja contenido oculto en reposo. */
/* la marca de cada línea se marca al llegar */
[data-ly-steps] .tt-line[data-step] > i { transition: transform 300ms var(--m-ease-enter) 140ms; }
[data-ly-steps] .tt-line[data-step].is-off > i { transform: scale(.4); }
/* un chip que se activa: mientras espera, el chip apagado (sigue visible); al llegar, su aspecto del markup */
[data-ly-steps] .tt-chip[data-step] { transition: none; }   /* el estado cambia de golpe: un color que transiciona al entrar en pantalla lo lee el checker como revelado */
[data-ly-steps] .tt-chip[data-step].is-off { opacity: 1; transform: none; color: var(--u-ink); background-color: transparent; box-shadow: inset 0 0 0 1px var(--u-line-2); }
/* un chip que cambia de estado («Pendiente» → «Emitida»): una sola palabra a la vez; sin script, la final */
.tt-swap__was { display: none; }
[data-ly-steps] .tt-swap[data-step].is-off > .tt-swap__was { display: inline; }
[data-ly-steps] .tt-swap[data-step].is-off > .tt-swap__now { display: none; }
/* una barra que se llena (la pista queda, el relleno entra desde la izquierda) */
[data-ly-steps] .tt-bar[data-step] { transition: none; }
[data-ly-steps] .tt-bar[data-step].is-off { opacity: 1; transform: none; }
[data-ly-steps] .tt-bar[data-step] > i { transition: transform 640ms var(--m-ease-enter); }
[data-ly-steps] .tt-bar[data-step].is-off > i { transform: translateX(-101%); }
/* etiquetas de página que se encienden una tras otra (#que-es, «Qué incluye»): el punto pasa de apagado a su degradado */
.tt-tags[data-ly-steps] li[data-step] { transition: box-shadow 240ms var(--m-ease); }
.tt-tags[data-ly-steps] li[data-step]::before { transition: opacity 240ms var(--m-ease), transform 300ms var(--m-ease-enter); }
.tt-tags[data-ly-steps] li[data-step].is-off { opacity: 1; transform: none; }
.tt-tags[data-ly-steps] li[data-step].is-off::before { opacity: .2; transform: scale(.6); }
#que-es .tt-tags[data-ly-steps] li[data-step]:not(.is-off) { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tt-action) 34%, transparent); }
@media (prefers-reduced-motion: reduce) {
  [data-ly-steps] :is(.tt-line > i, .tt-chip, .tt-bar > i), .tt-tags[data-ly-steps] li, .tt-tags[data-ly-steps] li::before { transition: none !important; }
}
/* la portada, más viva: el suelo líquido deriva más deprisa y con más luz (solo la duración: el kit sigue mandando en
   la pausa, fuera de pantalla y con movimiento reducido) */
.hero.tt-hero.bg-liquid::before { animation-duration: 13s; }
.hero.tt-hero.bg-liquid::after { animation-duration: 17s; }
/* en el móvil también se mueve donde la portada tiene la red de nodos (Funcionalidades, con "phoneLoop": su botón de pausa
   para todo, main.js sección 7); en las demás portadas (Inicio incluida: su órbita es una rejilla quieta) el suelo queda
   quieto en el móvil */
@media (max-width: 639px) {
  .hero.tt-hero.bg-liquid:has([data-diagram])::before { animation: g-liq-a 13s ease-in-out infinite alternate; }
  .hero.tt-hero.bg-liquid:has([data-diagram])::after { animation: g-liq-b 17s ease-in-out infinite alternate; }
  .hero.tt-hero.bg-liquid:has([data-diagram]):is(.is-held, .is-off)::before,
  .hero.tt-hero.bg-liquid:has([data-diagram]):is(.is-held, .is-off)::after { animation-play-state: paused; }
}
@media (max-width: 639px) and (prefers-reduced-motion: reduce) {
  .hero.tt-hero.bg-liquid::before, .hero.tt-hero.bg-liquid::after { animation: none !important; }
}

/* ---------------------------------------------------------------- 10. emails del plan Gratis en las tablas de planes
   «Transaccionales» y, debajo en pequeño, «Boletines desde Esencial»; en el móvil, en la misma línea */
.tt-plan dd.tt-mail { display: grid; line-height: 1.25; }
.tt-plan dd.tt-mail small { font-size: var(--t-label); line-height: 1.3; color: var(--muted); }
@media (max-width: 639px) {
  .tt-plan dd.tt-mail { display: block; }   /* en su línea, bajo «Emails al mes:» */
  .tt-plan dd.tt-mail small { display: inline; }
  .tt-plan dd.tt-mail small::before { content: " · "; }
  .tt-plan dl { grid-template-columns: minmax(0, 1fr); }   /* la columna del plan no crece con su línea más larga */
}
/* móvil: una etiqueta larga ocupa las dos columnas de .tt-tags (Inicio, #gratis) */
@media (max-width: 639px) { .tt-tags > .tt-tags__wide { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- 11. logos de clientes (Inicio, #clientes)
   Una sola imagen 2000×852 con 16 logos (4 columnas × 4 filas, celdas de ~500×213) usada como sprite */
.tt-clientes__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-6); }
.tt-clientes__head h2 { margin: 0; max-width: 28ch; }
@media (max-width: 639px) { .tt-clientes__head { display: block; } }
.tt-slider { --logo-h: 96px; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tt-logos { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: tt-logos-scroll 45s linear infinite; }
.tt-logos li { flex: none; margin-right: var(--s-5); }
.tt-slider:hover .tt-logos, .tt-slider.is-paused .tt-logos { animation-play-state: paused; }
.tt-logo-cell { display: block; height: var(--logo-h); aspect-ratio: 500 / 213; background: #ffffff url("/assets/img/clientes/logos-clientes.webp") no-repeat;
  background-size: 400% auto; background-position: calc(var(--c) * 100% / 3) calc(var(--r) * 100% / 3); }
@keyframes tt-logos-scroll { to { transform: translateX(-50%); } }
@media (max-width: 639px) { .tt-slider { --logo-h: 68px; } .tt-logos li { margin-right: var(--s-4); } }
@media (prefers-reduced-motion: reduce) {
  .tt-logos { animation: none; width: auto; flex-wrap: wrap; gap: var(--s-4) var(--s-6); padding: 0 var(--s-5); justify-content: center; }
  .tt-logos li { margin-right: 0; }
  .tt-logos li[aria-hidden="true"] { display: none; }
  .tt-slider { -webkit-mask-image: none; mask-image: none; }
}

/* la nota de la recomendación en #gratis es texto de lectura: tinta, no gris (7:1) */
.tt-gratis__text .tt-refer__note, .tt-gratis__top .tt-refer__note { color: var(--ink); }

/* ---------------------------------------------------------------- 12. ritmo de secciones, separadores, marcos y botón de cierre
   Peticiones explícitas del cliente (docs/cola.md, puntos 1, 11, 13 y 14). Prevalecen sobre la regla del kit «una sección
   por pantalla» (system.css, «one section per screen»): el gate dará FAIL de alturas y se reporta como petición del cliente.
   Una sola regla para toda la web; las páginas no añaden alturas ni paddings de sección propios. */
:root {
  --tt-sec-pad: 96px;             /* padding vertical de cada sección y del cierre, el mismo arriba y abajo (64 en el móvil) */
  --tt-sec-tint: #f6f7fd;         /* fondo alterno de sección: un tinte muy suave de la marca */
  --tt-frame-pad: var(--s-7);     /* margen de un marco de ilustración alrededor de su mini-UI (24 en el móvil) */
  --tt-frag-w: 440px;             /* ancho de la mini-UI dentro de su marco */
}
@media (max-width: 639px) { :root { --tt-sec-pad: 64px; --tt-frame-pad: var(--s-5); } }

/* 12a. (punto 11) cada sección mide lo que su contenido, salvo la portada. Anula las alturas de pantalla del kit
   (--h, --hm, .g2, .g2m, vh/svh/lvh): misma especificidad que el kit y más tarde en la cascada, sin !important.
   La barra fija del móvil (--bar) solo se suma al pie de la página (el cierre), no a cada sección. */
main > :is(section, .section):not(.hero, .section--hero), footer.closing {
  height: auto; min-height: 0; padding: var(--tt-sec-pad) 0;
}
footer.closing { padding-bottom: calc(var(--tt-sec-pad) + var(--bar)); }
main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { height: auto; min-height: 0; }
/* dos pantallas (.g2 / .g2m): los dos grupos seguidos, con el hueco de una fila de tarjetas, no el de una pantalla */
main > :is(section, .section):not(.hero, .section--hero):is(.g2, .g2m) > :is(.wrap, .container) {
  display: flex; flex-direction: column; grid-template-rows: none; row-gap: var(--card-gap);
}
main > :is(section, .section):not(.hero, .section--hero):is(.g2, .g2m) > :is(.wrap, .container) > :last-child { margin-block: 0; }
/* lo que llenaba «lo que deja la pantalla» (.fill, .fit-screen, .frame--fill) mide su contenido: con altura auto, el
   flex: 1 1 0 del kit lo dejaría en 0 y se montaría sobre la sección siguiente */
main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container) > .fill,
main > :is(section, .section):not(.hero, .section--hero) .group > .fill { flex: 0 0 auto; }
main > :is(section, .section):not(.hero, .section--hero) :is(.fit-screen, .frame--fill) { height: auto; }

/* 12b. (punto 14) separadores ligeros. Fondo alterno: la sección lleva .tt-tint (o .ground-surface, que es lo mismo)
   y el resto queda en blanco; alternad blanco / tinte al montar la página. Si dos secciones seguidas comparten fondo,
   la raya de 1 px del header (--line) las separa sola. El cierre (footer.closing) siempre lleva la raya arriba. */
main > section:is(.tt-tint, .ground-surface) {
  --bg: var(--tt-sec-tint); --surface: var(--p-bg); --card: var(--p-bg);   /* tarjetas y paneles, en blanco sobre el tinte */
  background-color: var(--tt-sec-tint);
}
main > section:not(.hero, .section--hero, .tt-tint, .ground-surface) + section:not(.tt-tint, .ground-surface),
main > section:is(.tt-tint, .ground-surface) + section:is(.tt-tint, .ground-surface) { border-top: 1px solid var(--line); }
footer.closing { border-top: 1px solid var(--line); }
/* etiqueta pequeña sobre el h2 (eyebrow): en violeta de la marca (5,3:1 sobre el tinte), en su caja de texto, sin
   mayúsculas espaciadas. Solo con un texto que ya exista (el nombre de la sección o de la página); si no, no se pone. */
.tt-eyebrow, .section-head > p.tt-eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; font: 500 var(--t-small)/1.4 var(--font-text);
              letter-spacing: 0; text-transform: none; color: var(--tt-violet); }
.tt-eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--tt-violet), var(--tt-cyan)); }
.tt-eyebrow + :is(h2, .h2) { margin-top: var(--s-2) !important; }   /* gana a los «* + *» de las columnas (.tt-col, .tt-mas__text…) */
.section-head > .tt-eyebrow + :is(h2, .h2) { margin-top: calc(var(--s-2) - var(--s-4)) !important; }   /* en la rejilla de .section-head (hueco 16) */

/* 12c. (punto 1) marcos de ilustración ajustados a su mini-UI: alto según el contenido, el margen --tt-frame-pad
   alrededor y la mini-UI centrada a --tt-frag-w. Nada de aspect-ratio ni de alturas de pantalla. El diagrama
   (.tt-mas__art) conserva su alto propio porque se dibuja a la medida del marco. */
main > section:not(.hero, .section--hero) :is(.tt-pane, .tt-screens, .frame--lit):not(.tt-mas__art) {
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; place-content: normal;
  align-self: start; height: auto; min-height: 0; aspect-ratio: auto; padding: var(--tt-frame-pad);
}
/* el separador de --ratio del kit (.frame::before) no cuenta: el marco mide su mini-UI */
main > section:not(.hero, .section--hero) :is(.tt-pane, .tt-screens, .frame--lit):not(.tt-mas__art)::before { display: none; }
main > section:not(.hero, .section--hero) :is(.tt-pane, .frame--lit, .tt-screens > [id^="screen-"]) > .tt-frag { width: min(var(--tt-frag-w), 100%); }
.tt-screens > [id^="screen-"] { width: 100%; }
/* las portadas con una mini-UI (Precios: el plan Gratis; CRM: la ficha de la socia) miden también su mini-UI; las
   portadas con la red de nodos conservan su marco, porque el diagrama se dibuja a la medida del marco. Solo desde
   1024: por debajo, la portada apilada reparte su pantalla y el marco toma lo que deja el texto (como antes) */
@media (min-width: 1024px) {
  .tt-hero .hero__art:is(.tt-hero__plan, .tt-ficha-art) { height: auto; min-height: 0; align-self: start; padding: var(--tt-frame-pad); }
}
.tt-hero__plan > .tt-frag { width: min(var(--tt-frag-w), 100%); }

/* pasos con su ilustración (Consultoría, «La consultoría en 3 pasos»): una fila por paso, el texto en la columna de
   texto de la página (span-5) y su mini-UI a la derecha (span-6 desde la 7), con un filete entre pasos; por debajo de
   1024, uno bajo otro. Sustituye al momento pinned-chapters (la sección fijada medía dos pantallas). */
.tt-steps { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.tt-step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-2);
           align-items: center; padding-top: var(--s-6); border-top: 1px solid var(--line); }
.tt-step > h3 { grid-column: 1 / span 5; align-self: end; font: 500 var(--t-lead)/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--ink); }
.tt-step > p { grid-column: 1 / span 5; align-self: start; max-width: 46ch; color: var(--ink); }
.tt-step > .tt-step__visual { grid-column: 7 / span 6; grid-row: 1 / span 2; margin: 0; }
@media (max-width: 1023px) {
  .tt-step > :is(h3, p) { grid-column: 1 / -1; }
  .tt-step > .tt-step__visual { grid-column: 1 / -1; grid-row: auto; margin-top: var(--s-3); }
}

/* 12d. (punto 13) el botón grande «Empieza gratis» del cierre: degradado de la marca que se desplaza despacio (9 s),
   un brillo diagonal cada 4 s, la flecha con un pequeño empujón en bucle y que avanza en el hover, elevación con sombra
   azul en el hover y pulsación al clic. Las paradas son las de la marca oscurecidas para que el texto blanco pase AA en
   todo el ciclo, también bajo el brillo (violeta #5B40CC, azul #0A52E0, cian profundo #00699F); en el móvil el rótulo es
   de 18 px y necesita 4,5:1. Con movimiento reducido, sin bucles: el degradado quieto, sin brillo ni empujón. */
:root { --tt-btn-grad: linear-gradient(110deg, #5b40cc 0%, #0a52e0 50%, #00699f 100%); }
.closing__cta > .btn.btn--xl.btn--primary,
.closing__cta > .btn.btn--xl.btn--primary:is(:hover, :active) {
  background-color: #0a52e0; background-image: var(--tt-btn-grad); background-size: 300% 100%; color: #ffffff;
}
.closing__cta > .btn.btn--xl.btn--primary { position: relative; isolation: isolate; overflow: hidden; background-position: 0% 50%;
  box-shadow: 0 1px 2px rgb(20 10 90 / .12), 0 10px 24px -16px rgb(11 95 255 / .5); }
.closing__cta > .btn.btn--xl.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .12) 50%, transparent 70%);
  transform: translateX(-110%);
}
.closing__cta > .btn.btn--xl.btn--primary > .m-arrow { transition: transform var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .closing__cta > .btn.btn--xl.btn--primary:hover { box-shadow: 0 2px 4px rgb(20 10 90 / .12), 0 18px 36px -14px rgb(11 95 255 / .6); }
  .closing__cta > .btn.btn--xl.btn--primary:hover > .m-arrow { animation: none; transform: translateX(6px); }
}
.closing__cta > .btn.btn--xl.btn--primary:active { box-shadow: 0 1px 2px rgb(20 10 90 / .16), 0 6px 14px -10px rgb(11 95 255 / .5); }
@media (prefers-reduced-motion: no-preference) {
  .closing__cta > .btn.btn--xl.btn--primary { animation: tt-btn-flow 9s ease-in-out infinite alternate; }
  .closing__cta > .btn.btn--xl.btn--primary::before { animation: tt-btn-shine 4s ease-in-out 1s infinite; }
  .closing__cta > .btn.btn--xl.btn--primary > .m-arrow { animation: tt-btn-nudge 4s ease-in-out 2.4s infinite; }
}
@keyframes tt-btn-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes tt-btn-shine { 0% { transform: translateX(-110%); } 30%, 100% { transform: translateX(110%); } }
@keyframes tt-btn-nudge { 0%, 70%, 100% { transform: none; } 78% { transform: translateX(5px); } 86% { transform: none; } 92% { transform: translateX(3px); } }

/* la versión suave en el botón «Empieza gratis» de la cabecera: sombra azul en el hover, la pulsación del kit y un
   brillo ocasional (cada 9 s), muy tenue para que el texto blanco siga a 4,5:1 sobre el azul de acción */
.nav__actions > .btn.btn--primary { position: relative; isolation: isolate; overflow: hidden; }
.nav__actions > .btn.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .08) 50%, transparent 70%);
  transform: translateX(-110%);
}
/* el hover oscurece (#0A52E0, 6,4:1) en vez de aclarar como el de motion.css (que con el brillo encima bajaría de 4,5:1) */
.nav__actions > .btn.btn--primary:hover { background-color: #0a52e0; }
@media (hover: hover) and (pointer: fine) {
  .nav__actions > .btn.btn--primary:hover { box-shadow: 0 8px 18px -10px rgb(11 95 255 / .6); }
}
@media (prefers-reduced-motion: no-preference) {
  .nav__actions > .btn.btn--primary::before { animation: tt-btn-shine-soft 9s ease-in-out 3s infinite; }
}
@keyframes tt-btn-shine-soft { 0% { transform: translateX(-110%); } 14%, 100% { transform: translateX(110%); } }

/* D: precios + consultoría
   ----------------------------------------------------------------------------------------------------------------
   D1. (cola, punto 10) Consultoría con tonos propios, lejos del violeta-azul-cian del producto: AZUL NOCHE + DORADO
   (estatus). <html data-area="consultoria"> redefine solo en esa página los tokens de color. En <html> y no en <body>:
   el kit resuelve --action y --accent en :root (var(--p-action)), así que los tokens base (--p-*) tienen que cambiar
   en el mismo elemento. html[data-area] (0,1,1) gana al bloque :root del <head> y al de este archivo; con [data-ground]
   gana también al suelo.
   Paleta: azul noche #0B1530 / #15244A / #1F3563 · dorado #C9A24A (hover #D9B964) · marfil #F7F3E8 (texto sobre oscuro) ·
   fondos #FAF7EF (marfil suave) y #EDEFF5 (chips) · antracita #2B2F36.
   Contrastes: texto #0B1530 sobre dorado #C9A24A 7,5:1 (sobre #D9B964 9:1) · marfil sobre #0B1530 16:1, sobre #1F3563 10:1 ·
   blanco sobre #1F3563 11:1 · azul #1F3563 sobre #FAF7EF 10:1 · dorado oscuro #8A6A1C sobre blanco 4,9:1 (solo degradados de texto). */
html[data-area="consultoria"] {
  --p-accent: #1f3563; --p-action: #c9a24a; --p-action-ink: #0b1530; --p-surface: #faf7ef;
  --tt-violet: #1f3563;           /* el inicio de los degradados (barras, filetes, puntos) y el color de la etiqueta: azul noche */
  --tt-blue: #8a6a1c;             /* el centro: dorado oscuro (también sirve de texto en degradado sobre blanco) */
  --tt-cyan: #c9a24a;             /* el final: dorado */
  --tt-action: #1f3563;           /* acentos, pestañas e insignias: azul noche, 11:1 con texto blanco (el botón principal usa --action, dorado) */
  --tt-gradient: linear-gradient(115deg, #0b1530 0%, #15244a 52%, #1f3563 100%);
  --tt-tint-violet: #faf7ef;
  --tt-tint-blue: #edeff5;        /* chips e iconos: un gris azulado, para que se vean también sobre el fondo alterno */
  --tt-sec-tint: #faf7ef;         /* fondo alterno de sección: marfil muy suave */
  --tt-btn-grad: radial-gradient(60% 130% at 84% 50%, rgb(201 162 74 / .3), transparent 70%), linear-gradient(110deg, #0b1530 0%, #1f3563 55%, #15244a 100%);
}
html[data-ground][data-area="consultoria"] {
  --ground-bg: #f4f1e8; --ground-surface: #fbf9f3; --ground-accent: #1f3563;
}
/* la interfaz dibujada (chips, marcas, iconos de fila) lleva su acento fijo: aquí, el azul noche */
[data-area="consultoria"] :is(.tt-win, .tt-card, .tt-frag) { --fx-accent: #1f3563; --fx-surface: #faf7ef; }
[data-area="consultoria"] .tt-checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='%231f3563' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* chips: texto azul noche y punto dorado */
[data-area="consultoria"] .tt-tags li { color: #0b1530; }
[data-area="consultoria"] .tt-tags li::before { background: #c9a24a; }
/* el foco, en azul noche (el dorado no llega a 3:1 sobre blanco); sobre la portada oscura, en dorado */
[data-area="consultoria"] :focus-visible { outline-color: #1f3563; }
[data-area="consultoria"] .tt-hero :focus-visible { outline-color: #d9b964; }
[data-area="consultoria"] .tt-modal .form__error a { color: #1f3563; }
[data-area="consultoria"] .tt-modal .field--check input { accent-color: #1f3563; }
/* portada: azul noche en diagonal, con el velo hondo bajo el texto marfil (izquierda; arriba en el móvil) */
[data-area="consultoria"] .hero.tt-hero {
  --ink: #f7f3e8; --muted: #f7f3e8; --bg: #15244a; --surface: #15244a;
  --line: rgb(247 243 232 / .26); --line-strong: rgb(201 162 74 / .6);
  background-color: #15244a;
  background-image: radial-gradient(64% 90% at 4% 62%, rgb(11 21 48 / .55), transparent 72%), var(--tt-gradient);
}
[data-area="consultoria"] .hero.tt-hero h1,
[data-area="consultoria"] .tt-hero .hero__lead { color: #f7f3e8; }
@media (max-width: 1023px) {
  [data-area="consultoria"] .hero.tt-hero {
    background-image:
      radial-gradient(140% 70% at 20% 34%, rgb(11 21 48 / .6), transparent 76%),
      radial-gradient(130% 34% at 60% 66%, rgb(11 21 48 / .45), transparent 80%),
      linear-gradient(160deg, #0b1530 0%, #15244a 50%, #1f3563 100%);
  }
}
/* el suelo animado: un brillo dorado muy sutil en lugar de manchas de color */
[data-area="consultoria"] .hero.tt-hero.bg-liquid::before {
  background:
    radial-gradient(ellipse 24% 34% at 72% 42%, rgb(201 162 74 / .14), transparent),
    radial-gradient(ellipse 18% 24% at 84% 80%, rgb(247 243 232 / .08), transparent);
}
[data-area="consultoria"] .hero.tt-hero.bg-liquid::after {
  background:
    radial-gradient(ellipse 22% 30% at 62% 20%, rgb(201 162 74 / .1), transparent),
    radial-gradient(ellipse 16% 22% at 86% 24%, rgb(201 162 74 / .1), transparent);
}
[data-area="consultoria"] .tt-hero .hero__art { box-shadow: inset 0 0 0 1px rgb(201 162 74 / .3); }
/* D6. portada de Consultoría: la atención a las personas (sustituye a la red de nodos). Una conversación de
   acompañamiento (.tt-care__win: el equipo por roles, sin nombres, y cuatro mensajes que llegan en bucle con
   layout.js [data-ly-steps], 2,8 s por mensaje, con el botón de pausa del kit en el marco [data-ui-pause-host]) y una
   tarjeta flotante con la videollamada agendada. El marco mide su contenido y queda centrado en vertical con el texto.
   «Escribiendo…»: el mensaje pendiente conserva su sitio (la portada no cambia de alto), esconde su texto y el primero
   de los pendientes muestra los tres puntos. Sin bucle (móvil, movimiento reducido): los mensajes, todos a la vista;
   por debajo de 640, solo los dos primeros. */
.tt-hero .hero__art.tt-care-art {
  display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; justify-self: center; align-self: center;
  width: fit-content; max-width: 100%; height: auto; min-height: 0; margin-top: 0; padding: var(--tt-frame-pad);
}
.tt-care { display: grid; width: 420px; max-width: 100%; }
.tt-care .tt-frag { box-shadow: 0 0 0 1px rgb(201 162 74 / .28), 0 22px 44px -22px rgb(0 0 0 / .6); }
.tt-care__win { gap: 12px; padding: 16px 16px 30px; }
.tt-care__team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 2px 0 12px; list-style: none; border-bottom: 1px solid var(--u-line); }
.tt-care__team li { display: grid; justify-items: center; gap: 6px; text-align: center; }
.tt-care__team small { font-size: 12px; line-height: 16px; color: var(--u-text-2); }
.tt-care__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.tt-care__av svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tt-care__av--gold { background: #c9a24a; color: #0b1530; }
.tt-care__av--ivory { background: #f7f3e8; color: #8a6a1c; box-shadow: inset 0 0 0 1px rgb(201 162 74 / .55); }
.tt-care__av--navy { background: #1f3563; color: #f7f3e8; }
.tt-chat { display: grid; gap: 8px; }
.tt-msg { position: relative; display: flex; }
.tt-msg--us { justify-content: flex-end; }
.tt-msg__text { max-width: 84%; margin: 0; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 18px;
                transition: opacity .35s var(--ease, ease), transform .35s var(--ease, ease); }
.tt-msg--them .tt-msg__text { background: #f7f3e8; color: #0b1530; border-bottom-left-radius: 4px; box-shadow: inset 0 0 0 1px rgb(201 162 74 / .3); }
.tt-msg--us .tt-msg__text { background: #1f3563; color: #f7f3e8; border-bottom-right-radius: 4px; }
.tt-msg__typing { position: absolute; top: 0; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 14px;
                  opacity: 0; transition: opacity .2s var(--ease, ease); pointer-events: none; }
.tt-msg--them .tt-msg__typing { left: 0; background: #f7f3e8; color: #8a6a1c; border-bottom-left-radius: 4px; box-shadow: inset 0 0 0 1px rgb(201 162 74 / .3); }
.tt-msg--us .tt-msg__typing { right: 0; background: #1f3563; color: #e3c479; border-bottom-right-radius: 4px; }
.tt-msg__typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* el mensaje pendiente: su sitio queda, su texto no; el primero de los pendientes «escribe» */
[data-ly-steps] .tt-msg[data-step].is-off { opacity: 1; transform: none; }
[data-ly-steps] .tt-msg[data-step].is-off > .tt-msg__text { opacity: 0; transform: translateY(6px); }
[data-ly-steps] .tt-msg[data-step].is-off:first-child > .tt-msg__typing,
[data-ly-steps] .tt-msg[data-step]:not(.is-off) + .tt-msg[data-step].is-off > .tt-msg__typing { opacity: 1; transition-delay: .5s; }
@media (prefers-reduced-motion: no-preference) {
  .tt-msg__typing i { animation: tt-typing 1.1s ease-in-out infinite; }
  .tt-msg__typing i:nth-child(2) { animation-delay: .15s; }
  .tt-msg__typing i:nth-child(3) { animation-delay: .3s; }
}
@keyframes tt-typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
/* la tarjeta flotante: monta sobre el borde inferior de la conversación, desplazada a la derecha (dentro del marco) */
.tt-care__call { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; justify-self: end;
                 width: max-content; max-width: 100%; margin: -20px -28px 0 0; padding: 10px 12px; }
.tt-care__call-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #c9a24a; color: #0b1530; }
.tt-care__call-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tt-care__call-text { display: grid; min-width: 0; }
.tt-care__call-text b { font-weight: 500; }
.tt-care__call-text small { font-size: 12px; line-height: 16px; color: var(--u-muted); }
@media (max-width: 1023px) { .tt-hero .hero__art.tt-care-art { flex: none; justify-self: stretch; width: auto; } }   /* apilada: mide su contenido, debajo del texto */
@media (max-width: 639px) {
  .tt-hero .hero__art.tt-care-art { margin-top: var(--s-5); padding: var(--s-4); }
  .tt-chat > .tt-msg:nth-child(n + 3) { display: none; }
  .tt-care__call { justify-self: stretch; width: auto; margin: -16px 8px 0; }
  .tt-care__call-text b { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .tt-msg__text, .tt-msg__typing { transition: none !important; } }
/* botones: principal dorado con texto azul noche (hover algo más claro); secundario con borde dorado */
[data-area="consultoria"] .btn--primary { box-shadow: 0 0 0 1px rgb(11 21 48 / .06); }
[data-area="consultoria"] .tt-hero .btn--primary { box-shadow: 0 10px 24px -12px rgb(0 0 0 / .55); }
[data-area="consultoria"] .btn--secondary { color: #0b1530; border: 1px solid #c9a24a; }
[data-area="consultoria"] .tt-hero .btn--secondary { background: transparent; color: #f7f3e8; border-color: #c9a24a; }
[data-area="consultoria"] .tt-hero .btn--secondary:hover { background: rgb(201 162 74 / .16); border-color: #d9b964; }
html[data-area="consultoria"]:not([data-motion="off"]) .btn--primary:hover { background: #d9b964; }
html[data-area="consultoria"]:not([data-motion="off"]) .btn--primary:active { background: #b8923c; }
[data-area="consultoria"] .nav__actions > .btn.btn--primary:hover { background-color: #d9b964; }
@media (hover: hover) and (pointer: fine) {
  [data-area="consultoria"] .nav__actions > .btn.btn--primary:hover { box-shadow: 0 8px 18px -10px rgb(201 162 74 / .7); }
  [data-area="consultoria"] .closing__cta > .btn.btn--xl.btn--primary:hover { box-shadow: 0 2px 4px rgb(11 21 48 / .16), 0 18px 36px -14px rgb(201 162 74 / .6); }
}
/* «Empieza gratis» del cierre: azul noche con brillo dorado, texto marfil (≥ 10:1 en todo el ciclo) */
[data-area="consultoria"] .closing__cta > .btn.btn--xl.btn--primary,
[data-area="consultoria"] .closing__cta > .btn.btn--xl.btn--primary:is(:hover, :active) { background-color: #15244a; color: #f7f3e8; }
[data-area="consultoria"] .closing__cta > .btn.btn--xl.btn--primary { box-shadow: 0 1px 2px rgb(11 21 48 / .16), 0 10px 24px -16px rgb(11 21 48 / .6); }

/* D2. logo «TIMTUL Consulting» de la cabecera de Consultoría (solo esa página; el resto lleva .tt-brand sin más, sección 2).
   El mismo .tt-brand con .tt-brand--cons: isotipo-consulting.webp (recortado de logo-consulting.webp, el logo.webp
   recoloreado píxel a píxel: rampa dorada en diagonal #8A6A1C → #C9A24A → #E3C479 con las T blancas) y TIMTUL en texto
   azul noche #0B1530. Encima del isotipo dorado, el isotipo original (isotipo.webp, mismo recorte) en un calco absoluto
   (.tt-logo-cons__brand) en reposo invisible: al cargar arranca visible, se destiñe hacia un brillo claro (sin el tono
   verdoso de mezclar azul y dorado) y se desvanece: fundido cruzado de los colores de la marca al dorado (1,2 s, una vez).
   «Consulting» cuelga bajo la palabra sin ocupar sitio (absoluto dentro de .tt-brand__word, del borde izquierdo de la T
   al derecho de la L: el right descuenta el espaciado que sobra tras la L, 0,16em de 0,85 --h), con las letras repartidas
   a lo ancho de TIMTUL; dorado oscuro #8A6A1C (4,9:1 sobre blanco; el #C9A24A no llega a 3:1).
   La cabecera no cambia de altura (isotipo de 27 px, 23 px en el móvil). Sin animación con prefers-reduced-motion o
   data-motion="off": directamente el estado final. */
[data-area="consultoria"] .tt-logo-cons__img { position: relative; display: block; flex: none; }
[data-area="consultoria"] .tt-logo-cons__brand { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
[data-area="consultoria"] .tt-logo-cons__word {
  position: absolute; left: 0; right: calc(var(--h) * .136); top: 100%; display: flex; justify-content: space-between;
  font: 500 10.5px/1 var(--font-display); letter-spacing: 0; text-transform: uppercase; color: #8a6a1c;
  white-space: nowrap; pointer-events: none;
}
@media (max-width: 639px) { [data-area="consultoria"] .tt-logo-cons__word { font-size: 9px; } }
@media (prefers-reduced-motion: no-preference) {
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__brand { animation: tt-cons-brand .8s cubic-bezier(.4, 0, .2, 1) .15s backwards; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span { animation: tt-cons-letter .5s cubic-bezier(.2, .7, .2, 1) .4s backwards; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(2) { animation-delay: .435s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(3) { animation-delay: .47s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(4) { animation-delay: .505s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(5) { animation-delay: .54s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(6) { animation-delay: .575s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(7) { animation-delay: .61s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(8) { animation-delay: .645s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(9) { animation-delay: .68s; }
  html[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(10) { animation-delay: .715s; }
}
@keyframes tt-cons-brand { from { opacity: 1; filter: none; } 45% { opacity: .85; filter: saturate(0) brightness(1.45); } to { opacity: 0; filter: saturate(0) brightness(1.45); } }
@keyframes tt-cons-letter { from { opacity: 0; transform: translateY(6px); } }

/* D4. Precios: el desplegable «Qué incluyen los eventos» bajo la tabla de planes (cola, puntos 4 y 5) */
.tt-plans-events { margin-top: var(--s-6); }
.tt-plans-events .tt-disclosure > .tt-tags + p { margin-top: var(--s-4); }
/* D5. Consultoría: la intro de carga «dos puertas» (petición del cliente). La crea el script inline del principio del
   <body> de consultoria/index.html (sin JS no hay overlay; con reduced motion o data-motion="off", tampoco).
   .tt-intro (fijo, por encima de todo, aria-hidden) › dos puertas en azul noche (#0B1530 → #15244A) con el filo dorado
   #C9A24A donde se juntan + el escenario centrado: placa marfil #F7F3E8 (las dos palabras TIMTUL son oscuras y no se
   verían sobre el azul) con el logo de la cabecera de Consultoría a gran tamaño (.tt-brand.tt-brand--cons): el isotipo
   dorado debajo y el original encima (.tt-intro__mark), que se destiñe y desaparece como en D2, y TIMTUL en texto azul
   noche; un brillo recorre el isotipo (máscara con la forma de isotipo-consulting.webp) y debajo de la placa
   «CONSULTING» en dorado, letra a letra.
   Línea de tiempo (2,2 s): 0–0,35 entra la placa · 0,45–1 el original pasa a dorado · 0,55–1,25 brillo dorado ·
   0,6–1,36 letras · 1,4–2,2 las puertas se abren (el escenario se encoge hacia arriba y se funde en 0,5 s).
   html.tt-intro-hold congela la entrada del logo de la cabecera (D2) en su primer fotograma; el script la suelta cuando
   arranca la apertura (animationstart de la puerta), así las dos animaciones no se duplican.
   Seguridad: a los 3 s el overlay se oculta solo por CSS aunque el JS haya fallado. */
[data-area="consultoria"] .tt-intro {
  position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; cursor: pointer;
  animation: tt-intro-safe 0s linear 3s forwards;
}
[data-area="consultoria"] .tt-intro__door {
  position: absolute; top: 0; bottom: 0; will-change: transform;
  animation: tt-intro-door-l .8s cubic-bezier(.7, 0, .2, 1) 1.4s forwards;
}
[data-area="consultoria"] .tt-intro__door--l {
  left: 0; right: 50%;
  background:
    radial-gradient(38% 70% at 100% 50%, rgb(201 162 74 / .13), transparent 72%),
    linear-gradient(100deg, #0b1530 0%, #15244a 100%);
  box-shadow: inset -1px 0 0 #c9a24a;
}
[data-area="consultoria"] .tt-intro__door--r {
  left: 50%; right: 0; animation-name: tt-intro-door-r;
  background:
    radial-gradient(38% 70% at 0% 50%, rgb(201 162 74 / .13), transparent 72%),
    linear-gradient(260deg, #0b1530 0%, #15244a 100%);
  box-shadow: inset 1px 0 0 #c9a24a;
}
[data-area="consultoria"] .tt-intro__stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: tt-intro-stage-out .5s cubic-bezier(.4, 0, .2, 1) 1.4s forwards;
}
[data-area="consultoria"] .tt-intro__plate {
  position: relative; padding: clamp(18px, 3vw, 40px) clamp(22px, 3.6vw, 48px); border-radius: 20px;
  background: #f7f3e8; box-shadow: inset 0 0 0 1px rgb(201 162 74 / .55), 0 30px 80px -30px rgb(0 0 0 / .65);
  animation: tt-intro-plate-in .35s cubic-bezier(.2, .7, .2, 1) backwards;
}
/* el logo grande es el .tt-brand de la cabecera a otra escala: --h = 0,195 del ancho que tenía el logo en imagen */
[data-area="consultoria"] .tt-intro__plate > .tt-brand { --h: calc(min(42vw, 520px) * .195); display: flex; }
[data-area="consultoria"] .tt-intro__mark { position: relative; display: block; flex: none; }
[data-area="consultoria"] .tt-intro__mark > .tt-intro__brand {
  position: absolute; top: 0; left: 0;
  animation: tt-cons-brand .55s cubic-bezier(.4, 0, .2, 1) .45s both;
}
[data-area="consultoria"] .tt-intro__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgb(240 210 130 / .9) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 125% 0;
  -webkit-mask: url("/assets/img/isotipo-consulting.webp") center / 100% 100% no-repeat;
  mask: url("/assets/img/isotipo-consulting.webp") center / 100% 100% no-repeat;
  animation: tt-intro-shine .7s cubic-bezier(.45, .05, .55, .95) .55s both;
}
[data-area="consultoria"] .tt-intro__word {
  display: flex; margin-top: clamp(18px, 2.4vw, 30px); padding-left: .55em;
  font: 500 clamp(15px, 1.7vw, 22px)/1 var(--font-display); letter-spacing: .55em; color: #c9a24a;
}
[data-area="consultoria"] .tt-intro__word > span { animation: tt-cons-letter .4s cubic-bezier(.2, .7, .2, 1) calc(.6s + var(--i, 0) * .04s) backwards; }
@media (max-width: 639px) {
  [data-area="consultoria"] .tt-intro__plate { border-radius: 16px; }
  [data-area="consultoria"] .tt-intro__plate > .tt-brand { --h: calc(min(70vw, 420px) * .195); }
  [data-area="consultoria"] .tt-intro__word { letter-spacing: .45em; padding-left: .45em; }
}
/* el salto (clic, Esc, Intro, espacio, Tab): fundido rápido de todo el overlay */
[data-area="consultoria"] .tt-intro.is-out { opacity: 0; transition: opacity .25s ease; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { [data-area="consultoria"] .tt-intro { display: none; } }
html[data-motion="off"][data-area="consultoria"] .tt-intro { display: none; }
/* la entrada del logo de la cabecera espera a las puertas (supera en especificidad a D2: 0,4,1 y 0,5,2) */
html.tt-intro-hold[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__brand,
html.tt-intro-hold[data-area="consultoria"]:not([data-motion="off"]) .tt-logo-cons__word > span:nth-child(n) { animation-play-state: paused; }
@keyframes tt-intro-door-l { to { transform: translateX(-100%); } }
@keyframes tt-intro-door-r { to { transform: translateX(100%); } }
@keyframes tt-intro-stage-out { to { opacity: 0; transform: translateY(-6vh) scale(.72); } }
@keyframes tt-intro-plate-in { from { opacity: 0; transform: scale(.96); } }
@keyframes tt-intro-shine { from { background-position: 125% 0; } to { background-position: -25% 0; } }
@keyframes tt-intro-safe { to { visibility: hidden; pointer-events: none; } }

/* C: funcionalidades */
/* C1. Funcionalidades, «Todas las funciones» (#todas) y «A medida» (#a-medida): una tarjeta por área (cola, puntos 3 y 16):
   icono en .tt-feats__ico dentro del h3, la etiqueta de plan (si está confirmada), una línea, chips (.tt-tags) y el
   detalle en un desplegable. Dos columnas desde 1024; una por debajo. Las tarjetas se alinean arriba: abrir un
   desplegable no estira la de al lado. */
.tt-func { row-gap: var(--card-gap); align-items: start; }
.tt-func > .card > h3 { display: flex; align-items: center; gap: var(--s-3); }
.tt-func > .card > * + * { margin-top: var(--s-4); }
.tt-func > .card > h3 + * { margin-top: var(--s-3); }
.tt-func .tt-func__plan { display: flex; margin-bottom: 0; }
.tt-func .tt-disclosure { border-top: 1px solid var(--line); border-bottom: 0; }
.tt-func .tt-disclosure > summary { min-height: 48px; }
.tt-func .tt-disclosure > :not(summary) { padding-bottom: 0; }
.tt-func .tt-disclosure > * + :not(summary) { margin-top: var(--s-4); }
.tt-func .tt-disclosure p { max-width: 56ch; font-size: var(--t-small); line-height: 1.5; color: var(--ink); }
.tt-func .btn-row { margin-top: var(--s-5); }
/* la columna de la derecha de «A medida»: tres tarjetas apiladas */
.tt-func--stack { display: grid; grid-template-columns: minmax(0, 1fr); align-self: start; }
@media (max-width: 1023px) { .tt-func > .card { grid-column: 1 / -1; } #a-medida .tt-func--stack { margin-top: var(--s-6); } }
/* móvil: los chips siguen en línea dentro de su tarjeta (no en la rejilla de dos columnas de .tt-tags) */
@media (max-width: 639px) { .tt-func .tt-tags { display: flex; } }
/* «Próximas funciones»: la lista con iconos en dos columnas desde 1024 */
.tt-func__next { margin-top: var(--s-6); }
/* #todas: todas las tarjetas del mismo tamaño (filas iguales a la más alta); el desplegable queda abajo */
@media (min-width: 1024px) {
  #todas .tt-func { align-items: stretch; grid-auto-rows: auto; }
  #todas .tt-func > .card { display: flex; flex-direction: column; height: 100%; min-height: var(--tt-card-min, 0px); }
  #todas .tt-func > .card > .tt-disclosure { margin-top: auto; padding-top: var(--s-2); }
}
@media (min-width: 1024px) { .tt-func__next { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); } }

/* ---------------------------------------------------------------- 13. Contenido centrado en vertical (petición del cliente)
   Portadas: alto ajustado (sin el hueco de abajo) y texto + visual centrados en vertical.
   Secciones de dos columnas (texto + ilustración): ambas columnas centradas entre sí. */
.tt-hero { height: auto !important; min-height: min(86svh, 760px) !important; display: flex !important; flex-direction: column; justify-content: center; padding-block: calc(var(--nav-h, 72px) + 64px) 64px !important; }
.tt-hero > .wrap { height: auto !important; min-height: 0 !important; }
.tt-hero .hero__grid { height: auto !important; min-height: 0 !important; align-items: center !important; align-content: center !important; }
section:not(.tt-hero) > .wrap > .grid:has(> .tt-pane, > .frame, > [class*="frame"], > .tt-col) { align-items: center; }
@media (max-width: 1023px) { .tt-hero { min-height: 0 !important; padding-block: calc(var(--nav-h, 64px) + 40px) 48px !important; } }

/* 13. Botón del cierre «Empieza gratis»: tamaño normal, ajustado al contenido, a la izquierda (en móvil, ancho completo).
   Mantiene degradado, brillo, flecha y hover/press de la sección anterior; el texto blanco 18 px / 600 sigue ≥ 4,5:1. */
.closing__cta > .btn.btn--xl.btn--wide.btn--primary {
  display: inline-flex; width: auto; align-self: flex-start; justify-content: center; gap: 12px;
  height: 54px; padding-inline: 30px; font: 600 18px/1 var(--font-text); letter-spacing: 0;
}
.closing__cta > .btn.btn--xl.btn--wide.btn--primary > .m-arrow { width: 14px; height: 14px; flex: none; }
@media (max-width: 639px) {
  .closing__cta > .btn.btn--xl.btn--wide.btn--primary { align-self: stretch; width: 100%; height: 52px; padding-inline: 24px; }
}

/* 14. Pie: «Made with ♥ in Barcelona» con el panot de flor, a la derecha de la línea inferior (en móvil, debajo). */
.footer__made { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: inherit; white-space: nowrap; }
.footer__made .panot { width: 18px; height: 18px; flex: none; }
.footer__made .heart { color: var(--action); }
[data-area="consultoria"] .footer__made .heart { color: #8a6a1c; }
@media (max-width: 639px) { .footer__made { margin-left: 0; flex-basis: 100%; } }

/* banda de cierre: bloque propio con tinte de marca, antes del pie; a la derecha, una mini-UI (mismo tamaño en las 5 páginas) */
.closing-band { padding: 56px 0; background-color: var(--tt-sec-tint); border-top: 1px solid var(--line); --card: var(--p-bg); --surface: var(--p-bg); }
.closing-band__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.closing-band__art { display: none; }
.closing-band .closing__cta { margin: 0; }
@media (min-width: 1024px) {
  .closing-band { padding: 80px 0; }
  .closing-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; }
  .closing-band__art { display: block; }
  .closing-band__art .tt-frag { width: 100%; }
}
footer.closing { padding: var(--tt-sec-pad) 0; padding-bottom: calc(var(--tt-sec-pad) + var(--bar)); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- 15. Banda de cierre con el degradado de la marca (petición del cliente)
   Mismo degradado y velo que la portada: texto blanco (≥4,5:1 sobre el velo) y botón invertido (blanco con texto
   de marca) para que destaque sobre el color. En Consultoría: azul noche con botón dorado (tokens del tema). */
.closing-band {
  --ink: #ffffff; --muted: rgb(255 255 255 / .9); --line: rgb(255 255 255 / .28);
  color: #ffffff; border-top: 0;
  background-color: #5b44cc;
  background-image: radial-gradient(64% 120% at 4% 50%, rgb(52 26 160 / .55), transparent 72%), var(--tt-gradient);
}
.closing-band :is(h2, p) { color: #ffffff; }
.closing-band .closing__cta > .btn.btn--xl.btn--primary,
.closing-band .closing__cta > .btn.btn--xl.btn--primary:is(:hover, :active) {
  background: #ffffff; color: #3b2bb0; box-shadow: 0 1px 2px rgb(20 10 90 / .2), 0 14px 28px -14px rgb(10 20 80 / .55);
}
.closing-band .closing__cta > .btn.btn--xl.btn--primary:hover { background: #f1efff; }
.closing-band .closing-band__art .tt-frag { color: var(--tt-ink, #2b2f36); --ink: var(--tt-ink, #2b2f36); --muted: #5b6270; box-shadow: 0 24px 48px -24px rgb(10 10 60 / .55); }
[data-area="consultoria"] .closing-band { background-color: #0b1530; background-image: radial-gradient(60% 120% at 90% 50%, rgb(201 162 74 / .16), transparent 70%), var(--tt-gradient); }
/* Por debajo de 1024 px el texto ocupa todo el ancho y llega al extremo cian del degradado: un velo violeta uniforme
   lo mantiene en 4,5:1 o más en blanco (revisión 16/11/2026; Consultoría conserva su azul noche, regla siguiente). */
@media (max-width: 1023px) {
  .closing-band { background-image: linear-gradient(rgb(52 26 160 / .45), rgb(52 26 160 / .45)), var(--tt-gradient); }
  [data-area="consultoria"] .closing-band { background-image: radial-gradient(60% 120% at 90% 50%, rgb(201 162 74 / .16), transparent 70%), var(--tt-gradient); }
}
[data-area="consultoria"] .closing-band .closing__cta > .btn.btn--xl.btn--primary,
[data-area="consultoria"] .closing-band .closing__cta > .btn.btn--xl.btn--primary:is(:hover, :active) { background: #c9a24a; color: #0b1530; }
[data-area="consultoria"] .closing-band .closing__cta > .btn.btn--xl.btn--primary:hover { background: #d9b964; }

/* ---------------------------------------------------------------- 16. Intro de Inicio «el logo en obra» (petición del cliente)
   Solo en index.html: la crea el script inline del principio del <body> (sin JS no hay overlay; con reduced motion o
   data-motion="off", tampoco). Una vez por sesión (sessionStorage tt-build-seen) y nunca en una recarga a menos de 10 s.
   .tt-build (fijo, por encima de todo, aria-hidden) › .tt-build__bg (#F6F7FD con la cuadrícula de plano, 24 y 120 px) ·
   .tt-build__stage (1em = 1 % de min(50vw, 640px); .8vw por debajo de 640) › .tt-build__fly (vuela al logo de la
   cabecera) › .tt-build__logo (rebote) › .tt-brand (el mismo componente de la cabecera con --h = 19,5em) ›
   .tt-build__mark con capas de isotipo.webp recortadas con clip-path (no se redibuja): el fantasma al 8 % en gris,
   6 ladrillos del anillo exterior, 6 cuñas con las «T», el círculo y el isotipo entero al final (tapa las juntas) +
   .tt-brand__word con TIMTUL en texto, una .tt-build__let por letra (fantasma + tinta que pinta el rodillo) + el destello
   del atornillado · 4 robots de suelo y el pintor colgado (SVG inline,
   personajes propios: cuerpo hexágono o cápsula en violeta/azul/cian, casco de obra, visor con dos ojos y sonrisa).
   Línea de tiempo (3,4 s): 0,08–0,95 entran los robots con su caja · 0,6–1,24 ladrillos · 1,05–1,64 «T» · 1,45–1,79
   círculo + destello · 1,4–1,8 baja el pintor · 1,85–2,55 rodillo y letras · 2,57 logo entero · 2,6–2,96 saltito y
   rebote · 2,85–3,3 salen los robots · 2,95–3,4 el logo vuela a la cabecera · 3,08–3,4 el fondo se funde. Las animaciones esperan a
   .is-go (isotipo decodificado y Funnel Display cargada, 0,6 s como mucho). Seguridad: a los 4,6 s el overlay se oculta solo por CSS. */
.tt-build {
  position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: tt-build-safe 0s linear 4.6s forwards;
}
.tt-build:not(.is-go) * { animation-play-state: paused !important; }
.tt-build__bg {
  position: absolute; inset: 0; background-color: #f6f7fd;
  background-image:
    linear-gradient(rgb(47 143 219 / .075) 1px, transparent 1px), linear-gradient(90deg, rgb(47 143 219 / .075) 1px, transparent 1px),
    linear-gradient(rgb(47 143 219 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(47 143 219 / .04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: center;
  animation: tt-build-fade .32s ease 3.08s forwards;
}
/* el escenario: 1em = 1 % de min(50vw, 640px) (.8vw por debajo de 640); mide lo que el logo (más .25em / .4em de margen,
   los del isotipo en el antiguo lienzo de 2000×405, así las coordenadas de robots y piezas no cambian) */
.tt-build__stage {
  position: absolute; left: 50%; top: 50%; width: max-content; padding: .25em .4em;
  translate: -50% -68%; font-size: calc(min(50vw, 640px) / 100);
}
@media (max-width: 639px) { .tt-build__stage { font-size: .8vw; } }
/* el vuelo envuelve el logo justo: su escala hasta la cabecera es la razón entre los dos --h */
.tt-build__fly {
  position: relative; z-index: 2; display: flex; transform-origin: 0 0;
  animation: tt-build-fly .45s cubic-bezier(.6, 0, .2, 1) 2.95s forwards;
}
.tt-build__logo { position: relative; display: flex; animation: tt-build-bounce .36s ease-out 2.6s; }
/* el logo grande es .tt-brand (sección 2) con --h = 19,5em: el alto del isotipo en el antiguo lienzo (390 de 2000 px) */
.tt-build .tt-brand { --h: 19.5em; display: flex; }
.tt-build__mark { position: relative; }
.tt-build__p { position: absolute; inset: 0; background: url("/assets/img/isotipo.webp") 0 0 / 100% 100% no-repeat; }
.tt-build__ghost { opacity: .08; filter: grayscale(1); animation: tt-build-fade .2s ease 2.5s forwards; }
.tt-build__piece {
  transform-origin: var(--ox) var(--oy);
  animation: tt-build-piece .34s cubic-bezier(.3, .6, .35, 1) var(--d) both;
}
/* TIMTUL letra a letra: cada letra en su caja (el fantasma, en gris al 10 %) y encima la tinta, que se descubre al paso del rodillo */
.tt-build__let { position: relative; display: inline-block; color: rgb(43 47 54 / .1); }
.tt-build__ink {
  position: absolute; left: 0; top: 0; color: #2b2f36; clip-path: inset(-25% 100% -25% 0);
  animation: tt-build-paint var(--ld) linear var(--lt) both;
}
.tt-build__whole { opacity: 0; animation: tt-build-on 0s linear 2.57s forwards; }
.tt-build__spark {
  position: absolute; left: 4.15em; top: 5.25em; width: 9em; height: 9em; overflow: visible; opacity: 0;
  animation: tt-build-spark .4s ease-out 1.77s both;
}
/* robots */
.tt-build__bot { position: absolute; z-index: 1; }
.tt-build__bot svg { display: block; width: 100%; height: auto; overflow: visible; }
.tt-build__walk {
  animation: tt-build-in var(--wd) cubic-bezier(.25, .7, .35, 1) var(--in) both, tt-build-out .36s cubic-bezier(.45, 0, .9, .5) var(--out) forwards;
}
.tt-build__hop { transform-origin: 50% 100%; animation: tt-build-bob .16s ease-in-out var(--in) 3, tt-build-cheer .36s cubic-bezier(.3, .7, .4, 1) var(--ch); }
.tt-build__bot--hop .tt-build__hop { animation: tt-build-hop .27s cubic-bezier(.3, .6, .4, 1) var(--in) 2, tt-build-cheer .36s cubic-bezier(.3, .7, .4, 1) var(--ch); }
.tt-build__leg { transform-box: fill-box; transform-origin: 50% 0; animation: tt-build-step .16s ease-in-out var(--in) 3 alternate, tt-build-step .14s ease-in-out var(--out) 3 alternate; }
.tt-build__leg--r { animation-direction: alternate-reverse; }
.tt-build__arm--l { transform-box: view-box; transform-origin: 17px 37px; animation: tt-build-wave-l .4s ease var(--ch); }
.tt-build__arm--r { transform-box: view-box; transform-origin: 43px 37px; animation: tt-build-wave-r .4s ease var(--ch); }
.tt-build__bot--screw .tt-build__arm--l { animation: tt-build-wave-l .2s ease 1.78s 2, tt-build-wave-l .4s ease var(--ch); }
.tt-build__bot--screw .tt-build__arm--r { animation: tt-build-wave-r .2s ease 1.78s 2, tt-build-wave-r .4s ease var(--ch); }
.tt-build__crate {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: tt-build-toss var(--tg) ease-out var(--t0) var(--tn), tt-build-drop .18s ease-in var(--cr) forwards;
}
/* el pintor: --x0 / --x1 = del borde izquierdo de la T al derecho de la L (el script los mide al arrancar); el rodillo va delante de las letras */
.tt-build__painter { position: absolute; left: 0; top: 0; z-index: 3; animation: tt-build-travel .7s linear 1.85s both; }
.tt-build__drop {
  position: relative;
  animation: tt-build-down .4s cubic-bezier(.25, .8, .35, 1.1) 1.4s both, tt-build-cheer .36s cubic-bezier(.3, .7, .4, 1) 2.62s, tt-build-up .38s cubic-bezier(.5, 0, .8, .4) 2.88s forwards;
}
.tt-build__roller { position: absolute; left: -3em; top: -2em; width: 4.2em; max-width: none; height: 18.6em; overflow: visible; }
/* «Saltar intro» (el clic en cualquier punto también salta; Esc, Intro, espacio y Tab desde el teclado) */
.tt-build__skip {
  position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 4;
  min-height: 44px; padding: 0 18px; border: 1px solid rgb(43 47 54 / .16); border-radius: 999px;
  background: #ffffff; color: #2b2f36; font: 500 14px/1 var(--font-text); cursor: pointer;
  box-shadow: 0 6px 16px -10px rgb(20 30 70 / .4);
  animation: tt-build-in-soft .3s ease .3s both, tt-build-fade .25s ease 2.95s forwards;
}
.tt-build__skip:hover { background: #f1f4ff; }
.tt-build.is-out { opacity: 0; transition: opacity .25s ease; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .tt-build { display: none; } }
html[data-motion="off"] .tt-build { display: none; }
@keyframes tt-build-safe { to { visibility: hidden; pointer-events: none; } }
@keyframes tt-build-fade { to { opacity: 0; } }
@keyframes tt-build-on { to { opacity: 1; } }
@keyframes tt-build-in-soft { from { opacity: 0; } }
@keyframes tt-build-fly { to { transform: translate(var(--fx, 0px), var(--fy, -3vh)) scale(var(--fs, .92)); opacity: var(--fo, 0); } }
@keyframes tt-build-bounce { 35% { transform: scale(1.045); } 70% { transform: scale(.99); } }
@keyframes tt-build-piece {
  0% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.45); }
  12% { opacity: 1; }
  55% { transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .4 - 4em)) scale(.85); }
  84% { transform: translate(0, -.35em) scale(1.03); }
  100% { opacity: 1; transform: none; }
}
@keyframes tt-build-paint { from { clip-path: inset(-25% 100% -25% 0); } to { clip-path: inset(-25% 0 -25% 0); } }
@keyframes tt-build-spark { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25) rotate(45deg); } }
@keyframes tt-build-in { from { transform: translateX(calc(var(--side) * 100vw)); } }
@keyframes tt-build-out { to { transform: translateX(calc(var(--side) * 100vw)); } }
@keyframes tt-build-bob { 50% { transform: translateY(-.6em); } }
@keyframes tt-build-hop { 50% { transform: translateY(-2.6em); } 90% { transform: scaleY(.94); } }
@keyframes tt-build-cheer { 40% { transform: translateY(-2em); } 75% { transform: scaleY(.93); } }
@keyframes tt-build-step { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes tt-build-wave-l { 30% { transform: rotate(-18deg); } 65% { transform: rotate(10deg); } }
@keyframes tt-build-wave-r { 30% { transform: rotate(18deg); } 65% { transform: rotate(-10deg); } }
@keyframes tt-build-toss { 50% { transform: translateY(-3px) scale(1.05); } }
@keyframes tt-build-drop { to { opacity: 0; transform: scale(.4); } }
@keyframes tt-build-travel { from { transform: translateX(var(--x0)); } to { transform: translateX(var(--x1)); } }
@keyframes tt-build-down { from { transform: translateY(calc(-50vh - 40em)); } }
@keyframes tt-build-up { to { transform: translateY(calc(-50vh - 40em)); } }

/* ---------------------------------------------------------------- 17. Confianza y orientación (16/11/2026)
   Microcopia bajo «Empieza gratis», hero de Inicio orientado a resultado (etiqueta de categoría + etiquetas de
   audiencia), «¿Es TimTul para mi entidad?» (#para-quien), «Trae tu Excel de socios» (#importar), perfil de cada
   plan en Precios y testimonios (.tt-quote; los de ejemplo, solo en borrador: main.js, sección 9). */

/* microcopia de confianza bajo el botón «Empieza gratis» principal: 14 px; blanco sobre el degradado (portada y
   banda de cierre, sobre el velo violeta), antracita suave (--p-muted, 6,1:1 sobre blanco) sobre fondo claro */
.tt-trust { margin: var(--s-3) 0 0; font-size: var(--t-small); line-height: 1.45; font-weight: 400; color: var(--p-muted); }
.tt-hero .tt-trust, .closing-band .tt-trust { color: #ffffff; }
.tt-hero .btn-row + .tt-trust { margin-top: var(--s-3) !important; }
.closing__cta > .btn + .tt-trust { margin-top: 0; }
.tt-plan--free .tt-trust { margin-top: var(--s-2); font-size: var(--t-label); line-height: 1.35; color: var(--p-muted); }   /* 5,6:1 sobre el tinte del Gratis */
/* Precios: la fila del botón crece con la microcopia del Gratis; todos los botones arriba de su fila */
@media (min-width: 1024px) {
  .tt-plans--full > .tt-plans__labels, .tt-plans--full > .tt-plan { grid-template-rows: 196px repeat(6, 40px) auto; }
  .tt-plans--full .tt-plan__cta { align-items: flex-start; padding-top: var(--s-2); }
}
.tt-plans--full .tt-plan--free .tt-plan__cta { flex-direction: column; align-items: stretch; }

/* perfil de cada plan, bajo el nombre (Precios) */
.tt-plan__for { margin: 0; font-size: var(--t-label); line-height: 1.35; color: var(--p-muted); }
@media (max-width: 1023px) { .tt-plans--full .tt-plan__head > .tt-plan__for { grid-column: 1 / -1; } }

/* portada de Inicio: la categoría sobre el h1 (en blanco: el violeta del eyebrow no pasa sobre el degradado) */
.tt-hero .tt-eyebrow { color: #ffffff; }
.tt-hero .tt-eyebrow::before { background: #ffffff; }
.tt-hero .tt-eyebrow + h1 { margin-top: var(--s-3) !important; }

/* el salto a una sección desde una etiqueta o un botón: el h2 queda por debajo de la barra */
#para-quien, #importar { scroll-margin-top: var(--nav-h, 72px); }

/* «¿Es TimTul para mi entidad?»: seis tarjetas con icono (.tt-cards3), dos filas de tres */
#para-quien .tt-cards3 { margin-top: var(--s-7); }
@media (min-width: 640px) and (max-width: 1023px) { #para-quien .tt-cards3 > * { grid-column: span 6; } }

/* «Trae tu Excel de socios»: tres pasos numerados (tt-feats con el número en el cuadro del icono) y la importación a la derecha */
.tt-nsteps .tt-feats__ico { font: 600 var(--t-small)/1 var(--font-text); }
.tt-import__text > * + * { margin-top: var(--s-5); }
.tt-import__text .tt-nsteps { margin-top: var(--s-6); }
.tt-import__text .btn-row { margin-top: var(--s-6); }
.tt-import__text .tt-import__note { font-size: var(--t-small); }
@media (max-width: 1023px) { #importar .grid > * { grid-column: 1 / -1; } #importar .tt-pane { margin-top: var(--s-6); } }

/* testimonios (.tt-quote): cita, nombre, cargo y entidad. Los de ejemplo van en un bloque [data-borrador] hidden que
   main.js (sección 9) solo muestra en localhost, 127.0.0.1 o con ?borrador=1, con su etiqueta de borrador visible. */
.tt-quotes { margin-top: var(--s-8); }
.tt-quote { display: grid; align-content: start; gap: var(--s-4); margin: 0; padding: var(--s-6);
            /* fondo, borde, radio y sombra: estándar de tarjetas (sección 26) */ }
.tt-quote blockquote { margin: 0; }
.tt-quote blockquote p { margin: 0; font: var(--display-weight, 400) var(--t-lead)/1.4 var(--font-display); color: var(--p-ink); }
.tt-quote figcaption { display: grid; gap: 2px; font-size: var(--t-small); line-height: 1.4; }
.tt-quote figcaption b { font-weight: 500; color: var(--p-ink); }
.tt-quote figcaption span { color: var(--p-muted); }
.tt-quote__draft { justify-self: start; display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px;
                   background: var(--tt-tint-violet); color: var(--tt-violet); font-size: var(--t-label); font-weight: 500; }
.tt-quotes[data-borrador] .tt-quote { box-shadow: none; border-color: transparent; outline: 1px dashed color-mix(in oklab, var(--tt-violet) 45%, transparent); outline-offset: -1px; }
@media (max-width: 1023px) { .tt-quotes > .tt-quote { grid-column: 1 / -1; } }
/* Precios: la línea de garantías al pie de la tabla, separada del panel del Gratis; la de recomendación, pegada debajo */
.tt-refer-row.tt-guarantee { margin-top: var(--s-6); }
/* «Qué es TimTul» con dos tarjetas (se quitó «Para quién», 16/11/2026): la columna de tarjetas, centrada en vertical con el texto desde 1024 */
@media (min-width: 1024px) { .tt-quees { align-items: center; } .tt-quees__cards { align-self: center; } }

/* 18. #gratis reorganizado */
#gratis .tt-gratis__top { align-items: center; row-gap: var(--s-6); }
/* .tt-gratis__refer: fondo, borde y sombra del estándar de tarjetas (sección 26; antes, azul claro con borde azul) */
#gratis .tt-gratis__refer .tt-refer { font-size: var(--t-body); }
#gratis .tt-gratis__cards { margin-top: var(--s-8, var(--s-6)); }
#gratis .tt-gratis__cards .card { height: 100%; }
#gratis .tt-gratis__incl { margin-top: var(--s-6); }
@media (max-width: 1023px) { #gratis .tt-gratis__refer { grid-column: 1 / -1; } }

/* 19. #resuelve: sustituida por la sección 23 (Fase 6, #resuelve animado), al final de esta hoja. */

/* 20. Precios: tarjeta Plan Gratis completa */
.tt-hero__plan > .tt-frag--free, .tt-hero__plan > .tt-frag[data-ly-steps="800"] { gap: 0; padding: 12px 16px; width: min(420px, 100%); }
.tt-hero__plan .tt-frag__head { padding-bottom: 8px; }
.tt-hero__plan .tt-line { min-height: 34px; padding-top: 0; font-size: 14px; line-height: 20px; }
.tt-hero__plan .tt-line > span { flex: 1; min-width: 0; }
/* Precios, por debajo de 1024: la tarjeta no se recorta (el flex 1 1 0 del kit con min-height 0 la cortaba a media línea
   sobre el degradado); la portada crece a la altura de su contenido (petición del cliente). Desde la simplificación del
   17/11/2026 la tarjeta tiene solo 4 líneas y se ve entera en todos los anchos. */
@media (max-width: 1023px) {
  .tt-hero .hero__art.tt-hero__plan { flex: none; height: auto; min-height: 0; }
}
.tt-hero__plan .tt-line > .tt-chip { margin-left: auto; height: 20px; padding: 0 8px; font-size: 11px; font-style: normal; flex: none; }

/* 21. #panel compacto
   Dos columnas desde 1024 (texto + tres puntos a la izquierda; la ventana del producto a menor escala a la derecha, sin
   marco ni fondo, con la factura flotando sobre su esquina inferior derecha y el botón de pausa a su pie). En móvil:
   texto primero y la ventana debajo a ancho completo, sin la factura. */
.tt-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.tt-panel__text > * + * { margin-top: var(--s-4); }
.tt-panel__text > .tt-eyebrow + h2 { margin-top: var(--s-2); }
.tt-demo { position: relative; width: 100%; }
.tt-demo__fig { position: relative; padding-bottom: 72px; }
.tt-demo .tt-win { width: 100%; }
.tt-demo .tt-win__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.tt-demo .tt-win__main { padding: 16px; gap: 12px; }
.tt-demo .tt-kpi { padding: 10px 12px; }
.tt-demo .tt-kpi__value { font-size: 20px; line-height: 26px; }
.tt-demo .tt-row { padding: 8px 0; }
.tt-demo .tt-card { position: absolute; right: 0; bottom: 0; width: min(280px, 100%); z-index: 2; gap: 6px; padding: 12px 14px; }
.tt-demo > button.ui-pause.loop-pause { right: auto; left: 0; bottom: 8px; }
@media (min-width: 1024px) {
  .tt-panel { grid-template-columns: minmax(0, 1fr) minmax(0, min(600px, 56%)); gap: var(--s-7); }
  .tt-demo { justify-self: end; max-width: 600px; }
}
@media (max-width: 639px) {
  .tt-demo__fig { padding-bottom: 0; }
  .tt-demo .tt-card { display: none; }
  .tt-demo > button.ui-pause.loop-pause { display: none; }
  .tt-demo .tt-row:nth-child(3) { display: none; }
}
#panel.section { padding-block: 72px; }
@media (max-width: 1023px) { #panel.section { padding-block: var(--s-7); } }

/* ---------------------------------------------------------------- páginas legales */
/* /aviso-legal/, /politica-de-privacidad/ y /cookies/ (16/11/2026): el texto legal de timtul.com en una columna de
   lectura (72ch), con la navegación entre las tres páginas arriba. Estilo clean: fondo blanco, sin ilustraciones. */
.tt-legal { padding-block: var(--s-8) var(--s-9); }
.tt-legal__col { max-width: 72ch; }
.tt-legal h1 { font: var(--display-weight) clamp(34px, 4.4vw, 52px)/1.08 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-3); }
.tt-legal__date { color: var(--p-muted); font-size: 15px; margin: 0 0 var(--s-6); }
.tt-legal__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-7); padding: 0; list-style: none; }
.tt-legal__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px;
  color: var(--p-ink); text-decoration: none; box-shadow: inset 0 0 0 1px #dfe3ec; transition: box-shadow 160ms ease, background-color 160ms ease; }
.tt-legal__nav a:hover { box-shadow: inset 0 0 0 1px var(--p-accent); }
.tt-legal__nav a[aria-current="page"] { background: var(--p-surface); box-shadow: inset 0 0 0 1px var(--p-accent); color: var(--p-accent); }
.tt-legal__body h2 { font: var(--display-weight) 26px/1.2 var(--font-display); letter-spacing: -0.02em; margin: var(--s-7) 0 var(--s-3); }
.tt-legal__body h3 { font: 600 18px/1.35 var(--font-text); margin: var(--s-5) 0 var(--s-2); }
.tt-legal__body p, .tt-legal__body li { font-size: 16px; line-height: 1.65; color: var(--p-ink); }
.tt-legal__body p { margin: 0 0 var(--s-3); }
.tt-legal__body ul, .tt-legal__body ol { margin: 0 0 var(--s-4); padding-left: 1.3em; }
.tt-legal__body ul { list-style: disc; }   /* el reset del kit deja las listas sin marcador */
.tt-legal__body ol { list-style: upper-roman; padding-left: 2.2em; }
.tt-legal__body li { margin-bottom: 6px; }
.tt-legal__body a { color: var(--p-accent); text-underline-offset: 3px; }
.tt-legal__body dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s-4); margin: 0 0 var(--s-4); font-size: 16px; line-height: 1.6; }
.tt-legal__body dt { font-weight: 600; }
.tt-legal__body dd { margin: 0; }
.tt-legal__table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-5); font-size: 15px; line-height: 1.5; }
.tt-legal__table th, .tt-legal__table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid #e6e9f0; }
.tt-legal__table th { font-weight: 600; }
@media (max-width: 639px) {
  .tt-legal { padding-block: var(--s-6) var(--s-8); }
  .tt-legal__body dl { grid-template-columns: 1fr; gap: 0; }
  .tt-legal__body dd { margin-bottom: 8px; }
  .tt-legal__table thead { display: none; }
  .tt-legal__table, .tt-legal__table tbody, .tt-legal__table tr, .tt-legal__table td { display: block; width: 100%; }
  .tt-legal__table tr { padding: 12px 0; border-bottom: 1px solid #e6e9f0; }
  .tt-legal__table td { border: 0; padding: 2px 0; }
  .tt-legal__table td::before { content: attr(data-th) ": "; font-weight: 600; }
}

/* ---------------------------------------------------------------- 22. landing /empieza/ (redes sociales)
   Fase 6 (16/11/2026). Página mínima para quien llega desde Instagram, LinkedIn, etc.: solo el logo arriba, la portada
   con el degradado de la marca (una pantalla, texto centrado), tres pasos numerados y el mismo botón al cierre.
   Estilo clean: una columna, mucho aire, una sola acción. Móvil primero: a 390 px el botón va a todo el ancho y se ve
   sin hacer scroll. Sin menú, sin barra fija del móvil y sin pestaña de FAQ (petición del cliente). */
.tt-go__nav .nav__bar { justify-content: flex-start; }
.hero.tt-hero.tt-go__hero { min-height: calc(100svh - var(--nav, 72px)) !important; }   /* «Portada (una pantalla)» de la especificación */
/* el texto va centrado: el velo violeta, en el centro (no a la izquierda como en las otras portadas), para el blanco a 4,5:1 */
.hero.tt-hero.tt-go__hero { background-image: radial-gradient(46% 52% at 50% 48%, rgb(52 26 160 / .55), transparent 78%), var(--tt-gradient); }
.tt-go__text { max-width: 760px; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: var(--s-5); }
.tt-go__text h1 { font: var(--display-weight) clamp(38px, 6.4vw, 76px)/1.04 var(--font-display); letter-spacing: var(--display-tracking-xl); margin: 0; text-wrap: balance; }
.tt-go__text .hero__lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; max-width: 34ch; margin: 0; text-wrap: pretty; }
.tt-go__text .btn-row { justify-content: center; margin: var(--s-2) 0 0; }
.tt-go__text .tt-trust { margin: 0; color: #ffffff; }
.tt-go__steps.section { padding-block: var(--s-9) var(--s-9); }
.tt-go__steps .section-head { text-align: center; margin-inline: auto; }
.tt-go__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-7) 0 0; padding: 0; list-style: none; counter-reset: none; }
.tt-go__step { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6); }   /* fondo, borde, radio y sombra: estándar de tarjetas (sección 26) */
.tt-go__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: #ffffff;
  font: 500 20px/1 var(--font-display); background: linear-gradient(135deg, #5b40cc, #3f5fd2); }   /* tramo oscuro de la marca: blanco a 4,5:1 o más */
.tt-go__step h3 { font: 600 20px/1.3 var(--font-text); margin: var(--s-2) 0 0; color: var(--p-ink); }
.tt-go__step p { margin: 0; font-size: 16px; line-height: 1.55; color: #464c58; }
.tt-go__close { display: grid; justify-items: center; gap: var(--s-3); margin-top: var(--s-8); text-align: center; }
.tt-go__close .tt-trust { margin: 0; }
.tt-go__foot { padding-block: var(--s-5); border-top: 1px solid #e6e9f0; }
.tt-go__cta { min-height: 56px; min-width: 300px; justify-content: center; font-size: 18px; padding-inline: var(--s-6); }
.tt-go__foot .tt-go__legal { margin: 0; font-size: 15px; line-height: 1.6; color: var(--p-muted); text-align: center; }
.tt-go__foot .tt-go__legal a { color: inherit; text-underline-offset: 3px; display: inline-block; padding-block: 10px; }
@media (max-width: 1023px) {
  .tt-go__list { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 639px) {
  .tt-go__text { gap: var(--s-4); }
  /* en el móvil, el degradado sin el tramo cian del final ni las manchas de luz: la microcopia blanca a 4,5:1 o más */
  .hero.tt-hero.tt-go__hero { background-image: radial-gradient(140% 70% at 20% 34%, rgb(52 26 160 / .5), transparent 76%), linear-gradient(170deg, #5b40cc 0%, #6a4fd8 50%, #4a63d6 100%); }
  .hero.tt-go__hero.bg-liquid::before, .hero.tt-go__hero.bg-liquid::after { display: none; }
  .tt-go__text .btn-row, .tt-go__close { width: 100%; }
  .tt-go__cta { width: 100%; min-width: 0; }
  .tt-go__text .btn-row { margin-inline: 0; }
  .tt-go__steps.section { padding-block: var(--s-7); }
  .tt-go__step { padding: var(--s-5); }
}

/* ---------------------------------------------------------------- 23. #resuelve animado (Fase 6)
   Fase 6, punto 3 (petición del cliente del 16/11/2026). Inicio, «Antes y después»: la ilustración «del caos al orden»
   entre el h2 y las filas, y cuatro filas «Hoy» → flecha → «Con TimTul» con una mini-UI en cada tarjeta.
   - Ilustración (.tt-pane.tt-chaos, a todo el ancho): a la izquierda la maraña (iconos reales de assets/icons en
     teselas blancas, posiciones en el viewBox 600 x 360, y flechas curvas que se cruzan), en el centro una flecha recta
     en el degradado de la marca y a la derecha un portátil y un móvil con TimTul y el isotipo actual. Ciclo de 3,6 s:
     cada flecha de la maraña se dibuja (stroke-dashoffset) y se apaga a destiempo, los iconos flotan 3 px, un pulso
     recorre la flecha central y el isotipo late al recibirlo. Por debajo de 768, apilada: la flecha apunta hacia abajo.
   - Filas: «Hoy» en gris apagado (archivos, extracto, destinatarios y listas, sueltos y torcidos), que tiemblan solo
     al pasar el ratón; «Con TimTul» con el tinte de la marca y su mini-UI blanca, que se rehace paso a paso con el
     bucle del kit (layout.js [data-ly-steps], 2,9–3,9 s, se reinicia al pasar el puntero). La flecha de cada fila lleva
     un pulso de izquierda a derecha (de arriba abajo en el móvil) en bucle de 3,2 s desde la carga, a destiempo entre filas.
   - Pausa: la del kit; una en la ilustración y otra para las cuatro filas (.tt-ps-host). Los bucles CSS arrancan con la
     carga y no se paran ni reanudan con el scroll (motion.md); los «Hoy» solo se tuercen en los archivos de la fila 1.
   - Con prefers-reduced-motion o data-motion="off": nada se mueve y se ve el estado final (todo el movimiento está
     dentro de la media query y de html:not([data-motion="off"])). */

/* la ilustración */
#resuelve .tt-chaos { width: 100%; margin-top: 0; }
#resuelve .tt-chaos__art { width: 100%; justify-self: stretch; display: grid; grid-template-columns: minmax(0, 600px) 96px minmax(0, 300px); justify-content: center; align-items: center; column-gap: var(--s-6); }
.tt-chaos__mess { position: relative; aspect-ratio: 600 / 360; container-type: inline-size; }
.tt-chaos__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #8b91a0; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt-chaos__ic { --t: clamp(26px, 8.6cqw, 52px); position: absolute; left: calc(var(--x) / 6 * 1%); top: calc(var(--y) / 3.6 * 1%);
  display: grid; place-items: center; width: var(--t); height: var(--t); margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2);
  border-radius: 28%; background: #ffffff; box-shadow: inset 0 0 0 1px rgb(43 47 54 / .1), 0 2px 8px rgb(20 30 70 / .08); }
.tt-chaos__ic > img { width: 62%; height: 62%; object-fit: contain; }
.tt-chaos__ic--wide { width: calc(var(--t) * 1.7); margin-left: calc(var(--t) * -.85); }
.tt-chaos__ic--wide > img { width: 76%; }
.tt-chaos__go { display: grid; place-items: center; }
.tt-chaos__dir { position: relative; display: block; width: 96px; height: 24px; }
.tt-chaos__dir > svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: url(#tt-chaos-grad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tt-chaos__track { position: absolute; inset: -6px 10px -6px 0; overflow: hidden; }
.tt-chaos__pulse { position: absolute; left: 0; top: 50%; width: 100%; height: 0; opacity: 0; }
.tt-chaos__pulse::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 22%, #08bcd6 42%, rgb(8 188 214 / 0) 72%); }
.tt-chaos__order { display: grid; justify-items: center; gap: var(--s-4); }
.tt-chaos__devices { display: flex; align-items: flex-end; justify-content: center; gap: 10px; width: 100%; }
.tt-chaos__laptop { width: min(208px, calc(100% - 72px)); }
.tt-chaos__screen { padding: 8px; border: 5px solid #dfe3ec; border-bottom-width: 7px; border-radius: 10px 10px 2px 2px; background: #ffffff; }
.tt-chaos__base { height: 8px; margin: 0 -12px; border-radius: 2px 2px 8px 8px; background: #cfd5e2; }
.tt-chaos__app { display: grid; gap: 6px; font-size: 12px; line-height: 16px; color: var(--tt-ink); }
.tt-chaos__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tt-chaos__bar b { font-weight: 500; font-size: 12px; }
.tt-chaos__bar .tt-chip { height: 20px; padding: 0 8px; font-size: 11px; }
.tt-chaos__kpi { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--u-line); }
.tt-chaos__kpi span { color: var(--u-muted); font-size: 11px; }
.tt-chaos__kpi b { font-weight: 500; }
.tt-chaos__phone { display: grid; align-content: start; gap: 7px; width: 62px; height: 112px; padding: 6px 6px 8px; flex: none;
  border: 4px solid #dfe3ec; border-radius: 13px; background: #ffffff; box-shadow: 0 6px 16px -8px rgb(20 30 70 / .3); }
.tt-chaos__notch { justify-self: center; width: 18px; height: 4px; border-radius: 2px; background: #dfe3ec; }
.tt-chaos__prow { display: flex; align-items: center; gap: 4px; }
.tt-chaos__prow i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: color-mix(in oklab, var(--tt-action) 30%, #ffffff); }
.tt-chaos__prow b { height: 4px; width: var(--w); border-radius: 2px; background: #e3e7f0; }
.tt-chaos__pbtn { height: 10px; margin-top: 4px; border-radius: 5px; background: var(--tt-action); }
.tt-chaos__iso { display: block; width: auto; height: 116px; }
@media (max-width: 1023px) {
  #resuelve .tt-chaos__art { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 236px); column-gap: var(--s-3); }
  .tt-chaos__dir { width: 72px; }
  .tt-chaos__iso { height: 96px; }
}
@media (max-width: 767px) {
  #resuelve .tt-chaos__art { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
  .tt-chaos__go { height: 72px; }
  .tt-chaos__dir { width: 72px; transform: rotate(90deg); }
  .tt-chaos__order { grid-template-columns: auto auto; align-items: end; justify-content: center; column-gap: var(--s-4); }
  .tt-chaos__devices { width: auto; }
  .tt-chaos__laptop { width: 168px; }
  .tt-chaos__phone { width: 54px; height: 98px; }
  .tt-chaos__iso { height: 84px; }
}
@media (max-width: 419px) {
  .tt-chaos__order { grid-template-columns: auto; justify-items: center; }
}

/* las filas */
#resuelve .tt-ps-host { margin-top: var(--s-6); }
#resuelve .tt-ps { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
#resuelve .tt-ps__row { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: stretch; column-gap: var(--s-3); }
#resuelve .tt-ps__card { --c-pad: 24px; gap: var(--s-3); }
#resuelve .tt-ps__card > p { margin: 0; max-width: none; font-size: 18px; line-height: 28px; }
#resuelve .tt-ps__card > .tt-ps__label { display: flex; align-items: center; gap: var(--s-3); font: 600 var(--t-label)/1.3 var(--font-text); }
#resuelve .tt-ps__ico { width: 28px; height: 28px; border-radius: 50%; }
#resuelve .tt-ps__ico svg { width: 16px; height: 16px; stroke-width: 2.2; }
#resuelve .tt-ps__card--before { background: color-mix(in oklab, var(--tt-ink) 4%, #ffffff); border-color: color-mix(in oklab, var(--tt-ink) 14%, transparent); box-shadow: none; }
#resuelve .tt-ps__card--before > p { color: color-mix(in oklab, var(--tt-ink) 86%, #ffffff); }
#resuelve .tt-ps__card--before > .tt-ps__label { color: var(--p-muted); }
#resuelve .tt-ps__card--before .tt-ps__ico { background: color-mix(in oklab, #a3474d 12%, #ffffff); color: #a3474d; }
#resuelve .tt-ps__card--after { background: color-mix(in oklab, var(--tt-action) 6%, #ffffff); border-color: color-mix(in oklab, var(--tt-action) 28%, transparent); }
#resuelve .tt-ps__card--after > p { color: var(--tt-ink); }
#resuelve .tt-ps__card--after > .tt-ps__label { color: var(--tt-action); }
#resuelve .tt-ps__card--after .tt-ps__ico { background: var(--tt-blue); color: #ffffff; }
#resuelve .tt-ps__ui { padding-top: var(--s-2); }
#resuelve .tt-ps__ui > .tt-frag { width: 100%; }
/* la flecha de cada fila: una vía fina con el disco en medio; el pulso la recorre */
#resuelve .tt-ps__arrow { position: relative; display: grid; place-items: center; align-self: center; width: 100%; height: 40px; }
#resuelve .tt-ps__arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--tt-ink) 16%, transparent), color-mix(in oklab, var(--tt-action) 40%, transparent)); }
#resuelve .tt-ps__track { position: absolute; inset: 0; overflow: hidden; }
#resuelve .tt-ps__pulse { position: absolute; left: 0; top: 50%; width: 100%; height: 0; opacity: 0; }
#resuelve .tt-ps__pulse::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 20%, #2f8fdb 44%, rgb(47 143 219 / 0) 72%); }
#resuelve .tt-ps__disc { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tt-btn-grad); color: #ffffff; box-shadow: 0 4px 12px rgb(11 95 255 / .22); }
#resuelve .tt-ps__disc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#resuelve .tt-ps__more { display: flex; align-items: center; min-height: 56px; margin: var(--s-4) 0 0; padding-right: 56px; }

/* «Hoy»: el desorden, en gris apagado (piezas blancas sueltas y torcidas sobre la tarjeta gris) */
#resuelve .tt-mess { color: #464c58; font-size: 13px; line-height: 18px; }
#resuelve .tt-mess > * { box-shadow: inset 0 0 0 1px rgb(43 47 54 / .14), 0 1px 3px rgb(20 30 70 / .06); background: #ffffff; }
#resuelve .tt-mess--files { position: relative; height: 106px; }
#resuelve .tt-file { position: absolute; left: var(--l); top: var(--t); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - var(--l));
  height: 32px; padding: 0 12px 0 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; rotate: var(--r); }
#resuelve .tt-file img { width: 18px; height: 18px; flex: none; }
#resuelve .tt-mess--bank { display: grid; gap: 6px; }
#resuelve .tt-bank { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border-radius: 6px;
  font: 12px/16px var(--font-mono, ui-monospace, monospace); }
#resuelve .tt-bank > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#resuelve .tt-bank i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 600 12px/1 var(--font-text); font-style: normal;
  background: color-mix(in oklab, #a3474d 12%, #ffffff); color: #8f3a40; }
#resuelve .tt-mess--mail { display: grid; }
#resuelve .tt-to { display: flex; gap: 8px; min-width: 0; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
#resuelve .tt-to b { font-weight: 500; flex: none; }
#resuelve .tt-to span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#resuelve .tt-mess--lists { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#resuelve .tt-tagx { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
#resuelve .tt-mess--lists > .tt-export { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; font-size: 12px; }
#resuelve .tt-export svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* «Con TimTul»: el orden, la mini-UI blanca del producto */
#resuelve .tt-person { display: flex; align-items: center; gap: 10px; }
#resuelve .tt-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; color: #ffffff;
  font-size: 13px; font-weight: 500; background: linear-gradient(135deg, #5b40cc, #3f5fd2); }   /* tramo oscuro de la marca: blanco a 4,5:1 o más */
#resuelve .tt-pays { display: grid; border-top: 1px solid var(--u-line); }
#resuelve .tt-pay { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--u-line); }
#resuelve .tt-pay .tt-row__text small { line-height: 14px; }
#resuelve .tt-kv { display: flex; align-items: center; gap: 10px; min-width: 0; }
#resuelve .tt-kv > span:first-child { width: 48px; flex: none; color: var(--u-muted); font-size: 12px; }
#resuelve .tt-kv > b { font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#resuelve .tt-send { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--u-line); }
#resuelve .tt-send__count { color: var(--u-text-2); }
#resuelve .tt-send__count b { color: var(--u-ink); font-weight: 500; }
/* el botón «Enviar» sigue a la vista mientras espera su paso; al llegar, se pulsa (abajo, con movimiento) */
#resuelve [data-ly-steps] .tt-press[data-step].is-off { opacity: 1; transform: none; }

@media (max-width: 767px) {
  #resuelve .tt-ps { gap: var(--s-6); }
  #resuelve .tt-ps__row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 56px auto; row-gap: var(--s-2); }
  #resuelve .tt-ps__arrow { width: 56px; height: 40px; justify-self: center; transform: rotate(90deg); }
  #resuelve .tt-ps__card > p { font-size: var(--t-body); line-height: 24px; }
}

/* el movimiento: solo con movimiento permitido y sin data-motion="off" */
@keyframes tt-wire { 0% { stroke-dashoffset: 1; opacity: 1; } 32% { stroke-dashoffset: 0; } 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes tt-chaos-pulse { 0%, 36% { transform: translateX(0); opacity: 0; } 40% { opacity: 1; } 60% { transform: translateX(100%); opacity: 1; } 64%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes tt-beat { 0%, 60% { transform: scale(1); } 67% { transform: scale(1.07); } 80%, 100% { transform: scale(1); } }
@keyframes tt-ps-pulse { 0% { transform: translateX(0); opacity: 0; } 3%, 20% { opacity: 1; } 24%, 100% { transform: translateX(100%); opacity: 0; } }
@keyframes tt-ps-nudge { 0%, 8% { transform: translateX(0); } 12% { transform: translateX(3px); } 18%, 100% { transform: translateX(0); } }
@keyframes tt-press { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgb(11 95 255 / .4); } 30% { transform: scale(.94); } 100% { transform: scale(1); box-shadow: 0 0 0 12px rgb(11 95 255 / 0); } }
@keyframes tt-jitter { 0%, 100% { translate: 0 0; } 25% { translate: -1.5px .5px; } 50% { translate: 1.5px -1px; } 75% { translate: -.5px 1px; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) #resuelve .tt-chaos__wires path { stroke-dasharray: 1; animation: tt-wire 3.6s linear var(--d, 0s) infinite; }
  html:not([data-motion="off"]) #resuelve .tt-chaos__ic { animation: tt-float 3.6s ease-in-out var(--f, 0s) infinite; }
  html:not([data-motion="off"]) #resuelve .tt-chaos__pulse { animation: tt-chaos-pulse 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
  html:not([data-motion="off"]) #resuelve .tt-chaos__iso { animation: tt-beat 3.6s cubic-bezier(.22, 1, .36, 1) infinite; }
  html:not([data-motion="off"]) #resuelve .tt-ps__pulse { animation: tt-ps-pulse 3.2s cubic-bezier(.65, 0, .35, 1) var(--pd, 0s) infinite; }
  html:not([data-motion="off"]) #resuelve .tt-ps__disc svg { animation: tt-ps-nudge 3.2s var(--ease, ease) var(--pd, 0s) infinite; }
  html:not([data-motion="off"]) #resuelve [data-ly-steps] .tt-press[data-step]:not(.is-off) { animation: tt-press 560ms var(--ease, ease) 1; }
  /* la pausa del kit y fuera de pantalla: todo se queda donde está */
  #resuelve :is(.tt-chaos, .tt-ps-host).is-held :is(*, *::before) { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  html:not([data-motion="off"]) #resuelve .tt-ps__card--before:hover .tt-mess > * { animation: tt-jitter 380ms linear 2; }
  html:not([data-motion="off"]) #resuelve .tt-ps__card--before:hover .tt-mess > :nth-child(2n) { animation-delay: 70ms; }
}

/* Funcionalidades, #proximas (simplificación del 17/11/2026): quedan 3 tarjetas; en escritorio, una fila de 3 en vez de 2 + 1 */
@media (min-width: 1024px) { .tt-func__next { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- 24. «Del caos al orden» en la portada y «Todo en TimTul» en #resuelve (17/11/2026)
   Petición del cliente: la ilustración «del caos al orden» (sección 23) pasa a la portada de Inicio, a la derecha del texto,
   en lugar de la órbita (la sección 3 conserva sus reglas .tt-orbit, ya sin marcado en Inicio). En #resuelve, un gráfico
   nuevo del mismo estilo: el orden.
   - Portada: sin cuadro (17/11/2026), directamente sobre el degradado, con flechas en blanco semitransparente; los tokens
     claros se devuelven (.tt-hero los pone en blanco) para el botón de pausa y la mini-UI. Siempre apilado (maraña arriba, flecha hacia abajo y portátil, móvil e isotipo debajo), centrado en vertical
     con el texto. Por debajo de 1024, bajo el texto y a todo el ancho.
   - Las reglas de la sección 23 que iban con #resuelve (animaciones y pausa) valen aquí para .tt-chaos esté donde esté.
   - «Todo en TimTul» (.tt-hub): el isotipo en una placa blanca en el centro y 6 baldosas alrededor (posiciones en el viewBox
     960 x 440, como la maraña), unidas al centro por líneas grises finas; por cada una viaja un pulso del degradado de la
     marca hacia el isotipo, en bucle de 3,6 s escalonado 0,6 s entre líneas; el isotipo late suave y su halo se expande.
     Por debajo de 640: el isotipo arriba, una línea corta con su pulso y las 6 baldosas en dos columnas.
   - Pausa: la del kit en cada cuadro; se reinicia al pasar el puntero (resuelve.js). Con prefers-reduced-motion o
     data-motion="off", todo quieto y completo: líneas enteras, sin pulsos. Nada depende del scroll. */

/* la portada */
.tt-hero .hero__art.tt-chaos-art {
  display: grid; flex: none; align-self: center; height: auto; min-height: 0; margin-top: 0;
  overflow: visible; border-radius: 0; background: none; box-shadow: none;
}
.tt-hero .tt-chaos {
  --ink: var(--tt-ink); --muted: #4e5563; --bg: #ffffff; --surface: #ffffff; --accent: var(--tt-action); --accent-ink: #ffffff;
  --line: rgb(43 47 54 / .12); --line-strong: rgb(43 47 54 / .24);
  width: 100%; padding: var(--s-5) var(--s-5) var(--s-4); color: var(--tt-ink);
  background: none; border: 0; box-shadow: none;   /* sin cuadro (17/11/2026, cliente): los iconos, directamente sobre el degradado */
}
.tt-hero .tt-chaos::before { display: none; }
/* sin cuadro, las flechas grises y la flecha del degradado se perderían: en blanco semitransparente, solo en la portada */
.tt-hero .tt-chaos__wires { stroke: rgb(255 255 255 / .75); }
.tt-hero .tt-chaos__dir > svg { stroke: rgb(255 255 255 / .85); }
.tt-hero .tt-chaos__art { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 0; }
.tt-hero .tt-chaos__mess { width: 100%; }
.tt-hero .tt-chaos__go { height: 52px; }
.tt-hero .tt-chaos__dir { width: 52px; transform: rotate(90deg); }
.tt-hero .tt-chaos__order { grid-template-columns: auto auto; align-items: end; justify-content: center; column-gap: var(--s-5); }
.tt-hero .tt-chaos__devices { width: auto; }
.tt-hero .tt-chaos__laptop { width: 184px; }
.tt-hero .tt-chaos__phone { width: 56px; height: 100px; }
.tt-hero .tt-chaos__iso { height: 92px; }
@media (max-width: 1023px) { .tt-hero .hero__art.tt-chaos-art { align-self: stretch; margin-top: var(--s-6); } }
@media (max-width: 639px) {
  .tt-hero .tt-chaos { padding: var(--s-4) var(--s-3) var(--s-3); }
  .tt-hero .tt-chaos__go { height: 44px; }
  .tt-hero .tt-chaos__laptop { width: 156px; }
  .tt-hero .tt-chaos__phone { width: 50px; height: 90px; }
  .tt-hero .tt-chaos__iso { height: 72px; }
}
@media (max-width: 419px) {
  .tt-hero .tt-chaos { padding-bottom: 60px; }   /* la esquina del botón de pausa, libre */
  .tt-hero .tt-chaos__order { column-gap: var(--s-3); }
  .tt-hero .tt-chaos__laptop { width: 140px; }
  .tt-hero .tt-chaos__phone { display: none; }
}

/* «Todo en TimTul» */
#resuelve .tt-hub { width: 100%; margin-top: 0; }
.tt-hub__map { position: relative; width: 100%; max-width: 960px; aspect-ratio: 960 / 440; container-type: inline-size; justify-self: center; color: var(--tt-ink); }
.tt-hub__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tt-hub__lines { stroke: #a9afbb; stroke-width: 1.8; }
.tt-hub__pulses path { stroke-width: 4.5; opacity: 0; }
.tt-hub__core { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; display: grid; place-items: center; }
.tt-hub__halo, .tt-hub__plate { grid-area: 1 / 1; width: clamp(96px, 15.6cqw, 150px); aspect-ratio: 1; border-radius: 50%; }
.tt-hub__halo { background: rgb(47 143 219 / .22); opacity: 0; }
.tt-hub__plate { display: grid; place-items: center; background: #ffffff;
  box-shadow: 0 0 0 clamp(6px, 1cqw, 10px) rgb(255 255 255 / .6), inset 0 0 0 1px rgb(43 47 54 / .08), 0 18px 36px -18px rgb(20 30 70 / .35); }
.tt-hub__iso { display: block; width: auto; height: 58%; }
.tt-hub__tiles { margin: 0; padding: 0; list-style: none; }
.tt-hub__tile { position: absolute; z-index: 1; left: calc(var(--x) / 9.6 * 1%); top: calc(var(--y) / 4.4 * 1%); translate: -50% -50%;
  display: flex; align-items: center; gap: clamp(8px, 1.2cqw, 12px); width: 20.8cqw; margin: 0;
  padding: clamp(6px, 1cqw, 10px) clamp(8px, 1.4cqw, 14px) clamp(6px, 1cqw, 10px) clamp(6px, 1cqw, 10px);
  border-radius: 14px; background: #ffffff; box-shadow: inset 0 0 0 1px rgb(43 47 54 / .1), 0 2px 8px rgb(20 30 70 / .08);
  font: 500 clamp(12px, 1.6cqw, 15px) / 1.25 var(--font-text); color: var(--tt-ink); }
.tt-hub__ico { display: grid; place-items: center; flex: none; width: clamp(30px, 4.6cqw, 44px); aspect-ratio: 1; border-radius: 28%;
  background: color-mix(in oklab, var(--tt-action) 9%, #ffffff); }
.tt-hub__ico svg { width: 56%; height: 56%; fill: none; stroke: var(--tt-action); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 639px) {
  #resuelve .tt-hub { padding-bottom: 64px; }   /* la esquina del botón de pausa, libre */
  .tt-hub__map { aspect-ratio: auto; container-type: normal; display: grid; justify-items: center; }
  .tt-hub__wires { display: none; }
  .tt-hub__core { position: static; translate: none; }
  .tt-hub__halo, .tt-hub__plate { width: 104px; }
  .tt-hub__tiles { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; padding-top: 44px; }
  /* la línea corta del isotipo a las baldosas, con su pulso */
  .tt-hub__tiles::before { content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 28px; margin-left: -1px; border-radius: 1px; background: #a9afbb; }
  .tt-hub__tiles::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px;
    background: linear-gradient(#08bcd6, #2f8fdb 40%, #6a4fd8); opacity: 0; }
  .tt-hub__tile { position: static; translate: none; width: auto; min-width: 0; padding: 10px 12px 10px 10px; gap: 10px; font-size: 14px; }
  .tt-hub__ico { width: 34px; }
}
@media (max-width: 419px) {
  .tt-hub__tile { flex-direction: column; justify-content: flex-start; padding: 12px 8px; gap: 8px; text-align: center; }
}

/* el movimiento: solo con movimiento permitido y sin data-motion="off" */
@keyframes tt-hub-pulse { 0% { stroke-dashoffset: .2; opacity: 0; } 4% { opacity: 1; } 34% { stroke-dashoffset: -1; opacity: 1; } 38%, 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes tt-hub-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes tt-hub-down { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 40% { transform: translateY(16px); opacity: 1; } 46%, 100% { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .tt-chaos .tt-chaos__wires path { stroke-dasharray: 1; animation: tt-wire 3.6s linear var(--d, 0s) infinite; }
  html:not([data-motion="off"]) .tt-chaos .tt-chaos__ic { animation: tt-float 3.6s ease-in-out var(--f, 0s) infinite; }
  html:not([data-motion="off"]) .tt-chaos .tt-chaos__pulse { animation: tt-chaos-pulse 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
  html:not([data-motion="off"]) .tt-chaos .tt-chaos__iso { animation: tt-beat 3.6s cubic-bezier(.22, 1, .36, 1) infinite; }
  html:not([data-motion="off"]) .tt-hub__pulses path { stroke-dasharray: .2 2; animation: tt-hub-pulse 3.6s cubic-bezier(.45, 0, .55, 1) var(--d, 0s) infinite; }
  html:not([data-motion="off"]) .tt-hub__plate { animation: tt-hub-beat 3.6s ease-in-out infinite; }
  html:not([data-motion="off"]) .tt-hub__halo { animation: tt-orbit-halo 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
  html:not([data-motion="off"]) .tt-hub__tiles::after { animation: tt-hub-down 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
  /* la pausa del kit: todo se queda donde está */
  :is(.tt-chaos, .tt-hub).is-held :is(*, *::before, *::after) { animation-play-state: paused !important; }
}

/* ---------------------------------------------------------------- 25. #resuelve en dos columnas (17/11/2026)
   Petición del cliente: «Todo en TimTul» a la derecha del texto y en pequeño. Desde 1024: el texto en span-5 y el
   gráfico en span-6 start-7, centrados en vertical. El cuadro es un contenedor (tt-hub): si mide 560 px o más, la
   disposición radial con baldosas más estrechas y letra de 13 px; si mide menos (1024-1279), la compacta del móvil
   (isotipo arriba, línea corta con su pulso y las 6 baldosas en dos columnas). Por debajo de 1024, como antes:
   el gráfico debajo del texto. Las animaciones y la pausa, las de la sección 24. */
#resuelve .tt-resuelve__grid { row-gap: 0; }
@media (min-width: 1024px) {
  #resuelve .tt-resuelve__grid { align-items: center; }
  #resuelve .tt-resuelve__grid > .section-head { margin-bottom: 0; }
  #resuelve .tt-hub { align-self: center; container: tt-hub / inline-size; padding: var(--s-5) var(--s-4); }
  #resuelve .tt-hub__tile { width: 25cqw; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; font-size: 13px; line-height: 1.2; }
  #resuelve .tt-hub__ico { width: 28px; }
  #resuelve :is(.tt-hub__halo, .tt-hub__plate) { width: clamp(80px, 15.6cqw, 104px); }
}
@container tt-hub (max-width: 559.98px) {
  #resuelve .tt-hub__map { aspect-ratio: auto; container-type: normal; display: grid; justify-items: center; padding-bottom: 32px; }   /* abajo: la esquina del botón de pausa, libre */
  #resuelve .tt-hub__wires { display: none; }
  #resuelve .tt-hub__core { position: static; translate: none; }
  #resuelve :is(.tt-hub__halo, .tt-hub__plate) { width: 96px; }
  #resuelve .tt-hub__tiles { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; padding-top: 44px; }
  #resuelve .tt-hub__tiles::before { content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 28px; margin-left: -1px; border-radius: 1px; background: #a9afbb; }
  #resuelve .tt-hub__tiles::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px;
    background: linear-gradient(#08bcd6, #2f8fdb 40%, #6a4fd8); opacity: 0; }
  #resuelve .tt-hub__tile { position: static; translate: none; width: auto; min-width: 0; padding: 10px 12px 10px 10px; gap: 10px; font-size: 14px; }
  #resuelve .tt-hub__ico { width: 32px; }
}
/* portada sin cuadro, 1024-1279: la columna es estrecha y el botón de pausa caía sobre el isotipo; se le deja su franja abajo */
@media (min-width: 1024px) and (max-width: 1279px) { .tt-hero .tt-chaos { padding-bottom: 52px; } }

/* ---------------------------------------------------------------- 26. Tarjetas: estándar del 17/11/2026 (petición del cliente)
   El modelo son las tarjetas de «Qué hace TimTul» (Producto, #que-hace): borde de 1 px muy suave, radio grande, sombra
   apenas visible y, si llevan visual (mini-UI), una franja de borde a borde separada por una línea. El fondo depende del
   fondo de la sección (docs/COMPONENTES.md, «Tarjetas: fondo según la sección»):
     · sección en tinte (.tt-tint / .ground-surface) → tarjeta BLANCA y franja de visual en tinte claro;
     · sección en blanco → el inverso: tarjeta en tinte claro (#f4f6fd, --p-surface) y franja de visual en blanco.
   Se aplica a las .card del kit dentro de main > section (no a la portada, a la banda de cierre, al popup ni al panel de
   FAQ) y a las piezas con aspecto de tarjeta (.tt-quote, .tt-go__step). Las mini-UI (.ui, .tt-card, .tt-frag), los marcos
   de ilustración (.tt-pane) y la tabla de planes de Precios no son tarjetas de contenido y no entran.
   Contraste (AA): texto #2b2f36 sobre #f4f6fd 12,4:1; gris #5b6270 sobre #f4f6fd 5,7:1; azul #0b5fff sobre #f4f6fd 4,75:1 (medidos). */
:root {
  --tt-card-tint: linear-gradient(135deg, var(--tt-tint-violet), var(--tt-tint-blue));   /* la franja de visual de #que-hace */
  --tt-card-bg: var(--p-surface);          /* fondo de la tarjeta (puede ser un degradado: úsese con background) */
  --tt-card-color: var(--p-surface);       /* su color plano, para --card (el kit deriva de él el texto y las sombras) */
  --tt-card-visual-bg: var(--p-bg);        /* la franja de visual: el contrario de la tarjeta */
  --tt-card-border: 1px solid color-mix(in oklab, var(--p-ink) 8%, transparent);
  --tt-card-line: 1px solid color-mix(in oklab, var(--p-ink) 11%, transparent);   /* la línea que separa la franja de visual */
  --tt-card-radius: var(--r-lg, 20px);
  --tt-card-shadow: 0 1px 2px rgb(0 0 0 / .03);
}
main > section:is(.tt-tint, .ground-surface) {
  --tt-card-bg: var(--p-bg); --tt-card-color: var(--p-bg); --tt-card-visual-bg: var(--tt-card-tint);
}
main > section:not(.hero, .section--hero, .closing-band) .card:not(.card--open, .card--plan),
main > section:not(.hero, .section--hero, .closing-band) :is(.tt-quote, .tt-go__step) {
  --card: var(--tt-card-color);
  background: var(--tt-card-bg); border: var(--tt-card-border); border-radius: var(--tt-card-radius); box-shadow: var(--tt-card-shadow);
}
/* la franja de visual de una tarjeta (en Producto, .tt-qh__stage lleva lo mismo en producto.css) */
.card > .card__visual { background: var(--tt-card-visual-bg); border-block: var(--tt-card-line); }
/* dentro de una tarjeta en tinte (sección blanca), las piezas pequeñas que también eran tinte (baldosa del icono,
   insignia suave, etiquetas, viñetas de verificación) pasan a blanco para no perderse */
main > section:not(.hero, .section--hero, .closing-band, .tt-tint, .ground-surface) .card .tt-feats__ico {
  background: var(--p-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tt-action) 18%, transparent);
}
main > section:not(.hero, .section--hero, .closing-band, .tt-tint, .ground-surface) .card :is(.tt-badge--soft, .tt-tags li) { background: var(--p-bg); }
main > section:not(.hero, .section--hero, .closing-band, .tt-tint, .ground-surface) .card .tt-checks li::before {
  background-color: var(--p-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tt-action) 18%, transparent);
}

/* Títulos sin palabras partidas con guion (petición del cliente, 17/11/2026): anula el hyphens: auto del kit */
h1, h2, h3, h4 { hyphens: manual; -webkit-hyphens: manual; }

/* Inicio, #para-quien (17/11/2026, elegido por el cliente): fila de 6 iconos grandes con el degradado de marca,
   el nombre y una frase debajo, sin cajas. 6 columnas desde 1024, 3 en tableta, 2 en el móvil. */
.tt-who { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); margin: 0; padding: 0; list-style: none; }
.tt-who__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.tt-who__item h3 { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; font: 600 17px/1.3 var(--font-text); color: var(--p-ink); }
.tt-who__item .tt-feats__ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0; border-radius: 20px; border: 0;
  background: linear-gradient(135deg, #6a4fd8 0%, #2f8fdb 55%, #08bcd6 100%); box-shadow: 0 10px 24px -10px rgba(47, 143, 219, .55);
  transition: transform 200ms var(--m-ease, ease); }
.tt-who__item .tt-feats__ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tt-who__item:hover .tt-feats__ico { transform: translateY(-2px); }
.tt-who__item p { margin: 0; max-width: 18ch; font-size: 15px; line-height: 1.45; color: var(--p-muted); }
@media (max-width: 1023px) { .tt-who { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .tt-who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
  .tt-who__item .tt-feats__ico { width: 60px; height: 60px; border-radius: 16px; } .tt-who__item .tt-feats__ico svg { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) { .tt-who__item .tt-feats__ico { transition: none; } .tt-who__item:hover .tt-feats__ico { transform: none; } }
/* Inicio, #clientes (17/11/2026, petición del cliente): título centrado, logos sin caja blanca y la cinta centrada en
   el ancho del contenido. El sprite trae el blanco en la imagen: multiply lo funde con el fondo de la sección. */
#clientes .tt-slider { width: min(100% - 2 * var(--gut), var(--container)); margin-inline: auto; }
#clientes .tt-logos { background: rgb(246, 247, 253); } /* el fondo de la sección dentro de la cinta (la máscara aísla la mezcla) */
#clientes .tt-logo-cell { background-color: transparent; mix-blend-mode: multiply; }
/* Portada de Inicio: la mini-UI del portátil heredaba el blanco del texto de la portada (17/11/2026) */
.tt-hero .tt-chaos__app, .tt-hero .tt-chaos__app b, .tt-hero .tt-chaos__kpi b { color: #2b2f36; }
.tt-hero .tt-chaos__kpi span { color: #5b6270; }

/* ---------------------------------------------------------------- popup de formulario: más ancho y a dos columnas (petición del cliente, 17/11/2026)
   Desde 720 px los campos van de dos en dos; el selector de plan, la facturación, el
   mensaje, la casilla, el botón y los avisos ocupan las dos columnas. En el móvil, una columna como antes. */
.tt-modal { width: min(820px, calc(100vw - 2 * var(--gut))); }
@media (min-width: 720px) {
  .tt-modal .tt-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-5); align-items: start; }
  .tt-modal .tt-form > * { margin-top: 0; }
  .tt-modal .tt-form > :is(fieldset, .tt-form__wide, .btn-row, .form__status, .form__error, p) { grid-column: 1 / -1; }
  .tt-modal .tt-form > .form__status:empty { display: none; }
  .tt-modal .tt-choice__opts--plans { grid-template-columns: repeat(5, minmax(0, 1fr)); }   /* los cinco planes en una fila (petición del cliente, 17/11/2026) */
}


/* ---------------------------------------------------------------- revisión 18/11/2026
   Precios #incluye: rótulo visible sobre cada fila de etiquetas (antes solo aria-label); las píldoras no se parten.
   Inicio #gratis: la recomendación bajo el texto y, a la derecha, la mini-UI «Tu primera semana» en una tarjeta en tinte. */
.tt-tags__label { margin: var(--s-5) 0 0; font: 600 14px/1.3 var(--font-text); color: var(--muted); }
.tt-tags__label + .tt-tags { margin-top: var(--s-2); }
.tt-tags li { white-space: nowrap; }
@media (max-width: 639px) {
  #incluye .tt-tags { display: flex; flex-wrap: wrap; }
  #incluye .tt-tags > .tt-tags__wide { grid-column: auto; }
}
#gratis .tt-gratis__week { display: grid; place-items: center; padding: var(--s-6); }
#gratis .tt-gratis__week > .tt-frag { width: min(440px, 100%); }
@media (max-width: 1023px) { #gratis .tt-gratis__week { grid-column: 1 / -1; padding: var(--s-4); } }

/* lista de espera (18/11/2026): párrafo bajo el título del popup de plan */
.tt-modal .tt-modal__intro { margin: calc(-1 * var(--s-3)) 0 0; color: var(--muted); font-size: var(--t-body); line-height: 1.55; max-width: 60ch; }

/* ---------------------------------------------------------------- barra de aviso: videollamada (18/11/2026)
   <aside class="tt-promo"> inyectada por main.js (sección 8b) encima de la cabecera, solo mientras WAITLIST es true y no en
   /consultoria/. Va en el flujo (se va con el scroll); la cabecera fija baja a top: 0 con --promo-y. Degradado de la marca
   oscurecido para que el texto blanco tenga contraste AA en todo su recorrido (#5a3fc9 → #1d6fb8 → #087a94: 6,6 : 1, 5,2 : 1 y 5,0 : 1). */
.tt-promo { position: relative; z-index: 49; background: linear-gradient(90deg, #5a3fc9 0%, #1d6fb8 55%, #087a94 100%); color: #ffffff; }
.tt-promo__in { margin: 0; padding: 10px var(--gut, 16px); display: block; font-size: 14px; line-height: 1.35; text-align: center; }
@media (min-width: 640px) { .tt-promo__in { font-size: 15px; } }
.tt-promo__ico { display: inline-block; vertical-align: -4px; margin-right: 8px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt-promo__short { display: none; }
@media (max-width: 639px) { .tt-promo__long { display: none; } .tt-promo__short { display: inline; } }
.tt-promo__txt b { font-weight: 600; }
/* enlace en línea (el texto fluye a su alrededor); en el móvil su área táctil es de 44 px de alto sin agrandar la barra */
.tt-promo__link { display: inline; margin-left: 6px; padding: 13px 4px; color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 640px) { .tt-promo__link { padding-block: 6px; } }
.tt-promo__link:hover { text-decoration-thickness: 2px; }
.tt-promo__link:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 4px; }
/* degradado que fluye (petición del cliente, 18/11/2026): una capa del doble de ancho con el degradado repetido dos veces
   se desplaza medio ancho en bucle, así el final empalma con el principio sin salto. Mismos tonos oscurecidos (texto AA). */
.tt-promo { overflow: hidden; isolation: isolate; }
.tt-promo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #5a3fc9 0%, #1d6fb8 12.5%, #087a94 25%, #1d6fb8 37.5%, #5a3fc9 50%, #1d6fb8 62.5%, #087a94 75%, #1d6fb8 87.5%, #5a3fc9 100%); }
@media (prefers-reduced-motion: no-preference) {
  .tt-promo::before { animation: tt-promo-flow 9s linear infinite; }
}
@keyframes tt-promo-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* la cabecera (fija) acompaña a la barra mientras ésta se ve; el menú móvil abierto cuelga de ella */
html:has(.tt-promo) .nav { top: var(--promo-y, 0px); }
@media (max-width: 767px) { html:has(.tt-promo) .nav.is-open .nav__links { top: calc(var(--promo-y, 0px) + var(--nav)); } }

/* insignia de la oferta de lanzamiento bajo el botón de /empieza/ y /empieza-gratis/ (puntos 40-41 de la cola, 18/11/2026):
   tarjeta blanca con borde de degradado que fluye despacio, badge «Oferta de lanzamiento», beneficio en grande, icono de vídeo
   en baldosa con degradado y un brillo que la cruza cada ~4 s. Quieta con prefers-reduced-motion. Contraste AA: texto #2b2f36 y
   #5b6270 sobre blanco; badge blanco sobre #5a3fc9 → #1d6fb8 → #087a94 (6,6 · 5,2 · 5,0 : 1); «gratis» en #5a3fc9. */
.tt-bonus { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 14px; width: fit-content; max-width: min(100%, 460px); margin: var(--s-4) 0 0; padding: 14px 18px 14px 14px;
  border: 2px solid transparent; border-radius: 18px; color: #2b2f36; text-align: left; box-shadow: 0 14px 34px -14px rgb(20 20 80 / .55);
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(100deg, #6a4fd8, #2f8fdb, #08bcd6, #2f8fdb, #6a4fd8, #2f8fdb, #08bcd6) border-box; background-size: 100% 100%, 300% 100%; }
.tt-bonus::after { content: ""; position: absolute; z-index: 2; top: -20%; bottom: -20%; left: -40%; width: 30%; pointer-events: none; transform: translateX(0) skewX(-18deg); opacity: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / .75), rgb(255 255 255 / 0)); }
.tt-bonus__tile { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #6a4fd8 0%, #2f8fdb 60%, #08bcd6 100%); color: #ffffff; box-shadow: 0 8px 18px -8px rgb(47 100 219 / .7); }
.tt-bonus__tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt-bonus__body { display: grid; gap: 4px; min-width: 0; }
.tt-bonus__badge { justify-self: start; padding: 3px 10px; border-radius: 999px; background: linear-gradient(90deg, #5a3fc9, #1d6fb8 60%, #087a94); color: #ffffff; font: 700 11px/1.4 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.tt-bonus__main { font: 700 clamp(17px, 4.6vw, 21px)/1.2 var(--font-text); color: #2b2f36; }
.tt-bonus__main em { font-style: normal; color: #5a3fc9; }
.tt-bonus__sub { font-size: 13.5px; line-height: 1.35; font-weight: 500; color: #5b6270; }
/* móvil: versión compacta (baldosa y textos más pequeños) para no empujar el botón de la portada fuera de la primera pantalla */
@media (max-width: 639px) {
  .tt-bonus { gap: 10px; width: 100%; max-width: 100%; margin-top: var(--s-3); padding: 10px 12px 10px 10px; border-radius: 16px; }
  .tt-bonus__tile { width: 40px; height: 40px; border-radius: 12px; }
  .tt-bonus__tile svg { width: 21px; height: 21px; }
  .tt-bonus__badge { padding: 2px 8px; font-size: 10px; }
  .tt-bonus__sub { font-size: 12.5px; line-height: 1.3; }
}
@media (prefers-reduced-motion: no-preference) {
  .tt-bonus { animation: tt-bonus-border 9s linear infinite; }
  .tt-bonus::after { animation: tt-bonus-shine 4s ease-in-out infinite; }
}
@keyframes tt-bonus-border { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 300% 0; } }
@keyframes tt-bonus-shine { 0%, 62% { transform: translateX(0) skewX(-18deg); opacity: 0; } 66% { opacity: 1; } 92% { transform: translateX(520%) skewX(-18deg); opacity: 1; } 100% { transform: translateX(520%) skewX(-18deg); opacity: 0; } }

/* ---------------------------------------------------------------- botón de Preguntas frecuentes (18/11/2026)
   Revisión de diseño: la pestaña vertical pegada al borde (escritorio) y el cuadrado gris a media altura (móvil)
   parecían añadidos y tapaban contenido.
   - Escritorio: píldora blanca abajo a la derecha, con icono y texto, borde y sombra suaves.
   - Móvil: botón de 48 px dentro de la franja de la barra fija de acción (a la derecha del botón principal, que
     deja ese hueco), así no flota sobre el contenido. En páginas sin barra, abajo a la derecha. */
.faq-tab {
  top: auto; bottom: 24px; right: 24px; transform: none; writing-mode: horizontal-tb; z-index: 41;
  min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3); border: 1px solid var(--line); border-radius: 999px;
  background: #ffffff; color: var(--ink); font: 600 14px/1 var(--font-text);
  box-shadow: 0 1px 2px rgb(20 30 70 / .06), 0 10px 24px -12px rgb(20 30 70 / .35);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.faq-tab svg { width: 18px; height: 18px; color: var(--action); }
.faq-tab:hover { background: #ffffff; padding-right: var(--s-4); border-color: color-mix(in oklab, var(--action) 35%, var(--line)); transform: translateY(-2px);
  box-shadow: 0 1px 2px rgb(20 30 70 / .06), 0 14px 28px -12px rgb(11 95 255 / .35); }
.faq-tab:active { background: #ffffff; transform: translateY(0); }
@media (max-width: 639px) {
  .faq-tab { bottom: calc(3px + env(safe-area-inset-bottom)); right: var(--gut); width: 48px; height: 48px; padding: 0; border-radius: var(--r-btn);
             justify-content: center; box-shadow: none; }
  .faq-tab:hover { padding-right: 0; transform: none; }
  /* la barra fija deja a la derecha el hueco del botón de dudas */
  body:has(> .faq-tab:not([hidden])) > .actionbar { padding-right: calc(var(--gut) + 48px + var(--s-3)); }
}
@media (prefers-reduced-motion: reduce) { .faq-tab, .faq-tab:hover { transition: none; transform: none; } }

/* ==========================================================================
   COLA 18/11/2026 · puntos 1, 5-10 (botones de pausa, popup, páginas legales)
   ========================================================================== */

/* ---- 1. sin botones de pausa (petición del cliente, 18/11/2026). Se ocultan por CSS sin tocar el kit; la animación sigue
   funcionando y se respeta prefers-reduced-motion. Se libera el hueco que algunas cajas reservaban para el botón. ---- */
button.loop-pause, button.ui-pause, button.tt-orbit__pause { display: none !important; }
.tt-hero .hero__art.tt-orbit-art { padding-bottom: 0; }
.tt-demo__fig { padding-bottom: 0; }
.tt-go__list { padding-bottom: 0; }
.tt-hero .tt-chaos { padding-bottom: 0; }
#resuelve .tt-hub { padding-bottom: 0; }
@container tt-hub (max-width: 559.98px) { #resuelve .tt-hub__map { padding-bottom: 0; } }

/* ---- 8. popup: la cabecera (título y X) queda fija y hace scroll el cuerpo, dentro de la caja redondeada ---- */
.tt-modal { overflow: hidden; }
.tt-modal[open] { display: flex; flex-direction: column; }
.tt-modal__inner { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 0; gap: 0; }
.tt-modal__head { flex: none; padding: var(--s-5) var(--s-6) var(--s-4); border-bottom: 1px solid var(--line); background: var(--bg); }
.tt-modal__body {
  display: grid; gap: var(--s-5); align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s-5) var(--s-6) var(--s-6);
  scrollbar-width: thin; scrollbar-color: #cfd5e6 transparent; scrollbar-gutter: stable;
}
.tt-modal__body::-webkit-scrollbar { width: 8px; }
.tt-modal__body::-webkit-scrollbar-track { background: transparent; margin-block: 8px; }
.tt-modal__body::-webkit-scrollbar-thumb { background: #cfd5e6; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.tt-modal__body::-webkit-scrollbar-thumb:hover { background: #b3bcd3; background-clip: content-box; }
.tt-modal__body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@media (max-width: 639px) {
  .tt-modal__head { padding: var(--s-4) var(--s-5) var(--s-3); }
  .tt-modal__body { padding: var(--s-4) var(--s-5) var(--s-5); }
}

/* ---- 5 y 10. lista de espera: pasos numerados y bloque «Información básica sobre protección de datos» ---- */
.tt-modal .tt-modal__intro { margin: 0; max-width: none; }
.tt-modal .tt-modal__lead { margin: 0 0 var(--s-2); color: var(--ink); font-weight: 600; }
.tt-modal .tt-steps { margin: 0; padding: 0; list-style: none; counter-reset: tt-step; display: grid; gap: var(--s-2); }
.tt-modal .tt-steps li { counter-increment: tt-step; position: relative; padding-left: 32px; color: var(--ink); font-size: var(--t-body); line-height: 1.5; }
.tt-modal .tt-steps li::before {
  content: counter(tt-step); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: #0b5fff; color: #ffffff; font: 600 13px/1 var(--font-text);
}
.tt-modal .tt-steps b { font-weight: 600; }
.tt-modal .tt-lopd { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: #f4f6fd; border: 1px solid #e3e7f4; color: #2b2f36; font-size: 13px; line-height: 1.45; }
.tt-modal .tt-lopd__title { margin: 0 0 6px; font-weight: 600; font-size: 13px; }
.tt-modal .tt-lopd__list { margin: 0; display: grid; gap: 4px; }
.tt-modal .tt-lopd__list > div { display: block; }
.tt-modal .tt-lopd dt { display: inline; font-weight: 600; }
.tt-modal .tt-lopd dt::after { content: ": "; }
.tt-modal .tt-lopd dd { display: inline; margin: 0; }
.tt-modal .tt-lopd a, .tt-modal .field--check a { color: #0b5fff; text-decoration: underline; text-underline-offset: 2px; }

/* ---- 7. páginas legales: columna derecha con índice y otros textos (estilo clean, sin animaciones) ---- */
.tt-legal__toc-m { margin: 0 0 var(--s-6); border: 1px solid #e3e7f4; border-radius: var(--r-md); background: #f4f6fd; }
.tt-legal__toc-m summary { cursor: pointer; padding: 12px 16px; min-height: 44px; display: flex; align-items: center; font: 600 15px/1.3 var(--font-text); color: var(--p-ink); }
.tt-legal__toc-m summary:focus-visible { outline: 2px solid #0b5fff; outline-offset: 2px; border-radius: var(--r-md); }
.tt-legal__toc-m ol { margin: 0; padding: 0 16px 14px 36px; list-style: decimal; }
.tt-legal__toc-m li { margin: 0; padding: 4px 0; font-size: 15px; line-height: 1.4; }
.tt-legal__toc-m a { color: var(--p-accent); text-underline-offset: 3px; }
.tt-legal__aside { display: none; }
@media (min-width: 1024px) {
  .tt-legal__toc-m, .tt-legal__nav { display: none; }
  main > section.tt-legal > .wrap.tt-legal__grid { display: grid; grid-template-columns: minmax(0, 72ch) minmax(280px, 340px); justify-content: space-between; align-items: start; gap: var(--s-8); }
  .tt-legal__col { max-width: none; }
  .tt-legal__aside { display: block; position: sticky; top: calc(var(--nav, 72px) + 24px); }
  .tt-legal__card { position: relative; overflow: hidden; padding: var(--s-6) var(--s-5) var(--s-5); border: 1px solid #e3e7f4; border-radius: var(--r-lg); background: #f4f6fd; display: grid; gap: var(--s-5); max-height: calc(100dvh - var(--nav, 72px) - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cfd5e6 transparent; }
  .tt-legal__mark { position: relative; display: grid; place-items: center; height: 132px; margin: 0 0 var(--s-1); }
  .tt-legal__mark::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; filter: blur(22px); opacity: .35;
    background: radial-gradient(circle at 30% 30%, #6a4fd8, transparent 65%), radial-gradient(circle at 70% 60%, #2f8fdb, transparent 65%), radial-gradient(circle at 50% 85%, #08bcd6, transparent 60%); }
  .tt-legal__mark img { position: relative; width: 96px; height: 96px; object-fit: contain; }
}
.tt-legal__aside-h { margin: 0 0 var(--s-2); font: 600 13px/1.3 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: var(--p-muted); }
.tt-legal__toc, .tt-legal__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.tt-legal__toc { counter-reset: tt-toc; }
.tt-legal__toc li { counter-increment: tt-toc; }
.tt-legal__toc a, .tt-legal__links a { display: block; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; font-size: 15px; line-height: 1.35; color: var(--p-ink); text-decoration: none; }
.tt-legal__toc a:hover, .tt-legal__links a:hover { background: #ffffff; color: var(--p-accent); }
.tt-legal__toc a:focus-visible, .tt-legal__links a:focus-visible { outline: 2px solid #0b5fff; outline-offset: 1px; }
.tt-legal__links a[aria-current="page"] { font-weight: 600; color: var(--p-accent); }
.tt-legal__body h2 { scroll-margin-top: calc(var(--nav, 72px) + 24px); }

/* ---- Quiénes somos (/quienes-somos/): texto sobrio en una columna de lectura ---- */
.qs__text { max-width: 64ch; }
.qs__text p { margin: 0 0 var(--s-3); font-size: 18px; line-height: 1.65; color: var(--p-ink); }
.qs__timeline { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-3) var(--s-5); max-width: 64ch; margin: var(--s-4) 0 0; font-size: 18px; line-height: 1.6; }
.qs__timeline dt { font: var(--display-weight) 26px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--p-accent); }
.qs__timeline dd { margin: 0; }
@media (max-width: 639px) { .qs__timeline { grid-template-columns: 1fr; gap: 0; } .qs__timeline dd { margin-bottom: var(--s-3); } }

/* ---- sellos de confianza (18/11/2026): rejilla de 6 sellos provisionales en assets/img/sellos/ (el cliente los sustituye por los oficiales con el mismo nombre) ---- */
.tt-seals__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-6); margin: var(--s-7) 0 0; padding: 0; list-style: none; }
.tt-seals__grid li { display: block; min-width: 0; }
.tt-seals__grid img { display: block; width: 100%; max-width: 200px; margin-inline: auto; height: auto; aspect-ratio: 200 / 260; border-radius: 0; transition: transform .2s ease, box-shadow .2s ease; }
.tt-seals__grid img:hover { transform: translateY(-4px) scale(1.02); }
@media (max-width: 1023px) { .tt-seals__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
@media (max-width: 639px) { .tt-seals__grid { gap: var(--s-3); margin-top: var(--s-5); } }
@media (prefers-reduced-motion: reduce) { .tt-seals__grid img { transition: none; } .tt-seals__grid img:hover { transform: none; } }

/* sellos: logos oficiales recibidos (ENISA) y franja oficial del Kit Digital bajo la rejilla (18/11/2026) */
.tt-seals__grid .tt-seals__real { display: grid; place-items: center; }
.tt-seals__grid .tt-seals__real img { aspect-ratio: auto; max-width: 170px; border-radius: 0; object-fit: contain; }
.tt-seals__kit { margin: var(--s-7) 0 0; padding: var(--s-5) var(--s-5); border-radius: var(--r-lg); background: #ffffff; border: 1px solid var(--line); }
.tt-seals__kit img { display: block; width: 100%; max-width: 1024px; height: auto; margin-inline: auto; }

/* Oferta de lanzamiento: cuenta atrás y plazas reservadas (26/11/2026). Dentro de la insignia .tt-bonus de /empieza/ y en la
   entrada del popup de lista de espera. Marcado y reloj en main.js (LAUNCH). La barra se rellena al cargar; quieta con reduced-motion. */
.tt-bonus--launch { flex-wrap: wrap; max-width: min(100%, 480px); }
.tt-bonus--launch .tt-bonus__body { flex: 1 1 0; }
.tt-launch { display: grid; gap: 10px; color: #2b2f36; }
.tt-launch:empty { display: none; }
.tt-bonus .tt-launch { flex: 1 1 100%; margin-top: 2px; padding-top: 12px; border-top: 1px solid #e6e9f2; }
.tt-launch p { margin: 0; }
.tt-launch__title { font: 700 12px/1.3 var(--font-text); letter-spacing: .07em; text-transform: uppercase; color: #5a3fc9; }
.tt-launch__clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tt-launch__clock span { display: grid; justify-items: center; gap: 2px; padding: 7px 4px; border-radius: 12px; background: #f3f1fe; }
.tt-launch__clock b { font: var(--display-weight, 400) 26px/1 var(--font-display); font-variant-numeric: tabular-nums; color: #2b2f36; }
.tt-launch__clock small { font-size: 12px; color: #5b6270; }
.tt-launch__bar { height: 10px; border-radius: 999px; background: #e9ecf5; overflow: hidden; }
.tt-launch__bar span { display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6a4fd8, #2f8fdb 60%, #08bcd6); }
.tt-launch__count { font-size: 14px; color: #5b6270; }
.tt-launch__count strong { color: #2b2f36; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .tt-launch__bar span { animation: tt-launch-fill 1.4s cubic-bezier(.2,.7,.2,1) .4s both; } }
@keyframes tt-launch-fill { from { width: 0; } }
@media (max-width: 639px) { .tt-launch__clock b { font-size: 21px; } .tt-launch__clock { gap: 6px; } }
/* popup de lista de espera: la insignia completa arriba, a todo el ancho (26/11/2026) */
.tt-modal .tt-bonus--modal { width: 100%; max-width: none; margin: 0 0 var(--s-4); }
