/* Kajica Blog — estilos compartidos */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #2C3347;
  --rojo: #A84000;
  --blanco: #ffffff;
  --gris-claro: #f7f7f8;
  --gris-texto: #555;
  --max-w: 760px;
}

body {
  font-family: 'League Spartan', 'Segoe UI', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
}

/* ─── NAV ─── */
.nav {
  background: var(--navy);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nav-logo img { height: 36px; display: block; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-btn {
  background: var(--rojo);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background .2s;
}
.nav-btn:hover { background: #8a3300; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: #999;
}
.breadcrumb a { color: var(--rojo); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ─── CABECERA DEL ARTÍCULO ─── */
.article-header {
  background: #fff;
  padding: 0;
}
.article-header .breadcrumb {
  margin-top: 24px;
}
.article-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 20px 0;
}
.article-header .article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.article-header h1 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}
.article-header .article-desc {
  font-size: 17px;
  color: var(--gris-texto);
  line-height: 1.55;
  margin-bottom: 0;
  padding-bottom: 28px;
  border-bottom: 3px solid var(--gris-claro);
}

/* ─── TAG ─── */
.tag {
  background: var(--rojo);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-block;
}

/* ─── ARTICLE BODY ─── */
article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 20px 80px;
}

.article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

h1 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 12px;
}
.article-desc {
  font-size: 18px;
  color: var(--gris-texto);
  margin-bottom: 32px;
  line-height: 1.5;
}

article h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--rojo);
}
article h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

article p { margin-bottom: 18px; font-size: 16px; }

article ul, article ol { padding-left: 22px; margin-bottom: 18px; }
article li { margin-bottom: 8px; font-size: 16px; }

article a { color: var(--rojo); text-decoration: none; font-weight: 600; }
article a:hover { text-decoration: underline; }

article strong { font-weight: 700; color: var(--navy); }

article hr {
  border: none;
  height: 1px;
  background: #e8e8e8;
  margin: 40px 0;
}

/* ─── TABLE ─── */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th {
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
}
th:first-child { background: #232839; }
td { padding: 11px 16px; border-bottom: 1px solid #f0f0f0; background: #fff; }
tr:nth-child(even) td { background: var(--gris-claro); }
tr:last-child td { border-bottom: none; }

/* ─── CTA BOX ─── */
.cta-box {
  background: var(--gris-claro);
  border: 2px solid #e8e8e8;
  border-radius: 14px;
  padding: 36px 32px;
  margin: 52px 0 0;
  text-align: center;
}
.cta-box p {
  color: var(--navy);
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 700;
}
.cta-box a {
  background: var(--rojo);
  color: #fff;
  display: inline-block;
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.cta-box a:hover { background: #8a3300; text-decoration: none; transform: translateY(-1px); }

/* ─── BLOG LISTING HERO ─── */
.blog-hero {
  background: #fff;
  padding: 56px 20px 44px;
  text-align: center;
  border-bottom: 1px solid #ebebeb;
}
.blog-hero h1 {
  color: var(--navy);
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 12px;
}
.blog-hero-logo {
  height: 52px;
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
  top: -3px;
}
.blog-hero p {
  color: var(--gris-texto);
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}
.blog-hero-accent {
  display: inline-block;
  width: 48px;
  height: 4px;
  background: var(--rojo);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ─── BLOG GRID ─── */
.blog-grid {
  max-width: 960px;
  margin: 52px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.blog-card:hover { box-shadow: 0 10px 32px rgba(44,51,71,.12); transform: translateY(-3px); }

.card-accent {
  height: 4px;
  background: var(--rojo);
}

.card-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.card-tag {
  background: #fff0e8;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-block;
  width: fit-content;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.card-desc { font-size: 14px; color: var(--gris-texto); line-height: 1.55; flex: 1; }

.card-footer {
  padding: 13px 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-arrow { color: var(--rojo); font-weight: 700; font-size: 14px; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 32px 20px;
  font-size: 13px;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; margin: 0 10px; transition: color .15s; }
footer a:hover { color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .nav-links .hide-mobile { display: none; }
  article { padding: 28px 16px 60px; }
  .blog-hero { padding: 40px 16px 32px; }
  .article-header-inner { padding: 20px 16px 0; }
  .cta-box { padding: 28px 20px; }
}
