/* =============================================
   GORDILLO STEEL — Estilos Especiales del Blog
   ============================================= */

/* Contenedor del Portal del Blog */
.blog-hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 8rem 2rem 5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(197,160,40,0.08) 0%, transparent 80%);
  pointer-events: none;
}
.blog-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.blog-hero h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero p {
  color: #ccc;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Listado de Artículos (Grid) */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  border-color: var(--gold);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #f0f0f0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}
.blog-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blog-card-meta span {
  display: inline-block;
}
.blog-card-body h3 {
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 800;
}
.blog-card-body h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card-body h3 a:hover {
  color: var(--gold);
}
.blog-card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.blog-card-body .btn-leer {
  margin-top: auto;
  align-self: flex-start;
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}
.blog-card-body .btn-leer:hover {
  color: var(--gold);
}

/* =============================================
   Estilos de Lectura de Artículos
   ============================================= */
.article-header {
  background: linear-gradient(135deg, #0f0f0f 0%, #151515 100%);
  color: #ffffff;
  padding: 8rem 2rem 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.article-header-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-header-meta {
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.article-header-author {
  color: #aaa;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Contenido del Artículo */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: -6rem; /* Efecto flotante sobre la cabecera oscura */
  margin-bottom: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.1);
  background: #222;
}
.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #222;
}
.article-content p {
  margin-bottom: 1.8rem;
  color: #333;
}
.article-content strong {
  color: #000;
}
.article-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.01em;
  color: var(--black);
  margin: 3.5rem 0 1.5rem;
  border-bottom: 2px solid rgba(0,0,0,0.06);
  padding-bottom: 0.5rem;
}
.article-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  margin: 2rem 0 1rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}
.article-content li {
  margin-bottom: 0.8rem;
}
.article-content blockquote {
  background: #fdfaf2;
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #555;
  border-radius: 0 8px 8px 0;
}
.article-content blockquote strong {
  display: block;
  font-style: normal;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--black);
}

/* Tablas Comparativas y Técnicas */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.article-content th, .article-content td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #eee;
}
.article-content th {
  background: #111;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.article-content tr:last-child td {
  border-bottom: none;
}
.article-content tr:nth-child(even) td {
  background: #fdfdfd;
}

/* Cajas de Alerta/Info */
.info-box {
  background: #f1f7f9;
  border-left: 4px solid #3182ce;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
}
.info-box-title {
  font-weight: 800;
  color: #2b6cb0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA del Final del Artículo */
.article-cta-box {
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 3rem;
  margin-top: 5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.article-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(197,160,40,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.article-cta-box h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.article-cta-box p {
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.article-cta-box .btn-primary {
  box-shadow: 0 8px 25px rgba(197,160,40,0.4);
}
.article-cta-box .btn-primary:hover {
  background: #fff;
  color: #000;
}

/* Breadcrumbs (Migas de Pan) */
.breadcrumbs {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumbs a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumbs a:hover {
  color: var(--gold);
}

/* Compartir en Redes */
.share-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.share-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.share-buttons {
  display: flex;
  gap: 0.8rem;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: grid;
  place-items: center;
  color: #555;
  text-decoration: none;
  transition: all 0.3s ease;
}
.share-btn:hover {
  background: #f5f5f5;
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Responsividad General */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card-body {
    padding: 1.5rem;
  }
  .blog-hero {
    padding: 6rem 1.5rem 4rem;
  }
  .article-header {
    padding: 6rem 1.5rem 4rem;
  }
  .article-featured-img {
    margin-top: -3rem;
    margin-bottom: 2rem;
    border-radius: 8px;
  }
  .article-container {
    padding: 2rem 1.5rem 4rem;
  }
  .article-content {
    font-size: 1.02rem;
  }
  .article-cta-box {
    padding: 2rem 1.5rem;
  }
}
