/* ═══════════════════════════════════════════════════════════
   SUPPERIA ACADEMIA — Plantilla de página de curso
   Se carga ANTES de global.css. Cada página define --c (acento).
   ═══════════════════════════════════════════════════════════ */

body { background: var(--cream); }

/* ── HERO ── */
.c-hero {
  background: var(--ink); color: var(--white); position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 5% 72px;
}
.c-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 90% at 30% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 30%, #000 30%, transparent 85%);
}
.c-hero::after {
  content: ''; position: absolute; top: -240px; left: 30%; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.c-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.c-crumb {
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 40px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.c-crumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.c-crumb a:hover { color: var(--gold-light); }
.c-crumb b { color: var(--c); font-weight: 600; }
.c-hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; }
.c-hero-grid > *, .temario-grid > *, .proj-grid > * { min-width: 0; }
.c-code {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.c-code .chip { color: var(--ink); background: var(--c); padding: 5px 9px; font-weight: 600; }
.c-code .lvl-bars i:not(.on) { background: rgba(255,255,255,0.15); }
.c-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95; letter-spacing: -0.045em; margin-bottom: 26px;
}
.c-hero h1 span { color: var(--c); display: block; }
.c-lead { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.66); font-weight: 300; max-width: 600px; margin-bottom: 34px; }
.c-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.c-spec {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12); border-left: 1px solid rgba(255,255,255,0.12); max-width: 680px;
}
.c-spec div { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
.c-spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.c-spec dd { font-size: 15px; font-weight: 500; margin-top: 4px; color: var(--white); }

/* ── TICKET DE INSCRIPCIÓN ── */
.ticket { position: relative; color: var(--text-dark); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); scroll-margin-top: calc(var(--nav-h) + 20px); }
.ticket-top, .ticket-bottom { background: var(--cream); }
.ticket-top { padding: 26px 28px 24px; border-top: 4px solid var(--c); }
.ticket-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.ticket-head b { color: var(--text-dark); }
.ticket-price { font-family: 'Syne', sans-serif; font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.ticket-price sup { font-size: 24px; vertical-align: top; margin-left: 4px; letter-spacing: 0; }
.ticket-note { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.ticket-split { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px dashed rgba(14,30,53,0.25); font-size: 14px; }
.ticket-split b { font-family: 'Syne', sans-serif; }
.ticket-split span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--white); padding: 3px 7px; }
.ticket-perf {
  height: 22px; position: relative;
  background:
    radial-gradient(circle at 0 50%, transparent 11px, var(--cream) 11.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 11px, var(--cream) 11.5px) right / 51% 100% no-repeat;
}
.ticket-perf::after { content: ''; position: absolute; left: 18px; right: 18px; top: 50%; border-top: 2px dashed rgba(14,30,53,0.2); }
.ticket-bottom { padding: 20px 28px 26px; }
.ticket-incl { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.ticket-incl li { font-size: 14px; color: var(--text-mid); display: flex; gap: 10px; line-height: 1.45; }
.ticket-incl li::before { content: '✓'; font-family: var(--mono); font-weight: 600; color: var(--text-dark); background: var(--c); width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; margin-top: 1px; }
.ticket-cta { display: flex; flex-direction: column; gap: 8px; }
.ticket-cta .btn-gold, .ticket-cta .btn-navy { justify-content: center; width: 100%; }
.ticket-cta .btn-gold { box-shadow: none; }
.ticket-seats { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.ticket-seats .seats { display: flex; gap: 3px; }
.ticket-seats .seats i { width: 8px; height: 14px; background: var(--c); opacity: 0.85; }
.ticket-guarantee { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ── STICKY BAR ── */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 180;
  background: rgba(8,17,31,0.97); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 5%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(100%); transition: transform 0.35s;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar.at-footer { transform: translateY(100%); }
.sticky-bar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sticky-bar-left .chip { font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--c); color: var(--ink); padding: 4px 8px; }
.sticky-bar-title { color: var(--white); font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar-sub { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.45); }
.sticky-bar-right { display: flex; align-items: center; gap: 16px; }
.sticky-bar-price { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; color: var(--white); }

/* ── RUTA (posición del curso) ── */
.c-route { background: var(--white); border-bottom: 1px solid var(--border); }
.c-route-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.c-route a {
  padding: 18px 20px; text-decoration: none; color: var(--text-muted); border-right: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; font-size: 14px; position: relative; transition: background 0.2s, color 0.2s;
}
.c-route a:first-child { border-left: 1px solid var(--border); }
.c-route a:hover { background: var(--cream); color: var(--text-dark); }
.c-route a b { font-family: var(--mono); font-size: 11px; color: var(--rc); }
.c-route a.on { color: var(--text-dark); font-weight: 600; background: var(--cream); }
.c-route a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--rc); }
.c-route a.on::before { content: 'Estás aquí'; position: absolute; top: 4px; right: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 400; }

/* ── CABECERA DE SECCIÓN ── */
.sec-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; margin-bottom: 56px; }
.sec-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); border-top: 1px solid var(--text-dark); padding-top: 14px; }
.sec-num b { display: block; font-family: 'Syne', sans-serif; font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--text-dark); margin-bottom: 8px; font-weight: 800; }
.dark .sec-num { color: rgba(255,255,255,0.45); border-top-color: rgba(255,255,255,0.5); }
.dark .sec-num b { -webkit-text-stroke-color: rgba(255,255,255,0.55); }
.dark .section-h2 { color: var(--white); }
.dark .section-sub { color: rgba(255,255,255,0.58); }
.section-h2 em { color: var(--c); filter: brightness(0.85); }
.dark .section-h2 em { filter: none; }

/* ── PARA QUIÉN ── */
.perfiles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--text-dark); }
.perfil { padding: 30px 30px 34px 0; margin-right: 30px; border-right: 1px solid var(--border); }
.perfil:last-child { border-right: none; margin-right: 0; }
.perfil-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 18px; }
.perfil-n b { color: var(--text-dark); background: var(--c); padding: 2px 6px; margin-right: 6px; }
.perfil h3 { font-family: 'Syne', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.2; }
.perfil p { font-size: 15px; color: var(--text-mid); line-height: 1.65; }

/* ── TEMARIO (árbol de ficheros) ── */
.temario { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.temario-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.temario-side { position: sticky; top: calc(var(--nav-h) + 28px); }
.t-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-left: 1px solid var(--border); margin: 26px 0; }
.t-stats div { padding: 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.t-stats b { display: block; font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.t-stats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); display: block; margin-top: 6px; }
.t-expand { background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: 12px; color: var(--text-mid); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.t-expand:hover { color: var(--gold); }

.tree { border: 1px solid var(--border); background: #FBFAF7; font-family: var(--mono); }
.tree-bar { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--text-muted); background: var(--cream); }
.mod { border-bottom: 1px solid var(--border); }
.mod:last-child { border-bottom: none; }
.mod summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 22px 44px 1fr auto; gap: 8px; align-items: center;
  padding: 18px 18px; transition: background 0.2s;
}
.mod summary::-webkit-details-marker { display: none; }
.mod summary:hover { background: var(--cream); }
.mod-caret { color: var(--text-muted); transition: transform 0.2s; font-size: 11px; }
.mod[open] .mod-caret { transform: rotate(90deg); color: var(--c); filter: brightness(0.8); }
.mod-n { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.mod[open] .mod-n { background: var(--c); padding: 2px 6px; justify-self: start; }
.mod-t { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-dark); }
.mod-count { font-size: 11px; color: var(--text-muted); }
.mod ol { list-style: none; counter-reset: lec; padding: 4px 18px 20px 52px; }
.mod li {
  counter-increment: lec; font-family: 'DM Sans', sans-serif; font-size: 14.5px; color: var(--text-mid);
  display: grid; grid-template-columns: 38px 1fr; padding: 6px 0; border-left: 1px dashed rgba(14,30,53,0.18); line-height: 1.5;
}
.mod li::before { content: counter(lec, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: rgba(14,30,53,0.35); padding-left: 12px; padding-top: 2px; }
.mod.project summary .mod-n { color: var(--gold); }

/* ── PROYECTO / BLOQUE OSCURO ── */
.c-dark { background: var(--ink); color: var(--white); }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.proj-list { list-style: none; border-top: 1px solid rgba(255,255,255,0.12); }
.proj-list li { display: grid; grid-template-columns: 50px 1fr; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.55; }
.proj-list b { font-family: var(--mono); font-size: 12px; color: var(--c); font-weight: 600; padding-top: 2px; }
.proj-note { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.6); max-width: 520px; }
.proj-note strong { color: var(--white); font-weight: 500; }

/* ── TESTIMONIOS (log) ── */
.log { border-top: 1px solid var(--text-dark); }
.log-row { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.log-who { font-weight: 600; font-size: 15px; }
.log-who small { display: block; font-weight: 400; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.log-quote { font-family: 'Syne', sans-serif; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.35; letter-spacing: -0.01em; font-weight: 600; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--mono); color: var(--gold); font-size: 18px; transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 15px; color: var(--text-mid); line-height: 1.7; padding: 0 0 22px; max-width: 540px; }

/* ── SIGUIENTE PELDAÑO ── */
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.next-card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end;
  padding: 26px; background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--nc);
  text-decoration: none; color: var(--text-dark); transition: transform 0.25s, box-shadow 0.25s;
}
.next-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(14,30,53,0.1); }
.next-card .tag-mono { color: var(--text-muted); grid-column: 1 / -1; }
.next-card h3 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.next-card p { grid-column: 1; font-size: 14px; color: var(--text-mid); line-height: 1.55; }
.next-card .go { grid-column: 2; grid-row: 2 / span 2; font-family: var(--mono); font-size: 20px; color: var(--nc); filter: brightness(0.85); }

/* ── CTA FINAL ── */
.c-final { background: var(--ink); color: var(--white); text-align: left; position: relative; overflow: hidden; }
.c-final-inner { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.c-final h2 { font-family: 'Syne', sans-serif; font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.c-final h2 em { font-style: normal; color: var(--c); }
.c-final p { margin-top: 18px; font-size: 16px; color: rgba(255,255,255,0.6); max-width: 560px; line-height: 1.65; }
.c-final-btns { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.c-final-btns > * { justify-content: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .c-hero-grid { grid-template-columns: 1fr; }
  .ticket { max-width: 480px; }
  .temario-grid, .proj-grid { grid-template-columns: 1fr; gap: 36px; }
  .temario-side { position: static; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
  .sec-num { display: flex; align-items: baseline; gap: 14px; }
  .sec-num b { font-size: 40px; margin: 0; }
  .c-final-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .c-spec { grid-template-columns: 1fr 1fr; }
  .c-route-inner { grid-template-columns: 1fr 1fr; }
  .c-route a { border-bottom: 1px solid var(--border); }
  .c-route a.on::before { display: none; }
  .perfiles { grid-template-columns: 1fr; }
  .perfil { margin-right: 0; padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); }
  .faq-grid { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr; gap: 10px; }
  .mod summary { grid-template-columns: 16px 36px 1fr; padding: 16px 12px; }
  .mod-count { display: none; }
  .mod ol { padding-left: 20px; padding-right: 10px; }
  .sticky-bar-sub, .sticky-bar-price { display: none; }
  .ticket-price { font-size: 52px; }
}
