/* ==========================================================================
   Blog de ClaudiaMind — estilos
   Basado en el sistema de diseño de la landing (chat_ai_frontend):
   IBM Plex Sans · primario #6c5ffc · texto #282f53 · fondos #fff / #f8f9fb
   ========================================================================== */

:root {
  --primary-rgb: 108, 95, 252;
  --primary: #6c5ffc;
  --primary-hover: #5b4ee6;
  --primary-01: rgba(var(--primary-rgb), 0.1);
  --primary-02: rgba(var(--primary-rgb), 0.2);
  --primary-gradient: linear-gradient(to bottom right, #6c5ffc 0%, #8e77fa 100%);
  --brand-gradient: linear-gradient(135deg, #34d5ff 0%, #6c5ffc 55%, #a86cf5 100%);
  --text: #282f53;
  --text-muted: #6b7290;
  --text-light: #8a90ad;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --bg-body: #f0f0f5;
  --border: #e9edf4;
  --card-shadow: 0 4px 25px 0 rgba(168, 180, 208, 0.1);
  --card-shadow-hover: 0px 16px 32px rgba(33, 33, 33, 0.15);
  --warning: #f7b731;
  --success: #09ad95;
  --info: #1170e4;
  --danger: #e82646;
  --radius: 7px;
  --radius-lg: 24px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --container: 1140px;
  --post-width: 780px;
  --header-h: 72px;
}

/* ---------- reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block-start: 0;
  margin-block-end: 0.66em;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
code,
kbd,
pre {
  font-family: var(--mono);
}
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .container { padding-inline: 24px; }
}
.section {
  padding: 70px 0;
}
.bg-landing {
  background-color: var(--bg-soft);
}
.section-heading {
  font-size: 1.4rem;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.landing-title {
  display: block;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  height: 1px;
  margin: 0 auto 10px;
  width: 70px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
  color: #fff;
}

/* ---------- botones (mismos nombres que la landing) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.55rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-lg {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
}
.btn-primary {
  color: #fff !important;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 5px 10px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}
.btn-outline-primary {
  color: var(--primary);
  background: transparent;
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  color: #fff;
  background: var(--primary);
}

/* ---------- badges / chips ---------- */
.badge {
  display: inline-block;
  padding: 4px 9px;
  line-height: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-primary {
  background: var(--primary-01);
  color: var(--primary);
}
.badge-primary:hover {
  background: var(--primary);
  color: #fff;
}
.badge-warning {
  background: rgba(247, 183, 49, 0.15);
  color: #b57d0a;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.chip:hover,
.chip.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-01);
}
.chip__count {
  font-size: 0.72rem;
  color: var(--text-light);
}
.chip--tag {
  font-size: 0.8rem;
  padding: 4px 10px;
}

/* ---------- card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid transparent;
}
.card-body {
  padding: 1.5rem;
}

/* ==========================================================================
   Header (replica .landing-top-header .top / .sticky.stickyClass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.stickyClass {
  border-bottom-color: #ebedfa;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.navbar-brand img {
  width: 190px;
  height: auto;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.side-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}
.side-menu__item {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-transform: capitalize;
  padding: 6px 0;
  position: relative;
}
.side-menu__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}
.side-menu__item:hover,
.side-menu__item.active {
  color: var(--primary);
}
.side-menu__item.active {
  font-weight: 600;
}
.side-menu__item:hover::after,
.side-menu__item.active::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  .navbar-brand img { width: 150px; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid #ebedfa;
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.08);
  }
  .site-nav.open { display: flex; }
  .side-menu { flex-direction: column; gap: 0; }
  .side-menu__item {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }
  .side-menu__item::after { display: none; }
  .btn-cta { margin-top: 8px; }
}

/* ==========================================================================
   Hero del blog (replica .landing-top-header con la ola de fondo)
   ========================================================================== */
.landing-top-header {
  position: relative;
  background-image: url(../img/header-bg.png);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}
.blog-hero {
  padding: 56px 0 40px;
}
.blog-hero__kicker {
  margin-bottom: 8px;
  color: var(--text-muted);
}
.blog-hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.25;
  max-width: 760px;
  margin-bottom: 14px;
}
.blog-hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 24px;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] {
  color: var(--text-light);
  max-width: min(420px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Listado de entradas
   ========================================================================== */
.blog-list {
  padding-top: 40px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}
.post-card__media {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__media img {
  transform: scale(1.04);
}
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.post-card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.post-card__title a {
  color: var(--text);
}
.post-card__title a:hover {
  color: var(--primary);
}
.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: auto;
}
.post-card__more svg {
  transition: transform 0.2s ease;
}
.post-card__more:hover svg {
  transform: translateX(3px);
}

/* destacado */
.post-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  margin-bottom: 48px;
  transition: box-shadow 0.25s ease;
}
.post-featured:hover {
  box-shadow: var(--card-shadow-hover);
}
.post-featured__media {
  display: block;
  min-height: 300px;
  background: var(--bg-soft);
}
.post-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-featured__body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-featured__title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
.post-featured__title a { color: var(--text); }
.post-featured__title a:hover { color: var(--primary); }
.post-featured__excerpt {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-featured .btn { align-self: flex-start; }
@media (max-width: 767px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__media { aspect-ratio: 5 / 3; min-height: 0; }
  .post-featured__body { padding: 1.5rem; }
  .post-featured__title { font-size: 1.4rem; }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.pagination__info {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.empty-state {
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   Entrada individual
   ========================================================================== */
.post-container {
  max-width: var(--post-width);
}
.post-header {
  padding: 40px 0 36px;
}
.post-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 14px 0 12px;
}
.post-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.post-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.post-cover {
  margin: 0 0 32px;
}
.post-cover img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

/* "En resumen" (respuesta directa para lectores y LLMs) */
.key-points {
  padding: 1.25rem 1.5rem;
  margin-bottom: 28px;
  border-left: 4px solid var(--primary);
  background: linear-gradient(to right, var(--primary-01), #fff 70%);
}
.key-points h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
}
.key-points ul {
  margin: 0;
  padding-left: 1.2rem;
}
.key-points li {
  margin-bottom: 6px;
}
.key-points li:last-child { margin-bottom: 0; }

/* tabla de contenidos */
.toc {
  margin-bottom: 32px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.92rem;
}
.toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.toc li { margin: 4px 0; padding-left: 14px; position: relative; }
.toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}
.toc li.toc__l3 { margin-left: 1.25rem; }
.toc li.toc__l3::before { width: 4px; height: 4px; top: 0.7em; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* cuerpo del artículo */
.post-body {
  font-size: 1.06rem;
  line-height: 1.75;
}
.post-body > *:first-child { margin-top: 0; }
.post-body h2 {
  font-size: 1.6rem;
  margin: 2.2em 0 0.7em;
  padding-top: 0.2em;
}
.post-body h3 {
  font-size: 1.25rem;
  margin: 1.8em 0 0.6em;
}
.post-body h4 {
  font-size: 1.05rem;
  margin: 1.5em 0 0.5em;
}
.post-body h2,
.post-body h3,
.post-body h4 {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.post-body .anchor {
  position: absolute;
  left: -1.3em;
  color: var(--text-light);
  opacity: 0;
  font-weight: 400;
  transition: opacity 0.2s ease;
}
.post-body h2:hover .anchor,
.post-body h3:hover .anchor,
.post-body h4:hover .anchor {
  opacity: 1;
}
.post-body p { margin-bottom: 1.25em; }
.post-body a {
  text-decoration: underline;
  text-decoration-color: var(--primary-02);
  text-underline-offset: 3px;
}
.post-body a:hover { text-decoration-color: var(--primary); }
.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
}
.post-body li { margin-bottom: 0.4em; }
.post-body li > ul,
.post-body li > ol { margin-top: 0.4em; margin-bottom: 0; }
.post-body strong { font-weight: 600; }
.post-body blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}
.post-body code {
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: var(--primary-01);
  color: #4d3fd6;
}
.post-body pre {
  margin: 1.5em 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: #1a1a3c;
  color: #dedefd;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}
.post-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}
.post-figure {
  margin: 1.75em 0;
  text-align: center;
}
.post-figure img {
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.post-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.table-wrap {
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0;
}
.post-body th,
.post-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.post-body th {
  background: var(--bg-soft);
  font-weight: 600;
}
.post-body tr:last-child td { border-bottom: 0; }
.post-body img { max-width: 100%; }

/* tags / compartir / navegación */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 20px;
}
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.post-share > span { color: var(--text-muted); font-weight: 600; }
.post-share a,
.post-share button {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.post-share a:hover,
.post-share button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-01);
}
.post-share .md-link { margin-left: auto; color: var(--text-light); }
.post-share button.copied { border-color: var(--success); color: var(--success); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 56px;
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.2s ease;
}
.post-nav__item small { color: var(--text-light); font-size: 0.78rem; }
.post-nav__item span { font-weight: 600; font-size: 0.95rem; }
.post-nav__item:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--card-shadow);
}
.post-nav__next { text-align: right; }
@media (max-width: 575px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { text-align: left; }
}
.related .post-grid { margin-top: 32px; }

/* ==========================================================================
   CTA (replica el hero de la landing)
   ========================================================================== */
.cta-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 2.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 26% 74% 73% 27% / 30% 49% 51% 70%;
  background: var(--brand-gradient);
  opacity: 0.1;
  pointer-events: none;
}
.cta-box h4 { color: var(--text-muted); margin-bottom: 6px; }
.cta-box .landing-title { margin-left: 0; }
.cta-box h2 { font-size: 1.7rem; }
.cta-box p { color: var(--text-muted); margin: 0; }
.cta-box__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
@media (max-width: 767px) {
  .cta-box { grid-template-columns: 1fr; padding: 1.75rem; }
  .cta-box h2 { font-size: 1.4rem; }
}

/* ==========================================================================
   Footer (replica .demo-footer)
   ========================================================================== */
.demo-footer {
  background-color: var(--bg-soft);
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-logo img { width: 150px; }
.footer-tagline {
  color: var(--text-muted);
  margin: 12px 0 20px;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--text);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-copy .heart { vertical-align: -3px; }

/* ---------- back to top (replica #back-to-top) ---------- */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* ---------- 404 ---------- */
.error-page h1 {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.error-page .lead {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---------- impresión ---------- */
@media print {
  .site-header, .demo-footer, #back-to-top, .post-share, .post-nav, .cta-box, .related { display: none !important; }
  .post-body { font-size: 12pt; }
}
