/* ============ BLOG SHARED STYLES — C&C C8 / Grupo Bestune ============ */
:root {
  --rojo: #c8102e; --rojo-dark: #a00d24;
  --negro: #07090d; --carbon: #1a1a1a;
  --gris-1: #3c424b; --gris-2: #6b7280; --gris-3: #e3e6eb;
  --panel: #f4f5f7; --blanco: #ffffff;
  --verde-wa: #25D366;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--negro); line-height: 1.65;
  background: var(--blanco); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rojo); }
a:hover { color: var(--rojo-dark); }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Top announce */
.top-announce {
  background: var(--rojo); color: var(--blanco);
  text-align: center; padding: 10px 12px;
  font-size: 12.5px; letter-spacing: 0.08em; font-weight: 700;
}
.top-announce strong { font-weight: 900; }
.top-announce a { color: var(--blanco); text-decoration: underline; margin-left: 8px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7,9,13,0.94); backdrop-filter: blur(12px);
  padding: 12px 0; border-bottom: 2px solid var(--rojo);
}
nav .container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px;
}
.nav-logo {
  display: flex; gap: 10px; align-items: center; color: var(--blanco);
  text-decoration: none;
}
.nav-logo img { height: 36px; }
.nav-logo .l1 { font-size: 9px; letter-spacing: 0.22em; color: var(--gris-2); text-transform: uppercase; }
.nav-logo .l2 { font-size: 13px; font-weight: 900; letter-spacing: 0.18em; }
.nav-cta {
  background: var(--rojo); color: var(--blanco);
  padding: 10px 18px; font-size: 11px; letter-spacing: 0.18em;
  font-weight: 800; text-decoration: none; text-transform: uppercase;
}

/* Article header */
.article-header {
  background: var(--negro); color: var(--blanco);
  padding: 60px 0 50px; position: relative;
}
.article-header .container { max-width: 880px; }
.breadcrumb {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gris-2); margin-bottom: 22px;
}
.breadcrumb a { color: var(--gris-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--blanco); }
.breadcrumb .sep { margin: 0 8px; }
.article-tag {
  display: inline-block; background: var(--rojo); color: var(--blanco);
  padding: 4px 14px; font-size: 10px; letter-spacing: 0.24em;
  font-weight: 800; text-transform: uppercase; margin-bottom: 18px;
}
.article-header h1 {
  font-size: clamp(32px, 4.5vw, 50px); font-weight: 900;
  line-height: 1.08; letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.article-header h1 em { font-style: normal; color: var(--rojo); }
.article-meta {
  font-size: 13px; letter-spacing: 0.04em; color: var(--gris-2);
}
.article-meta strong { color: var(--blanco); font-weight: 700; }

.article-hero-img {
  height: 380px; background-size: cover; background-position: center;
  margin-top: -10px;
}

/* Article body */
article.post {
  padding: 60px 0; font-size: 17px; color: var(--gris-1); line-height: 1.75;
}
article.post p { margin-bottom: 22px; }
article.post p:first-of-type::first-line { font-weight: 600; color: var(--negro); }
article.post h2 {
  font-size: 30px; font-weight: 900; color: var(--negro);
  margin: 44px 0 16px; letter-spacing: -0.5px;
  padding-top: 18px; border-top: 2px solid var(--gris-3);
}
article.post h3 {
  font-size: 22px; font-weight: 800; color: var(--negro);
  margin: 32px 0 12px;
}
article.post h2 + p, article.post h3 + p { margin-top: 8px; }
article.post ul, article.post ol {
  margin: 0 0 24px 24px; padding-left: 16px;
}
article.post li { margin-bottom: 8px; padding-left: 6px; }
article.post strong { color: var(--negro); font-weight: 700; }
article.post blockquote {
  border-left: 4px solid var(--rojo);
  background: var(--panel); padding: 22px 28px;
  margin: 28px 0; font-style: italic;
  color: var(--negro); font-size: 18px; line-height: 1.6;
}
article.post .callout {
  background: var(--negro); color: var(--blanco);
  padding: 28px 32px; margin: 36px 0;
  border-left: 4px solid var(--rojo);
}
article.post .callout h3 {
  color: var(--rojo); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; margin: 0 0 12px; padding: 0; border: none;
}
article.post .callout p { color: rgba(255,255,255,0.85); margin: 0 0 14px; font-size: 15px; }
article.post .callout .cta {
  display: inline-block; background: var(--rojo); color: var(--blanco);
  padding: 12px 24px; font-size: 12px; letter-spacing: 0.22em;
  font-weight: 800; text-transform: uppercase; text-decoration: none;
  margin-top: 8px;
}
article.post .callout .cta:hover { background: var(--rojo-dark); }
article.post table {
  width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14.5px;
}
article.post th, article.post td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--gris-3);
}
article.post th {
  background: var(--negro); color: var(--blanco);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
article.post td:first-child { font-weight: 700; color: var(--negro); }
article.post td.highlight {
  background: rgba(200,16,46,0.08); color: var(--rojo); font-weight: 800;
}

/* Related */
.related {
  background: var(--panel); padding: 60px 0;
}
.related h2 {
  font-size: 24px; font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.5px; margin-bottom: 26px; color: var(--negro);
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.related-card {
  background: var(--blanco); border: 1px solid var(--gris-3);
  text-decoration: none; color: var(--negro); transition: transform 0.3s;
}
.related-card:hover { transform: translateY(-4px); }
.related-card-img { height: 140px; background-size: cover; background-position: center; }
.related-card-body { padding: 18px; }
.related-card .tag {
  font-size: 10px; letter-spacing: 0.22em; color: var(--rojo);
  font-weight: 800; text-transform: uppercase;
}
.related-card h3 { font-size: 16px; font-weight: 800; margin-top: 6px; line-height: 1.3; }
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }

/* Footer */
footer {
  background: var(--negro); color: var(--gris-2);
  padding: 40px 0; border-top: 4px solid var(--rojo);
  text-align: center; font-size: 13px; letter-spacing: 0.08em;
}
footer a { color: var(--rojo); text-decoration: none; font-weight: 700; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  display: flex; align-items: center;
  background: var(--verde-wa); color: var(--blanco);
  border-radius: 50px; text-decoration: none;
  box-shadow: 0 12px 32px rgba(37,211,102,0.45), 0 4px 12px rgba(0,0,0,0.18);
  overflow: hidden;
}
.wa-float-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
}
.wa-float-icon svg { width: 30px; height: 30px; fill: var(--blanco); }
.wa-float-text {
  padding-right: 22px; padding-left: 6px;
  font-size: 13px; font-weight: 800; line-height: 1.2;
}
.wa-float-text .top { font-size: 10px; opacity: 0.85; letter-spacing: 0.18em; }
@media (max-width: 600px) {
  .wa-float-text { display: none; }
  .wa-float { right: 16px; bottom: 16px; }
}
