/* ================================================================
   CRISTOFER CRUZ — Estilos comunes del blog
   Se cargan en el listado (/blog) y en cada post individual.
   Hereda de los design tokens de :root definidos en cada página.
   ================================================================ */

/* -------- Reading progress bar (fixed top) -------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--coral, #F76D7B), var(--teal, #3DDBD9));
  z-index: 200;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ================================================================
   LISTADO DE POSTS
   ================================================================ */
.blog-hero {
  padding: 88px 0 56px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(247, 109, 123, 0.16), transparent 65%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; max-width: 900px; }
.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
  margin-bottom: 20px;
}
.blog-hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--coral, #F76D7B);
}
.blog-hero h1 {
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.blog-hero h1 .accent { color: var(--coral, #F76D7B); }
.blog-hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin-bottom: 24px;
}

/* -------- Filter chips (categorías) -------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}
.blog-filter:hover {
  border-color: var(--coral, #F76D7B);
  color: var(--coral, #F76D7B);
}
.blog-filter.is-active {
  background: var(--coral, #F76D7B);
  border-color: var(--coral, #F76D7B);
  color: var(--navy, #000A5E);
}
.blog-filter-count {
  font-size: 10px;
  opacity: 0.7;
}

/* -------- Grid de posts -------- */
.blog-list {
  padding: 32px 0 96px;
}
.blog-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 109, 123, 0.4);
}
.blog-card__thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy-elev, #0B1670) 0%, var(--navy, #000A5E) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.blog-card__thumb::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(247, 109, 123, 0.35), transparent 65%);
  pointer-events: none;
}
.blog-card.is-teal .blog-card__thumb::before {
  background: radial-gradient(circle, rgba(61, 219, 217, 0.30), transparent 65%);
}
.blog-card__tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 6, 47, 0.6);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
}
.blog-card.is-teal .blog-card__tag { color: var(--teal, #3DDBD9); }
.blog-card__arrow {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral, #F76D7B);
  color: var(--navy, #000A5E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  transition: transform 0.3s;
  z-index: 1;
}
.blog-card.is-teal .blog-card__arrow { background: var(--teal, #3DDBD9); }
.blog-card:hover .blog-card__arrow { transform: translate(4px, -4px) rotate(-8deg); }
.blog-card__body {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.blog-card__meta > span + span::before {
  content: '·';
  margin-right: 12px;
  color: var(--coral, #F76D7B);
}
.blog-card__title {
  font-family: var(--f-display, 'Mulish', sans-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white, #fff);
  margin-bottom: 12px;
  flex: 1;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card__title a:hover { color: var(--coral, #F76D7B); }
.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
  transition: gap 0.2s;
}
.blog-card__link:hover { gap: 12px; }
.blog-card__link::after { content: '→'; font-family: system-ui; }

/* -------- Empty state -------- */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
}

/* -------- Paginación -------- */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.blog-pagination__btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white, #fff);
  font-family: var(--f-display, 'Mulish', sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.blog-pagination__btn:hover:not([disabled]):not(.is-active) {
  border-color: var(--coral, #F76D7B);
  color: var(--coral, #F76D7B);
}
.blog-pagination__btn.is-active {
  background: var(--coral, #F76D7B);
  border-color: var(--coral, #F76D7B);
  color: var(--navy, #000A5E);
  cursor: default;
}
.blog-pagination__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.blog-pagination__ellipsis {
  color: rgba(255,255,255,0.4);
  padding: 0 6px;
  font-weight: 800;
}

/* ================================================================
   POST INDIVIDUAL — Layout con TOC lateral (sticky)
   ================================================================ */
.post-hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(247, 109, 123, 0.14), transparent 65%);
  pointer-events: none;
}
.post-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--coral, #F76D7B); }
.breadcrumb span[aria-current] { color: var(--coral, #F76D7B); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.post-meta .post-cat {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 109, 123, 0.14);
  color: var(--coral, #F76D7B);
  border: 1px solid rgba(247, 109, 123, 0.3);
  font-size: 11px;
}
.post-meta .post-date::before,
.post-meta .post-read::before {
  content: '·';
  margin-right: 20px;
  color: var(--coral, #F76D7B);
}
.post-meta > *:first-child::before { display: none; }
.post-meta .post-date,
.post-meta .post-read {
  display: inline-flex;
  align-items: center;
}
.post-hero h1 {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-transform: none;
  font-weight: 900;
}
.post-hero__lead {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 780px;
  margin-bottom: 32px;
}

/* -------- Featured image -------- */
.post-featured {
  margin: 24px 0 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 21 / 9;
  position: relative;
  background: linear-gradient(135deg, var(--navy-elev, #0B1670) 0%, var(--navy-deep, #00062F) 100%);
}
.post-featured::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle, rgba(247, 109, 123, 0.4), transparent 65%);
  pointer-events: none;
}
.post-featured::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(61, 219, 217, 0.28), transparent 65%);
  pointer-events: none;
}
.post-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------- Layout artículo + TOC lateral -------- */
.post-layout {
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: flex-start;
}

/* Tabla de contenidos (sticky) */
.post-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}
.post-toc__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
  margin-bottom: 16px;
}
.post-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.post-toc__list li { margin: 0; }
.post-toc__list a {
  display: block;
  padding: 10px 16px;
  margin-left: -1px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.65);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.post-toc__list a:hover {
  color: var(--white, #fff);
  border-left-color: rgba(247, 109, 123, 0.5);
}
.post-toc__list a.is-active {
  color: var(--coral, #F76D7B);
  border-left-color: var(--coral, #F76D7B);
  background: rgba(247, 109, 123, 0.06);
  font-weight: 700;
}
.post-toc__list .is-h3 a {
  padding-left: 30px;
  font-size: 12px;
}

/* Sidebar aside (share, autor) */
.post-aside {
  position: sticky;
  top: 100px;
}
.post-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-share__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--white, #fff);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.post-share__btn:hover {
  border-color: var(--coral, #F76D7B);
  color: var(--coral, #F76D7B);
  transform: translateX(3px);
}
.post-share__btn.is-copied {
  background: rgba(61, 219, 217, 0.14);
  border-color: var(--teal, #3DDBD9);
  color: var(--teal, #3DDBD9);
}
.post-share__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ================================================================
   CONTENIDO DEL ARTÍCULO (prose)
   ================================================================ */
.post-content {
  min-width: 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
}
.post-content > * { scroll-margin-top: 96px; }
.post-content h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 56px 0 20px;
  color: var(--white, #fff);
  text-transform: none;
  scroll-margin-top: 96px;
}
.post-content h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--coral, #F76D7B);
  margin-bottom: 16px;
  border-radius: 2px;
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 40px 0 16px;
  color: var(--white, #fff);
  text-transform: none;
}
.post-content p {
  margin-bottom: 20px;
  color: rgba(255,255,255,0.85);
}
.post-content p strong { color: var(--white, #fff); font-weight: 800; }
.post-content p em { color: rgba(255,255,255,0.9); }
.post-content a {
  color: var(--coral, #F76D7B);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.post-content a:hover { color: var(--coral-glow, #FF8593); }
.post-content ul,
.post-content ol {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}
.post-content ul li,
.post-content ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.85);
}
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--coral, #F76D7B);
  border-radius: 50%;
}
.post-content ol { counter-reset: post-ol; }
.post-content ol li {
  counter-increment: post-ol;
  padding-left: 44px;
}
.post-content ol li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(247, 109, 123, 0.14);
  border: 1px solid rgba(247, 109, 123, 0.35);
  color: var(--coral, #F76D7B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.post-content li strong { color: var(--white, #fff); font-weight: 800; }

/* Imágenes dentro del artículo */
.post-content figure {
  margin: 32px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--navy-deep, #00062F);
}
.post-content figure img { width: 100%; height: auto; display: block; }
.post-content figcaption {
  padding: 12px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
  background: rgba(0, 6, 47, 0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-style: italic;
}

/* Blockquote con atribución */
.post-content blockquote {
  margin: 40px 0;
  padding: 32px 36px 28px;
  background: linear-gradient(135deg, rgba(247, 109, 123, 0.08), rgba(61, 219, 217, 0.04));
  border-left: 4px solid var(--coral, #F76D7B);
  border-radius: 0 20px 20px 0;
  font-size: 20px;
  line-height: 1.5;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  position: relative;
}
.post-content blockquote::before {
  content: '“';
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: 'Georgia', serif;
  font-size: 80px;
  line-height: 1;
  color: var(--coral, #F76D7B);
  opacity: 0.35;
  pointer-events: none;
}
.post-content blockquote p { margin-bottom: 12px; }
.post-content blockquote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
  margin-top: 12px;
}
.post-content blockquote cite::before { content: '— '; }

/* Callout / caja destacada */
.post-content .callout {
  margin: 32px 0;
  padding: 24px 28px;
  background: rgba(61, 219, 217, 0.06);
  border: 1px solid rgba(61, 219, 217, 0.3);
  border-radius: 20px;
  position: relative;
  padding-left: 68px;
}
.post-content .callout::before {
  content: '💡';
  position: absolute;
  left: 24px;
  top: 24px;
  font-size: 24px;
  line-height: 1;
}
.post-content .callout > *:last-child { margin-bottom: 0; }
.post-content .callout--warn { background: rgba(247, 109, 123, 0.06); border-color: rgba(247, 109, 123, 0.3); }
.post-content .callout--warn::before { content: '⚠️'; }

/* Tabla estilizada (para comparativas o rangos) */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.post-content table th,
.post-content table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.post-content table th {
  background: rgba(247, 109, 123, 0.1);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
}
.post-content table tr:last-child td { border-bottom: none; }

/* Etiquetas / chips inline */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.post-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ================================================================
   PIE DEL ARTÍCULO — CTA + navegación entre posts + relacionados
   ================================================================ */
.post-cta {
  margin-top: 80px;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--navy-elev, #0B1670) 0%, var(--navy-deep, #00062F) 100%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(247, 109, 123, 0.14), transparent 65%);
  pointer-events: none;
}
.post-cta__body { position: relative; z-index: 1; }
.post-cta__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
  margin-bottom: 12px;
}
.post-cta h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--white, #fff);
  text-transform: none;
}
.post-cta h2::before { display: none; }
.post-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  margin: 0;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.post-nav__item {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: block;
}
.post-nav__item:hover {
  border-color: rgba(247, 109, 123, 0.4);
  transform: translateY(-3px);
}
.post-nav__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral, #F76D7B);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-nav__title {
  font-family: var(--f-display, 'Mulish', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--white, #fff);
  line-height: 1.3;
}
.post-nav__item.is-next { text-align: right; }
.post-nav__item.is-next .post-nav__label { justify-content: flex-end; }

/* -------- Related posts -------- */
.related-posts {
  padding: 72px 0 96px;
  background: var(--navy-elev, #0B1670);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.related-posts h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--white, #fff);
  text-transform: none;
}
.related-posts h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--coral, #F76D7B);
  margin-bottom: 16px;
  border-radius: 2px;
}

/* -------- Back to top -------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral, #F76D7B);
  color: var(--navy, #000A5E);
  border: none;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--coral-glow, #FF8593);
  transform: translateY(-3px);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1180px) {
  .post-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }
  .post-aside { display: none; }
}

@media (max-width: 1024px) {
  .blog-grid-wrap { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 72px;
  }
  .post-toc {
    position: static;
    max-height: none;
    padding-right: 0;
    order: -1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 24px;
  }
  .post-toc__list { border-left: none; }
  .post-toc__list a { padding-left: 14px; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .post-toc__list li:last-child a { border-bottom: none; }
  .post-toc__list a.is-active { background: rgba(247, 109, 123, 0.1); border-left: none; border-radius: 8px; }
  .post-toc__list .is-h3 a { padding-left: 26px; font-size: 12px; }

  .post-cta { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-grid-wrap { grid-template-columns: 1fr; }
  .blog-list { padding: 20px 0 72px; }
  .blog-hero { padding: 48px 0 32px; }
  .post-hero { padding: 32px 0 24px; }
  .post-content { font-size: 16px; }
  .post-content h2 { margin-top: 40px; font-size: 24px; }
  .post-content h3 { font-size: 19px; margin-top: 28px; }
  .post-content blockquote { padding: 24px 22px; font-size: 17px; margin: 32px -4px; }
  .post-content .callout { padding: 20px 20px 20px 60px; }
  .post-cta { padding: 32px 20px; }
  .post-cta h2 { font-size: 22px; }
  .related-posts { padding: 56px 0 72px; }
  .back-to-top { right: 16px; bottom: 88px; width: 44px; height: 44px; }
  .blog-pagination { gap: 4px; margin-top: 40px; }
  .blog-pagination__btn { min-width: 40px; height: 40px; padding: 0 10px; }
}
