

:root {
  /* Color - Modo oscuro */
  --bg: #0B1320;
  --bg-elevated: #121C2E;
  --bg-panel: #162132;
  --line: #233047;
  --teal: #0EA5A4;
  --teal-dim: #0B7E7D;
  --coral: #F2545B;
  --text: #E8EDF3;
  --text-dim: #9BA8BC;
  --text-faint: #5B6679;
  --shadow: rgba(0,0,0,0.4);
  /* Type */
  --serif: Cambria, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  /* Layout */
  --col-read: 820px;
  --col-wide: 1080px;
}

/* Modo claro */
body.light-mode {
  --bg: #F5F7FA;
  --bg-elevated: #EBEEF2;
  --bg-panel: #DFE3E8;
  --line: #C5CDD6;
  --text: #1A2026;
  --text-dim: #4A5568;
  --text-faint: #7A8799;
  --shadow: rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* Ambient backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.backdrop::before {
  width: 720px; height: 720px;
  top: -260px; right: -200px;
  background: radial-gradient(circle, rgba(14,165,164,0.16), transparent 70%);
}

.backdrop::after {
  width: 600px; height: 600px;
  bottom: -240px; left: -160px;
  background: radial-gradient(circle, rgba(242,84,91,0.10), transparent 70%);
}

.waveform {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  z-index: -1;
  opacity: 0.14;
  pointer-events: none;
}

/* Header */
.site-header {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 2.75rem 1.5rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.brand-mark {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
  line-height: 0;
}

.brand-logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 40px;
  border-radius: 4px;
}

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  background: var(--bg-elevated);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
  transform: scale(1.05);
}

.site-tagline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* Index page */
.intro {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  transition: border-color 0.3s ease;
}

.intro h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.9rem;
  max-width: 18ch;
  color: var(--text);
  transition: color 0.3s ease;
}

.intro p {
  color: var(--text-dim);
  max-width: 52ch;
  font-size: 1.02rem;
  transition: color 0.3s ease;
}

.intro-stat {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: right;
  white-space: nowrap;
  padding-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.intro-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--teal);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

@media (max-width: 720px) {
  .intro {
    grid-template-columns: 1fr;
  }
  .intro-stat {
    text-align: left;
  }
}

.archive {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.archive-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin: 0;
  transition: color 0.3s ease;
}

.archive-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.search-input {
  padding: 0.5rem 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}

.search-input::placeholder {
  color: var(--text-faint);
}

.view-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.view-toggle:hover {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}

/* Vista grid */
.archive.grid .entry-row {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--bg-elevated);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.archive.grid .entry-row:hover {
  background: var(--bg-panel);
}

.archive.grid .entry-piece {
  order: -1;
  margin-bottom: 0.3rem;
}

.archive.grid .entry-meta {
  text-align: left;
  padding-top: 0.5rem;
}

.entry-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.entry-row:hover {
  background: rgba(14,165,164,0.04);
  text-decoration: none;
}

.entry-row:hover .entry-title { color: var(--teal); }

/* Animación escalonada */
.entry-row:nth-child(1) { animation-delay: 0.05s; }
.entry-row:nth-child(2) { animation-delay: 0.10s; }
.entry-row:nth-child(3) { animation-delay: 0.15s; }
.entry-row:nth-child(4) { animation-delay: 0.20s; }
.entry-row:nth-child(5) { animation-delay: 0.25s; }
.entry-row:nth-child(6) { animation-delay: 0.30s; }
.entry-row:nth-child(7) { animation-delay: 0.35s; }
.entry-row:nth-child(8) { animation-delay: 0.40s; }
.entry-row:nth-child(9) { animation-delay: 0.45s; }
.entry-row:nth-child(10) { animation-delay: 0.50s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-piece {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--teal-dim);
  padding-top: 0.15rem;
  transition: color 0.3s ease;
}

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

.entry-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
  transition: color 0.15s ease;
}

.entry-sub {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  font-style: italic;
  transition: color 0.3s ease;
}

.entry-extract {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 62ch;
  margin: 0;
  transition: color 0.3s ease;
}

.entry-tags {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.entry-tags .tag {
  cursor: pointer;
  transition: all 0.2s ease;
}

.entry-tags .tag:hover {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  transition: all 0.2s ease;
}

.entry-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
  white-space: nowrap;
  padding-top: 0.2rem;
  transition: color 0.3s ease;
}

.entry-meta .cat {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--coral);
  transition: color 0.3s ease;
}

.empty-state {
  padding: 3rem 0;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* Skeleton screens */
.skeleton {
  animation: pulse 1.5s ease-in-out infinite;
  background: var(--bg-panel);
  border-radius: 4px;
  transition: background 0.3s ease;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.skeleton-entry {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.skeleton-piece {
  height: 20px;
  width: 60px;
}

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

.skeleton-title {
  height: 28px;
  width: 70%;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 16px;
  width: 90%;
  margin-bottom: 6px;
}

.skeleton-text.short { width: 50%; }

.skeleton-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.skeleton-tag {
  height: 20px;
  width: 50px;
  border-radius: 3px;
}

.skeleton-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 0.2rem;
}

.skeleton-date {
  height: 16px;
  width: 80px;
}

.skeleton-cat {
  height: 16px;
  width: 60px;
}

/* Skeleton para lectura */
.skeleton-reading {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: 2rem 4rem 6rem;
}

.skeleton-title-lg {
  height: 48px;
  width: 80%;
  margin-bottom: 12px;
}

.skeleton-sub {
  height: 28px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-meta-line {
  height: 18px;
  width: 40%;
  margin-bottom: 30px;
}

/* Reading page */
#contenido {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: 2rem 4rem 6rem;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Portada */
#contenido .portada {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px var(--shadow);
  display: block;
  background: var(--bg-elevated);
}

#contenido p {
  margin: 0 0 1.5rem;
  color: var(--text);
  transition: color 0.3s ease;
}

#contenido h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--text);
  transition: color 0.3s ease;
}

#contenido h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.6rem 0 1.2rem;
  color: var(--text);
  transition: color 0.3s ease;
}

#contenido h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.6rem 0 1.2rem;
  color: var(--text);
  transition: color 0.3s ease;
}

#contenido blockquote {
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.3rem;
  border-left: 2px solid var(--teal);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: color 0.3s ease, border-color 0.3s ease;
}

#contenido .meta-fecha {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

#contenido .meta-lectura {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

#contenido .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

/* Sección Transmedial */
.transmedia-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--line);
}

.transmedia-header h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.transmedia-sub {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.transmedia-hashtag {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.transmedia-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.transmedia-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
  transition: all 0.2s ease;
}

.transmedia-item:hover {
  background: var(--bg-panel);
  transform: translateX(4px);
}

.transmedia-semana {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.semana-numero {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.semana-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.transmedia-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.transmedia-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.transmedia-title h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.platform-icon {
  font-size: 1.2rem;
}

.platform-icon.instagram {
  color: #E4405F;
}

.platform-icon.tiktok {
  color: #ffffff;
}

.transmedia-extracto {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
  font-style: italic;
}

.transmedia-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.btn-ver-video {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ver-video:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-ver-video.instagram:hover {
  background: #E4405F;
  color: #fff;
  border-color: #E4405F;
}

.btn-ver-video.tiktok:hover {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

.btn-ver-video.disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-ver-video.disabled:hover {
  transform: none;
  background: var(--bg);
  color: var(--text);
  border-color: var(--line);
}

.qr-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-mini img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.qr-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-faint);
}

.transmedia-embed {
  margin-top: 0.5rem;
}

.transmedia-embed iframe {
  width: 100%;
  max-width: 400px;
  height: 480px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.transmedia-footer {
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(14, 165, 164, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
}

.transmedia-footer p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0;
}

.transmedia-footer a {
  color: var(--teal);
  text-decoration: none;
}

.transmedia-footer a:hover {
  text-decoration: underline;
}

/* Redes sociales */
.share-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.share-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.share-btn.twitter:hover {
  background: #1DA1F2;
  color: #fff;
  border-color: #1DA1F2;
}

.share-btn.bluesky:hover {
  background: #1185FE;
  color: #fff;
  border-color: #1185FE;
}

.share-btn.linkedin:hover {
  background: #0A66C2;
  color: #fff;
  border-color: #0A66C2;
}

.share-btn.whatsapp:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.share-btn.facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}

.share-btn.reddit:hover {
  background: #FF4500;
  color: #fff;
  border-color: #FF4500;
}

.share-btn.instagram:hover {
  background: #E4405F;
  color: #fff;
  border-color: #E4405F;
}

.share-btn.substack:hover {
  background: #FF6719;
  color: #fff;
  border-color: #FF6719;
}

/* Redes sociales footer */
.social-footer {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.5rem 0;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.social-footer .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.social-footer .social-btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.social-footer .social-btn.instagram:hover {
  background: #E4405F;
  color: #fff;
  border-color: #E4405F;
}

.social-footer .social-btn.tiktok:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.social-footer .social-btn.demoreel:hover {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}

/* Imágenes dentro de ensayos */
.imagen-ensayo {
  margin: 2.5rem 0;
  text-align: center;
}

.imagen-ensayo img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.imagen-ensayo figcaption {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
  font-style: italic;
  transition: color 0.3s ease;
}

/*  Footer */
.site-footer {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.footer-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1.5rem;
}

.footer-texto {
  text-align: center;
}

.footer-texto p {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  margin: 0.3rem 0;
  transition: color 0.3s ease;
}

.footer-imagen {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-imagen:hover {
  opacity: 0.8;
  transform: scale(0.98);
}

.footer-imagen img {
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-imagen img:hover {
  opacity: 1;
}

/* Volver arriba*/
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(14,165,164,0.3);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: scale(1.1);
  background: var(--teal-dim);
}

/* Enlaces tipo Wikipedia */
.wikilink {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.wikilink:hover {
  border-bottom-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

/* Bloque destacado */
.destacado {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  padding: 1.25rem 1.8rem;
  margin: 2rem 0;
  border-left: 4px solid var(--teal);
  background: rgba(14, 165, 164, 0.06);
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
  font-style: italic;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* Mapa conceptual */
.mapa-conceptual {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 2rem;
  border-bottom: 1px solid var(--line);
}

.mapa-conceptual h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.mapa-desc {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}

.mapa-leyenda {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 0.8rem;
  opacity: 0.7;
}

#mapa-container {
  width: 100%;
  height: 500px;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

#mapa-container svg {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

/* Nodos */
.node {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.node:hover {
  filter: brightness(1.2);
}

.node circle {
  stroke: var(--bg);
  stroke-width: 2;
  transition: r 0.2s ease, stroke-width 0.2s ease;
}

.node text {
  fill: var(--text);
  font-family: var(--mono);
  font-size: 9px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.02em;
}

.node text.highlight {
  fill: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Links */
.link {
  stroke: var(--line);
  stroke-opacity: 0.3;
  stroke-width: 1.5;
  transition: stroke-opacity 0.3s ease, stroke-width 0.3s ease;
}

.link.active {
  stroke: var(--teal);
  stroke-opacity: 0.8;
  stroke-width: 2.5;
}

.link.highlight {
  stroke: var(--teal);
  stroke-opacity: 0.9;
  stroke-width: 3;
}

/* Tooltip del mapa */
.mapa-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 100;
}

.mapa-tooltip.visible {
  opacity: 1;
}

.mapa-tooltip strong {
  color: var(--teal);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}

.mapa-tooltip .tooltip-count {
  color: var(--text-faint);
  font-size: 0.7rem;
}

.mapa-tooltip .tooltip-entries {
  color: var(--text-dim);
  font-size: 0.65rem;
  margin-top: 0.2rem;
  font-style: italic;
}

/* Estado vacío */
.mapa-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.9rem;
  gap: 0.5rem;
}

.mapa-empty span {
  font-size: 2rem;
}

/* About Page */
.about-page {
  max-width: var(--col-read);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  min-height: 60vh;
}

.about-page .about-contenido h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  margin: 0 0 1.5rem;
  text-align: center;
}

.about-page .about-contenido p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 0 0 1.5rem;
}

.about-page .about-contenido p strong {
  color: var(--text);
}

.about-page .about-contenido p:last-of-type {
  margin-bottom: 2rem;
}

.about-footer {
  text-align: center;
  margin-top: 1rem;
}

.btn-volver {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-elevated);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-volver:hover {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 640px) {
  .entry-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .entry-piece { order: -1; }
  .entry-meta { text-align: left; }
  .site-header { padding-top: 2rem; }
  #contenido {
    padding: 1.5rem 1.5rem 6rem;
  }
  .skeleton-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .skeleton-meta {
    align-items: flex-start;
  }
  .skeleton-reading {
    padding: 1.5rem 1.5rem 6rem;
  }
  .footer-imagen img {
    max-width: 150px;
  }
  .archive-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100%;
  }
  .archive-actions {
    flex-wrap: wrap;
  }
  #back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .share-buttons {
    gap: 0.4rem;
  }
  .share-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  .social-footer {
    gap: 0.8rem;
    padding: 0.6rem 0;
  }
  .social-footer .social-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    gap: 0.3rem;
  }
  #mapa-container {
    height: 350px;
    border-radius: 8px;
  }
  .mapa-conceptual h2 {
    font-size: 1.3rem;
  }
  .mapa-desc {
    font-size: 0.7rem;
  }
  .node text {
    font-size: 7px;
  }
  .transmedia-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }
  .transmedia-semana {
    flex-direction: row;
    gap: 0.8rem;
    justify-content: flex-start;
  }
  .semana-numero {
    font-size: 1.2rem;
  }
  .semana-label {
    font-size: 0.7rem;
  }
  .transmedia-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .qr-mini img {
    width: 40px;
    height: 40px;
  }
  .transmedia-embed iframe {
    height: 300px;
  }
  .about-page {
    padding: 1.5rem 1rem 3rem;
  }
  .about-page .about-contenido h1 {
    font-size: 1.6rem;
  }
  .about-page .about-contenido p {
    font-size: 0.98rem;
  }
  .btn-volver {
    font-size: 0.75rem;
    padding: 0.5rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .entry-row {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .skeleton {
    animation: none;
  }
}
