/* ============================================================
   TEMARIOS.CSS – Estilos CSS3 inspirados en lidercom.com
   Curso Excel Laboral – Tema oscuro + acentos mint
   ============================================================ */

/* ---------- Variables (mismas del sitio) ---------- */
:root {
  --bg:       #0a1412;
  --bg2:      #0f1f1b;
  --card:     #13261f;
  --line:     #1f3a31;
  --mint:     #3dffb0;
  --mint2:    #00d4a0;
  --ink:      #eafff6;
  --muted:    #9bbcb0;
  --grad:     linear-gradient(135deg, #3dffb0, #00d4a0 60%, #00b3c7);
  --glow:     0 0 40px rgba(61, 255, 176, 0.35);
  --r:        20px;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", system-ui, sans-serif;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  padding: 40px 20px 60px;
}

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--line);
  position: relative;
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 90px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ---------- Contenedor principal ---------- */
body {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Info de lecciones / horas (tabla del footer superior) ---------- */
#footer {
  margin: 0 0 36px;
}

#footer table {
  width: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

#footer td {
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border: none;
}

#footer td:first-child {
  border-right: 1px solid var(--line);
  color: var(--mint);
  font-weight: 600;
}

/* ---------- Títulos de lección (p que empiezan con 01:, 02:...) ---------- */
p {
  margin: 0;
}

/* Cada bloque de lección: el <p> del número + el <ul> siguiente */
p + ul {
  margin-bottom: 28px;
}

/* Estilo de los títulos de lección */
body > p:not(:first-of-type) {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mint);
  margin: 32px 0 12px;
  padding: 10px 16px;
  background: rgba(61, 255, 176, 0.07);
  border-left: 4px solid var(--mint);
  border-radius: 0 10px 10px 0;
  display: block;
}

/* El primer <p> (ancla) no se muestra */
body > p:first-of-type {
  display: none;
}

/* ---------- Listas de temas ---------- */
ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

ul li {
  position: relative;
  padding: 11px 20px 11px 48px;
  color: var(--muted);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}

ul li:last-child {
  border-bottom: none;
}

ul li::before {
  content: "▸";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mint);
  font-size: 0.9rem;
  font-weight: 700;
}

ul li:hover {
  background: rgba(61, 255, 176, 0.06);
  color: var(--ink);
}

/* ---------- Enlace “Volver Arriba” y copyright ---------- */
body > div#footer:last-of-type {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

body > div#footer:last-of-type a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.25s;
}

body > div#footer:last-of-type a:hover {
  background: var(--grad);
  color: #04140e;
  border-color: transparent;
  box-shadow: var(--glow);
}

.copyright {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Espaciado extra al final ---------- */
body > p:last-of-type {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body {
    padding: 24px 14px 40px;
  }

  h1 {
    font-size: 1.7rem;
  }

  body > p:not(:first-of-type) {
    font-size: 1.05rem;
    padding: 9px 14px;
  }

  ul li {
    padding: 10px 16px 10px 42px;
    font-size: 0.94rem;
  }

  #footer td {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  body > div#footer:last-of-type {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Preferencia de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
