/* Producto: «Qué hace TimTul» (#que-hace). Cuatro tarjetas 2×2 (una columna por debajo de 640), cada una con su
   baldosa de icono en el degradado de la marca, su texto, una mini-UI en bucle (layout.js [data-ly-steps]) y el enlace
   al pie. Solo tokens de system.css y timtul.css. */

#que-hace .tt-qh { align-self: stretch; }   /* la rejilla g2 de la sección deja a cada hijo a su ancho de contenido */
#que-hace .tt-qh { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 640px) { #que-hace .tt-qh { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* la tarjeta: fondo, borde, radio y sombra del estándar de tarjetas (timtul.css, sección 26: blanca, porque la sección
   es .tt-tint); el kit (motion.css) la levanta 2 px al pasar el puntero */
#que-hace .tt-qh__card { position: relative; --card-pad: var(--s-6); padding: var(--card-pad); gap: var(--s-3); overflow: hidden; }
@media (max-width: 639px) { #que-hace .tt-qh__card { --card-pad: var(--s-5); } }
#que-hace .tt-qh__card > h3 { margin-top: var(--s-2); }
#que-hace .tt-qh__card > p { margin: 0 0 var(--s-4); }

/* la baldosa del icono: violeta → azul → cian, icono de línea blanco */
#que-hace .tt-qh__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #6a4fd8 0%, #2f8fdb 62%, #08bcd6 100%); color: #ffffff;
  box-shadow: 0 8px 18px -10px rgb(47 60 200 / .55); }
#que-hace .tt-qh__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* la franja de la mini-UI: de borde a borde de la tarjeta, sobre la franja de visual del estándar de tarjetas
   (--tt-card-visual-bg: tinte claro, porque la tarjeta es blanca); empuja el enlace al pie y tiene un alto común, así
   las dos tarjetas de cada fila alinean la mini-UI y el enlace */
#que-hace .tt-qh__stage { display: grid; place-items: center; flex: 1 0 auto; margin: 0 calc(var(--card-pad) * -1);
  min-height: 200px; padding: var(--s-5) var(--card-pad);
  background: var(--tt-card-visual-bg);
  border-block: var(--tt-card-line); }
#que-hace .tt-qh__stage > .tt-frag { width: min(380px, 100%); }
@media (max-width: 639px) { #que-hace .tt-qh__stage { min-height: 0; } }

/* 1 · la ficha de la socia */
#que-hace .tt-qh__who { display: flex; align-items: center; gap: 12px; }
#que-hace .tt-qh__av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tt-tint-violet); color: #4b34b8; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgb(106 79 216 / .22); }

/* 2 · los tres cobros y lo que generan */
#que-hace .tt-qh__pays { display: grid; }
#que-hace .tt-qh__pay { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--u-line); }
#que-hace .tt-qh__pay:first-child { padding-top: 0; }
#que-hace .tt-qh__pay .tt-row__text small { line-height: 14px; }
#que-hace .tt-qh__done { display: grid; gap: 8px; }
#que-hace .tt-qh__done .tt-line:first-child { border-top: 0; padding-top: 0; }

/* 4 · el número de inscritos cambia de golpe (sin script, el final) */
#que-hace .tt-meter > .tt-swap { font-variant-numeric: tabular-nums; color: var(--u-text-2); }

/* en dos columnas, las cuatro piezas de cada tarjeta (icono, título, texto, mini-UI) comparten filas con su
   vecina: la franja de la mini-UI empieza a la misma altura en las dos */
@media (min-width: 640px) {
  #que-hace .tt-qh__card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--s-3); align-items: start; }
  #que-hace .tt-qh__stage { align-self: stretch; }
}

/* la franja de la mini-UI llega hasta el pie de la tarjeta (sin enlace debajo) */
#que-hace .tt-qh__stage { margin-bottom: calc(var(--card-pad) * -1); border-bottom: 0; }
#que-hace .tt-qh__body { margin: 0 0 var(--s-4); }
#que-hace .tt-qh__body > p { margin: 0; }
#que-hace .tt-qh__checks { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; list-style: none; font-size: var(--t-small); line-height: 1.4; }
#que-hace .tt-qh__checks li { position: relative; padding-left: 26px; }
#que-hace .tt-qh__checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tt-tint-violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236a4fd8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2.4 2.4 4.6-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1px rgb(106 79 216 / .25); }

/* 21 · portada a la altura de su contenido, texto y mini-UI centrados en vertical */
main > .tt-hero { min-height: 0 !important; }
.tt-hero .hero__text { align-self: center; }
@media (min-width: 1024px) { .tt-hero .hero__art.tt-ficha-art { align-self: center; } }

/* 27 · web pública de una asociación de ejemplo + área privada del socio en el móvil (lienzo de 600×400 escalado al ancho) */
#mas-crm .tt-mas__art.tt-site { height: auto; overflow: hidden; padding: var(--tt-frame-pad); }
.tt-site__stage { container-type: inline-size; position: relative; width: min(100%, 600px); aspect-ratio: 600 / 400; margin-inline: auto; }
.tt-site__canvas { position: absolute; left: 0; top: 0; width: 600px; height: 400px; transform-origin: 0 0; scale: tan(atan2(100cqw, 600px)); color: #2b2f36; font-family: var(--font-text); }
.tt-site__canvas svg { display: block; }
.tt-site__pause { right: 12px; bottom: 12px; }
.tt-site__pause svg { width: 14px; height: 14px; fill: currentColor; }

.tt-bw { position: absolute; left: 0; top: 6px; width: 500px; height: 340px; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(43 47 54 / .1), 0 30px 60px -24px rgb(47 40 120 / .45), 0 8px 18px -10px rgb(43 47 54 / .25); }
.tt-bw__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f4f6fd; border-bottom: 1px solid rgb(43 47 54 / .08); }
.tt-bw__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cde0; }
.tt-bw__bar span { margin-left: 10px; padding: 3px 14px; border-radius: 999px; background: #fff; font-size: 11px; line-height: 14px; color: #5b6270; box-shadow: inset 0 0 0 1px rgb(43 47 54 / .08); }
.tt-bw__view { height: 310px; overflow: hidden; }
.tt-bw__page { animation: tt-site-scroll 4s ease-in-out infinite; will-change: transform; }
.tt-bw__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgb(43 47 54 / .08); }
.tt-bw__brand { display: flex; align-items: center; gap: 8px; }
.tt-bw__brand svg { width: 24px; height: 24px; }
.tt-bw__brand b { font: 500 13px/1 var(--font-display); letter-spacing: -.01em; }
.tt-bw__nav { display: flex; align-items: center; gap: 12px; font-size: 11px; color: #5b6270; }
.tt-bw__cta { padding: 5px 10px; border-radius: 999px; background: #0b5fff; color: #fff; font-weight: 500; }
.tt-bw__banner { display: grid; gap: 6px; align-content: center; height: 108px; padding: 0 20px; color: #fff; background: linear-gradient(120deg, #5b40cc 0%, #2f6fd8 60%, #0a8fb0 100%); }
.tt-bw__banner b { max-width: 300px; font: 400 20px/1.15 var(--font-display); letter-spacing: -.02em; }
.tt-bw__banner span { font-size: 11px; }
.tt-bw__sec { padding: 14px 16px 6px; font: 500 12px/1 var(--font-text); color: #4b34b8; }
.tt-bw__news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.tt-bw__news > div { display: grid; gap: 2px; padding-bottom: 8px; border-radius: 8px; background: #f4f6fd; overflow: hidden; }
.tt-bw__news i { display: block; height: 44px; background: var(--c); margin-bottom: 6px; }
.tt-bw__news b { padding: 0 8px; font-size: 11px; line-height: 14px; font-weight: 500; }
.tt-bw__news span { padding: 0 8px; font-size: 10px; line-height: 13px; color: #5b6270; }
.tt-bw__ev { display: grid; gap: 8px; padding: 0 16px 18px; }
.tt-bw__ev > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #f4f6fd; }
.tt-bw time, .tt-ph time { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgb(106 79 216 / .25); font-size: 8px; line-height: 9px; font-weight: 500; color: #4b34b8; }
.tt-bw time b, .tt-ph time b { font-size: 14px; line-height: 14px; }
.tt-bw__ev span b { display: block; font-size: 11px; line-height: 14px; font-weight: 500; }
.tt-bw__ev small { font-size: 10px; line-height: 13px; color: #5b6270; }

.tt-ph { position: absolute; right: 6px; bottom: 0; width: 176px; height: 350px; padding: 7px; border-radius: 30px; background: #2b2f36;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12) inset, 0 34px 60px -20px rgb(20 10 90 / .6), 0 10px 20px -8px rgb(20 10 90 / .35); }
.tt-ph__notch { position: absolute; left: 50%; top: 12px; z-index: 2; width: 54px; height: 14px; margin-left: -27px; border-radius: 99px; background: #2b2f36; }
.tt-ph__screen { position: relative; height: 100%; padding: 34px 11px 11px; border-radius: 24px; background: #fff; overflow: hidden; }
.tt-ph__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tt-ph__hi { display: flex; align-items: center; gap: 6px; }
.tt-ph__hi svg { width: 20px; height: 20px; }
.tt-ph__hi b { font: 500 14px/1 var(--font-display); letter-spacing: -.01em; }
.tt-ph__ok { padding: 3px 8px; border-radius: 99px; background: #f3f1fe; box-shadow: inset 0 0 0 1px rgb(106 79 216 / .25); font-size: 9px; line-height: 12px; font-weight: 500; color: #4b34b8; white-space: nowrap; }
.tt-ph__swap { position: relative; height: 252px; margin-top: 12px; }
.tt-ph__a, .tt-ph__b { position: absolute; inset: 0; }
.tt-ph__a { animation: tt-ph-a 3.6s ease-in-out infinite; }
.tt-ph__b { opacity: 0; animation: tt-ph-b 3.6s ease-in-out infinite; }
.tt-ph__id { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, #5b40cc, #2f6fd8 70%, #0a8fb0); box-shadow: 0 14px 24px -14px rgb(47 60 200 / .7); }
.tt-ph__idhead { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.tt-ph__idhead svg { width: 18px; height: 18px; }
.tt-ph__idhead small, .tt-ph__id > small { font-size: 9px; line-height: 12px; }
.tt-ph__id > b { font: 400 16px/1.1 var(--font-display); }
.tt-ph__qr { width: 96px; height: 96px; margin: 12px auto 2px; padding: 6px; border-radius: 10px; background: #fff; }
.tt-ph__h { margin: 8px 0 6px; font-size: 10px; line-height: 12px; font-weight: 500; color: #4b34b8; }
.tt-ph__h:first-child { margin-top: 0; }
.tt-ph__row { display: flex; align-items: center; gap: 8px; padding: 6px; margin-bottom: 6px; border-radius: 10px; background: #f4f6fd; }
.tt-ph__row time { width: 30px; height: 30px; }
.tt-ph__row span b { display: block; font-size: 10px; line-height: 12px; font-weight: 500; }
.tt-ph__row small { font-size: 9px; line-height: 11px; color: #5b6270; }
.tt-ph__doc { display: flex; align-items: center; gap: 7px; padding: 7px 6px; border-bottom: 1px solid rgb(43 47 54 / .08); font-size: 10px; line-height: 12px; }
.tt-ph__doc i { flex: none; width: 12px; height: 15px; border-radius: 2px; background: #f3f1fe; box-shadow: inset 0 0 0 1px rgb(106 79 216 / .4); }

@keyframes tt-site-scroll { 0%, 18% { transform: translateY(0); } 50%, 68% { transform: translateY(-150px); } 100% { transform: translateY(0); } }
@keyframes tt-ph-a { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tt-ph-b { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tt-bw__page, .tt-ph__a, .tt-ph__b { animation: none; }
  .tt-site__pause { display: none; }
}

/* Avatares con foto */
.tt-row__ico--foto, .tt-ficha__who .tt-row__ico--foto { border-radius: 50%; overflow: hidden; background: none; }
.tt-care__av img, .tt-qh__av img, .tt-row__ico--foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
#que-hace .tt-qh__av { overflow: hidden; }
