/* =========================================================
   Blog de Glassy Media Lab
   Se carga DESPUÉS de /styles.css: reutiliza sus tokens (--ink,
   --brand-red, --brand-mustard...), el nav, la cinta y el footer.
   American Captain siempre en MAYÚSCULAS literales en el HTML
   (las minúsculas acentuadas de la fuente están rotas).
   ========================================================= */

/* ---------- Hero con foto B/N + grano ---------- */
.blog-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem 6vw 4.5rem;
  color: #fff;
  background: #111 var(--hero-img) center / cover no-repeat;
  overflow: hidden;
}
.blog-hero--index { min-height: 70vh; }
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 11, 14, .86) 0%, rgba(10, 11, 14, .45) 45%, rgba(10, 11, 14, .15) 100%);
}
/* Grano de película, mismo lenguaje que Event Tech */
.blog-hero::after {
  content: '';
  position: absolute;
  inset: -50%;
  opacity: .14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blog-hero__inner { position: relative; z-index: 1; max-width: 920px; }
.blog-hero .eyebrow { color: rgba(255, 255, 255, .88); }
.blog-hero .eyebrow::before { background: var(--brand-mustard); }
.blog-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: .95;
  margin: 0 0 1.2rem;
  text-transform: none; /* el HTML ya va en mayúsculas literales */
}
.blog-hero h1 .accent { color: var(--brand-mustard); }
.blog-hero__lede { max-width: 640px; font-size: 1.12rem; color: rgba(255, 255, 255, .86); margin: 0; }
.blog-hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255, 255, 255, .78);
  margin: 1.1rem 0 0;
}
.blog-hero__wax {
  position: absolute;
  right: 6vw;
  top: 7.5rem;
  width: clamp(110px, 13vw, 180px);
  height: auto;
  transform: rotate(12deg);
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}

/* ---------- Migas ---------- */
.crumbs { font-size: .8rem; margin-bottom: 1rem; color: rgba(255, 255, 255, .7); }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Listado ---------- */
.blog-list { padding: 6rem 6vw 7rem; }
.blog-list__head { max-width: 1100px; margin: 0 auto 3rem; }
.blog-list__head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--brand-red); text-transform: none; }
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ink-wash-strong);
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}
.post-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 30px 60px -26px rgba(15, 17, 23, .45); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .6s ease; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.tag {
  align-self: flex-start;
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--brand-mustard);
  color: var(--brand-red);
  font-family: 'American Captain', sans-serif;
  font-size: .95rem;
  letter-spacing: .04em;
  transform: rotate(-2deg);
}
.post-card h3 { font-size: 1.7rem; line-height: 1; text-transform: none; }
.post-card p { font-size: .95rem; margin: 0; }
.post-card__more { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--brand-red); }

/* ---------- Artículo ---------- */
.article { padding: 5rem 6vw 3rem; }
.article__body { max-width: 720px; margin: 0 auto; font-size: 1.08rem; }
.article__body p, .article__body li { color: #2b2e36; line-height: 1.75; }
.article__body > p:first-child { font-size: 1.22rem; color: var(--ink); }
.article__body h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--brand-red);
  text-transform: none;
  margin: 3.2rem 0 1rem;
}
.article__body h3 { font-size: 1.5rem; text-transform: none; margin: 2.2rem 0 .6rem; }
.article__body ul, .article__body ol { padding-left: 1.2rem; margin: 0 0 1.4em; }
.article__body li { margin-bottom: .55rem; }
.article__body li::marker { color: var(--brand-red); font-weight: 700; }
.article__body a { color: var(--brand-red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article__body strong { color: var(--ink); }

/* Cita tipo pegatina mostaza */
.pull {
  margin: 2.6rem -1rem;
  padding: 1.6rem 1.8rem;
  background: var(--brand-mustard);
  border-radius: 18px;
  transform: rotate(-1deg);
  box-shadow: 0 18px 40px -22px rgba(20, 22, 28, .45);
}
.pull p {
  margin: 0;
  font-family: 'American Captain', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
  color: var(--brand-red) !important;
}

/* Recuadro de cristal para listas clave */
.note {
  margin: 2rem 0;
  padding: 1.5rem 1.7rem;
  border-radius: 18px;
  background: var(--ink-wash);
  border-left: 4px solid var(--brand-red);
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  max-width: 920px;
  margin: 4rem auto 1rem;
  padding: 3rem clamp(1.5rem, 4vw, 3.2rem);
  border-radius: 28px;
  background: var(--ink) var(--cta-img, none) center / cover;
  color: #fff;
  overflow: hidden;
}
.cta::before { content: ''; position: absolute; inset: 0; background: rgba(14, 15, 19, .78); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); text-transform: none; margin: 0 0 .8rem; color: #fff; }
.cta h2 .accent { color: var(--brand-mustard); }
.cta p { color: rgba(255, 255, 255, .82); max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.btn--red { background: var(--brand-red); color: #fff; box-shadow: 0 14px 30px -12px rgba(194, 52, 36, .6); }
.btn--red:hover { background: #a92b1d; }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn--light:hover { background: rgba(255, 255, 255, .22); }
.cta__wax {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 190px;
  height: auto;
  transform: rotate(-14deg);
  z-index: 1;
  opacity: .95;
}

/* ---------- Relacionados ---------- */
.related { padding: 3rem 6vw 6rem; }
.related h2 { max-width: 1100px; margin: 0 auto 2rem; font-size: clamp(1.8rem, 3.6vw, 2.4rem); text-transform: none; }

@media (max-width: 700px) {
  .blog-hero { min-height: 72vh; padding-top: 8rem; }
  .blog-hero__wax { top: 6rem; width: 96px; }
  .pull { margin: 2rem 0; }
  .cta__wax { width: 130px; right: -26px; bottom: -36px; opacity: .5; }
}

/* ---------- Artículos con fotos de Glassy Lights ---------- */
.post-card--color .post-card__img img { filter: none; }
.figure { margin: 2.4rem 0; }
.figure img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.figure--pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.figure--pair figcaption { grid-column: 1 / -1; }
.figure figcaption { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
.figure__label { display: block; margin-top: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.app-box {
  display: flex; align-items: center; gap: 1.4rem;
  margin: 2.6rem 0; padding: 1.5rem 1.7rem;
  border-radius: 20px; background: var(--ink); color: #fff;
}
.app-box img { width: 150px; height: auto; flex-shrink: 0; }
.app-box p { margin: 0; color: rgba(255, 255, 255, .85) !important; }
.app-box strong { color: var(--brand-mustard) !important; }
.app-box a { color: #fff !important; }
@media (max-width: 560px) { .figure--pair { grid-template-columns: 1fr; } .app-box { flex-direction: column; align-items: flex-start; } }
