/* ═══════════════════════════════════════════════════════════
   CREA — WEB · GALERÍA DE PROYECTOS (editorial / masonry)
═══════════════════════════════════════════════════════════ */

.wk-grid { columns: 3; column-gap: 16px; }
@media (max-width: 940px) { .wk-grid { columns: 2; } }
@media (max-width: 560px) { .wk-grid { columns: 1; } }

/* ── filtro de proyectos (interactivo) ── */
.wkfilter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(22px, 3vw, 34px); }
.wkfilter__chip {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy, #1B2F6E); background: transparent; cursor: pointer;
  padding: 10px 18px; border-radius: 100px; border: 1.5px solid rgba(27,47,110,0.18);
  transition: background .25s var(--pm-ease), color .25s var(--pm-ease), border-color .25s var(--pm-ease), transform .25s var(--pm-ease);
}
.wkfilter__chip:hover { border-color: rgba(27,47,110,0.5); transform: translateY(-2px); }
.wkfilter__chip.is-on { background: var(--navy, #1B2F6E); border-color: var(--navy, #1B2F6E); color: #fff; }

.wk { animation: wkin .5s var(--pm-ease) both; }
@keyframes wkin { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .wk { animation: none; } }

/* ── ver más / ver menos ── */
.wkmore-wrap { display: flex; justify-content: center; margin-top: clamp(20px, 3vw, 32px); }
.wkmore {
  display: inline-flex; align-items: center; gap: 11px; cursor: pointer;
  font-family: var(--f-ui); font-size: 14px; font-weight: 600; color: var(--navy, #1B2F6E);
  background: transparent; padding: 14px 28px; border-radius: 100px;
  border: 1.5px solid rgba(27,47,110,0.22);
  transition: background .25s var(--pm-ease), color .25s var(--pm-ease), border-color .25s var(--pm-ease), transform .25s var(--pm-ease);
}
.wkmore:hover { background: var(--navy, #1B2F6E); border-color: var(--navy, #1B2F6E); color: #fff; transform: translateY(-2px); }
.wkmore__ic { font-family: var(--f-mono); font-size: 16px; line-height: 1; transition: transform .3s var(--pm-ease); }
.wkmore.is-open .wkmore__ic { transform: rotate(45deg); }

.wk {
  position: relative; display: block; width: 100%; aspect-ratio: 4/5;
  break-inside: avoid; margin-bottom: 16px; border-radius: 18px; overflow: hidden;
  background: var(--navy-deep); cursor: pointer; text-decoration: none;
  box-shadow: var(--pm-sh-md);
  transition: transform .55s var(--pm-ease), box-shadow .55s var(--pm-ease);
}
.wk:hover { transform: translateY(-6px); box-shadow: 0 36px 80px rgba(16,24,52,0.34); }
.wk.hide { display: none; }
.wk--sq   { aspect-ratio: 1/1; }
.wk--tall { aspect-ratio: 4/5.4; }

/* fondos de tile */
.wk--navy  { background: linear-gradient(158deg, #284a9e 0%, var(--navy) 52%, var(--navy-deep) 100%); }
.wk--paper { background: #efece6; }
.wk--sky   { background: linear-gradient(158deg, #cfe0f7, #8fb0ee); }
.wk--ink   { background: linear-gradient(158deg, #1a1a20, #0b0b0e); }

/* imagen */
.wk__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform .9s var(--pm-ease), filter .6s ease; }
.wk:hover .wk__img { transform: scale(1.055); filter: saturate(1.06); }
.wk--contain .wk__img { object-fit: contain; padding: 9%; }
.wk--person  .wk__img { object-fit: contain; object-position: center bottom; padding: 15% 10% 0; }
.wk--device  .wk__img { object-fit: contain; object-position: center top; padding: 12% 0 0; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45)); }
.wk:hover.wk--device .wk__img { transform: scale(1.03) translateY(-4px); }

/* video cards — mismo comportamiento que la imagen: cubre la card, mudo + loop */
.wk__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  background: #0b1226; transition: transform .9s var(--pm-ease), filter .6s ease; }
.wk:hover .wk__video { transform: scale(1.055); filter: saturate(1.06); }
.wk--contain .wk__video { object-fit: contain; padding: 9%; }
.wk--person  .wk__video { object-fit: contain; object-position: center bottom; padding: 15% 10% 0; }
.wk--device  .wk__video { object-fit: contain; object-position: center top; padding: 12% 0 0; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45)); }
.wk:hover.wk--device .wk__video { transform: scale(1.03) translateY(-4px); }
/* etiqueta sutil para distinguir las cards con video */
.wk__play { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  background: rgba(10,10,14,0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.18); pointer-events: none; }
.wk__play::before { content: ""; width: 0; height: 0; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* carrusel — crossfade automático de imágenes */
.wk__carousel { position: absolute; inset: 0; z-index: 0; }
.wk__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.045); transition: opacity .9s var(--pm-ease), transform 1.1s var(--pm-ease); }
.wk__slide.is-on { opacity: 1; transform: scale(1); }
.wk:hover .wk__slide.is-on { transform: scale(1.06); }
.wk__cardots { position: absolute; left: 16px; top: 16px; z-index: 4; display: flex; gap: 5px; }
.wk__cardots i { width: 6px; height: 6px; border-radius: 100px; background: rgba(255,255,255,0.42);
  transition: width .4s var(--pm-ease), background .4s var(--pm-ease); }
.wk__cardots i.is-on { width: 16px; background: #fff; }
/* badge de carrusel: reemplaza el triángulo del play por un ícono de capas */
.wk__play--car::before { width: 8px; height: 8px; border: 1.4px solid #fff; border-radius: 2px;
  box-shadow: 3px 3px 0 -1.4px rgba(255,255,255,0.55); }

/* logo tiles */
.wk__logo { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.wk__logo img { width: 50%; max-height: 34%; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.94;
  transition: transform .6s var(--pm-ease); }
.wk:hover .wk__logo img { transform: scale(1.06); }
.wk__logo--mark { font-family: var(--f-display); text-transform: uppercase; font-weight: 600;
  font-size: clamp(48px, 7vw, 80px); color: rgba(255,255,255,0.94); letter-spacing: -0.03em; line-height: .9; }

/* textura sutil para logo/paper tiles */
.wk--navy::before, .wk--ink::before, .wk--sky::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 20% 18%, rgba(255,255,255,0.10), transparent 38%);
}

/* ring + shade */
.wk__ring { position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), inset 0 1px 0 rgba(255,255,255,0.16); }
.wk__shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(7,12,28,0.90) 3%, rgba(7,12,28,0.45) 24%, transparent 50%); }
.wk--paper .wk__shade { background: linear-gradient(to top, rgba(7,12,28,0.86) 2%, rgba(7,12,28,0.30) 22%, transparent 46%); }

/* meta */
.wk__meta { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 4; }
.wk__cat { display: inline-block; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 100px; margin-bottom: 12px; }
.wk__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600; color: #fff; line-height: 0.98; letter-spacing: -0.01em; }
.wk__sub { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 6px; line-height: 1.4; max-width: 30ch; }
.wk__view { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12.5px; font-weight: 600;
  font-family: var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(8px); transition: .35s var(--pm-ease); }
.wk:hover .wk__view { opacity: 1; transform: none; }
.wk__view::after { content: "→"; transition: transform .35s var(--pm-ease); }
.wk:hover .wk__view::after { transform: translateX(4px); }
