/* ============================================================
   TiendaTienda — Carrusel de Foros
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600&family=Inter:wght@400;500&display=swap');

:root {
  --tt-text:       #111827;
  --tt-muted:      #6b7280;
  --tt-border:     #e5e7eb;
  --tt-bg:         #ffffff;
  --tt-transition: all .22s ease;
}

.tt-foros-section {
  padding: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: transparent;
}

.tt-foros-carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
}

.tt-foros-track-wrap {
  overflow: hidden;
  flex: 1;
}

.tt-foros-track {
  display: flex;
  gap: 20px;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.tt-foro-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 0;
}

.tt-foro-slide a,
.tt-foro-slide > div:not(.tt-foro-card) {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.tt-foro-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: var(--tt-transition);
  cursor: pointer;
}

.tt-foro-card:hover { transform: translateY(-4px); }
.tt-foro-card:hover .tt-foro-img { transform: scale(1.05); }

.tt-foro-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #f3f4f6;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 14px;
}

.tt-foro-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.tt-foro-img-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.tt-foro-duration {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(255,255,255,.95);
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.tt-foro-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tt-foro-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--tt-text);
  margin: 0; padding: 0; border: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-foro-meta {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.75vw, 13px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--tt-muted);
  margin: 0; padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tt-foro-autor { font-weight: 600; color: var(--tt-text); }
.tt-foro-cargo { font-weight: 400; color: var(--tt-muted); }

/* ── Flechas ────────────────────────────────────────────────── */
.tt-foros-arrow {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.tt-foros-arrow svg { width: 16px; height: 16px; color: #111827; }
.tt-foros-arrow:hover { border-color: #111827; background: #111827; }
.tt-foros-arrow:hover svg { color: #ffffff; }
.tt-foros-arrow:disabled { opacity: .35; cursor: not-allowed; }
.tt-foros-prev { margin-right: 12px; }
.tt-foros-next { margin-left: 12px; }

/* ── Dots ───────────────────────────────────────────────────── */
.tt-foros-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.tt-foros-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--tt-transition);
}

.tt-foros-dot:hover { background: #9ca3af; }
.tt-foros-dot.active { background: #111827; width: 28px; height: 8px; border-radius: 4px; }

.tt-no-foros {
  color: var(--tt-muted);
  text-align: center;
  padding: 48px 24px;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .tt-foro-slide  { flex: 0 0 calc(50% - 10px); }
  .tt-foro-titulo { font-size: 15px; }
  .tt-foro-meta   { font-size: 12px; }
}

@media (max-width: 600px) {
  .tt-foro-slide  { flex: 0 0 100%; }
  .tt-foro-titulo { font-size: 14px; }
  .tt-foro-meta   { font-size: 11px; }
  .tt-foros-arrow { display: none; }
}