/* ============================================
   PLANTILLA BASE ARTÍCULOS BLOG · EURODIESEL
   Estilos compartidos por todos los artículos
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #1d1d1f;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: #E30613; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.blog-header {
  background: #0a0a0b;
  color: #ffffff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-logo {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.blog-logo span { color: #E30613; }
.blog-nav a {
  color: #ffffff;
  margin-left: 24px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 800px;
  margin: 24px auto;
  padding: 0 24px;
  font-size: 0.85rem;
  color: #6e6e73;
}
.breadcrumb a { color: #6e6e73; }
.breadcrumb a:hover { color: #E30613; }

/* Artículo */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-header { margin-bottom: 40px; }
.article-tag {
  display: inline-block;
  background: rgba(227, 6, 19, 0.1);
  color: #E30613;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.article h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 16px;
  color: #0a0a0b;
}
.article-meta {
  display: flex;
  gap: 20px;
  color: #6e6e73;
  font-size: 0.9rem;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5ea;
}

/* Lead paragraph */
.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #1d1d1f;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f5f5f7;
}

/* Contenido */
.article h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  line-height: 1.2;
  color: #0a0a0b;
}
.article h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  line-height: 1.3;
  color: #1d1d1f;
}
.article p {
  margin-bottom: 20px;
  color: #1d1d1f;
}
.article ul, .article ol {
  margin: 20px 0 24px 24px;
}
.article li {
  margin-bottom: 8px;
  color: #1d1d1f;
}
.article strong {
  color: #0a0a0b;
  font-weight: 700;
}

/* Callout box */
.callout {
  background: #fff5f5;
  border-left: 4px solid #E30613;
  padding: 24px;
  margin: 32px 0;
  border-radius: 4px;
}
.callout strong { color: #E30613; }
.callout p:last-child { margin-bottom: 0; }

/* Info box (gris) */
.info-box {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}
.info-box h3 { margin-top: 0; }
.info-box p:last-child { margin-bottom: 0; }

/* Tabla */
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article th, .article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e5ea;
}
.article th {
  background: #0a0a0b;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article tbody tr:hover {
  background: #fafafa;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #0a0a0b 0%, #1c1c1f 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}
.cta-box h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta-box p {
  color: #a1a1a6;
  margin-bottom: 24px;
}
.cta-box-button {
  display: inline-block;
  background: #25D366;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
}
.cta-box-button:hover { text-decoration: none; }

/* Artículos relacionados */
.related {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}
.related h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.related-card {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 20px;
  transition: background 0.2s;
}
.related-card:hover {
  background: #ebebef;
  text-decoration: none;
}
.related-card span {
  color: #E30613;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-card h4 {
  color: #1d1d1f;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 8px;
}

/* Footer */
.blog-footer {
  background: #0a0a0b;
  color: #a1a1a6;
  padding: 40px 24px;
  text-align: center;
  font-size: 0.9rem;
}
.blog-footer a { color: #ffffff; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  text-decoration: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 600px) {
  .article h1 { font-size: 1.8rem; }
  .lead { font-size: 1.1rem; }
  .article h2 { font-size: 1.4rem; }
  .blog-nav { display: none; }
  body { font-size: 16px; }
}
