/* Coronel Truman · galería horizontal de proyectos */
.caso { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
.cliente { font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; font-size: clamp(0.72rem, 0.85vw, 0.92rem); color: var(--texto-suave); margin-bottom: clamp(1rem, 2.6vh, 1.6rem); }
.caso .texto .aparece > p:first-child { font-size: clamp(1rem, min(1.25vw, 2.3vh), 1.25rem); }
.caso .enlace { margin-right: 1.6rem; }

/* Fotograma real: desaturado, recupera el color al pasar por el caso */
.medio { width: 100%; aspect-ratio: 16 / 9; max-height: 64vh; overflow: hidden; background: #d9d9d9; clip-path: inset(0 0 0 100%); animation: cortina 0.9s var(--ease) 0.15s forwards; }
@keyframes cortina { to { clip-path: inset(0 0 0 0); } }
.medio img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.12) contrast(1.02); transform: scale(1.06); transition: filter 0.6s var(--ease), transform 1.2s var(--ease); }
.vista .medio img { transform: scale(1); }
.caso:hover .medio img, .caso:focus-within .medio img { filter: saturate(1); }
.js-revela .escena-h:not(.vista) .medio { animation-play-state: paused; }
.caso .dispositivos { max-height: 64vh; }

/* Índice de la entrada */
.indice ol { list-style: none; counter-reset: c; border-top: 1px solid rgba(26, 26, 26, 0.2); }
.indice li { counter-increment: c; border-bottom: 1px solid rgba(26, 26, 26, 0.2); }
.indice a { display: flex; align-items: baseline; gap: 1.2rem; padding: clamp(0.7rem, 1.8vh, 1.1rem) 0; font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(0.9rem, 1.1vw, 1.15rem); transition: padding 0.25s var(--ease); }
.indice a::before { content: counter(c, decimal-leading-zero); font-size: 0.72em; color: var(--rojo); letter-spacing: 0.14em; }
.indice a::after { content: "→"; margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s, transform 0.25s var(--ease); }
.indice a:hover, .indice a:focus-visible { padding-left: 0.6rem; }
.indice a:hover::after, .indice a:focus-visible::after { opacity: 1; transform: none; }

.sin-ficha { font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--texto-suave); margin-top: clamp(1.6rem, 4vh, 2.6rem) !important; }
.logo-mw { display: block; height: clamp(26px, 2.6vw, 40px); width: auto; margin: clamp(1.4rem, 3.5vh, 2.2rem) 0 0.4rem; }
.lab .enlace { display: inline-flex; }

@media (max-width: 899px) {
  .caso { grid-template-columns: 1fr; }
  .indice { margin-top: 1rem; }
  .medio { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .medio { animation: none; clip-path: none; } .medio img { transform: none; transition: none; } }
