/* =========================================================
   SEVEN ARENA — tutorials.css
   Video tutorials page (tutoriales.html). Loaded only there.
   Reuses tokens from main.css and .nav--solid from legal.css.
   ========================================================= */

.tut-page {
  padding: clamp(116px, 14vw, 168px) 0 clamp(64px, 9vw, 120px);
  position: relative;
  z-index: 1;
}

/* ---------- Page header ---------- */
.tut-hero {
  max-width: var(--container);
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 0 var(--gutter);
}

.tut-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-strong);
  font-size: clamp(34px, 5vw, 64px);
  margin: 0;
  max-width: 18ch;
}
.tut-hero__title .accent { color: var(--mint); }

.tut-hero__sub {
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  margin: 18px 0 0;
}

/* Meta strip: count · total run time · language */
.tut-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.tut-meta strong { color: var(--text); font-weight: 500; }
.tut-meta__dot { color: var(--text-dim); }

.tut-hero__rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 32px 0 0;
}

/* ---------- Shared player frame ---------- */
.tut-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-card);
}
.tut-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Featured: "start here" editorial block ---------- */
.tut-featured {
  max-width: var(--container);
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.tut-featured__aside {
  position: sticky;
  top: 104px;
  padding-left: 18px;
  border-left: 2px solid var(--mint);
}
.tut-featured__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 12px;
}
.tut-featured__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.02;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--text-strong);
  margin: 0;
}
.tut-featured__body {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.62;
  margin: 14px 0 0;
}
.tut-featured__duration {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.tut-featured__duration::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 8px;
  vertical-align: 1px;
}

.tut-featured .tut-player {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lift);
}

/* ---------- Grid heading ---------- */
.tut-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.tut-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 3vw, 36px);
}
.tut-section__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--text-strong);
  margin: 0;
}
.tut-section__count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ---------- Cards ---------- */
.tut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px) clamp(18px, 2.2vw, 28px);
}

.tut-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.tut-card__meta {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 0 2px;
}
.tut-card__title {
  flex: 1 1 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
  color: var(--text-strong);
  margin: 0;
}
.tut-card__duration {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ---------- Closing CTA ---------- */
.tut-cta {
  max-width: var(--container);
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding: 0 var(--gutter);
}
.tut-cta__inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
}
.tut-cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1;
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--text-strong);
  margin: 0;
  max-width: 20ch;
}
.tut-cta__title .accent { color: var(--mint); }
.tut-cta__sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 52ch;
}
.tut-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Motion / a11y ---------- */
.tut-card, .tut-featured, .tut-hero {
  animation: tut-rise var(--t-slow) both;
}
.tut-featured { animation-delay: 80ms; }
.tut-card:nth-child(1) { animation-delay: 140ms; }
.tut-card:nth-child(2) { animation-delay: 200ms; }
.tut-card:nth-child(3) { animation-delay: 260ms; }
.tut-card:nth-child(4) { animation-delay: 320ms; }
.tut-card:nth-child(5) { animation-delay: 380ms; }
.tut-card:nth-child(6) { animation-delay: 440ms; }
.tut-card:nth-child(7) { animation-delay: 500ms; }

@keyframes tut-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tut-card, .tut-featured, .tut-hero { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .tut-featured { grid-template-columns: 1fr; gap: 20px; }
  .tut-featured__aside { position: static; }
  .tut-cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .tut-grid { grid-template-columns: 1fr; }
}

/* ---------- Fullscreen control (parent-side, see tutoriales.html) ---------- */
.tut-fs {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.tut-fs:hover,
.tut-fs:focus-visible {
  color: var(--text-strong);
  border-color: var(--line-mint);
  background: var(--bg-card-hover);
}
.tut-fs:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.tut-fs svg { flex: none; }

.tut-featured__actions { margin-top: 16px; }
.tut-featured__actions .tut-fs { margin-left: 0; }
