/* Cursos en video — se suma a /assets/v2/home.css (cabecera, pie, botones, tarjetas .course y .glow-card). */

/* ---------- Hero: muro de portadas en movimiento ---------- */
.cv-hero { position: relative; min-height: min(88svh, 820px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #0b0d12; }
.cv-wall { position: absolute; inset: -10% -20%; z-index: -2; display: grid; gap: 18px; align-content: center;
  transform: perspective(1400px) rotateX(18deg) rotateZ(-8deg) scale(1.1); opacity: .55; }
.cv-wall__row { overflow: hidden; }
.cv-wall__track { display: flex; gap: 18px; width: max-content; animation: cvSlide 70s linear infinite; }
.cv-wall__row--2 .cv-wall__track { animation-direction: reverse; animation-duration: 85s; }
.cv-wall__row--3 .cv-wall__track { animation-duration: 60s; }
.cv-wall img { width: clamp(220px, 22vw, 340px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
@keyframes cvSlide { to { transform: translateX(-50%); } }
.cv-hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 15% 40%, rgba(47,111,237,.35), transparent 60%),
    linear-gradient(90deg, rgba(11,13,18,.97) 0%, rgba(11,13,18,.88) 42%, rgba(11,13,18,.45) 100%),
    linear-gradient(0deg, #13161e 0%, transparent 30%); }
.cv-hero__inner { padding-block: 120px 80px; }
.cv-hero h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 700; line-height: .98; letter-spacing: -0.04em; color: #fff; margin: 0 0 22px; }
.cv-hero__lead { font-size: clamp(17px, 1.7vw, 21px); color: #c5ccdb; max-width: 560px; margin: 0; }
.cv-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 44px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); max-width: 640px; }
.cv-stats dt { font-size: 26px; font-weight: 700; color: var(--green); letter-spacing: -0.02em; }
.cv-stats dd { margin: 0; font-size: 13.5px; color: #a3acc0; }
@media (max-width: 720px) {
  .cv-hero { min-height: 82svh; align-items: flex-end; }
  .cv-hero__inner { padding-block: 120px 48px; }
  .cv-wall { inset: -8% -90% 30%; opacity: .8; gap: 12px; }
  .cv-wall img { width: 200px; }
  .cv-hero__shade { background: linear-gradient(0deg, #13161e 8%, rgba(11,13,18,.9) 48%, rgba(11,13,18,.2) 100%); }
  .cv-stats { gap: 10px 18px; margin-top: 32px; flex-wrap: nowrap; }
  .cv-stats > div { flex: 1; }
  .cv-stats dt { font-size: 22px; }
  .cv-stats dd { font-size: 12px; }
  .cv-hero .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Filtros ---------- */
.cv-filter__label { margin: 0 0 12px; font-size: 14px; color: #a3acc0; }
.cv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cv-filter button, .cv-empty button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-n2); background: rgba(255,255,255,.03);
  color: #c5ccdb; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cv-filter button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.cv-filter button[aria-pressed="true"] { background: #2f6fed; border-color: #2f6fed; color: #fff; }
.cv-count { margin: 0 0 22px; font-size: 13px; color: #8a93a8; }
.cv-empty { text-align: center; color: #a3acc0; margin: 30px 0 0; }
@media (max-width: 640px) {
  /* En el celular los filtros se deslizan en una fila (no ocupan media pantalla) */
  .cv-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad-x) * -1); padding: 2px var(--pad-x) 8px; scrollbar-width: none; }
  .cv-filter::-webkit-scrollbar { display: none; }
  .cv-filter button { flex: none; }
}

/* ---------- Tarjetas (base: .course de home.css) ---------- */
.cv-card[hidden] { display: none !important; }
.cv-card.is-in { animation: cvIn .45s var(--ease) both; }
@keyframes cvIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cv-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: #a3acc0; }
.cv-meta li { display: inline-flex; align-items: center; gap: 6px; }
.cv-meta .i { width: 16px; height: 16px; color: #60a5fa; }
.cv-price { margin: 2px 0 0; font-size: 14px; color: #a3acc0; }
.cv-price strong { font-size: 22px; color: #fff; letter-spacing: -0.02em; }
.cv-price span { color: #8a93a8; }
.cv-price--acad strong { color: var(--green); font-size: 18px; }
.cv-card .course__link { margin-top: auto; }
.cv-card .course__body { flex: 1; }
.cv-card { display: flex; flex-direction: column; }

/* ---------- Aprende con expertos + galería en movimiento ---------- */
.cv-experts { position: relative; padding: clamp(80px, 10vw, 130px) 0 clamp(56px, 7vw, 90px); background: #0f1117; overflow: hidden; }
.cv-cta { position: relative; text-align: center; padding: clamp(36px, 5vw, 60px) 24px; margin-bottom: clamp(36px, 5vw, 56px);
  background: radial-gradient(700px 300px at 50% 0%, rgba(52,211,153,.14), transparent 70%), rgba(24,28,38,.9); border-color: rgba(52,211,153,.35); }
.cv-cta h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; color: #fff; letter-spacing: -0.03em; margin: 0 0 12px; }
.cv-cta p { color: #c5ccdb; font-size: 17px; margin: 0; }
.cv-cta__btns { justify-content: center; }
.cv-cta__ribbon { position: absolute; top: 22px; right: -46px; width: 180px; padding: 6px 0; transform: rotate(45deg); background: var(--green); color: #0b1a12;
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-align: center; box-shadow: 0 6px 18px rgba(52,211,153,.35); }
.cv-gal { display: grid; gap: 14px; transform: rotate(-2deg) scale(1.03); }
.cv-gal__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cv-gal__track { display: flex; gap: 14px; width: max-content; animation: cvSlide 80s linear infinite; }
.cv-gal__row--2 .cv-gal__track { animation-direction: reverse; animation-duration: 95s; }
.cv-gal:hover .cv-gal__track, .cv-gal:focus-within .cv-gal__track { animation-play-state: paused; }
.cv-gal__item { flex: none; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #181c26; height: clamp(170px, 22vw, 270px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cv-gal__item img { height: 100%; width: auto; object-fit: cover; filter: saturate(.92); transition: transform .8s var(--ease), filter .4s; }
.cv-gal__item:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 24px 50px -18px rgba(47,111,237,.6); }
.cv-gal__item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.cv-gal__item:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.cv-gal__hint { text-align: center; margin: 26px 0 0; font-size: 13px; color: #8a93a8; }

/* ---------- Visor de fotos ---------- */
.cv-lightbox { width: min(1200px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: #0b0d12; color: #fff; overflow: hidden; }
.cv-lightbox::backdrop { background: rgba(5,6,10,.88); backdrop-filter: blur(4px); }
.cv-lightbox[open] { animation: popIn .35s var(--ease); }
.cv-lightbox img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 90px); object-fit: contain; background: #000; }
.cv-lightbox__cap { margin: 0; padding: 14px 70px; text-align: center; font-size: 14px; color: #c5ccdb; }
.cv-lightbox__btn { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(11,13,18,.75); color: #fff; cursor: pointer; }
.cv-lightbox__btn .i { width: 22px; height: 22px; }
.cv-lightbox__btn:hover { background: #2f6fed; border-color: #2f6fed; }
.cv-lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.cv-lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.cv-lightbox__x { right: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .cv-wall__track, .cv-gal__track { animation: none; }
  .cv-gal__row { overflow-x: auto; }
  .cv-card.is-in, .cv-lightbox[open] { animation: none; }
}
