/* ============================================================
   Bloque "Contenido que se recomienda" (después de los logos)
   Referencia: "Casos destacados" de stancontenidos.com
   Tarjetas verticales 9:16 con UI de reel; aceptan video real.
   ============================================================ */
.sec-contenido { padding-block: 100px; background: linear-gradient(180deg, #000 0%, #020a02 55%, #000 100%); }
.sec-contenido .sec-inner { padding-inline: clamp(20px, 4vw, 64px); }

.tt-content__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3.5rem; }
.tt-content__label { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--color-primary); margin: 0 0 1.4rem; }
.tt-content__title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: -.03em; color: #fff; margin: 0; }
.tt-content__title span { font-family: 'Asimovian', 'Inter', sans-serif; color: var(--color-primary); letter-spacing: -.02em; }
.tt-content__intro { max-width: 380px; margin: 0; font-family: 'Inter', sans-serif; font-size: 1.05rem; line-height: 1.6; color: var(--color-text-secondary); }

.tt-reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.tt-reel { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.tt-reel.visible { opacity: 1; transform: none; }
.tt-reel:nth-child(2) { transition-delay: .08s; } .tt-reel:nth-child(3) { transition-delay: .16s; } .tt-reel:nth-child(4) { transition-delay: .24s; }

.tt-reel__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #0e0e0e;
  border: 1px solid rgba(25, 255, 0, .12); cursor: pointer; isolation: isolate;
  transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .35s, box-shadow .35s;
}
.tt-reel__media:hover { transform: translateY(-6px); border-color: rgba(25, 255, 0, .45); box-shadow: 0 18px 50px rgba(25, 255, 0, .12); }
.tt-reel__media video, .tt-reel__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* Placeholder animado (se reemplaza por el video) */
.tt-reel__placeholder { position: absolute; inset: 0; z-index: 0; background-size: 220% 220%; animation: tt-flow 14s ease-in-out infinite alternate; }
.tt-reel__placeholder::after { content: ""; position: absolute; inset: 0; background: url('../img/hero-metal-glitch.webp') center / cover; mix-blend-mode: overlay; opacity: .55; filter: grayscale(1) contrast(1.3); }
.tt-reel__placeholder--1 { background-image: linear-gradient(160deg, #0b2a06, #19ff00 45%, #031203 80%); }
.tt-reel__placeholder--2 { background-image: linear-gradient(200deg, #1a1a1a, #6d7a6a 40%, #0a0a0a 75%); animation-duration: 17s; }
.tt-reel__placeholder--3 { background-image: linear-gradient(140deg, #021a00, #0f5c05 50%, #000 90%); animation-duration: 12s; }
.tt-reel__placeholder--4 { background-image: linear-gradient(180deg, #2b2f2b, #a9b8a6 35%, #101310 70%); animation-duration: 19s; }
@keyframes tt-flow { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

/* UI tipo reel */
.tt-reel__ui { position: absolute; inset: 0; z-index: 1; pointer-events: none; font-family: 'Inter', sans-serif; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 18%, transparent 60%, rgba(0,0,0,.75) 100%); }
.tt-reel__bar { position: absolute; top: 12px; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.tt-reel__bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); animation: tt-progress 8s linear infinite; }
.tt-reel:nth-child(2) .tt-reel__bar i { animation-delay: -2s; } .tt-reel:nth-child(3) .tt-reel__bar i { animation-delay: -5s; } .tt-reel:nth-child(4) .tt-reel__bar i { animation-delay: -3.5s; }
@keyframes tt-progress { to { transform: scaleX(1); } }
.tt-reel__user { position: absolute; left: 14px; bottom: 48px; display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; }
.tt-reel__user b { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--color-primary), #fff, var(--color-primary)); border: 2px solid #000; }
.tt-reel__cap { position: absolute; left: 14px; right: 54px; bottom: 18px; font-size: .78rem; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-reel__side { position: absolute; right: 10px; bottom: 44px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.tt-reel__side em { font-style: normal; display: flex; flex-direction: column; align-items: center; font-size: 1.05rem; line-height: 1; }
.tt-reel__side small { font-size: .62rem; margin-top: 3px; color: rgba(255,255,255,.85); }
.tt-reel__tag { position: absolute; top: 24px; left: 12px; z-index: 2; padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,.55); border: 1px dashed rgba(25,255,0,.5);
  font-family: 'Inter', sans-serif; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary); }
.tt-reel__media.has-video .tt-reel__tag, .tt-reel__media.has-video .tt-reel__placeholder { display: none; }

.tt-reel__info { padding: 1.1rem .2rem 0; }
.tt-reel__brand { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; color: #fff; margin: 0; text-transform: uppercase; }
.tt-reel__camp { font-family: 'Inter', sans-serif; font-size: .95rem; color: var(--color-text-secondary); margin: .3rem 0 .7rem; }
.tt-reel__play { display: inline-flex; align-items: center; gap: .5rem; padding: 0; border: 0; background: none; font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); cursor: pointer; }
.tt-reel__play span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--color-primary); border-radius: 50%; font-size: .55rem; }
.tt-reel__play:disabled { opacity: .55; cursor: default; }

/* Visor de video a pantalla completa */
.tt-lightbox { position: fixed; inset: 0; z-index: 200000; display: grid; place-items: center; padding: 4vh 16px; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); }
.tt-lightbox[hidden] { display: none; }
.tt-lightbox video { max-height: 92vh; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; }
.tt-lightbox__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--color-primary); border-radius: 50%; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 1024px) { .tt-reels { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .sec-contenido { padding-block: 60px; }
  .tt-content__head { flex-direction: column; align-items: flex-start; margin-bottom: 2rem; }
  /* en celular: carrusel horizontal que se desliza con el dedo */
  .tt-reels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .tt-reels::-webkit-scrollbar { display: none; }
  .tt-reel { flex: 0 0 72%; scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-reel { opacity: 1; transform: none; transition: none; }
  .tt-reel__placeholder, .tt-reel__bar i { animation: none; }
}
