/* CoreFlow · /trabajos/ (v34a). Solo tokens y tipografías de marca.css; el filtro (.cs-filtros) y el botón
   para probar (.cs-btn) vienen de casos.css. Prefijo .tr-. Lo que se mueve: transform, opacity y clip-path. */

.tr-cabeza { padding: calc(68px + clamp(30px, 7vh, 84px)) 0 clamp(18px, 3.4vh, 34px); text-align: center; }
.tr-cabeza .titular { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.tr-cabeza .bajada { margin-inline: auto; }

.tr-lista { padding-bottom: clamp(30px, 6vh, 70px); }
.tr-rejilla { --tr-hueco: clamp(14px, 1.8vw, 22px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--tr-hueco); margin-top: clamp(12px, 2.2vh, 24px); }

/* ---------- tarjeta ---------- */
.tr-tj { --cs-cian: #4FD1E0; --cs-cian-2: rgba(79, 209, 224, .32); position: relative; flex: 0 1 calc((100% - 2 * var(--tr-hueco)) / 3); min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radio); border: 1px solid var(--linea); background: rgba(6, 19, 24, .88); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); transition: transform .5s var(--ola), border-color .4s var(--ola), box-shadow .5s var(--ola); }
@media (max-width: 1020px) { .tr-tj { flex-basis: calc((100% - var(--tr-hueco)) / 2); } }
@media (max-width: 640px) { .tr-tj { flex-basis: 100%; } }
@media (hover: hover) and (pointer: fine) {
  .tr-tj:hover { transform: translateY(-4px); border-color: var(--cs-cian-2); box-shadow: 0 36px 70px -36px rgba(0, 0, 0, .95), 0 22px 60px -40px rgba(79, 209, 224, .55); }
}

/* entrada: las tarjetas suben una tras otra al cargar y al cambiar de rubro */
.tr-rejilla:not(.tr-lista-vista) .tr-tj { opacity: 0; }
.tr-lista-vista .tr-tj { animation: tr-entra .8s var(--ola) both; animation-delay: calc(min(var(--k, 0), 8) * 60ms); }
.tr-cambia .tr-tj { animation-name: tr-cambia; animation-duration: .6s; animation-delay: calc(min(var(--k, 0), 8) * 45ms); }
@keyframes tr-entra { from { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 18% 0 round 22px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 22px); } }
@keyframes tr-cambia { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- la captura, dentro de una ventana como la del inicio ---------- */
.tr-pantalla { position: relative; display: block; aspect-ratio: 16 / 10.4; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(22, 105, 122, .22), transparent 60%), #040D11; border-bottom: 1px solid var(--linea); }
.tr-nav { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: rgba(4, 13, 17, .9); border-bottom: 1px solid rgba(79, 209, 224, .14); font: 500 .68rem/1 var(--ft); color: var(--txt-3); }
.tr-nav i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 241, 234, .18); }
.tr-dom { min-width: 0; margin-left: 6px; padding: 3px 9px; border-radius: 99px; background: rgba(79, 209, 224, .07); color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-pantalla img, .tr-pantalla video { position: absolute; left: 0; top: 26px; width: 100%; height: calc(100% - 26px); max-width: none; object-fit: cover; object-position: top; }
.tr-pantalla img { transition: transform 1.2s var(--ola); }
.tr-pantalla video { opacity: 0; transition: opacity .5s var(--ola); }
.tr-rueda .tr-pantalla video { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .tr-tj:hover .tr-pantalla img { transform: scale(1.03); } }
.tr-rotulo { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: .38rem .6rem; border-radius: 9px; border: 1px solid rgba(79, 209, 224, .14); background: rgba(4, 13, 17, .84); font-size: .74rem; color: var(--txt-2); }

/* ---------- el texto ---------- */
.tr-cuerpo { flex: 1; display: flex; flex-direction: column; padding: clamp(15px, 1.7vw, 22px); }
.tr-nombre { margin: 0; font: 600 clamp(1.28rem, 1.9vw, 1.5rem)/1.12 var(--ft); letter-spacing: -.022em; text-wrap: balance; }
.tr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; margin: .5rem 0 .95rem; font-size: .8rem; color: var(--txt-2); }
.tr-rubro { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--cs-cian); }
.tr-estado { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.tr-estado i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
[data-estado="linea"] .tr-estado i { background: var(--cs-cian); box-shadow: 0 0 10px var(--cs-cian); }
[data-estado="demo"] .tr-estado i { background: none; box-shadow: 0 0 0 1.5px var(--cs-cian) inset, 0 0 8px rgba(79, 209, 224, .5); }

.tr-piezas { list-style: none; margin: 0 0 1.05rem; padding: 0; }
.tr-piezas li { display: flex; align-items: baseline; gap: .65rem; padding: .52rem 0; border-top: 1px solid var(--linea); font-size: .94rem; line-height: 1.35; color: var(--txt); }
.tr-piezas li::before { content: "+"; flex: none; width: .7em; text-align: center; color: var(--destello); }

.tr-acc { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem 1.1rem; }
.tr-acc .cs-btn { min-height: 46px; }
.tr-mas { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-size: .9rem; color: var(--txt-2); text-decoration: underline; text-decoration-color: var(--linea-2); text-underline-offset: 4px; transition: color .25s, text-decoration-color .25s; }
.tr-mas span { transition: transform .35s var(--ola); }
.tr-mas:hover { color: var(--txt); text-decoration-color: var(--destello); }
.tr-mas:hover span { transform: translateX(3px); }

/* la agenda de esta página, igual que la del inicio */
#agenda-trabajos { position: relative; }

@media (max-width: 480px) {
  .tr-acc .cs-btn { flex: 1 1 100%; justify-content: center; }
  .tr-mas { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-rejilla .tr-tj, .tr-rejilla:not(.tr-lista-vista) .tr-tj { opacity: 1; animation: none; transition: none; }
  .tr-pantalla img, .tr-mas span { transition: none; }
}
