/* Inicio (/) · cola del 18/11/2026, puntos 11-18. Solo lo que usa index.html; se carga después de timtul.css.
   Movimiento: bucles de 2,5-4 s solo con transform y opacity; quietos con prefers-reduced-motion o data-motion="off"
   (el estado de reposo es siempre el dibujo completo); pausa con .is-held (inicio.js y la del hero). Nada ligado al scroll. */

/* Portada, tercera columna (punto 12): «Software / para <palabra que rota>». Las ocho palabras comparten celda de rejilla:
   la columna reserva el ancho y el alto de la más larga y nada salta. La palabra sube y se funde (2,5 s por palabra). */
.tt-hero__facts li > span:not(.sr-only) { display: block; }
.tt-rot { display: grid; }
.tt-rot__w { grid-area: 1 / 1; font-style: normal; opacity: 0; }
.tt-rot__w:first-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .tt-rot__w { opacity: 0; animation: tt-rot 20s linear infinite backwards; animation-delay: calc(var(--n) * 2.5s); }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(1) { --n: 0; }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(2) { --n: 1; }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(3) { --n: 2; }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(4) { --n: 3; }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(5) { --n: 4; }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(6) { --n: 5; }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(7) { --n: 6; }
  html:not([data-motion="off"]) .tt-rot__w:nth-child(8) { --n: 7; }
  .tt-hero:is(.is-held, .is-off) .tt-rot__w { animation-play-state: paused; }
}
@keyframes tt-rot {
  0% { opacity: 0; transform: translateY(.7em); }
  2.5% { opacity: 1; transform: none; }
  10% { opacity: 1; transform: none; }
  12.5% { opacity: 0; transform: translateY(-.7em); }
  100% { opacity: 0; transform: translateY(-.7em); }
}

/* Fondos alternos tras quitar #para-quien (punto 13): hero, #resuelve en tinte, #panel blanco, #clientes en tinte,
   #gratis blanco y cierre en tinte. La cinta de logos funde su blanco con el fondo de la sección (tinte). */

/* #resuelve (punto 14): título largo en columna de 6 */
#resuelve .section-head > h2 { text-wrap: balance; }

/* #panel (punto 15): ficha de un socio (sustituye la ventana «Panel general» y la factura flotante) */
.tt-demo__fig { padding-bottom: 40px; }
.tt-ficha .tt-win__crumb { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tt-ficha__head { display: flex; align-items: center; gap: 12px; }
.tt-ficha__avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff;
  font: 500 16px/1 var(--font-text); letter-spacing: .02em; background: linear-gradient(135deg, var(--tt-violet), var(--tt-blue) 60%, var(--tt-cyan)); }
.tt-ficha__who { display: grid; min-width: 0; flex: 1; }
.tt-ficha__who b { font-weight: 500; font-size: 16px; line-height: 22px; }
.tt-ficha__who small { color: var(--u-muted); font-size: 12px; line-height: 16px; }
.tt-ficha__chip { flex: none; }
.tt-ficha__bar { display: block; height: 6px; border-radius: 3px; background: var(--u-fill-3); overflow: hidden; }
.tt-ficha__bar > i { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: left center;
  background: linear-gradient(90deg, var(--tt-violet), var(--tt-blue) 60%, var(--tt-cyan)); }
.tt-ficha .tt-kpi__value { white-space: nowrap; }
@media (max-width: 639px) {
  .tt-demo__fig { padding-bottom: 36px; }
  .tt-demo .tt-row:nth-child(3) { display: grid; }
  .tt-ficha .tt-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tt-ficha .tt-kpi { padding: 8px 8px; }
  .tt-ficha .tt-kpi__label { font-size: 11px; line-height: 14px; }
  .tt-ficha .tt-kpi__value { font-size: 16px; line-height: 22px; }
}
@media (max-width: 359px) { .tt-ficha__chip { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .tt-ficha [style*="--i"] { animation: tt-ficha-in 4s ease-in-out infinite backwards; animation-delay: calc(var(--i) * .2s); }
  html:not([data-motion="off"]) .tt-ficha__bar > i { animation: tt-ficha-bar 4s ease-in-out infinite backwards; animation-delay: .9s; }
  .tt-demo.is-held .tt-ficha :is(*, *::before) { animation-play-state: paused !important; }
}
@keyframes tt-ficha-in {
  0% { opacity: 0; transform: translateY(6px); }
  10%, 84% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes tt-ficha-bar {
  0% { transform: scaleX(0); }
  30%, 100% { transform: scaleX(1); }
}

/* Portada en móvil: la tercera columna baja a su propia fila si las tres no caben */
@media (max-width: 479px) {
  .tt-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tt-hero__facts .tt-hero__rot { grid-column: 1 / -1; }
}

/* cierre: persona del equipo recortada, apoyada en el borde inferior de la banda (foto del cliente, 18/11/2026) */
#contact.closing-band { overflow: hidden; }
.closing-band__person { display: none; }
@media (min-width: 1024px) {
  #contact .closing-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .closing-band__person { display: block; align-self: center; }
}

/* cierre: tarjeta de la persona de soporte (foto generada, persona ficticia; 18/11/2026) */
.tt-help { position: relative; max-width: 380px; margin-left: auto; padding: 72px 28px 26px; border-radius: 22px; background: #fff; color: #2b2f36; text-align: center;
  box-shadow: 0 2px 6px rgb(20 10 90 / .18), 0 30px 60px -24px rgb(20 10 90 / .6); }
.tt-help__foto { position: absolute; left: 50%; top: -64px; width: 128px; height: 128px; margin-left: -64px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; box-shadow: 0 0 0 3px rgb(106 79 216 / .55), 0 16px 30px -12px rgb(20 10 90 / .55); }
.tt-help__who { display: grid; gap: 2px; }
.tt-help__who b { font: 600 18px/1.2 var(--font-text); color: #2b2f36; }
.tt-help__who small { font-size: 14px; color: #5b6270; }
.tt-help__msg { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px 14px 14px 4px; background: #eef1fb; border: 1px solid #dfe4f3; color: #2b2f36; font-size: 15px; line-height: 1.5; text-align: left; }
.tt-help__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) { .tt-help__msg { animation: tt-help-in 4s cubic-bezier(.22,1,.36,1) infinite; } }
@keyframes tt-help-in { 0%, 8% { opacity: 0; transform: translateY(8px); } 16%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Avatar con foto (ficha) */
.tt-ficha__avatar { overflow: hidden; }
.tt-ficha__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.closing-band .tt-help, .closing-band .tt-help .tt-help__msg, .closing-band .tt-help b { color: #2b2f36; }
.closing-band .tt-help small { color: #5b6270; }

/* Portada (18/11/2026): sin «Ilimitada»; «Software para…» ocupa dos columnas y la palabra que rota es la protagonista */
.tt-hero__facts .tt-hero__rot { grid-column: span 2; }
.tt-hero__rot .tt-rot { margin-top: 2px; }
.tt-hero__rot .tt-rot__w { font: var(--display-weight) 28px/1.1 var(--font-display); letter-spacing: -0.02em; color: #ffffff; }
@media (max-width: 1023px) { .tt-hero__rot .tt-rot__w { font-size: 22px; } }
@media (max-width: 479px) { .tt-hero__facts .tt-hero__rot { grid-column: span 2; } }
/* «Software para» en una línea y la palabra que rota más grande, llenando las dos columnas (18/11/2026) */
.tt-hero__rot .tt-rot__w { font-size: 33px; line-height: 1.1; white-space: nowrap; }
@media (max-width: 1023px) { .tt-hero__rot .tt-rot__w { font-size: 28px; } }
@media (max-width: 379px) { .tt-hero__rot .tt-rot__w { font-size: 24px; } }
/* La palabra que rota va en la misma línea que «Software para», nunca debajo (18/11/2026).
   Ocupa la fila entera de datos; el tamaño baja con el ancho disponible para que «colegios profesionales» quepa. */
.tt-hero__facts .tt-hero__rot { grid-column: 1 / -1; container-type: inline-size; display: flex; align-items: baseline; gap: 0.3em; white-space: nowrap; }
.tt-hero__rot > b, .tt-hero__rot .tt-rot__w { font-size: min(28px, 5.6cqi); line-height: 1.15; }
.tt-hero__rot .tt-rot { margin-top: 0; }
/* «0 € al mes» a la derecha del botón Empieza gratis (18/11/2026) */
.tt-hero .btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.tt-hero__price { display: grid; gap: 2px; margin: 0; padding-left: var(--s-5); border-left: 1px solid rgb(255 255 255 / .35); color: #fff; }
.tt-hero__price b { font: var(--display-weight) 28px/1 var(--font-display); letter-spacing: -0.02em; }
.tt-hero__price span { font-size: var(--t-small); line-height: 1.3; opacity: .9; }
@media (max-width: 1023px) { .tt-hero__price b { font-size: 22px; } }
@media (max-width: 1023px) { .tt-hero .btn-row:has(.tt-hero__price) { flex-direction: row; flex-wrap: nowrap; justify-content: center; } .tt-hero__price { text-align: left; } }
