/* ============================================================
   EMOTIV — Formación V2
   Cursos de Marketing e IA · Damián García Campos
   ============================================================ */

.nav a.is-current { color: var(--mauve); position: relative; }
.nav a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--mauve); border-radius: 2px; }

/* ---------- hero ---------- */
.fo-hero { position: relative; padding-top: 150px; padding-bottom: clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.fo-hero .wrap { text-align: center; max-width: 940px; position: relative; z-index: 2; }
.fo-hero .symbol-mark { width: 60px; margin: 0 auto 1.5rem; }
.fo-hero .display { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin-inline: auto; }
.fo-hero .lead { margin: 1.5rem auto 0; max-width: 640px; }
.fo-hero .wm { position: absolute; right: -7%; top: -4%; width: 40%; max-width: 500px; opacity: .05; pointer-events: none; z-index: 0; }
.fo-hero .fo-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.2rem; }
.fo-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; color: var(--brand); background: #fff; border: 1.5px solid var(--line-strong); padding: .6em 1.1em; border-radius: 999px; }
.fo-pill svg { color: var(--mauve); }

/* ---------- lite youtube embed (shared) ---------- */
.yt {
  position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--brand);
  aspect-ratio: 16/9; background-size: cover; background-position: center;
}
.yt::after { /* dark veil for contrast */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58,0,77,.12), rgba(58,0,77,.5));
  transition: background .3s var(--ease);
}
.yt:hover::after { background: linear-gradient(180deg, rgba(58,0,77,.05), rgba(58,0,77,.4)); }
.yt .yt-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.95);
  display: grid; place-items: center; transition: transform .25s var(--ease), background .25s;
  box-shadow: 0 14px 36px -12px rgba(0,0,0,.5);
}
.yt:hover .yt-play { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.yt .yt-play svg { color: var(--brand); margin-left: 4px; }
.yt .yt-fallback { /* shown when no thumbnail available */
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--brand), #2a0038);
}
.yt .yt-fallback img { width: 22%; max-width: 90px; opacity: .25; filter: grayscale(1) brightness(3); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt .yt-dur {
  position: absolute; z-index: 2; right: 12px; bottom: 12px;
  font-size: .8rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.6);
  padding: .3em .6em; border-radius: 7px; letter-spacing: .02em;
}

/* ---------- featured masterclass ---------- */
.fo-featured .feat-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(2rem, 4vw, 3.4rem); align-items: center; }
.fo-featured .feat-copy .eyebrow { margin-bottom: 1rem; }
.fo-featured .feat-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.fo-featured .feat-copy p { color: #3a2842; font-size: 1.1rem; margin-top: 1.1rem; }
.fo-featured .feat-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; font-size: .95rem; font-weight: 600; color: var(--mauve); }
.fo-featured .feat-meta span { display: inline-flex; align-items: center; gap: .45rem; }
@media (max-width: 880px) { .fo-featured .feat-grid { grid-template-columns: 1fr; } .fo-featured .feat-video { order: -1; } }

/* ---------- instructor ---------- */
.fo-instructor { }
.fo-instructor .ins-grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.fo-instructor .ins-photo { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; }
.fo-instructor .ins-photo image-slot { width: 100%; height: 100%; display: block; }
.fo-instructor .ins-photo .ins-fill { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.fo-instructor .ins-photo .ins-fallback { position: absolute; inset: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; pointer-events: none; }
.fo-instructor .ins-photo .ins-fallback img { width: 42%; opacity: .5; filter: grayscale(1) brightness(3); }
.fo-instructor .ins-name { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.fo-instructor .ins-role { color: var(--mauve-soft); font-weight: 700; margin-top: .3rem; }
.fo-instructor .ins-bio { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-top: 1.3rem; }
.fo-instructor .ins-bio + .ins-bio { margin-top: .9rem; }
@media (max-width: 760px) { .fo-instructor .ins-grid { grid-template-columns: 1fr; } .fo-instructor .ins-photo { max-width: 280px; } }

/* ---------- track filter ---------- */
.fo-tracks { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.6rem; }
.track-chip { font-family: inherit; font-size: .94rem; font-weight: 600; padding: .72em 1.3em; border-radius: 999px; cursor: pointer; background: #fff; color: var(--brand); border: 1.5px solid var(--line-strong); transition: all .22s var(--ease); }
.track-chip:hover { border-color: var(--mauve); color: var(--mauve); }
.track-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- course grid ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.6vw, 2rem); margin-top: 3rem; }
.course {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .3s;
}
.course:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -36px rgba(58,0,77,.45); border-color: var(--line-strong); }
.course.is-hidden { display: none; }
.course .course-body { padding: clamp(1.3rem, 2.4vw, 1.7rem); display: flex; flex-direction: column; flex: 1; }
.course .course-track { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mauve); margin-bottom: .6rem; }
.course h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.course p { color: #5a4862; font-size: 1rem; line-height: 1.5; }
.course .course-foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.course .c-level { font-size: .84rem; font-weight: 700; color: var(--brand); background: var(--tint); padding: .4em .8em; border-radius: 999px; }
.course .c-watch { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem; color: var(--brand); text-decoration: none; }
.course .c-watch svg { transition: transform .25s var(--ease); }
.course:hover .c-watch svg { transform: translateX(4px); }
@media (max-width: 900px) { .course-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .course-grid { grid-template-columns: 1fr; } }

/* ---------- subscribe CTA ---------- */
.fo-cta { text-align: center; }
.fo-cta .display { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-inline: auto; max-width: 20ch; }
.fo-cta .lead { margin: 1.2rem auto 2rem; max-width: 540px; }
