/* Blog carrusel — tarjetas que se desplazan a la derecha con fade */
.blog {
  background: var(--c-cream);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.blog-carousel {
  position: relative;
  height: 360px;
  margin-top: 40px;
}
.blog-track {
  position: relative;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.blog-card {
  position: absolute;
  top: 0;
  width: clamp(420px, 56vw, 720px);
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--c-ink);
  box-shadow: var(--shadow-card);
  transition:
    left 1.1s cubic-bezier(.16,1,.3,1),
    opacity 1.1s cubic-bezier(.16,1,.3,1),
    transform 1.1s cubic-bezier(.16,1,.3,1),
    filter 1.1s cubic-bezier(.16,1,.3,1);
}
.blog-card[data-pos="0"] { left: 50%; transform: translateX(-50%) scale(1); opacity: 1; z-index: 4; filter: blur(0); }
.blog-card[data-pos="1"] { left: calc(50% + clamp(280px, 36vw, 480px)); transform: translateX(-50%) scale(.88); opacity: .42; z-index: 3; filter: blur(.5px); }
.blog-card[data-pos="2"] { left: calc(50% + clamp(480px, 60vw, 820px)); transform: translateX(-50%) scale(.78); opacity: .18; z-index: 2; filter: blur(1px); }
.blog-card[data-pos="3"] { left: calc(50% - clamp(280px, 36vw, 480px)); transform: translateX(-50%) scale(.88); opacity: .42; z-index: 3; filter: blur(.5px); }
.blog-card[data-pos="4"] { left: calc(50% - clamp(480px, 60vw, 820px)); transform: translateX(-50%) scale(.78); opacity: .18; z-index: 2; filter: blur(1px); }
.blog-card .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.blog-card .img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.88) 100%);
}
.blog-card .meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 36px 30px;
  color: #fff;
}
.blog-card .meta .tag {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; opacity: .9; margin-bottom: 12px;
}
.blog-card .meta h3 {
  font-size: clamp(20px, 1.8vw, 26px); color: #fff; line-height: 1.2;
  letter-spacing: -0.015em; max-width: 28ch;
}
.blog-carousel { height: 380px; }
@media (max-width: 800px) {
  .blog-carousel { height: 280px; }
  .blog-card { width: min(88vw, 420px); height: 260px; }
  .blog-card[data-pos="2"], .blog-card[data-pos="4"] { opacity: 0; }
}

/* Controles del carrusel */
.blog-controls {
  display: flex; align-items: center; justify-content: center;
  margin-top: 36px;
}
.blog-dots { display: flex; gap: 10px; align-items: center; }
.blog-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(0,0,0,.18);
  border: 0; padding: 0;
  cursor: pointer;
  display: block;
  transition: background .25s, width .25s, border-radius .25s;
}
.blog-dots .dot:hover { background: rgba(0,0,0,.4); }
.blog-dots .dot.active {
  background: var(--c-ink, #111);
  width: 26px; border-radius: 999px;
}
