:root {
  --blog-bg: #eef4ff;
  --blog-surface: rgba(255, 255, 255, 0.88);
  --blog-card: #ffffff;
  --blog-border: rgba(15, 23, 42, 0.08);
  --blog-border-strong: rgba(59, 130, 246, 0.18);
  --blog-text: #0f172a;
  --blog-muted: #5f6f8b;
  --blog-accent: #3b82f6;
  --blog-accent-strong: #1d4ed8;
  --blog-accent-soft: rgba(59, 130, 246, 0.12);
  --blog-dark: #0b1220;
  --blog-success: #0f766e;
  --blog-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --blog-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

body.blog-page {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, var(--blog-bg) 42%, #f8fbff 100%);
  color: var(--blog-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body.blog-page::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-position: center;
  background-size: 34px 34px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 94%);
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.blog-main,
.article-main {
  padding: 7.2rem 0 4.5rem;
  position: relative;
  z-index: 1;
}

.blog-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 1.5rem;
}

.blog-section {
  margin-top: 2rem;
}

.blog-hero,
.article-hero {
  position: relative;
}

.blog-hero-grid,
.article-hero-grid {
  align-items: stretch;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
}

.blog-hero-copy,
.article-hero-copy,
.blog-hero-panel,
.article-hero-panel,
.featured-card,
.blog-help-card,
.article-content,
.article-side-card {
  backdrop-filter: blur(16px);
  background: var(--blog-surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--blog-shadow-soft);
}

.blog-hero-copy,
.article-hero-copy {
  border-radius: 34px;
  overflow: hidden;
  padding: 2.5rem;
  position: relative;
}

.blog-hero-copy::before,
.article-hero-copy::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.blog-kicker,
.article-kicker,
.blog-section-kicker,
.article-section-kicker {
  align-items: center;
  color: var(--blog-accent-strong);
  display: inline-flex;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.blog-kicker::before,
.article-kicker::before,
.blog-section-kicker::before,
.article-section-kicker::before {
  background: linear-gradient(135deg, var(--blog-accent), #8b5cf6);
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.55rem;
  margin-right: 0.75rem;
  width: 0.55rem;
}

.blog-title,
.article-title,
.blog-section-title,
.article-related-title {
  color: var(--blog-text);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
}

.blog-title .accent,
.article-title .accent,
.blog-section-title .accent,
.article-related-title .accent {
  color: var(--blog-accent);
}

.blog-summary,
.article-summary,
.blog-section-summary {
  color: var(--blog-muted);
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 1.25rem 0 0;
  max-width: 52rem;
}

.blog-hero-actions,
.article-hero-actions,
.blog-help-actions,
.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.blog-button,
.blog-button-secondary,
.article-button,
.article-button-secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 0.6rem;
  padding: 0.95rem 1.35rem;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease;
}

.blog-button,
.article-button {
  background: linear-gradient(135deg, var(--blog-accent), var(--blog-accent-strong));
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.24);
  color: #ffffff;
}

.blog-button:hover,
.article-button:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.blog-button-secondary,
.article-button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--blog-text);
}

.blog-button-secondary:hover,
.article-button-secondary:hover {
  color: var(--blog-accent-strong);
  transform: translateY(-2px);
}

.blog-stat-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.blog-stat-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 22px;
  padding: 1rem 1.1rem;
}

.blog-stat-card strong {
  color: var(--blog-text);
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.blog-stat-card span {
  color: var(--blog-muted);
  display: block;
  font-size: 0.92rem;
  margin-top: 0.45rem;
}

.blog-hero-panel,
.article-hero-panel {
  background: linear-gradient(160deg, #0d1527 0%, #141f39 100%);
  border-radius: 30px;
  color: #d7e4ff;
  padding: 2rem;
  position: relative;
}

.blog-hero-panel::before,
.article-hero-panel::before {
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.34), transparent 44%);
  content: "";
  inset: 0;
  position: absolute;
}

.blog-panel-inner,
.article-panel-inner {
  position: relative;
  z-index: 1;
}

.blog-panel-title,
.article-panel-title {
  color: #ffffff;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
}

.blog-panel-copy,
.article-panel-copy {
  color: rgba(226, 232, 240, 0.88);
  font-size: 1rem;
  line-height: 1.8;
  margin: 1rem 0 0;
}

.blog-tag-list,
.article-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.blog-tag,
.article-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(191, 219, 254, 0.16);
  border-radius: 999px;
  color: #e2e8f0;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.58rem 0.9rem;
}

.blog-disclaimer,
.article-panel-note {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  color: #dbeafe;
  margin-top: 1.4rem;
  padding: 1rem 1.05rem;
}

.blog-disclaimer strong,
.article-panel-note strong {
  color: #ffffff;
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.blog-featured-card {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
}

.featured-media,
.article-cover-frame {
  background: #dbe7ff;
  overflow: hidden;
  position: relative;
}

.featured-media {
  min-height: 360px;
}

.featured-media img,
.article-cover-frame img,
.blog-card-media img,
.article-figure img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.featured-media::after,
.article-cover-frame::after {
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.14) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.featured-copy {
  padding: 2rem;
}

.meta-row,
.article-meta,
.blog-card-meta {
  align-items: center;
  color: var(--blog-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.meta-divider {
  background: rgba(100, 116, 139, 0.25);
  border-radius: 999px;
  display: inline-block;
  height: 0.32rem;
  width: 0.32rem;
}

.category-pill {
  background: var(--blog-accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 999px;
  color: var(--blog-accent-strong);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
}

.featured-title,
.blog-card-title,
.article-section-title-sm {
  color: var(--blog-text);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.95rem 0 0;
}

.featured-title a,
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.featured-summary,
.blog-card-summary {
  color: var(--blog-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 1rem 0 0;
}

.featured-points,
.article-panel-points,
.article-checklist,
.article-toc,
.article-related-grid {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.featured-points li,
.article-panel-points li,
.article-checklist li,
.article-toc li {
  align-items: flex-start;
  color: var(--blog-muted);
  display: flex;
  gap: 0.75rem;
  line-height: 1.7;
}

.featured-points li + li,
.article-panel-points li + li,
.article-checklist li + li,
.article-toc li + li {
  margin-top: 0.85rem;
}

.featured-points li::before,
.article-panel-points li::before,
.article-checklist li::before,
.article-toc li::before {
  color: var(--blog-success);
  content: "\f00c";
  font: var(--fa-font-solid);
  margin-top: 0.18rem;
}

.featured-read,
.blog-read-link {
  align-items: center;
  color: var(--blog-accent-strong);
  display: inline-flex;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  gap: 0.55rem;
  margin-top: 1.5rem;
  text-decoration: none;
}

.featured-read:hover,
.blog-read-link:hover {
  color: var(--blog-accent);
}

.blog-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.blog-card {
  background: var(--blog-card);
  border: 1px solid var(--blog-border);
  border-radius: 28px;
  box-shadow: var(--blog-shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card:hover {
  border-color: var(--blog-border-strong);
  box-shadow: var(--blog-shadow);
  transform: translateY(-6px);
}

.blog-card-media {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
}

.blog-card-media img {
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
}

.blog-card-title {
  font-size: 1.45rem;
  margin: 0;
}

.blog-read-link {
  margin-top: auto;
}

.blog-help-card,
.article-cta {
  border-radius: 32px;
  padding: 2rem;
  position: relative;
}

.blog-help-card::before,
.article-cta::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), transparent 60%);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.blog-help-inner,
.article-cta-inner {
  position: relative;
  z-index: 1;
}

.article-breadcrumbs {
  align-items: center;
  color: var(--blog-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.article-breadcrumbs a {
  color: var(--blog-muted);
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: var(--blog-accent-strong);
}

.article-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.article-meta {
  margin-top: 1.25rem;
}

.article-cover-frame {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  box-shadow: var(--blog-shadow);
  margin-top: 1.5rem;
  min-height: 360px;
}

.article-layout {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 280px minmax(0, 1fr);
  margin-top: 2rem;
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 7rem;
}

.article-side-card {
  border-radius: 26px;
  padding: 1.3rem;
}

.article-side-title {
  color: var(--blog-text);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.article-side-copy {
  color: var(--blog-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0.75rem 0 0;
}

.article-toc {
  margin-top: 1rem;
}

.article-toc li::before {
  content: "\f0da";
}

.article-toc a {
  color: inherit;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--blog-accent-strong);
}

.article-content {
  border-radius: 32px;
  padding: 2.1rem;
}

.article-intro {
  color: var(--blog-text);
  font-size: 1.15rem;
  line-height: 1.95;
  margin: 0;
}

.article-figure {
  border-radius: 28px;
  margin: 1.8rem 0;
  overflow: hidden;
}

.article-section {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 1.8rem;
  padding-top: 1.8rem;
}

.article-section:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.article-section h2,
.article-related-title {
  color: var(--blog-text);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}

.article-section p,
.article-related-copy {
  color: var(--blog-muted);
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 1rem 0 0;
}

.article-seo-section {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 1.8rem;
  padding-top: 1.8rem;
}

.article-seo-section p {
  margin: 1rem 0 0;
}

.article-quote {
  background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 100%);
  border-radius: 28px;
  color: #ffffff;
  margin: 1.8rem 0;
  padding: 1.6rem 1.7rem;
  position: relative;
}

.article-quote::before {
  color: rgba(255, 255, 255, 0.18);
  content: "\201C";
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 5rem;
  left: 1rem;
  line-height: 1;
  position: absolute;
  top: 0.2rem;
}

.article-quote p {
  color: #ffffff;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.55;
  margin: 0;
  padding-left: 1.4rem;
  position: relative;
  z-index: 1;
}

.article-related {
  margin-top: 2rem;
}

.article-related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-related-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 24px;
  color: inherit;
  display: block;
  padding: 1.2rem;
  text-decoration: none;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.article-related-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: var(--blog-shadow-soft);
  color: inherit;
  transform: translateY(-3px);
}

.article-related-card span {
  color: var(--blog-accent-strong);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-related-card strong {
  color: var(--blog-text);
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.12rem;
  line-height: 1.3;
  margin-top: 0.7rem;
}

.article-related-card p {
  color: var(--blog-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0.7rem 0 0;
}

.article-cta {
  margin-top: 1.8rem;
}

.slim-footer {
  background: #0b1120;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #d9e0ea;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.slim-footer-container {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 1.5rem;
}

.slim-footer-left {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.slim-brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  gap: 0.75rem;
  text-decoration: none;
}

.slim-brand img {
  border-radius: 10px;
  height: 34px;
  width: 34px;
}

.slim-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slim-links a {
  color: #98a7bf;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.slim-links a:hover,
.slim-socials a:hover {
  color: #ffffff;
}

.seo-link-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.seo-link-title {
  color: #7e8ea7;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.seo-link-list a {
  color: #f5f7fb;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-link-list a:hover {
  color: var(--blog-accent-strong);
}

.slim-socials {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.slim-socials a {
  color: #98a7bf;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.whatsapp-float {
  align-items: center;
  background-color: #25d366;
  border-radius: 999px;
  bottom: 20px;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  color: #ffffff;
  display: flex;
  font-size: 30px;
  height: 60px;
  justify-content: center;
  position: fixed;
  right: 20px;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
  width: 60px;
  z-index: 1000;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.42);
  color: #ffffff;
  transform: scale(1.08);
}

html[dir="rtl"] .blog-kicker::before,
html[dir="rtl"] .article-kicker::before,
html[dir="rtl"] .blog-section-kicker::before,
html[dir="rtl"] .article-section-kicker::before {
  margin-left: 0.75rem;
  margin-right: 0;
}

html[dir="rtl"] .article-breadcrumbs,
html[dir="rtl"] .blog-card-meta,
html[dir="rtl"] .article-meta,
html[dir="rtl"] .meta-row,
html[dir="rtl"] .article-chip-list,
html[dir="rtl"] .article-panel-points,
html[dir="rtl"] .article-checklist,
html[dir="rtl"] .article-toc,
html[dir="rtl"] .featured-points,
html[dir="rtl"] .blog-tag-list,
html[dir="rtl"] .seo-link-list,
html[dir="rtl"] .slim-links,
html[dir="rtl"] .slim-footer-left {
  direction: rtl;
}

html[dir="rtl"] .article-quote::before {
  left: auto;
  right: 1rem;
}

html[dir="rtl"] .article-quote p {
  padding-left: 0;
  padding-right: 1.4rem;
}

html[dir="rtl"] .whatsapp-float {
  left: 20px;
  right: auto;
}

@media (max-width: 1120px) {
  .blog-grid,
  .article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 960px) {
  .blog-hero-grid,
  .article-hero-grid,
  .blog-featured-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-media,
  .article-cover-frame {
    min-height: 300px;
  }

  .blog-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .blog-main,
  .article-main {
    padding-top: 6.4rem;
  }

  .blog-shell {
    padding: 0 1rem;
  }

  .blog-hero-copy,
  .article-hero-copy,
  .featured-copy,
  .blog-help-card,
  .article-content,
  .article-side-card,
  .blog-hero-panel,
  .article-hero-panel {
    padding: 1.4rem;
  }

  .blog-grid,
  .article-related-grid,
  .blog-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-title,
  .blog-title {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .article-cover-frame,
  .featured-media {
    min-height: 240px;
  }

  .slim-footer-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .slim-footer-left {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
