/* Editorial Mindbyte · estilos */
/* Fuentes IBM Plex (licencia OFL, fonts/OFL-IBMPlex.txt) servidas desde el propio dominio: sin Google Fonts */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Serif"; src: url("fonts/IBMPlexSerif-Bold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #070b10;
  --bg-2: #0b1118;
  --panel: rgba(16, 24, 33, 0.62);
  --panel-solid: #0f1720;
  --line: rgba(120, 200, 190, 0.12);
  --line-2: rgba(120, 200, 190, 0.24);
  --text: #e7eef2;
  --muted: #8ea0ad;
  --dim: #5d6f7c;
  --teal: #5fd0c0;
  --teal-2: #2ec4b6;
  --cyan: #63e6ff;
  --coral: #ff7a59;
  --violet: #9b8cff;
  --radius: 18px;
  --max: 1180px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
::selection { background: rgba(95, 208, 192, .3); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Fondo: cuadrícula y halo que sigue al ratón */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 30%, transparent 80%);
  opacity: .55;
}
.cursor-glow {
  position: fixed; z-index: -1; pointer-events: none; width: 560px; height: 560px; left: 0; top: 0;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(95, 208, 192, .10), transparent 65%);
  transition: opacity .4s; opacity: 0;
}
body.has-pointer .cursor-glow { opacity: 1; }

.grad {
  background: linear-gradient(92deg, var(--teal) 0%, var(--cyan) 55%, var(--teal) 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em;
  border-radius: 999px; font: 600 15px/1 var(--sans); cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #04110f; background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 0 0 1px rgba(99, 230, 255, .3), 0 10px 30px -10px rgba(95, 208, 192, .6);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(99, 230, 255, .5), 0 14px 40px -8px rgba(95, 208, 192, .8); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: .6em 1.1em; font-size: 14px; }

/* Navegación */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(var(--max), calc(100% - 28px)); display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(7, 11, 16, .55); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .3s, border-color .3s;
}
.nav.is-scrolled { background: rgba(7, 11, 16, .85); border-color: var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; color: var(--teal); filter: drop-shadow(0 0 8px rgba(95, 208, 192, .45)); }
.brand-text { display: flex; flex-direction: column; font: 700 18px/1 var(--sans); letter-spacing: -.01em; }
.brand-text small { font: 500 10px/1.2 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--text); background: rgba(95, 208, 192, .08); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: clamp(640px, 100svh, 1000px); display: grid; place-items: center;
  grid-template-columns: minmax(0, 1fr); padding: 130px 24px 90px; overflow: hidden;
}
.hero-inner { min-width: 0; }
#ondas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 200px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { width: min(var(--max), 100%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 14px;
  font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--teal);
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(95, 208, 192, .05);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(95, 208, 192, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 208, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 208, 192, 0); } }
.hero h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 700; max-width: 14ch; }
.hero h1 .grad { display: inline-block; }
.lead { max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 26px 0 30px; }

.terminal {
  max-width: 620px; border-radius: 14px; overflow: hidden;
  background: rgba(10, 16, 23, .78); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #26323d; }
.term-bar i:first-child { background: var(--coral); opacity: .8; }
.term-bar span { margin-left: 8px; font: 12px var(--mono); color: var(--dim); }
.terminal pre { margin: 0; padding: 16px 18px; min-height: 84px; font: 14.5px/1.6 var(--mono); color: #cfe9e4; white-space: pre-wrap; }
.term-prompt { color: var(--teal); }
.caret { color: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 54px 0 0; }
.stats div { border-left: 1px solid var(--line-2); padding-left: 16px; }
.stats dt { font: 600 34px/1 var(--mono); color: var(--text); }
.stats dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(11, 17, 24, .6); padding: 16px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font: 500 15px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.marquee-track b { color: var(--teal); font-weight: 400; font-size: 10px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Secciones */
.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.section-alt { position: relative; }
.section-alt::before {
  content: ""; position: absolute; inset: 40px -100vw; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(95, 208, 192, .035), transparent);
}
.section-head { max-width: 680px; margin-bottom: 46px; }
.kicker { margin: 0 0 14px; font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.section h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; }
.section-lead { color: var(--muted); font-size: 18px; margin: 18px 0 0; }

/* Barra de filtros */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--teal); }
.chip.is-active { color: #04110f; background: var(--teal); border-color: var(--teal); }
.search {
  display: flex; align-items: center; gap: 10px; min-width: min(320px, 100%); padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .02);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(95, 208, 192, .1); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 15px var(--sans); padding: 11px 0; outline: none; }
.search input::placeholder { color: var(--dim); }

/* Tarjetas */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  --acc: var(--teal); --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); overflow: hidden; cursor: pointer;
  transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 22%, transparent), transparent 45%);
  transition: opacity .3s;
}
.card:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--acc) 45%, transparent); }
.card:hover::before { opacity: 1; }
.card-media {
  position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 60%),
    linear-gradient(180deg, #0c141c, #0a1016);
  border-bottom: 1px solid var(--line);
}
.card-media::after {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: radial-gradient(color-mix(in srgb, var(--acc) 60%, transparent) 1px, transparent 1.4px);
  background-size: 16px 16px; mask-image: linear-gradient(180deg, transparent, #000);
}
.card-media picture, .modal-media picture { display: contents; }
.card-media img {
  position: relative; z-index: 1; width: 39%; height: auto; border-radius: 4px 8px 8px 4px;
  box-shadow: -1px 0 0 rgba(255, 255, 255, .15) inset, 0 20px 40px -12px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: perspective(900px) rotateY(-14deg) translateZ(0); transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: perspective(900px) rotateY(-4deg) translateY(-6px) scale(1.03); }
.ph {
  position: relative; z-index: 1; width: 46%; aspect-ratio: 5 / 8; border-radius: 4px 8px 8px 4px; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 70%, #0b1118), color-mix(in srgb, var(--acc) 25%, #0b1118));
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .9); transform: perspective(900px) rotateY(-14deg);
  transition: transform .5s var(--ease); color: #fff;
}
.card:hover .ph { transform: perspective(900px) rotateY(-4deg) translateY(-6px); }
.ph small { font: 500 9px var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.ph strong { font: 700 15px/1.15 var(--serif); }
.ph.is-course { width: 70%; aspect-ratio: 16 / 10; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.ph.is-course .play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); }
.ph.is-course .play::before { content: ""; border-left: 13px solid #fff; border-block: 8px solid transparent; margin-left: 4px; }

.badge {
  position: absolute; top: 14px; left: 14px; z-index: 3; padding: 5px 10px; border-radius: 999px;
  font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgba(7, 11, 16, .75); border: 1px solid var(--line-2); color: var(--muted); backdrop-filter: blur(6px);
}
.badge.is-soon { color: var(--violet); border-color: rgba(155, 140, 255, .4); }
.badge.is-free { color: #04110f; background: var(--coral); border-color: var(--coral); animation: pulseFree 2.2s infinite; }
@keyframes pulseFree { 50% { box-shadow: 0 0 0 6px rgba(255, 122, 89, .15); } }
.card-type { position: absolute; top: 14px; right: 14px; z-index: 3; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; flex: 1; }
.card-serie { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.card h3 { font-size: 22px; font-weight: 700; }
.card-sub { margin: 0; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { padding: 3px 9px; border-radius: 6px; font: 12px var(--mono); color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.price { font: 600 15px var(--mono); color: var(--text); }
.price small { display: block; font: 400 11px var(--sans); color: var(--dim); margin-top: 2px; }
.more { font: 600 14px var(--sans); color: var(--acc); display: inline-flex; gap: 6px; align-items: center; }
.more span { transition: transform .25s var(--ease); }
.card:hover .more span { transform: translateX(4px); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Colección */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 5px;
  background: rgba(95, 208, 192, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd0c0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(95, 208, 192, .35);
}
.roadmap { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 16px; }
.roadmap::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--violet) 60%, transparent); opacity: .5; }
.roadmap li {
  --acc: var(--teal); position: relative; padding: 18px 20px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease);
}
.roadmap li:hover { border-color: color-mix(in srgb, var(--acc) 50%, transparent); transform: translateX(4px); }
.roadmap li::before {
  content: ""; position: absolute; left: -27px; top: 24px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--acc); box-shadow: 0 0 12px color-mix(in srgb, var(--acc) 60%, transparent);
}
.roadmap li.is-live::before { background: var(--acc); }
.rm-num { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.roadmap h3 { font-size: 19px; margin: 6px 0 4px; }
.roadmap p { margin: 0; font-size: 14.5px; color: var(--muted); }
.rm-state { float: right; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.is-live .rm-state { color: var(--teal); }

/* Curso */
.course { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; align-items: start; }
.course-card {
  position: sticky; top: 100px; padding: 30px; border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(122, 162, 255, .16), transparent 60%),
    radial-gradient(100% 70% at 100% 100%, rgba(95, 208, 192, .12), transparent 60%),
    var(--panel-solid);
  border: 1px solid var(--line-2);
}
.course-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7aa2ff; border: 1px solid rgba(122, 162, 255, .4); background: rgba(122, 162, 255, .08); }
.course-card h3 { font-size: 30px; margin: 18px 0 8px; }
.course-card > p { margin: 0; color: var(--muted); }
.course-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 22px 0; color: var(--muted); font-size: 14px; }
.course-meta b { color: var(--text); font: 600 20px var(--mono); margin-right: 4px; }
.player { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #05080c; }
.player-screen {
  aspect-ratio: 16 / 9; display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px;
  font: 500 12px var(--mono); color: var(--muted); letter-spacing: .08em;
  background:
    linear-gradient(transparent 50%, rgba(95, 208, 192, .03) 50%) 0 0 / 100% 4px,
    radial-gradient(60% 60% at 50% 55%, rgba(95, 208, 192, .14), transparent 70%);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-top: 3px; animation: blink 1.2s steps(1) infinite; }
.player-bar { height: 4px; background: rgba(255, 255, 255, .06); }
.player-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--cyan)); animation: progress 12s linear infinite; }
@keyframes progress { to { width: 100%; } }

.syllabus { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: c; }
.syllabus li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.syllabus li:hover { border-color: var(--line-2); background: rgba(16, 24, 33, .9); transform: translateX(4px); }
.syl-n { font: 500 14px var(--mono); color: var(--teal); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(95, 208, 192, .08); border: 1px solid var(--line-2); }
.syl-t { font-weight: 500; }
.syl-m { font: 13px var(--mono); color: var(--dim); }

/* Autor */
.author { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; max-width: 920px; }
.author-avatar {
  position: relative; width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #13202a, #070b10);
  border: 1px solid var(--line-2);
}
.author-avatar::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal), transparent 30%, var(--cyan) 50%, transparent 80%, var(--teal));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.author-avatar span { font: 700 56px var(--serif); color: var(--teal); text-shadow: 0 0 30px rgba(95, 208, 192, .5); }
.author .btn { margin-top: 26px; }

/* CTA final */
.cta {
  width: min(var(--max), calc(100% - 48px)); margin: 40px auto 120px; padding: 70px 30px; text-align: center;
  border-radius: 28px; border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: radial-gradient(70% 120% at 50% 0%, rgba(95, 208, 192, .16), transparent 70%), var(--bg-2);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(rgba(95, 208, 192, .5) 1px, transparent 1.5px); background-size: 22px 22px;
  mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); }
.cta p { color: var(--muted); margin: 14px 0 28px; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 40px 0 50px; }
.footer-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.footer p { margin: 0; }
.footer .fine { font-size: 13px; color: var(--dim); }

/* Ficha (modal) */
.modal {
  width: min(920px, calc(100% - 28px)); max-height: calc(100svh - 40px); padding: 0; border-radius: 22px;
  border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9);
}
.modal::backdrop { background: rgba(3, 6, 9, .7); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(7, 11, 16, .8); color: var(--text); font-size: 22px; cursor: pointer;
}
.modal-close:hover { border-color: var(--teal); color: var(--teal); }
.modal-body { display: grid; grid-template-columns: 300px 1fr; }
.modal-media {
  --acc: var(--teal); display: grid; place-items: center; padding: 40px 30px;
  background: radial-gradient(100% 70% at 50% 100%, color-mix(in srgb, var(--acc) 28%, transparent), transparent 70%), #0a1016;
  border-right: 1px solid var(--line);
}
.modal-media img { width: 100%; max-width: 230px; border-radius: 4px 8px 8px 4px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.modal-media .ph { transform: none; width: 200px; }
.modal-media .ph.is-course { width: 100%; }
.modal-info { padding: 40px 36px 34px; }
.modal-info h3 { font-size: 30px; margin: 8px 0 6px; }
.modal-sub { color: var(--muted); margin: 0 0 18px; }
.hook { font: 600 18px/1.4 var(--serif); color: var(--text); margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--acc, var(--teal)); }
.modal-info ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 18px 0; }
.modal-info li { position: relative; padding-left: 22px; color: #c9d6dd; font-size: 15.5px; }
.modal-info li::before { content: "›"; position: absolute; left: 4px; color: var(--acc, var(--teal)); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.format { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); min-width: 120px; }
.format small { display: block; font: 12px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.format b { font: 600 18px var(--mono); }
.promo-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; color: #ffd9cf; background: rgba(255, 122, 89, .1); border: 1px solid rgba(255, 122, 89, .35); font-size: 14.5px; }

/* Aparición al hacer scroll */
.js main > section:not(.hero) .reveal, .js .cta.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js main > section:not(.hero) .reveal.is-in, .js .cta.reveal.is-in { opacity: 1; transform: none; }
/* El hero entra con una animación propia: se ve aunque falle el JavaScript */
.hero .reveal { animation: heroIn .9s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
.hero .reveal:nth-child(6) { animation-delay: .4s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

/* Responsive */
@media (max-width: 960px) {
  .split, .course { grid-template-columns: 1fr; gap: 36px; }
  .course-card { position: relative; top: 0; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-media { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px; }
  .modal-media img { max-width: 170px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 12px; padding: 8px 8px 8px 14px; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; margin-left: auto; width: 42px; height: 42px;
    border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  }
  .nav-toggle span { width: 16px; height: 1.5px; background: var(--text); transition: transform .25s; }
  .nav.is-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 8px;
    border-radius: 20px; background: rgba(7, 11, 16, .96); border: 1px solid var(--line-2);
    opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s;
  }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 16px; }
  .hero { padding: 120px 16px 80px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .02em; line-height: 1.4; }
  .terminal pre { font-size: 13px; }
  .section { width: calc(100% - 32px); padding: 84px 0; }
  .cta, .footer-inner { width: calc(100% - 32px); }
  .grid { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .stats { gap: 14px 28px; }
  .stats dt { font-size: 28px; }
  .author { grid-template-columns: 1fr; gap: 30px; }
  .author-avatar { width: 140px; height: 140px; }
  .author-avatar span { font-size: 40px; }
  .modal-info { padding: 28px 22px 26px; }
  .syllabus li { grid-template-columns: auto 1fr; }
  .syl-m { grid-column: 2; margin-top: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .js main > section:not(.hero) .reveal, .js .cta.reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Logo 1B en la cabecera y el pie */
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(95, 208, 192, .35)); }
.brand-text em { font-style: normal; font-weight: 600; color: var(--teal); }
.footer a.mail { color: var(--teal); border-bottom: 1px solid rgba(95, 208, 192, .35); }
.footer a.mail:hover { border-color: var(--teal); }
.footer .legal-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.footer .legal-links a { color: var(--muted); }
.footer .legal-links a:hover { color: var(--teal); }

/* Páginas legales */
.legal { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0 90px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 38px 0 10px; }
.legal p, .legal li { color: #c9d6dd; }
.legal .upd { color: var(--dim); font: 13px var(--mono); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.legal a { color: var(--teal); }
