.blog-hero.full-hero {
  background: #1a1a1a url('../assets/imgs/hero-blog.png') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

/* Capa oscura (Overlay) con Blur suave para resaltar texto */
.blog-hero.full-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  backdrop-filter: blur(1px);
  /* Desenfoca levemente la imagen para que el texto resalte */
  z-index: 1;
}

.blog-hero.full-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.blog-hero.full-hero h1 {
  font-size: clamp(2.2rem, 10vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.blog-hero.full-hero p {
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  /* Margen para separar del botón */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 1);
  padding: 0 1rem;
}

.btn-ver-mas {
  display: inline-block;
  background: #fff;
  color: #8d0000 !important;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #fff;
}

.btn-ver-mas:hover {
  background: transparent;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* NAVBAR RESPONSIVE */
.navbar.blog-navbar {
  background: #8d0000 !important;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #8d0000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.4s ease;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
  }

  .menu-toggle .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
  }
}

/* Navbar se muestra cuando tiene la clase .reveal */
.blog-navbar.reveal {
  transform: translateY(0) !important;
}

.blog-grid-section {
  padding: 6rem 0 8rem;
  background: #fdfdfd;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Post Último: Ocupa 2 columnas y es más grande */
.article-card.is-latest {
  grid-column: span 2;
  background: #fff;
}

.article-card.is-latest .article-card-img {
  height: 350px; /* Foto más grande para el destacado */
}

/* Post Fijado: Tamaño estándar */
.article-card.is-pinned {
  grid-column: span 1;
}

.article-card.is-pinned .article-card-img {
  height: 180px;
}

/* Etiquetas visuales con emojis */
.article-card.is-pinned::before {
  content: "📍 FIJADO";
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #000;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 1px;
}

.article-card.is-latest::before {
  content: "⭐ ÚLTIMO";
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #8d0000;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  z-index: 10;
  letter-spacing: 1px;
}

@media (max-width: 1000px) {
  .article-card.is-latest {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #8d0000 !important;
    /* ROJO DRONAGRO OBLIGATORIO */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.4s ease;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links a {
    color: #fff !important;
    /* TEXTO BLANCO OBLIGATORIO */
    font-size: 1.5rem;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    z-index: 1000;
  }

  .menu-toggle .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
  }
}

/* Tarjeta de artículo — Más compacta */
.article-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  border-color: #8d0000;
}

/* Efecto Hover "Click para leer más" */
.article-card::after {
  content: "CLICK PARA LEER MÁS ...";
  position: absolute;
  inset: 0;
  background: rgba(141, 0, 0, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.article-card:hover::after {
  opacity: 1;
}

.article-card-img {
  width: 100%;
  height: 180px;
  /* Altura reducida */
  object-fit: cover;
  display: block;
  background: #f0f0f0;
  transition: transform 0.6s ease;
}

.article-card:hover .article-card-img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 1.25rem;
  flex: 1;
}

.article-card-category {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8d0000;
  margin-bottom: 0.5rem;
  display: block;
}

.article-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #111;
  margin-bottom: 0.75rem;
}

/* Límite de 3 líneas para el extracto */
.article-card-excerpt {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* Estándar */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card-footer {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap; /* Permite que baje si no hay espacio */
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #888;
  border-top: 1px solid #f5f5f5;
}

.article-card-footer .author-name {
  flex: 1 1 100%; /* El nombre ocupa su línea si es necesario */
  margin-bottom: 0.2rem;
  color: #444;
}

.article-card-date {
  color: #999;
}

.article-card-read {
  color: #8d0000;
  font-weight: 700;
  text-decoration: none;
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-shine {
  to {
    background-position: -200% 0;
  }
}

/* ── ARTICLE PAGE ─────────────────────────────────────────── */
.article-hero {
  min-height: 55vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: 80px;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  max-width: 850px;
}

.article-category-badge {
  display: inline-block;
  background: var(--accent-color, #8d0000);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.article-title {
  font-family: 'Playfair Display', 'Outfit', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.article-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Layout principal del artículo */
.article-wrapper {
  padding: 4rem 2rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 6rem;
  /* Más espacio para que no se pegue el sidebar */
  align-items: start;
  margin-bottom: 5rem;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-sidebar {
    order: 2;
    /* AHORA VA AL FINAL */
    position: static;
    /* YA NO ES STICKY EN CELU */
    margin-top: 3rem;
  }

  .article-wrapper {
    padding: 2rem 1rem;
    /* TEXTO CON AIRE EN CELU */
  }

  .article-body {
    font-size: 1.1rem;
    /* UN POQUITO MÁS GRANDE PARA LEER BIEN */
  }
}

/* Cuerpo del artículo */
.article-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #333;
  width: 100%;
  max-width: 850px;
  margin: 0 auto !important;
}

.article-body h1,
.article-body h2 {
  font-family: 'Playfair Display', 'Outfit', serif;
  font-weight: 800;
  margin: 3.5rem 0 1.5rem;
  /* Sección principal */
  color: #111;
  letter-spacing: -0.5px;
  line-height: 1.2;

}

.article-body h1 {
  font-size: 2.2rem;
}

.article-body h2 {
  font-size: 1.7rem;
  text-decoration: 1px solid underline #000;
  /* Un poco más chico para no desequilibrar */
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 1.2rem 0 0.5rem;
  /* Sub-tema, más pegado a lo de arriba */
  color: #555;
  /* Gris profesional */
  text-transform: none;
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body ul {
  margin: 1.5rem 0 2rem 1.5rem;
  padding: 0;
  list-style-type: disc;
  /* Volvemos al punto clásico */
}

.article-body li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
  color: #333;
}

.article-body li::marker {
  color: #888;
  /* Punto en gris suave para no distraer */
}

.article-body strong {
  color: #333;
  font-weight: 700;
}



/* Fotos editoriales intercaladas */
.article-photo {
  margin: 2.5rem -1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.article-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.article-photo figcaption {
  background: var(--accent-color, #8d0000);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-style: italic;
  padding: 0.6rem 1rem;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--surface-color, #f8f9fa);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.2rem;
}

.sidebar-card h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color, #8d0000);
  margin-bottom: 0.6rem;
}

.sidebar-card p {
  color: var(--text-secondary, #666);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Botón Tienda en Sidebar */
.sidebar-btn-primary {
  display: block;
  background: #8d0000;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  width: 100%;
  /* Asegura que ocupe todo el ancho */
  box-sizing: border-box;
}

.sidebar-btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
}

.sidebar-back {
  display: block;
  text-align: center;
  color: var(--accent-color, #8d0000) !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Botones de compartir */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-btn {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
}

.share-fb {
  background: #1877f2;
  color: #fff;
}

.share-wa {
  background: #25d366;
  color: #fff;
}

.share-tw {
  background: #000;
  color: #fff;
}

.share-li {
  background: #0077b5;
  color: #fff;
}

/* ── COMENTARIOS ─────────────────────────────────────────── */
.comments-section {
  border-top: 3px solid var(--accent-color, #8d0000);
  padding-top: 3rem;
  max-width: 750px;
}

.comments-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: var(--text-primary, #1a1a1a);
}

.comment-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-color, #8d0000);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-content strong {
  font-size: 0.95rem;
  color: var(--text-primary, #1a1a1a);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-secondary, #666);
  margin-left: 0.75rem;
}

.comment-content p {
  margin-top: 0.4rem;
  color: var(--text-secondary, #666);
  font-size: 0.95rem;
  line-height: 1.6;
}

.no-comments {
  color: var(--text-secondary, #666);
  font-style: italic;
  margin-bottom: 2rem;
}

/* Formulario de comentarios */
.comment-form {
  background: var(--surface-color, #f8f9fa);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

.comment-form h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .comment-form-row {
    grid-template-columns: 1fr;
  }
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent-color, #8d0000);
}

.comment-form textarea {
  resize: vertical;
  margin-bottom: 1rem;
}

.comment-msg {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.comment-msg.success {
  color: #16a34a;
}

.comment-msg.error {
  color: #dc2626;
}