/* =========================================================
   Trabajos — mismas unidades que fresca.css (1u = 1px del mockup)
   ========================================================= */
.header--dark { color: #000; }
.header--dark .btn-contact { background: #000; color: #fff; }
.header--dark .btn-contact:hover { background: #fff; color: #000; }
.header--dark .burger span { background: #000; }
body.menu-open .header--dark .burger span { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tr { position: relative; background: #fff; padding: calc(183 * var(--u)) calc(63 * var(--u)) calc(70 * var(--u)); text-align: center; }
.tr-video {
  width: calc(746 * var(--u)); aspect-ratio: 16 / 9; margin: 0 auto;
  border: 1.5px solid #000; border-radius: calc(14 * var(--u));
  position: relative; overflow: hidden; background: #fff; isolation: isolate;
}
.tr-video__el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.tr-play {
  position: absolute; left: 50%; top: 50%; width: calc(110 * var(--u)); min-width: 56px; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: #000; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: transform .35s var(--ease), background .35s;
}
.tr-play[hidden] { display: none; }
.tr-play svg { width: 42%; fill: currentColor; margin-left: 6%; }
.tr-play:hover, .tr-play:focus-visible { transform: translate(-50%, -50%) scale(1.08); background: #19c9c8; }
.tr-ctrl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.tr-ctrl[hidden] { display: none; }
.tr-video:hover .tr-ctrl, .tr-ctrl:focus-within, .tr-video:not(.is-playing) .tr-ctrl, .tr-video.is-touch .tr-ctrl { opacity: 1; }
@media (hover: none) { .tr-ctrl { opacity: 1; } }
.tr-ctrl button { flex: none; width: 32px; height: 32px; border: 0; padding: 0; background: transparent center / 22px no-repeat; cursor: pointer; }
.tr-ctrl__pp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6 5h4v14H6zm8 0h4v14h-4z'/%3E%3C/svg%3E"); }
.tr-ctrl__pp.is-paused { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.tr-ctrl__mute { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4z'/%3E%3C/svg%3E"); }
.tr-ctrl__mute.is-muted { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9zm12.6 3 2.7-2.7-1.4-1.4-2.7 2.7-2.7-2.7-1.4 1.4 2.7 2.7-2.7 2.7 1.4 1.4 2.7-2.7 2.7 2.7 1.4-1.4z'/%3E%3C/svg%3E"); }
.tr-ctrl__fs { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M5 5h5v2H7v3H5zm9 0h5v5h-2V7h-3zM5 14h2v3h3v2H5zm12 0h2v5h-5v-2h3z'/%3E%3C/svg%3E"); }
.tr-ctrl__bar { flex: 1; min-width: 0; accent-color: #19c9c8; height: 20px; cursor: pointer; }
.tr-video:fullscreen { width: 100%; border-radius: 0; border: 0; background: #000; }
.tr-video:fullscreen .tr-video__el { object-fit: contain; background: #000; }
.tr-eyebrow { margin-top: calc(70 * var(--u)); color: #19c9c8; text-transform: uppercase; font-size: max(12px, calc(21 * var(--u))); line-height: 1.3; }
.tr-title { margin-top: calc(6 * var(--u)); font-weight: 800; font-size: max(18px, calc(32 * var(--u))); line-height: 1.2; letter-spacing: -.01em; }

/* ---------- Grilla (12 columnas) ---------- */
.tr-grid { margin: calc(50 * var(--u)) auto 0; max-width: calc(1153 * var(--u)); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: calc(26 * var(--u)); row-gap: calc(28 * var(--u)); text-align: left; }
.tr-item { min-width: 0; }
.tr-item--wide { grid-column: 1 / -1; }
.tr-item--tall { grid-column: span 6; }
.tr-grid > .tr-item:nth-child(4) { grid-column: 1 / span 5; }   /* Teva (chico) */
.tr-grid > .tr-item:nth-child(5) { grid-column: 6 / span 7; }   /* Swift (grande) */
.tr-grid > .tr-item:nth-child(6) { grid-column: 1 / span 7; grid-row: 4; }   /* Chacabuco */
.tr-grid > .tr-item:nth-child(7) { grid-column: 1 / -1; grid-row: 5; }   /* Raza, ancho completo debajo */
.tr-grid > .tr-item:nth-child(8) { grid-column: 8 / span 5; grid-row: 4; }   /* Gilera, a la derecha de Chacabuco */

.tr-card { display: block; }
.tr-media { position: relative; display: block; overflow: hidden; border-radius: calc(27 * var(--u)); background: #eee; isolation: isolate; }
.tr-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.tr-item--wide .tr-media { aspect-ratio: 16 / 9; }
.tr-item--tall .tr-media { aspect-ratio: 4 / 5; }
.tr-item--s .tr-media, .tr-item--l .tr-media { height: calc(392 * var(--u)); }

/* hover: se oscurece y aparece la marca */
.tr-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(14 * var(--u));
  background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .45s var(--ease);
}
/* el logo se revela de izquierda a derecha, con un pequeño rebote al subir */
.tr-logo {
  display: block; width: 46%; height: 34%;
  clip-path: inset(0 100% 0 0); transform: translateY(22px);
  transition: clip-path .75s var(--ease), transform .8s cubic-bezier(.34, 1.56, .64, 1);
}
.tr-logo img { width: 100%; height: 100%; object-fit: contain; display: block; will-change: transform; }
.tr-line { display: block; width: 0; height: 1.5px; background: #fff; transition: width .7s var(--ease) .2s; }
.tr-more {
  display: block; color: #fff; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; font-size: max(10px, calc(14 * var(--u)));
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) .3s, transform .6s var(--ease) .3s;
}
.tr-more i { display: inline-block; font-style: normal; transition: transform .4s var(--ease); }
@media (hover: hover) {
  .tr-card:hover .tr-over, .tr-card:focus-visible .tr-over { opacity: 1; }
  .tr-card:hover .tr-logo, .tr-card:focus-visible .tr-logo { clip-path: inset(0 0 0 0); transform: none; }
  .tr-card:hover .tr-line, .tr-card:focus-visible .tr-line { width: min(24%, calc(150 * var(--u))); }
  .tr-card:hover .tr-more, .tr-card:focus-visible .tr-more { opacity: 1; transform: none; }
  .tr-card:hover .tr-more i { transform: translateX(5px); }
  .tr-card:hover .tr-media > img { transform: scale(1.05); }
}
.tr-card:active .tr-over { opacity: 1; }
.tr-card:active .tr-logo { clip-path: inset(0 0 0 0); transform: none; }
.tr-card:active .tr-line { width: 24%; }
.tr-card:active .tr-more { opacity: 1; transform: none; }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 760px) {
  .tr { padding: calc(211 * var(--u)) calc(35 * var(--u)) calc(70 * var(--u)); }
  .tr-video { width: calc(431 * var(--u)); border-radius: calc(16 * var(--u)); }
  .tr-eyebrow { margin-top: calc(58 * var(--u)); font-size: max(12px, calc(19 * var(--u))); }
  .tr-title { font-size: max(18px, calc(28 * var(--u))); }
  .tr-grid { display: flex; flex-direction: column; row-gap: calc(34 * var(--u)); margin-top: calc(48 * var(--u)); max-width: none; }
  .tr-media { border-radius: calc(29 * var(--u)); }
  .tr-item--wide .tr-media, .tr-item--s .tr-media { height: auto; aspect-ratio: 16 / 9; }
  .tr-item--l .tr-media { height: auto; aspect-ratio: 3 / 2; }
  .tr-grid > .tr-item:nth-child(8) .tr-media { aspect-ratio: 4 / 5; } /* Gilera: foto vertical */
  .tr-cap { margin-top: calc(14 * var(--u)); font-size: max(11px, calc(16.5 * var(--u))); }
  .tr-logo { width: 54%; height: 32%; }
}
