:root {
  --azul-primario: #1D809F;
  --azul-oscuro: #155d74;
  --naranja: #FE9529;
  --amarillo: #FEBF26;
  --gris-oscuro: #333333;
  --gris-medio: #6c757d;
  --gris-claro: #f2f2f2;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gris-oscuro);
  margin: 0;
  padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  text-decoration: none;
}

/* ===== Barra superior fija ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background-color: #ffffff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .brand img {
  height: 30px;
  width: 30px;
  border-radius: 6px;
}

.topbar .brand span {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--azul-primario);
}

.topbar .brand span em {
  color: var(--naranja);
  font-style: normal;
}

.topbar-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topbar-nav a.btn-top {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--azul-primario);
  border: 1px solid var(--azul-primario);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.topbar-nav a.btn-top:hover {
  background-color: var(--azul-primario);
  color: #ffffff;
}

.topbar-nav a.btn-top.solid {
  background-color: var(--naranja);
  border-color: var(--naranja);
  color: #ffffff;
}

.topbar-nav a.btn-top.solid:hover {
  background-color: #e2831f;
  border-color: #e2831f;
}

@media (max-width: 575px) {
  .topbar-nav {
    gap: 6px;
  }
  .topbar-nav a.btn-top {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  .topbar .brand span {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .topbar .brand span {
    display: none;
  }
}

/* ===== Hero del artículo ===== */
.article-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  padding: 7rem 0 4rem;
}

.article-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breadcrumbs {
  font-size: 0.82rem;
  color: #f0f0f0;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.breadcrumbs a {
  color: #f0f0f0;
  opacity: 0.85;
}

.breadcrumbs a:hover {
  color: var(--naranja);
  opacity: 1;
}

.breadcrumbs i {
  font-size: 0.65rem;
  margin: 0 6px;
  opacity: 0.7;
}

.article-hero .category-tag {
  display: inline-block;
  background-color: var(--naranja);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}

.article-hero h1 {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--naranja);
  max-width: 850px;
  margin: 0 auto 1.3rem;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.article-hero .meta {
  font-size: 0.9rem;
  color: #f2f2f2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.article-hero .meta i {
  color: var(--naranja);
  margin-right: 6px;
}

@media (max-width: 767px) {
  .article-hero h1 { font-size: 2.1rem; }
  .article-hero { min-height: auto; padding: 6rem 0 3rem; }
}

/* ===== Cuerpo del artículo (fondo azul, texto blanco) ===== */
.article-body-section {
  background-color: var(--azul-primario);
  color: #ffffff;
  padding: 4.5rem 0;
}

.article-body-section .container {
  position: relative;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.85;
}

/* ===== Índice lateral (no desplaza el contenido centrado) ===== */
.article-toc {
  display: none;
}

@media (min-width: 1200px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 80px;
    float: left;
    width: 220px;
    margin-left: calc(50% - 380px - 250px);
    font-size: 0.85rem;
  }

  .article-toc .toc-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0.9rem;
  }

  .article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid rgba(255,255,255,0.15);
  }

  .article-toc li {
    margin: 0;
  }

  .article-toc a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .article-toc a:hover,
  .article-toc a.active {
    color: var(--naranja);
    border-left-color: var(--naranja);
  }
}

.article-content p {
  margin-bottom: 1.6rem;
  color: #ffffff;
}

.article-content h2 {
  font-size: 1.9rem;
  color: var(--naranja);
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  scroll-margin-top: 80px;
}

.article-content h3 {
  font-size: 1.4rem;
  color: #FFD778;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.6rem;
  padding-left: 1.4rem;
}

.article-content li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--naranja);
  background-color: rgba(255,255,255,0.08);
  padding: 1.2rem 1.6rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #f5f5f5;
  border-radius: 0 6px 6px 0;
}

.article-content a {
  color: #FFD778;
  text-decoration: underline;
}

.article-content strong {
  color: #FFD778;
}

.article-content figure {
  margin: 2.4rem 0;
}

.article-content figure img {
  width: 100%;
  border-radius: 8px;
}

.article-content figcaption {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.6rem;
  text-align: center;
}

.share-bar {
  max-width: 760px;
  margin: 0 auto 3rem;
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.share-bar span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-right: 6px;
}

.share-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.12);
  color: #ffffff;
  transition: all 0.25s ease;
}

.share-bar a:hover {
  background-color: var(--naranja);
  transform: translateY(-2px);
}

.tags-bar {
  max-width: 760px;
  margin: 3rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags-bar a {
  font-size: 0.8rem;
  background-color: rgba(255,255,255,0.12);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 16px;
  transition: all 0.25s ease;
}

.tags-bar a:hover {
  background-color: var(--naranja);
}

/* ===== Artículos relacionados (fondo blanco) ===== */
.related-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.related-section .section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.related-section .section-heading h2 {
  font-size: 2.1rem;
  color: var(--azul-primario);
  margin-bottom: 0.5rem;
}

.related-section .section-heading p {
  color: var(--gris-medio);
  font-size: 1rem;
}

.related-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.09);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.13);
}

.related-card a.card-link {
  display: block;
  color: inherit;
}

.related-card .card-img {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--gris-claro);
}

.related-card .card-body-custom {
  padding: 1.3rem 1.4rem 1.6rem;
}

.related-card .card-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--naranja);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.related-card h4 {
  font-size: 1.05rem;
  color: var(--gris-oscuro);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.related-card p {
  font-size: 0.88rem;
  color: var(--gris-medio);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ===== Más entradas del blog (fondo blanco, lista de enlaces) ===== */
.more-posts-section {
  background-color: #ffffff;
  padding: 1rem 0 5rem;
  border-top: 1px solid #eaeaea;
}

.more-posts-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--azul-primario);
  margin-bottom: 1.6rem;
}

.more-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.more-posts-list li {
  border-bottom: 1px solid #eee;
}

.more-posts-list li:last-child {
  border-bottom: none;
}

.more-posts-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
  transition: opacity 0.2s ease;
}

.more-posts-list a:hover {
  opacity: 0.7;
}

.more-posts-list .post-info {
  min-width: 0;
}

.more-posts-list .post-title {
  display: block;
  color: var(--gris-medio);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}

.more-posts-list a:hover .post-title {
  color: var(--naranja);
}

.more-posts-list a i {
  flex-shrink: 0;
  color: var(--gris-medio);
  font-size: 0.75rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.more-posts-list a:hover i {
  color: var(--naranja);
  transform: translateX(4px);
}

/* ===== Footer gris ===== */
footer.blog-footer {
  background-color: #3a3f47;
  color: #cfd2d6;
  padding: 3rem 0 2rem;
  text-align: center;
}

footer.blog-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  color: #ffffff;
  margin: 0 6px;
  transition: all 0.25s ease;
}

footer.blog-footer .social-link:hover {
  background: linear-gradient(135deg, var(--naranja) 0%, var(--amarillo) 100%);
  transform: translateY(-3px);
}

footer.blog-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

footer.blog-footer a {
  color: #cfd2d6;
}

footer.blog-footer a:hover {
  color: var(--naranja);
}

footer.blog-footer .footer-links a {
  color: var(--naranja);
}

footer.blog-footer .copyright {
  color: #9a9fa6;
  margin-top: 1.5rem;
}
