:root {
  --bg: #ffffff;
  --ink: #37352f;
  --ink-light: #6b6a66;
  --border: #e9e8e4;
  --card-bg: #fbfbfa;

  --accent: #9a6bb4;       /* violet, from the original Notion headings */
  --accent-dark: #7d5695;
  --accent-soft: #f3ecf8;
  --accent-soft2: #e9ddf0;

  --teal: #2f7d6b;
  --teal-soft: #eaf3f1;
  --blue: #3b6fa8;
  --blue-soft: #e9f0f8;
  --amber: #a8752f;
  --amber-soft: #f8f0e3;
  --rose: #a8496b;
  --rose-soft: #f8e9ef;

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", ui-serif, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max-w: 1280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- top bar + breadcrumb ---------- */

.topbar {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand .dot { color: var(--accent); }

.breadcrumb {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--ink-light);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* portada: mantiene el ancho de lectura original, no el ancho completo del resto de páginas */
.home-wrap {
  max-width: 1000px;
}

/* ---------- shared "cover strip + icon" header, Notion-style ---------- */

.cover-strip {
  height: 96px;
  border-radius: 14px;
  margin-bottom: -38px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft2));
}

.page-icon {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(55, 53, 47, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.page-icon img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

/* ---------- home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 46px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 20%, var(--accent-soft) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, var(--blue-soft) 0%, transparent 40%),
    radial-gradient(circle at 60% 95%, var(--rose-soft) 0%, transparent 45%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(55, 53, 47, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 560px; margin: 0 auto; }
.hero .page-icon {
  position: static;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(55, 53, 47, 0.12));
}
.hero h1 {
  font-size: 34px;
  font-weight: 700;
  margin: 18px 0 12px;
}
.hero p {
  color: var(--ink-light);
  font-size: 16px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ---------- home section list ---------- */

.section-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  font-family: var(--font-sans);
  padding-top: 40px;
}

.section-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(55, 53, 47, 0.03);
  transition: box-shadow .15s ease, transform .15s ease;
}
.section-row:hover { box-shadow: 0 6px 16px rgba(55, 53, 47, 0.08); transform: translateY(-1px); }
.section-list .section-row:nth-child(5n+2) { border-left-color: var(--teal); }
.section-list .section-row:nth-child(5n+3) { border-left-color: var(--blue); }
.section-list .section-row:nth-child(5n+4) { border-left-color: var(--amber); }
.section-list .section-row:nth-child(5n+5) { border-left-color: var(--rose); }

.section-row-icon { font-size: 24px; flex-shrink: 0; }
.section-row-text { display: flex; flex-direction: column; gap: 2px; }
.section-row-title { font-weight: 700; font-size: 14.5px; }
.section-row-desc { font-size: 12.5px; color: var(--ink-light); }

.section-row-soon { opacity: .6; cursor: default; }
.section-row-soon:hover { box-shadow: none; transform: none; }

@media (max-width: 860px) {
    .section-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .section-list { grid-template-columns: 1fr; }
}

/* ---------- collaborations grid ---------- */

.collab-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--font-sans);
    margin: 24px 0;
}

.collab-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(55, 53, 47, 0.03);
    transition: box-shadow .15s ease, transform .15s ease;
}
.collab-row:hover { box-shadow: 0 6px 16px rgba(55, 53, 47, 0.08); transform: translateY(-1px); }
.collab-grid .collab-row:nth-child(2) { border-left-color: var(--teal); }
.collab-grid .collab-row:nth-child(3) { border-left-color: var(--blue); }

.collab-row-logo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(55, 53, 47, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.collab-row-logo img { width: 100%; height: 100%; object-fit: cover; }

.collab-row-text { display: flex; flex-direction: column; gap: 2px; }
.collab-row-title { font-weight: 700; font-size: 14.5px; }
.collab-row-desc { font-size: 12.5px; color: var(--ink-light); }

/* ---------- section / article headers ---------- */

.section-head, .article-head, .intro { text-align: center; margin-bottom: 36px; }
.section-head h1, .article-head h1, .intro h1 {
  margin: 14px 0 10px;
  font-size: 32px;
  font-weight: 700;
}
.section-desc {
  color: var(--ink-light);
  max-width: 560px;
  margin: 0 auto;
  font-size: 15px;
  font-family: var(--font-sans);
}
.meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }

/* ---------- filter bar ---------- */

.filter-bar {
  font-family: var(--font-sans);
  margin-bottom: 28px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.filter-group:last-of-type { margin-bottom: 0; }

.filter-group-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-light);
  min-width: 70px;
}

.filter-chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.filter-chip:hover { border-color: var(--accent-soft2); }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-clear {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-light);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  padding: 4px 0;
  text-decoration: underline;
}
.filter-clear:hover { color: var(--accent-dark); }

.filter-empty {
  font-family: var(--font-sans);
  color: var(--ink-light);
  text-align: center;
  padding: 30px 0;
}

/* ---------- filterable layout: sidebar de cursos + contenido ---------- */

.filterable-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;
  font-family: var(--font-sans);
}

.curso-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.curso-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-light);
  cursor: pointer;
  text-align: left;
}
.curso-item:hover { background: var(--border); }
.curso-item.active { background: var(--accent-soft); color: var(--accent-dark); }
.curso-count {
  font-weight: 400;
  font-size: 12px;
  color: #a19f97;
}
.curso-item.active .curso-count { color: var(--accent-dark); opacity: .7; }

.filterable-main { min-width: 0; }

@media (max-width: 640px) {
  .filterable-layout { grid-template-columns: 1fr; }
  .curso-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- photo cards (materiales / laboratorio) ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  font-family: var(--font-sans);
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.pcard:hover {
  box-shadow: 0 6px 18px rgba(55, 53, 47, 0.08);
  transform: translateY(-2px);
  border-color: var(--accent-soft2);
}
.photo-grid .pcard[hidden] { display: none; }

.pcard-thumb {
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}
.pcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard-thumb.placeholder span { font-size: 38px; opacity: .85; }

.photo-grid .pcard:nth-child(6n+2) .pcard-thumb.placeholder { background: var(--teal-soft); }
.photo-grid .pcard:nth-child(6n+3) .pcard-thumb.placeholder { background: var(--blue-soft); }
.photo-grid .pcard:nth-child(6n+4) .pcard-thumb.placeholder { background: var(--amber-soft); }
.photo-grid .pcard:nth-child(6n+5) .pcard-thumb.placeholder { background: var(--rose-soft); }
.photo-grid .pcard:nth-child(6n+6) .pcard-thumb.placeholder { background: var(--accent-soft2); }

.pcard-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcard-title { font-weight: 600; font-size: 14.5px; }

/* ---------- card grid (nav-style, sans-serif like Notion's link lists) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  font-family: var(--font-sans);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(55, 53, 47, 0.08);
  transform: translateY(-2px);
  border-color: var(--accent-soft2);
}
.card-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}
/* rotate a small palette across cards, Notion multi-select style */
.card-grid .card:nth-child(6n+2) .card-icon { background: var(--teal-soft); }
.card-grid .card:nth-child(6n+3) .card-icon { background: var(--blue-soft); }
.card-grid .card:nth-child(6n+4) .card-icon { background: var(--amber-soft); }
.card-grid .card:nth-child(6n+5) .card-icon { background: var(--rose-soft); }
.card-grid .card:nth-child(6n+6) .card-icon { background: var(--accent-soft2); }

.card-title { font-weight: 600; font-size: 14.5px; }

.card-grid .card[hidden] { display: none; }

.myth-category { margin-bottom: 44px; }
.myth-category h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.myth-blurb {
  font-family: var(--font-sans);
  color: var(--ink-light);
  font-size: 14.5px;
  margin: 0 0 16px;
}

.card-soon { opacity: 0.55; cursor: default; }
.card-soon:hover { box-shadow: none; transform: none; border-color: var(--border); }

/* ---------- tags / properties ---------- */

.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.tag-bloque { color: var(--teal); background: var(--teal-soft); }
.tag-tipo { color: var(--blue); background: var(--blue-soft); }
.tag-tipologia { color: var(--amber); background: var(--amber-soft); }
.tag-tematica { color: var(--rose); background: var(--rose-soft); }

/* ---------- article content ---------- */

.content { font-size: 17px; }

.content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 44px;
  margin-bottom: 14px;
}
.content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 30px;
  color: var(--ink);
}

.content p { margin: 14px 0; }

.content a { color: var(--accent-dark); }
.content a:hover { color: var(--accent); }

.content ul, .content ol { padding-left: 24px; }
.content li { margin: 6px 0; }

.content blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--ink-light);
  font-style: italic;
}

.content pre, .content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.content code {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}
.content pre {
  background: #2c2c2b;
  color: #f4f1ee;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
.content pre code { background: none; color: inherit; padding: 0; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 14.5px;
  font-family: var(--font-sans);
}
.content th, .content td {
  border: 1px solid var(--border);
  padding: 9px 13px;
  text-align: left;
}
.content th { background: var(--card-bg); font-weight: 700; }

.content details {
  margin: 18px 0;
  padding: 4px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.content details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 15px;
}
.content details summary::-webkit-details-marker { display: none; }
.content details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  transition: transform .15s ease;
}
.content details[open] summary::before { transform: rotate(90deg); }
.content details[open] summary { border-bottom: 1px solid var(--border); }
.content details > *:not(summary) { margin: 12px 0; }
.content details p:last-child { margin-bottom: 12px; }

.content-img {
  max-width: 100%;
  border-radius: 10px;
      margin: 18px auto !important;
  display: block;
}
.content-img-center {
  margin-left: auto;
  margin-right: auto;
}

.content img.content-img + p:has(> em:only-child) {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink-light);
    margin-top: -10px;
    margin-bottom: 24px;
    letter-spacing: .2px;
}
.content img.content-img + p:has(> em:only-child) em {
    font-style: normal;
}
.content img.content-img + p:has(> em:only-child) em::before {
    content: "📷 ";
}

.img-pair {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.img-pair .content-img {
  margin: 0 !important;
  height: 220px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 600px) {
  .img-pair { flex-direction: column; align-items: center; }
  .img-pair .content-img { height: auto; width: 55%; }
}

.img-trio {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.img-trio .content-img {
  margin: 0 !important;
  height: 200px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 700px) {
  .img-trio { flex-direction: column; align-items: center; }
  .img-trio .content-img { height: auto; width: 70%; }
}

.content-video {
  width: 100%;
  border-radius: 10px;
  margin: 18px 0;
  display: block;
  background: #000;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;  overflow: hidden;
  border-radius: 10px;
    margin: 18px auto !important;
  background: #000;
  max-width: 30%;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 700px) {
  .video-embed { max-width: 100%; }
}

.instagram-embed {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  margin: 18px auto !important;
  background: #000;
  max-width: 340px;
}
.instagram-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- media row (image + video side by side) ---------- */

.media-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  margin: 18px 0;
  height: 360px;
}
.media-row .instagram-embed {
  margin: 0 !important;
  max-width: none;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
}
.media-row-img {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
}
.media-row-img .content-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
}
.media-row-video {
  flex: 0 0 auto;
  max-width: none;
  height: 100%;
}
@media (max-width: 700px) {
  .media-row { flex-direction: column; height: auto; }
  .media-row-img, .media-row-video { width: 100%; height: auto; max-width: 100%; }
  .media-row-img { aspect-ratio: 9 / 16; }
  .media-row .instagram-embed { width: 100%; height: auto; }
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-family: var(--font-sans);
}
.callout-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(55, 53, 47, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}
.callout-icon img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.callout-text {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.callout-text > *:first-child { margin-top: 0; }
.callout-text > *:last-child { margin-bottom: 0; }

.pdf-embed {
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.pdf-embed iframe {
  width: 100%;
  height: 640px;
  border: 0;
  display: block;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 10px 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
}
.file-link:hover { border-color: var(--accent-soft2); background: var(--accent-soft); }

.linkcard {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 18px 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  min-height: 110px;
}
.linkcard:hover { border-color: var(--accent-dark); }
.linkcard-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-sans);
}
.linkcard-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
}
.linkcard-desc {
  color: var(--ink-light);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.linkcard-url {
  color: var(--ink-light);
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.linkcard-image {
  flex: 0 0 160px;
  background: var(--card-bg);
}
.linkcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- footer ---------- */

.foot {
  text-align: center;
  color: var(--ink-light);
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 28px;
  border-top: 1px solid var(--border);
}

/* ---------- publication timeline ---------- */

.tl { position: relative; padding-left: 28px; font-family: var(--font-sans); margin: 24px 0; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-year { position: relative; font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--accent-dark); margin: 30px 0 14px; }
.tl-year:first-child { margin-top: 0; }
.tl-year::before { content: ""; position: absolute; left: -28px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--border); }
.tl-item { margin-bottom: 20px; }
.tl-title { display: block; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.tl-title:hover { color: var(--accent-dark); }
.tl-meta { display: block; font-size: 13px; color: var(--ink-light); margin-top: 3px; }
.tl-cite { display: block; font-size: 12.5px; font-style: italic; color: var(--ink-light); margin-top: 2px; }

/* ---------- press clippings ---------- */

.clip-grid { display: flex; flex-direction: column; gap: 16px; font-family: var(--font-sans); margin: 24px 0; }
.clip { position: relative; background: var(--card-bg); border: 1px dashed var(--border); border-radius: 4px; padding: 18px 20px 18px 60px; }
.clip-year { position: absolute; left: -10px; top: 14px; font-family: var(--font-serif); font-weight: 700; font-size: 13px; background: var(--accent-soft); color: var(--accent-dark); padding: 5px 10px; border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 2px 4px rgba(55, 53, 47, 0.12); }
.clip-title { font-family: var(--font-serif); font-size: 16.5px; font-weight: 700; color: var(--ink); text-decoration: none; display: block; }
.clip-title:hover { color: var(--accent-dark); }
.clip-meta { font-size: 13px; color: var(--ink-light); margin-top: 5px; }
.clip-cite { font-size: 12.5px; font-style: italic; color: var(--ink-light); margin-top: 3px; }
.clip-entry + .clip-entry { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }

@media (max-width: 560px) {
  .clip { padding-left: 20px; }
  .clip-year { position: static; display: inline-block; transform: none; margin-bottom: 8px; }
}

/* ---------- category accordion with mini-card grid (recursos online) ---------- */

.cat-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-sans);
  margin: 24px 0;
}

.cat-acc {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cat-acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  background: var(--card-bg);
  list-style: none;
  border-left: 5px solid var(--accent);
  font-weight: 700;
  font-size: 15px;
}
.cat-acc summary::-webkit-details-marker { display: none; }
.cat-acc summary::after {
  content: "▸";
  color: var(--ink-light);
  font-size: 13px;
  margin-left: 6px;
  transition: transform .15s ease;
}
.cat-acc[open] summary::after { transform: rotate(90deg); }

.cat-group .cat-acc:nth-child(4n+2) summary { border-left-color: var(--teal); }
.cat-group .cat-acc:nth-child(4n+3) summary { border-left-color: var(--blue); }
.cat-group .cat-acc:nth-child(4n+4) summary { border-left-color: var(--amber); }
.cat-group .cat-acc:nth-child(4n+5) summary { border-left-color: var(--rose); }

.cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--accent-soft);
}
.cat-group .cat-acc:nth-child(4n+2) .cat-icon { background: var(--teal-soft); }
.cat-group .cat-acc:nth-child(4n+3) .cat-icon { background: var(--blue-soft); }
.cat-group .cat-acc:nth-child(4n+4) .cat-icon { background: var(--amber-soft); }
.cat-group .cat-acc:nth-child(4n+5) .cat-icon { background: var(--rose-soft); }

.cat-title { flex: 1; }

.cat-count {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
}
.cat-group .cat-acc:nth-child(4n+2) .cat-count { background: var(--teal); }
.cat-group .cat-acc:nth-child(4n+3) .cat-count { background: var(--blue); }
.cat-group .cat-acc:nth-child(4n+4) .cat-count { background: var(--amber); }
.cat-group .cat-acc:nth-child(4n+5) .cat-count { background: var(--rose); }

.cat-acc-body {
  padding: 14px 16px 16px;
  background: var(--bg);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.mini-card:hover {
  box-shadow: 0 6px 16px rgba(55, 53, 47, 0.08);
  transform: translateY(-1px);
  border-color: var(--accent-soft2);
}
.mc-icon { font-size: 17px; }
.mc-title { font-weight: 700; font-size: 13px; }
.mc-desc { font-size: 11.5px; color: var(--ink-light); line-height: 1.4; }


/* ---------- learning roadmap (generadores) ---------- */
.gen-road { position: relative; padding-left: 30px; font-family: var(--font-sans); margin: 24px 0; }
.gen-road::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.gen-level { position: relative; margin-bottom: 28px; }
.gen-level:last-child { margin-bottom: 0; }
.gen-dot { position: absolute; left: -30px; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--dotc); background: var(--dotc); }
.gen-level-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--dotc); margin: 0 0 12px; font-weight: 700; }
.gen-items { display: flex; flex-direction: column; gap: 12px; }
.gen-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--card-bg); }
.gen-item-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.gen-item-desc { font-size: 12.5px; color: var(--ink-light); line-height: 1.55; margin-bottom: 8px; }
.gen-item-link { font-size: 12.5px; font-weight: 700; color: var(--dotc); text-decoration: none; }
.gen-item-link:hover { text-decoration: underline; }


/* ---------- Astronomía: hero nocturno ---------- */

.astro-hero {
    position: relative;
    background: radial-gradient(ellipse at 50% -20%, #26243a 0%, #14131e 55%, #0d0c14 100%);
    border-radius: 14px;
    padding: 56px 24px 44px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 28px;
}
.astro-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent),
        radial-gradient(1px 1px at 20% 60%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 32% 32%, #ffe9b0, transparent),
        radial-gradient(1px 1px at 45% 75%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 60% 15%, #fff, transparent),
        radial-gradient(1px 1px at 68% 55%, #cbb8ff, transparent),
        radial-gradient(1.5px 1.5px at 78% 30%, #fff, transparent),
        radial-gradient(1px 1px at 88% 68%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 93% 22%, #ffe9b0, transparent),
        radial-gradient(1px 1px at 15% 85%, #fff, transparent),
        radial-gradient(1px 1px at 55% 90%, #fff, transparent);
    background-repeat: no-repeat;
    opacity: .9;
}
.astro-hero-inner { position: relative; z-index: 1; }
.astro-page-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 0 30px rgba(154,107,180,.35);
}
.astro-hero h1 {
    font-family: var(--font-serif);
    font-size: 34px;
    color: #f5f2ec;
    margin: 0 0 10px;
    letter-spacing: -.01em;
}
.astro-hero-desc {
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: #b8b4c4;
    max-width: 480px;
    margin: 0 auto;
}

#astro-collabs .collab-row-logo { background: var(--accent-soft); font-size: 19px; }
#astro-collabs .collab-row:nth-child(2) .collab-row-logo { background: var(--teal-soft); }
#astro-collabs .collab-row:nth-child(3) .collab-row-logo { background: var(--blue-soft); }


/* ---------- Familia Black: toggles de estrellas ---------- */

.star-toggle-hint {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--ink-light);
    text-align: center;
    margin: 18px 0 22px;
    font-style: italic;
}

details.star-toggle {
    padding: 0;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    background: var(--card-bg);
    margin: 14px 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(55, 53, 47, 0.03);
}
details.star-toggle[open] {
    box-shadow: 0 6px 16px rgba(55, 53, 47, 0.08);
}
details.star-toggle summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    user-select: none;
}
details.star-toggle summary::-webkit-details-marker { display: none; }
details.star-toggle summary::marker { content: ""; display: none; }
details.star-toggle summary::before { content: none; display: none; }
details.star-toggle summary::after {
    content: "▾";
    margin-left: auto;
    color: var(--accent);
    font-size: 16px;
    transition: transform .2s ease;
    flex-shrink: 0;
}
details.star-toggle[open] summary::after { transform: rotate(180deg); }
details.star-toggle summary:hover { background: var(--accent-soft); }
details.star-toggle .star-name { flex: 1; }

details.star-toggle > *:not(summary) { padding: 0 20px; }
details.star-toggle > p:not(summary),
details.star-toggle > blockquote { margin: 0 20px 18px; padding: 0; width: auto; }
details.star-toggle[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 16px; }
details.star-toggle p { margin: 0 0 14px; padding: 0 20px; }
details.star-toggle p:last-of-type { margin-bottom: 20px; }

details.star-toggle-sm { border-left-color: var(--teal); }
details.star-toggle-sm summary { font-size: 16px; }
details.star-toggle-sm summary::after { color: var(--teal); }


/* ---------- Mitología: cabeceras de categoría y acento en iconos ---------- */

.myth-category h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.myth-category h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

#mito-body .card-icon { position: relative; }
#mito-body .card-icon::after {
    content: "✦";
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 8px;
    color: var(--accent);
}
