/* ═══════════════════════════════════════════════════════════
   TARJETA ÉPICA: "Winston también crea imágenes"
   Imagen de fondo + superposición 3D + partículas en movimiento.
   ═══════════════════════════════════════════════════════════ */

.tj-img {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1080px;
  min-height: 430px;
  display: flex; align-items: center;
  border: 1px solid rgba(140, 190, 255, .26);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(120, 180, 255, .1),
    0 0 70px rgba(77, 157, 255, .14);
  /* leve inclinacion 3D */
  transform: perspective(1400px) rotateX(2.2deg);
  transition: transform .6s cubic-bezier(.2,.7,.3,1), box-shadow .6s;
}
.tj-img:hover {
  transform: perspective(1400px) rotateX(0deg) scale(1.012);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, .68),
    0 0 0 1px rgba(140, 200, 255, .22),
    0 0 100px rgba(77, 157, 255, .26);
}

/* la imagen de fondo */
.tj-img .tj-foto {
  position: absolute; inset: 0;
  background: url('/img/crear-imagenes.jpg') center/cover no-repeat;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
  filter: saturate(118%) contrast(105%);
}
.tj-img:hover .tj-foto { transform: scale(1.1); }

/* superposición oscura para que el texto se lea (degradado a la izquierda) */
.tj-img .tj-velo {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,8,16,.94) 0%, rgba(5,8,16,.82) 34%, rgba(5,8,16,.32) 62%, rgba(5,8,16,.12) 100%),
    linear-gradient(180deg, rgba(5,8,16,.35), transparent 40%, rgba(5,8,16,.45));
}

/* partículas encima de la imagen */
#tjParticulas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* contenido (el anuncio) */
.tj-contenido {
  position: relative; z-index: 3;
  padding: 3rem 2.8rem;
  max-width: 56%;
}
.tj-etiqueta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: #9fd8ff;
  background: rgba(120, 190, 255, .1);
  border: 1px solid rgba(120, 190, 255, .3);
  border-radius: 999px;
  padding: .38rem .9rem;
  margin-bottom: 1.3rem;
}
.tj-contenido h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.035em !important;
  line-height: 1.12 !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .6);
}
.tj-contenido .tj-deg {
  background: linear-gradient(120deg, #9fd8ff, #c9b0ff 55%, #9fd8ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: tjBrillo 5s linear infinite;
}
@keyframes tjBrillo {
  to { background-position: 200% center; }
}
.tj-contenido p {
  color: #c3d3e8; font-size: 1.02rem; line-height: 1.65;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  max-width: 460px;
}
.tj-contenido p b { color: #eaf4ff; }

/* miniaturas de ejemplos en 3D */
.tj-muestras {
  display: flex; gap: .7rem; margin-bottom: 1.7rem;
}
.tj-muestra {
  width: 74px; height: 74px; border-radius: 13px;
  border: 1px solid rgba(160, 210, 255, .4);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
  transition: transform .35s, box-shadow .35s;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  position: relative;
  overflow: hidden;
}
.tj-muestra::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 55%);
  pointer-events: none;
}
.tj-muestra:hover {
  transform: translateY(-7px) scale(1.1) rotate(-3deg);
  box-shadow: 0 16px 36px rgba(90, 170, 255, .45);
  border-color: rgba(180, 225, 255, .8);
}
.tj-muestra.m1 { background-image: linear-gradient(135deg, #4d9dff, #8d5cff); }
.tj-muestra.m2 { background-image: linear-gradient(135deg, #ff9f43, #ff5f8f); }
.tj-muestra.m3 { background-image: linear-gradient(135deg, #29d3b0, #3b9bff); }
.tj-muestra.m4 { background-image: linear-gradient(135deg, #c98bff, #ff8fd0); }

.tj-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none;
  background: linear-gradient(135deg, #9fd8ff, #7cc0ff);
  color: #04121f;
  font-weight: 750; font-size: .98rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(110, 185, 255, .42);
  transition: .28s;
}
.tj-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(110, 185, 255, .62);
}

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .tj-img { transform: none; min-height: 460px; }
  .tj-contenido { max-width: 100%; padding: 2rem 1.5rem; }
  .tj-img .tj-velo {
    background:
      linear-gradient(180deg, rgba(5,8,16,.78) 0%, rgba(5,8,16,.9) 55%, rgba(5,8,16,.96) 100%);
  }
  .tj-contenido p { max-width: 100%; }
  .tj-muestra { width: 62px; height: 62px; }
}
