/* ================================================
   OPUS BLOG — Kinetic Clarity Redesign
   Editorial performance + athletic precision
   ================================================ */

:root {
  --blog-bg: #080808;
  --blog-surface: #121212;
  --blog-surface-2: #1a1a1a;
  --blog-line: rgba(255, 255, 255, 0.08);
  --blog-line-strong: rgba(255, 255, 255, 0.15);
  --blog-text: #f2efe9;
  --blog-muted: #b0aaa0;
  --blog-dim: #6b6560;
  --blog-red: #e31e24;
  --blog-amber: #f59e0b;
  --blog-green: #22c55e;
  --blog-blue: #38bdf8;
  --blog-violet: #a78bfa;
  --blog-radius: 8px;
  --blog-radius-lg: 10px;
  --blog-max: 1180px;
  --blog-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --blog-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --blog-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --blog-body-font: 'Source Sans 3', 'Inter', sans-serif;
}

/* ── Base overrides ── */
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 60% at 15% 5%, rgba(227, 30, 36, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(245, 158, 11, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(227, 30, 36, 0.04), transparent 40%),
    var(--blog-bg) !important;
}

/* ── Reading progress bar (JS-driven, CSS fallback) ── */
.blog-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blog-red), var(--blog-amber));
  pointer-events: none;
  transition: width 120ms linear;
}

@supports (animation-timeline: scroll()) and (not (selector(::-webkit-scrollbar))) {
  .blog-progress-bar {
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    animation: blogReadingProgress linear both;
    animation-timeline: scroll(root block);
    transition: none;
  }
  @keyframes blogReadingProgress { to { transform: scaleX(1); } }
}

/* ── A11y ── */
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(227, 30, 36, 0.85);
  outline-offset: 4px;
}

/* ── Scroll reveal ── */
.blog-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 640ms var(--blog-ease-out), transform 640ms var(--blog-ease-out);
}
.blog-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.blog-header {
  position: relative;
  overflow: hidden;
  padding: 132px 24px 78px;
  border-bottom: 1px solid var(--blog-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(227, 30, 36, 0.1), transparent 42%),
    #080808;
}

.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 82%);
}

.blog-header::after {
  content: 'OPUS';
  position: absolute;
  right: max(20px, calc((100vw - var(--blog-max)) / 2));
  bottom: -0.18em;
  color: rgba(255, 255, 255, 0.02);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(8rem, 21vw, 19rem);
  line-height: 0.8;
  letter-spacing: 0;
  pointer-events: none;
}

.blog-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--blog-max);
  margin: 0 auto;
}

.blog-index-hero .blog-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
}

.blog-hero-copy { max-width: 740px; }

/* ── Typography ── */
.blog-eyebrow,
.blog-panel-label,
.blog-section-kicker,
.blog-card-category,
.blog-card-time,
.blog-stat-label {
  font-family: var(--blog-body-font);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--blog-red);
  margin-bottom: 22px;
}

.blog-eyebrow-line {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--blog-red), transparent);
  animation: eyebrowPulse 2.4s ease-in-out infinite;
}

@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.blog-title {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.8rem, 9vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-wrap: balance;
}

.blog-subtitle {
  max-width: 660px;
  margin: 0;
  color: var(--blog-muted);
  font-family: var(--blog-body-font);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}

/* ── Hero Actions ── */
.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.blog-primary-link,
.blog-secondary-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--blog-radius);
  padding: 12px 18px;
  font-family: var(--blog-body-font);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 240ms var(--blog-ease),
    border-color 240ms var(--blog-ease),
    background 240ms var(--blog-ease),
    color 240ms var(--blog-ease),
    box-shadow 240ms var(--blog-ease);
  touch-action: manipulation;
}

.blog-primary-link {
  border: 1px solid var(--blog-red);
  background: var(--blog-red);
  color: #fff;
  box-shadow: 0 18px 44px rgba(227, 30, 36, 0.22);
}

.blog-secondary-link {
  border: 1px solid var(--blog-line-strong);
  color: var(--blog-text);
  background: rgba(255, 255, 255, 0.035);
}

.blog-primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(227, 30, 36, 0.32);
}

.blog-secondary-link:hover {
  border-color: rgba(227, 30, 36, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

.blog-primary-link svg,
.blog-secondary-link svg {
  transition: transform 240ms var(--blog-ease);
}
.blog-primary-link:hover svg,
.blog-secondary-link:hover svg {
  transform: translateX(3px);
}

/* ── Hero Meta ── */
.blog-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 18px;
  margin-top: 42px;
}

.blog-stat {
  min-width: 112px;
  padding: 0 18px 0 0;
}

.blog-stat-number {
  display: block;
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 0.9;
}

.blog-stat-label {
  display: block;
  color: var(--blog-dim);
  margin-top: 8px;
}

.blog-stat-divider {
  width: 1px;
  min-height: 54px;
  background: var(--blog-line);
}

/* ── Hero Panel ── */
.blog-hero-panel {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--blog-line-strong);
  border-radius: var(--blog-radius-lg);
  background:
    linear-gradient(145deg, rgba(227, 30, 36, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #121210;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.45);
}

.blog-hero-panel::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  pointer-events: none;
}

.blog-hero-product {
  position: absolute;
  inset: 24px 24px auto;
  height: 280px;
  display: grid;
  place-items: center;
}

.blog-hero-product::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.28), transparent 68%);
  filter: blur(4px);
  animation: heroGlow 3s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.blog-hero-product img {
  position: relative;
  width: min(78%, 270px);
  height: auto;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.5));
  transform: rotate(-4deg);
  animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}

.blog-hero-panel-content {
  position: relative;
  z-index: 1;
  padding: 330px 30px 30px;
}

.blog-panel-label {
  display: inline-flex;
  color: var(--blog-amber);
  margin-bottom: 12px;
}

.blog-hero-panel h2,
.blog-editorial-card h2,
.blog-bottom-cta h2 {
  margin: 0;
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.15rem, 4.4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.blog-hero-panel p,
.blog-editorial-card p,
.blog-bottom-cta p {
  color: var(--blog-muted);
  font-family: var(--blog-body-font);
  font-size: 1rem;
  line-height: 1.55;
}

.blog-hero-panel a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--blog-body-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 220ms var(--blog-ease);
}
.blog-hero-panel a:hover { gap: 16px; }

/* ── Main ── */
.blog-home {
  position: relative;
  isolation: isolate;
  padding-bottom: 88px;
}

/* ── Topic Strip ── */
.blog-topic-strip {
  position: relative;
  z-index: 2;
  max-width: var(--blog-max);
  margin: -28px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-topic-strip::-webkit-scrollbar { display: none; }

.blog-topic-chip {
  min-height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blog-line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--blog-text);
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(6px);
  font-family: var(--blog-body-font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 220ms var(--blog-ease),
    border-color 220ms var(--blog-ease),
    transform 220ms var(--blog-ease),
    color 220ms var(--blog-ease);
}

.blog-topic-chip:hover,
.blog-topic-chip.active {
  border-color: rgba(227, 30, 36, 0.55);
  background: rgba(227, 30, 36, 0.16);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Editorial Band ── */
.blog-editorial-band {
  max-width: var(--blog-max);
  margin: 76px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 18px;
}

.blog-editorial-card,
.blog-editorial-metrics,
.blog-bottom-cta {
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--blog-surface);
}

.blog-editorial-card { padding: clamp(26px, 5vw, 44px); }

.blog-editorial-metrics {
  display: grid;
  grid-template-columns: 1fr;
}

.blog-editorial-metrics div {
  padding: 22px 26px;
  border-bottom: 1px solid var(--blog-line);
}

.blog-editorial-metrics div:last-child { border-bottom: 0; }

.blog-editorial-metrics strong {
  display: block;
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 0.88;
}

.blog-editorial-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--blog-dim);
  font-family: var(--blog-body-font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Section Header ── */
.blog-section-header {
  max-width: var(--blog-max);
  margin: 82px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: end;
  gap: 24px;
}

.blog-section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blog-red);
}

.blog-section-title {
  margin: 0;
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: none;
}

.blog-section-line {
  flex: 1;
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--blog-line-strong), transparent);
}

/* ── Card Grid ── */
.blog-grid {
  max-width: var(--blog-max);
  margin: 0 auto;
  padding: 30px 24px 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.blog-home .blog-card {
  --card-accent: var(--blog-red);
  grid-column: span 4;
  min-height: 440px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    var(--blog-surface);
  text-decoration: none;
  transition:
    transform 320ms var(--blog-ease-spring),
    border-color 320ms var(--blog-ease),
    box-shadow 320ms var(--blog-ease);
}

.blog-home .blog-card--featured {
  grid-column: span 7;
  min-height: 560px;
}

.blog-home .blog-card--side {
  grid-column: span 5;
}

.blog-home .blog-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 65%, transparent 35%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}

/* Card accent overlay */
.blog-home .blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 28%, transparent 72%), transparent 38%),
    radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--card-accent) 18%, transparent 82%), transparent 22rem);
  opacity: 0.5;
  transition: opacity 320ms var(--blog-ease);
}

.blog-home .blog-card:hover::before { opacity: 0.85; }

/* Card bottom accent line */
.blog-home .blog-card::after {
  content: '';
  position: absolute;
  inset: auto 20px 20px 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--card-accent), transparent);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 320ms var(--blog-ease);
}
.blog-home .blog-card:hover::after { opacity: 0.8; }

/* ── Card Image ── */
.blog-card-img {
  position: relative;
  z-index: 1;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--blog-line);
}

.blog-home .blog-card--featured .blog-card-img { min-height: 284px; }

.blog-card-img::before {
  content: '';
  position: absolute;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 38%, transparent 62%), transparent 66%);
  filter: blur(2px);
  transition: transform 420ms var(--blog-ease), opacity 420ms var(--blog-ease);
}

.blog-home .blog-card:hover .blog-card-img::before {
  transform: scale(1.15);
  opacity: 0.9;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 44%, rgba(255, 255, 255, 0.06) 44% 45%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 34px;
  opacity: 0.5;
  pointer-events: none;
}

.blog-card-img svg {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  color: color-mix(in srgb, var(--card-accent) 72%, white 28%);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.32));
  transition:
    transform 360ms var(--blog-ease-spring),
    color 360ms var(--blog-ease);
}

.blog-home .blog-card--featured .blog-card-img svg {
  width: 112px;
  height: 112px;
}

.blog-home .blog-card:hover .blog-card-img svg {
  transform: translateY(-6px) rotate(-3deg) scale(1.06);
  color: #fff;
}

.blog-badge-new {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: var(--blog-red);
  font-family: var(--blog-body-font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: badgePulse 2s var(--blog-ease) infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(227, 30, 36, 0); }
}

/* ── Card Content ── */
.blog-card-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.blog-home .blog-card--featured .blog-card-content { padding: 34px; }

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.blog-card-category {
  color: color-mix(in srgb, var(--card-accent) 78%, white 22%);
}

.blog-card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blog-line-strong);
}

.blog-card-time {
  color: var(--blog-dim);
  letter-spacing: 0.08em;
}

.blog-card-title-link {
  color: var(--blog-text);
  font-family: var(--blog-body-font);
  font-size: clamp(1.24rem, 2vw, 1.52rem);
  font-weight: 800;
  line-height: 1.12;
  text-decoration: none;
  text-wrap: balance;
}

.blog-home .blog-card--featured .blog-card-title-link {
  max-width: 650px;
  font-size: clamp(1.9rem, 3.7vw, 3rem);
  line-height: 1;
}

.blog-card-title-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.blog-card-excerpt {
  flex: 1;
  margin: 16px 0 26px;
  color: var(--blog-muted);
  font-family: var(--blog-body-font);
  font-size: 1rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  position: relative;
  z-index: 3;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--card-accent) 70%, white 30%);
  font-family: var(--blog-body-font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 240ms var(--blog-ease), color 240ms var(--blog-ease);
}

.blog-home .blog-card:hover .blog-card-link {
  gap: 16px;
  color: #fff;
}

/* ── Card accent colours ── */
.blog-card[data-cat="fuerza"] { --card-accent: #e31e24; }
.blog-card[data-cat="salud"] { --card-accent: #22c55e; }
.blog-card[data-cat="grasa"] { --card-accent: #f59e0b; }
.blog-card[data-cat="recuperacion"] { --card-accent: #818cf8; }
.blog-card[data-cat="energia"] { --card-accent: #fb923c; }
.blog-card[data-cat="articular"] { --card-accent: #22d3ee; }
.blog-card[data-cat="principiantes"] { --card-accent: #a78bfa; }

/* ── Bottom CTA ── */
.blog-bottom-cta {
  max-width: var(--blog-max);
  margin: 76px auto 0;
  padding: clamp(26px, 5vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.blog-bottom-cta p {
  max-width: 650px;
  margin-bottom: 0;
}

/* ================================================
   ARTICLE PAGES
   ================================================ */

.blog-header .container {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}

.blog-meta {
  max-width: 660px;
  margin: 0 auto;
  color: var(--blog-muted);
  font-family: var(--blog-body-font);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}

.blog-meta strong { color: var(--blog-text); }

.back-to-blog {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
  color: var(--blog-muted);
  font-family: var(--blog-body-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms var(--blog-ease), transform 200ms var(--blog-ease);
}

.back-to-blog:hover {
  color: var(--blog-red);
  transform: translateX(-4px);
}

/* ── Article Content ── */
.blog-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 62px 24px;
  color: var(--blog-muted);
  font-family: var(--blog-body-font);
  font-size: 1.08rem;
  line-height: 1.82;
}

.blog-content > p:first-of-type {
  color: #ddd7cb;
  font-size: 1.2rem;
  line-height: 1.72;
}

.blog-content h2 {
  width: fit-content;
  margin: 3.4rem 0 1.1rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blog-red);
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4.8vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.blog-content h3 {
  margin: 2.4rem 0 0.9rem;
  color: #fff;
  font-family: var(--blog-body-font);
  font-size: 1.32rem;
  line-height: 1.2;
}

.blog-content p { margin: 0 0 1.45rem; }

.blog-content strong {
  color: #fff;
  font-weight: 800;
}

.blog-content ul,
.blog-content ol {
  margin: 1.8rem 0;
  padding-left: 0;
  list-style: none;
}

.blog-content li {
  position: relative;
  margin-bottom: 0.78rem;
  padding-left: 30px;
}

.blog-content ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blog-red);
}

.blog-content ol { counter-reset: blogCounter; }

.blog-content ol li { counter-increment: blogCounter; }

.blog-content ol li::before {
  content: counter(blogCounter) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blog-red);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
}

.blog-content a:not(.btn) {
  color: #fff;
  border-bottom: 1px solid rgba(227, 30, 36, 0.72);
  font-weight: 700;
  text-decoration: none;
  transition: color 200ms var(--blog-ease), border-color 200ms var(--blog-ease);
}

.blog-content a:not(.btn):hover {
  color: var(--blog-red);
  border-bottom-color: transparent;
}

.blog-content .blog-card,
.blog-content .warning-box {
  margin: 3rem 0;
  padding: 28px;
  border: 1px solid var(--blog-line);
  border-left: 4px solid var(--blog-red);
  border-radius: var(--blog-radius);
  background: var(--blog-surface);
}

.blog-content .warning-box {
  border-left-color: var(--blog-amber);
}

.blog-content .blog-card h3,
.blog-content .warning-box h3 { margin-top: 0; }

.blog-content .warning-box h3 { color: var(--blog-amber); }

.priority-badge {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blog-red);
  color: #fff;
  font-family: var(--blog-body-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ── Article CTA ── */
.blog-cta {
  position: relative;
  margin-top: 4rem;
  padding: clamp(30px, 7vw, 58px);
  text-align: center;
  border: 1px solid var(--blog-line-strong);
  border-radius: var(--blog-radius-lg);
  background:
    linear-gradient(135deg, rgba(227, 30, 36, 0.14), transparent 48%),
    var(--blog-surface);
}

.blog-cta h3 {
  margin-top: 0;
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.98;
}

/* ── Related Posts (styled to match card system) ── */
.articulos-relacionados {
  max-width: var(--blog-max);
  margin: 4rem auto 0;
  padding: 2rem 24px 0;
  border-top: 1px solid var(--blog-line);
}

.articulos-relacionados h2 {
  color: var(--blog-text);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 24px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius);
  background: var(--blog-surface);
  color: var(--blog-text);
  font-family: var(--blog-body-font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition:
    transform 240ms var(--blog-ease),
    border-color 240ms var(--blog-ease),
    background 240ms var(--blog-ease),
    color 240ms var(--blog-ease);
}

.related-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--blog-red);
  background: rgba(227, 30, 36, 0.12);
  color: #fff;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1100px) {
  .blog-index-hero .blog-header-inner,
  .blog-editorial-band,
  .blog-bottom-cta {
    grid-template-columns: 1fr;
  }

  .blog-hero-panel { min-height: 460px; }

  .blog-home .blog-card,
  .blog-home .blog-card--featured,
  .blog-home .blog-card--side {
    grid-column: span 6;
  }

  .blog-home .blog-card--featured { min-height: 500px; }
}

@media (max-width: 760px) {
  .blog-header {
    padding: 104px 18px 56px;
  }

  .blog-header::after {
    font-size: clamp(5rem, 18vw, 10rem);
    right: 8px;
  }

  .blog-title {
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .blog-hero-actions,
  .blog-header-meta { gap: 10px; }

  .blog-primary-link,
  .blog-secondary-link { width: 100%; }

  .blog-stat-divider { display: none; }

  .blog-stat {
    min-width: calc(50% - 10px);
    padding-right: 0;
  }

  .blog-hero-panel { min-height: 420px; }
  .blog-hero-product { height: 230px; }
  .blog-hero-panel-content { padding: 268px 22px 24px; }

  .blog-topic-strip {
    margin-top: -22px;
    padding-inline: 18px;
  }

  .blog-editorial-band,
  .blog-section-header,
  .blog-grid,
  .blog-bottom-cta {
    padding-inline: 18px;
  }

  .blog-editorial-band { margin-top: 54px; }

  .blog-section-header {
    margin-top: 62px;
    align-items: flex-start;
  }

  .blog-section-line { display: none; }
  .blog-section-title { white-space: normal; }

  .blog-home .blog-card,
  .blog-home .blog-card--featured,
  .blog-home .blog-card--side {
    grid-column: span 12;
    min-height: auto;
  }

  .blog-home .blog-card--featured .blog-card-img,
  .blog-card-img { min-height: 190px; }

  .blog-home .blog-card--featured .blog-card-content,
  .blog-card-content { padding: 24px; }

  .blog-bottom-cta .blog-primary-link { width: 100%; }

  .blog-content {
    padding: 48px 18px;
    font-size: 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .blog-stat { min-width: 100%; }

  .blog-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .blog-card-dot { display: none; }

  .blog-hero-panel-content {
    padding: 240px 18px 20px;
  }
}

/* ── Touch / Motion ── */
@media (hover: none) {
  .blog-home .blog-card:hover,
  .blog-topic-chip:hover,
  .blog-primary-link:hover,
  .blog-secondary-link:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
