@layer pages {

/**
 * G-Certi Blog Styles v1.0.0
 * ==========================
 * Estilos específicos para el blog que extienden Quantum Pro
 * 
 * @package  GCerti\Blog
 * @version  1.0.0
 * @updated  2026-01-30
 */


/* ═══════════════════════════════════════════════════════════════════════════
   BLOG LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-blog {
  --blog-max-width: 720px;
  --blog-wide-max: 1200px;
}

.gc-blog-container {
  max-width: var(--blog-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.gc-blog-container--wide {
  max-width: var(--blog-wide-max);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-blog-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--gc-slate-50) 0%, var(--gc-white) 100%);
  border-bottom: 1px solid var(--gc-border);
}

.gc-blog-title {
  font-family: var(--gc-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gc-slate-900);
  margin: 0 0 1rem;
}

.gc-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gc-slate-500);
}

.gc-blog-meta time,
.gc-blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.gc-blog-meta svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE CONTENT (PROSE)
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-prose {
  font-family: var(--gc-font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gc-slate-700);
}

.gc-prose > * + * {
  margin-top: 1.5em;
}

.gc-prose h2 {
  font-family: var(--gc-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gc-slate-900);
  margin-top: 3rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}

.gc-prose h3 {
  font-family: var(--gc-font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gc-slate-800);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.gc-prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gc-slate-800);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.gc-prose p {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.gc-prose a {
  color: var(--gc-primary);
  text-decoration: underline;
  text-decoration-color: rgba(166, 33, 38, 0.3);
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.gc-prose a:hover {
  color: var(--gc-primary-hover);
  text-decoration-color: var(--gc-primary);
}

.gc-prose strong {
  font-weight: 600;
  color: var(--gc-slate-900);
}

.gc-prose ul,
.gc-prose ol {
  padding-left: 1.5rem;
  margin: 1.25em 0;
}

.gc-prose li {
  margin: 0.5em 0;
  padding-left: 0.375rem;
}

.gc-prose li::marker {
  color: var(--gc-primary);
}

.gc-prose blockquote {
  border-left: 4px solid var(--gc-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--gc-slate-50);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--gc-slate-600);
}

.gc-prose blockquote p:last-child {
  margin-bottom: 0;
}

.gc-prose pre {
  background: var(--gc-slate-900);
  color: var(--gc-slate-100);
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.5rem 0;
}

.gc-prose code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--gc-slate-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: var(--gc-primary);
}

.gc-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.gc-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
}

.gc-prose figure {
  margin: 2rem 0;
}

.gc-prose figcaption {
  font-size: 0.875rem;
  color: var(--gc-slate-500);
  text-align: center;
  margin-top: 0.75rem;
}

.gc-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.gc-prose th,
.gc-prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gc-border);
  text-align: left;
}

.gc-prose th {
  font-weight: 600;
  color: var(--gc-slate-900);
  background: var(--gc-slate-50);
}

.gc-prose hr {
  border: none;
  border-top: 1px solid var(--gc-border);
  margin: 3rem 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG CARDS (List View)
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.gc-blog-card {
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gc-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gc-blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gc-slate-100);
}

.gc-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.gc-blog-card__content {
  padding: 1.5rem;
}

.gc-blog-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gc-primary);
  margin-bottom: 0.5rem;
}

.gc-blog-card__title {
  font-family: var(--gc-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gc-slate-900);
  margin: 0 0 0.75rem;
}

.gc-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.gc-blog-card__title a:hover {
  color: var(--gc-primary);
}

.gc-blog-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gc-slate-600);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gc-slate-400);
  padding-top: 1rem;
  border-top: 1px solid var(--gc-slate-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG SIDEBAR / TABLE OF CONTENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-blog-toc {
  position: sticky;
  top: 6rem;
  padding: 1.5rem;
  background: var(--gc-slate-50);
  border-radius: 0.75rem;
  border: 1px solid var(--gc-border);
}

.gc-blog-toc__title {
  font-family: var(--gc-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gc-slate-500);
  margin-bottom: 1rem;
}

.gc-blog-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gc-blog-toc__item {
  margin: 0.5rem 0;
}

.gc-blog-toc__link {
  font-size: 0.875rem;
  color: var(--gc-slate-600);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 0.25rem 0;
}

.gc-blog-toc__link:hover,
.gc-blog-toc__link.active {
  color: var(--gc-primary);
}

.gc-blog-toc__link.active {
  font-weight: 500;
}

.gc-blog-toc__item--h3 {
  padding-left: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARE BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-share {
  display: flex;
  gap: 0.75rem;
  margin: 2rem 0;
}

.gc-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gc-slate-100);
  color: var(--gc-slate-600);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.gc-share__btn:hover {
  background: var(--gc-primary);
  color: white;
  transform: scale(1.1);
}

.gc-share__btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTHOR BOX
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-author-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--gc-slate-50);
  border-radius: 1rem;
  margin: 3rem 0;
}

.gc-author-box__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gc-slate-200);
}

.gc-author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gc-author-box__name {
  font-family: var(--gc-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gc-slate-900);
  margin: 0 0 0.25rem;
}

.gc-author-box__role {
  font-size: 0.875rem;
  color: var(--gc-primary);
  margin-bottom: 0.75rem;
}

.gc-author-box__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gc-slate-600);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL UPGRADE
   ═══════════════════════════════════════════════════════════════════════════ */
.gc-blog-hero {
  position: relative;
}

.gc-blog-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 0;
}

.gc-blog-rail__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.gc-blog-rail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(166, 33, 38, 0.08);
  color: var(--gc-primary);
}

.gc-blog-rail__item strong {
  display: block;
  color: var(--gc-slate-900);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.gc-blog-rail__item span:last-child {
  color: var(--gc-slate-600);
  font-size: 0.875rem;
  line-height: 1.6;
}

.gc-blog-filter {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gc-blog-index-surface {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(166, 33, 38, 0.06), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.gc-blog-feature {
  position: relative;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
}

.gc-blog-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.04));
}

.gc-blog-story {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.gc-blog-story:hover {
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

.gc-blog-newsletter {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(127, 29, 29, 0.18);
}

.gc-blog-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%);
  pointer-events: none;
}

.gc-editorial-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.gc-editorial-meta {
  row-gap: 0.75rem;
}

.gc-article-lead {
  max-width: 42rem;
  color: rgba(226, 232, 240, 0.86);
  font-size: 1.05rem;
  line-height: 1.85;
}

.gc-editorial-body {
  color: var(--gc-slate-700);
}

.gc-editorial-body > :first-child {
  margin-top: 0;
}

.gc-editorial-body > p:first-of-type {
  font-size: 1.125rem;
  color: var(--gc-slate-800);
}

.gc-editorial-body h2 {
  position: relative;
  padding-top: 0.25rem;
}

.gc-editorial-body h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--gc-primary), rgba(166, 33, 38, 0.25));
}

.gc-editorial-body table {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.gc-editorial-body .overflow-x-auto {
  margin: 2rem 0;
  border-radius: 1rem;
}

.gc-editorial-aside-card {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.blog-toc a {
  display: block;
  padding: 0.45rem 0 0.45rem 0.85rem;
  border-left: 2px solid transparent;
  color: var(--gc-slate-500);
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-toc a:hover {
  color: var(--gc-slate-900);
  border-color: rgba(166, 33, 38, 0.25);
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — F-PATTERN MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .gc-blog-rail {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .gc-blog-header {
    padding: 3rem 0 2rem;
    text-align: left;
  }
  
  .gc-blog-title {
    text-align: left;
  }
  
  .gc-prose h2 {
    font-size: 1.5rem;
    text-align: left;
    border-left: 4px solid var(--gc-primary);
    padding-left: 1rem;
    margin-left: 0;
  }
  
  .gc-prose h3 {
    font-size: 1.25rem;
    text-align: left;
  }
  
  .gc-blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Blog Cards - F Pattern */
  .gc-blog-card {
    border-left: 4px solid var(--gc-primary);
    border-radius: 0 1rem 1rem 0;
    padding-left: 1rem;
  }
  
  .gc-blog-card h3,
  .gc-blog-card h4,
  .gc-blog-card .gc-card-title {
    text-align: left;
  }
  
  .gc-blog-card p,
  .gc-blog-card .gc-card-excerpt {
    text-align: left;
  }
  
  /* Blog meta left aligned */
  .gc-blog-meta {
    justify-content: flex-start;
  }
  
  /* Tags left */
  .gc-blog-tags {
    justify-content: flex-start;
  }
  
  /* CTAs full width */
  .gc-blog-cta a,
  .gc-blog-cta button {
    width: 100%;
    justify-content: center;
  }
  
  .gc-author-box {
    flex-direction: column;
    text-align: left;
    border-left: 4px solid var(--gc-primary);
    border-radius: 0 1rem 1rem 0;
  }
  
  .gc-author-box__avatar {
    margin: 0;
  }
  
  .gc-author-box__name,
  .gc-author-box__role,
  .gc-author-box__bio {
    text-align: left;
  }
  
  /* Sidebar stacks below */
  .gc-blog-sidebar {
    margin-top: 2rem;
  }
  
  .gc-blog-sidebar h3,
  .gc-blog-sidebar h4 {
    text-align: left;
    border-left: 4px solid var(--gc-primary);
    padding-left: 0.75rem;
  }
  
  /* Related posts */
  .gc-related-posts {
    text-align: left;
  }
  
  .gc-related-posts h3 {
    text-align: left;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EDITORIAL REFRESH — Article rhythm and calmer utility surfaces
   ═══════════════════════════════════════════════════════════════════════════ */

.gc-blog-article {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.7) 0%, rgba(255, 255, 255, 0) 10%),
    #fff;
}

.gc-editorial-hero {
  position: relative;
  overflow: hidden;
}

.gc-article-lead {
  max-width: 42rem;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.gc-blog-body-shell {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.gc-editorial-main {
  max-width: 46rem;
}

.gc-editorial-body.gc-prose {
  max-width: 45rem;
  font-size: 1.075rem;
  line-height: 1.85;
  color: #475569;
}

.gc-editorial-body.gc-prose > * + * {
  margin-top: 1.35em;
}

.gc-editorial-body.gc-prose h2,
.gc-editorial-body.gc-prose h3,
.gc-editorial-body.gc-prose h4 {
  letter-spacing: -0.025em;
}

.gc-editorial-body.gc-prose h2 {
  margin-top: 4rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  scroll-margin-top: 6.5rem;
}

.gc-editorial-body.gc-prose h3,
.gc-editorial-body.gc-prose h4 {
  scroll-margin-top: 6.5rem;
}

.gc-editorial-body.gc-prose blockquote {
  border-left-width: 3px;
  border-left-color: rgba(166, 33, 38, 0.7);
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.9), rgba(248, 250, 252, 0.95));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  font-style: normal;
  color: #334155;
}

.gc-editorial-body.gc-prose figure,
.gc-editorial-body.gc-prose img,
.gc-editorial-body.gc-prose table,
.gc-editorial-body.gc-prose pre {
  margin-block: 2.25rem;
}

.gc-editorial-aside-card {
  border-radius: 1.25rem;
  border-color: rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.gc-editorial-mobile-toc {
  box-shadow: none;
}

.blog-toc a {
  display: block;
  padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  border-left: 2px solid transparent;
  border-radius: 0.85rem;
  color: #64748b;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.blog-toc a:hover {
  color: var(--gc-primary, #a62126);
  background: rgba(166, 33, 38, 0.04);
}

.blog-toc a.text-gc-red-500 {
  background: rgba(166, 33, 38, 0.05);
  border-left-color: var(--gc-primary, #a62126);
}

.blog-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc li {
  margin: 0;
}

.gc-blog-tags,
.gc-blog-share,
.gc-blog-author,
.gc-blog-faq {
  margin-top: 3rem;
  padding-top: 2rem;
}

.gc-blog-share a,
.gc-blog-share button {
  border-radius: 999px;
  box-shadow: none;
}

.gc-blog-author > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  border-color: rgba(226, 232, 240, 0.85);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.gc-blog-related {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.gc-blog-adjacent a {
  border-radius: 1.5rem;
}

@media (max-width: 1023px) {
  .gc-blog-body-shell {
    padding-top: 2.75rem;
  }

  .gc-editorial-main,
  .gc-editorial-body.gc-prose {
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .gc-editorial-hero {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .gc-article-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .gc-editorial-body.gc-prose {
    font-size: 1rem;
    line-height: 1.8;
  }

  .gc-editorial-body.gc-prose h2 {
    margin-top: 3rem;
    font-size: 1.7rem;
  }

  .gc-blog-share .flex {
    flex-direction: column;
  }

  .gc-blog-share a,
  .gc-blog-share button {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
  .gc-blog-toc,
  .gc-share {
    display: none;
  }
  
  .gc-prose {
    font-size: 12pt;
  }
  
  .gc-prose a {
    color: inherit;
    text-decoration: underline;
  }
  
  .gc-prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}


} /* end @layer pages */
