/* ============================================================
   PINK ROAD EVENTOS — blog.css
   Estilos para blog, listado y artículo individual
   ============================================================ */

/* ── HERO BLOG ─────────────────────────────────────────────── */
.pr-page-hero--blog {
  padding-top: 11rem;
  background: var(--stone);
}
.pr-page-hero--blog .pr-section-label { color: var(--blush); }
.pr-page-hero--blog .pr-section-label::before { background: var(--blush); }
.pr-page-hero--blog .pr-h2 { color: white; }
.pr-page-hero--blog .pr-h2 em { color: var(--blush); }
.pr-page-hero--blog .pr-body { color: white; opacity: 0.5; }

/* ── CATEGORÍA LABEL ───────────────────────────────────────── */
.pr-blog-cat {
  font-family: var(--ui);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fuchsia);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ── POST DESTACADO ────────────────────────────────────────── */
.pr-blog-featured {
  margin-bottom: 6rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6rem;
}

.pr-blog-featured__link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.pr-blog-featured__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.pr-blog-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pr-blog-featured:hover .pr-blog-featured__img img { transform: scale(1.03); }

.pr-blog-featured__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,16,24,0);
  transition: background 0.4s;
}
.pr-blog-featured:hover .pr-blog-featured__overlay {
  background: rgba(26,16,24,0.12);
}

.pr-blog-featured__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blush-light), var(--blush));
  min-height: 420px;
}

.pr-blog-featured__content {
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  border: 1px solid var(--line);
  border-left: none;
}

.pr-blog-featured__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--stone);
  margin-bottom: 1.2rem;
  transition: color 0.3s;
}
.pr-blog-featured:hover .pr-blog-featured__title { color: var(--fuchsia); }

.pr-blog-featured__excerpt {
  font-family: var(--body);
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--stone);
  opacity: 0.62;
  margin-bottom: 2rem;
}

.pr-blog-featured__meta {
  font-family: var(--ui);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── GRID DE POSTS ─────────────────────────────────────────── */
.pr-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 5rem;
}

.pr-blog-grid--3 { gap: 2.5rem; }

.pr-blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.pr-blog-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 1.5rem;
}
.pr-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pr-blog-card:hover .pr-blog-card__img img { transform: scale(1.04); }

.pr-blog-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blush-light), var(--blush));
  min-height: 240px;
}

.pr-blog-card__cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--ui);
  font-size: 0.52rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: white;
  background: var(--fuchsia);
  padding: 0.3rem 0.7rem;
}

.pr-blog-card__content { padding: 0; }

.pr-blog-card__meta {
  font-family: var(--ui);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.38;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.pr-blog-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--stone);
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}
.pr-blog-card:hover .pr-blog-card__title { color: var(--fuchsia); }

.pr-blog-card__excerpt {
  font-family: var(--body);
  font-size: 0.83rem;
  line-height: 1.85;
  color: var(--stone);
  opacity: 0.58;
  margin-bottom: 1rem;
}

.pr-blog-card__read {
  font-family: var(--ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fuchsia);
  opacity: 0.75;
  transition: opacity 0.3s;
}
.pr-blog-card:hover .pr-blog-card__read { opacity: 1; }

/* ── CTA BLOG ──────────────────────────────────────────────── */
.pr-blog-cta { text-align: center; }
.pr-blog-cta__inner { max-width: 600px; margin: 0 auto; }

/* ── ARTÍCULO INDIVIDUAL ───────────────────────────────────── */
.pr-post-hero {
  padding: 9rem 5rem 0;
  background: var(--cream);
  max-width: 100%;
}

.pr-post-hero__content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 3rem;
}

.pr-post-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--stone);
  margin: 0.8rem 0 1.5rem;
}

.pr-post-hero__meta {
  font-family: var(--ui);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pr-post-hero__img {
  width: 100%;
  max-height: 65vh;
  overflow: hidden;
  margin-top: 3rem;
}
.pr-post-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ── LAYOUT ARTÍCULO (sidebar + contenido + aside) ─────────── */
.pr-post-layout {
  display: grid;
  grid-template-columns: 60px 1fr 280px;
  gap: 5rem;
  padding: 6rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

/* Share lateral */
.pr-post-share { position: sticky; top: 90px; }
.pr-post-share__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pr-post-share__label {
  font-family: var(--ui);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.3;
  writing-mode: vertical-rl;
  margin-bottom: 0.5rem;
}
.pr-post-share__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--stone);
  opacity: 0.45;
  text-decoration: none;
  transition: all 0.3s;
}
.pr-post-share__btn:hover {
  border-color: var(--fuchsia);
  color: var(--fuchsia);
  opacity: 1;
}

/* Contenido del artículo */
.pr-post-content {
  max-width: 680px;
}

/* Estilos para el contenido WordPress.
   Tipografía alineada con el sistema del tema (mismos tokens que .pr-body /
   .pr-h2 en main.css). Antes usaba medidas fijas heredadas de la web
   anterior — 1rem al 75% de opacidad y titulares de 1.8/1.3rem — que hacían
   que el blog desentonara con el resto del sitio. */
.pr-post-content p {
  font-family: var(--body);
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--stone);
  opacity: 0.68;
  margin-bottom: 1.6rem;
}

.pr-post-content h2 {
  font-family: var(--serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--stone);
  margin: 3.5rem 0 1.2rem;
  line-height: 1.2;
  opacity: 1;
}
.pr-post-content h2 em { font-style: italic; color: var(--fuchsia); }

/* Las entradas usan h3 como subtítulo principal (no hay h2), así que necesita
   peso visual suficiente sobre el cuerpo de texto. */
.pr-post-content h3 {
  font-family: var(--serif);
  font-size: var(--text-lg);
  font-weight: 400;
  font-style: normal;
  color: var(--stone);
  margin: 2.8rem 0 1rem;
  line-height: 1.3;
  opacity: 1;
}
.pr-post-content h3 em { font-style: italic; color: var(--fuchsia); }

/* La cita debe destacar sobre el cuerpo (--text-base): por eso --text-md. */
.pr-post-content blockquote {
  border-left: 2px solid var(--fuchsia);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--blush-light);
  font-family: var(--serif);
  font-size: var(--text-md);
  font-style: italic;
  line-height: 1.6;
  color: var(--stone);
}

.pr-post-content ul,
.pr-post-content ol {
  font-family: var(--body);
  font-size: var(--text-sm);
  line-height: 1.9;
  color: var(--stone);
  opacity: 0.68;
  padding-left: 1.5rem;
  margin-bottom: 1.6rem;
}

.pr-post-content li { margin-bottom: 0.5rem; }

/* Imágenes del contenido. El !important es necesario para neutralizar los
   anchos fijos que el editor antiguo dejó grabados en línea (imágenes
   redimensionadas a mano a 200-400px que se veían pequeñas y desalineadas). */
.pr-post-content img {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}

.pr-post-content figure {
  margin: 2.5rem auto;
  width: 100% !important;
}

/* Galerías de bloques: rejilla de 2 columnas en vez de fotos apiladas */
.pr-post-content .wp-block-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 2.5rem 0;
}
.pr-post-content .wp-block-gallery figure {
  margin: 0;
}
.pr-post-content .wp-block-gallery img {
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* Espaciadores y párrafos vacíos heredados del editor antiguo:
   recortamos los huecos gigantes entre bloques */
.pr-post-content .wp-block-spacer {
  height: 1.5rem !important;
}
.pr-post-content p:empty { display: none; }
.pr-post-content p:has(> br:only-child) { display: none; }

@media (max-width: 600px) {
  .pr-post-content .wp-block-gallery { grid-template-columns: 1fr; }
}

.pr-post-content a {
  color: var(--fuchsia);
  text-decoration: underline;
  text-decoration-color: rgba(214,63,163,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}
.pr-post-content a:hover { text-decoration-color: var(--fuchsia); }

.pr-post-content strong { font-weight: 600; color: var(--stone); opacity: 1; }

/* Separador decorativo en el contenido */
.pr-post-content hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}

/* Tags */
.pr-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.pr-post-tag {
  font-family: var(--ui);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: 0.5;
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}
.pr-post-tag:hover {
  border-color: var(--fuchsia);
  color: var(--fuchsia);
  opacity: 1;
}

/* Aside derecho */
.pr-post-aside {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pr-post-autora {
  border: 1px solid var(--line);
  overflow: hidden;
}
.pr-post-autora__img {
  height: 200px;
  overflow: hidden;
}
.pr-post-autora__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.pr-post-autora__content {
  padding: 1.5rem;
  background: white;
}
.pr-post-autora__role {
  font-family: var(--ui);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fuchsia);
  display: block;
  margin-bottom: 0.3rem;
}
.pr-post-autora__name {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--stone);
  display: block;
  margin-bottom: 0.6rem;
}
.pr-post-autora__bio {
  font-family: var(--body);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--stone);
  opacity: 0.6;
}

.pr-post-cta-box {
  background: var(--stone);
  padding: 2rem;
}
.pr-post-cta-box__label {
  font-family: var(--ui);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fuchsia);
  display: block;
  margin-bottom: 0.8rem;
}
.pr-post-cta-box__text {
  font-family: var(--body);
  font-size: 0.82rem;
  line-height: 1.7;
  color: white;
  opacity: 0.45;
  margin-bottom: 1.5rem;
}

/* Posts relacionados */
.pr-related { margin: 0; }

/* ── RESPONSIVE BLOG ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .pr-post-layout {
    grid-template-columns: 1fr 240px;
    gap: 3rem;
    padding: 4rem 3rem;
  }
  .pr-post-share { display: none; }
}

@media (max-width: 960px) {
  .pr-blog-featured__link { grid-template-columns: 1fr; }
  .pr-blog-featured__content { border-left: 1px solid var(--line); }
  .pr-blog-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pr-post-hero { padding: 8rem 1.5rem 0; }
  .pr-post-layout {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 3rem;
  }
  .pr-post-aside { position: static; }
  .pr-post-autora__img { height: 160px; }
  .pr-related { padding: 4rem 1.5rem; }
  .pr-blog-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .pr-blog-grid { grid-template-columns: 1fr; }
  .pr-blog-featured__title { font-size: 1.5rem; }
}
