/* ==========================================================================
   BLOG DESIGN SYSTEM - HOJA DE VIDA ATS
   ========================================================================== */

:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(15, 23, 42, 0.85);
  --card-bg-hover: rgba(30, 41, 59, 0.9);
  --border-color: #1e293b;
  --border-hover: #334155;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-green: #b0f2ae;
  --accent-green-dark: #0f172a;
  
  --gradient-brand: linear-gradient(135deg, #60a5fa, #3b82f6);
  --gradient-card: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 0),
    radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER GLASSMORPHISM ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.header-back-link:hover {
  color: #ffffff;
  background: #1e293b;
  border-color: #475569;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
}

.site-title {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.3px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue-light);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav .nav-trigger {
  display: none;
}

.site-nav .menu-icon {
  display: none;
}

.site-nav .trigger {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav .page-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-nav .page-link:hover {
  color: #ffffff;
}

.nav-cta-btn {
  background: #b0f2ae;
  color: #0f172a;
  border: 1px solid #86efac;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(134, 239, 172, 0.2);
}

.nav-cta-btn:hover {
  background: #a0ec9d;
  transform: translateY(-1px);
}

/* ── LAYOUT PRINCIPAL ────────────────────────────────────────────────── */
.page-content {
  flex-grow: 1;
  padding: 40px 0 60px 0;
}

.wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO SECTION ────────────────────────────────────────────────────── */
.hero-section {
  text-align: center;
  max-width: 760px;
  margin: 10px auto 50px auto;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.section-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--border-color);
}

/* ── POST CARDS GRID ─────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.format-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.format-card:hover {
  border-color: #3b82f6;
  background: var(--card-bg-hover);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
}

.format-card-image {
  display: block;
  position: relative;
  height: 180px;
  background-color: #0b0f19;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  overflow: hidden;
}

.format-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 18% !important;
}

.format-card-content {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.format-card-category {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  width: fit-content;
  margin: 0 auto;
}

.format-card h3 {
  margin: 4px 0 6px 0;
  font-size: 20px;
  color: #f8fafc;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.format-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.4;
  flex: 1;
}

.format-card-actions {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.format-card-actions .btn-primary {
  display: block;
  width: 100%;
  padding: 11px 20px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #0b91a6 0%, #087a8c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(11, 145, 166, 0.39);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.format-card-actions .btn-primary:hover {
  background: linear-gradient(135deg, #0dabc4 0%, #0b91a6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 145, 166, 0.48);
}

.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.post-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-blue-light);
  background: rgba(59, 130, 246, 0.12);
  padding: 3px 10px;
  border-radius: 6px;
}

.post-date {
  font-size: 12px;
  color: var(--text-muted);
}

.post-card-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.post-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--accent-blue-light);
}

.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.post-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue-light);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.read-more-btn:hover {
  gap: 12px;
  color: #93c5fd;
}

/* ── POST DETAIL VIEW ────────────────────────────────────────────────── */
.post-detail {
  max-width: 780px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.post-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.back-to-blog {
  color: var(--accent-blue-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-to-blog:hover {
  color: #93c5fd;
}

.post-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-blue-light);
  background: rgba(59, 130, 246, 0.15);
  padding: 3px 10px;
  border-radius: 6px;
}

.post-detail-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px 0;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 13px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-content-body {
  font-size: 16px;
  line-height: 1.75;
  color: #cbd5e1;
}

.post-content-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.post-content-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px 0;
}

.post-content-body p {
  margin-bottom: 20px;
}

.post-content-body a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.post-content-body a:visited {
  color: #818cf8;
}

.post-content-body a:hover,
.post-content-body a:focus {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── ESTILOS DEL ÍNDICE DE CONTENIDOS (TOC) ──────────────────────────── */
.post-content-body h2:first-of-type + ol,
.post-content-body ul.toc,
.post-content-body ol.toc {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 20px 24px 20px 42px;
  margin: 20px 0 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.post-content-body h2:first-of-type + ol li,
.post-content-body ul.toc li,
.post-content-body ol.toc li {
  margin-bottom: 10px;
  color: #94a3b8;
  font-weight: 600;
}

.post-content-body h2:first-of-type + ol li a,
.post-content-body ul.toc li a,
.post-content-body ol.toc li a {
  color: #38bdf8;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.post-content-body h2:first-of-type + ol li a:hover,
.post-content-body ul.toc li a:hover,
.post-content-body ol.toc li a:hover {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  text-decoration: none;
  transform: translateX(4px);
}

.post-content-body ul, 
.post-content-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content-body li {
  margin-bottom: 8px;
}

.post-content-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(30, 41, 59, 0.6);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 10px 10px 0;
  color: #f1f5f9;
  font-style: italic;
}

/* ── IMÁGENES COMPLETAS, SIN RECORTAR, CENTRADAS Y RESPONSIVAS ─────────── */
.post-content-body img,
.post-content img,
article img,
.wrapper img,
img {
  max-width: 580px !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 28px auto !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid var(--border-color, #334155) !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .post-content-body img,
  .post-content img,
  article img,
  img {
    max-width: 100% !important;
    margin: 20px auto !important;
  }
}

/* ── PREVENCIÓN COMPLETA DE SCROLL HORIZONTAL ─────────────────────────── */
.post-content-body pre,
.post-content pre,
.wrapper pre,
pre {
  max-width: 100% !important;
  width: 100% !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  background: #0b1324 !important;
  border: 1px solid #334155 !important;
  border-left: 4px solid #38bdf8 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin: 24px 0 !important;
  font-family: 'Consolas', 'Fira Code', 'Monaco', monospace !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: #e2e8f0 !important;
}

.post-content-body pre code,
.post-content pre code,
.wrapper pre code,
pre code {
  max-width: 100% !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow-x: hidden !important;
  font-family: inherit !important;
  color: inherit !important;
  box-sizing: border-box !important;
}

.post-content-body code,
code {
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* ── CONTENEDOR DE VISTA PREVIA DE HOJA DE VIDA ATS (MOCKUP CV) ───────── */
.cv-preview-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-top: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 28px 24px;
  margin: 28px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  color: #e2e8f0;
}

.cv-preview-header {
  text-align: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.cv-preview-header h2 {
  margin: 0 0 4px 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  letter-spacing: 1px;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.cv-subtitle {
  margin: 0 0 8px 0 !important;
  font-size: 14px;
  font-weight: 600;
  color: #38bdf8;
}

.cv-contact-info {
  margin: 0 !important;
  font-size: 12.5px;
  color: #94a3b8;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cv-preview-section {
  margin-bottom: 20px;
}

.cv-preview-section:last-child {
  margin-bottom: 0;
}

.cv-section-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #1e293b !important;
  padding-bottom: 4px !important;
  margin: 16px 0 12px 0 !important;
}

.cv-preview-section p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.cv-job-block {
  margin-bottom: 16px;
}

.cv-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #f1f5f9;
}

.cv-job-header strong {
  color: #f8fafc;
}

.cv-job-header span {
  font-size: 12.5px;
  color: #94a3b8;
}

.cv-job-sub {
  font-size: 12.5px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.cv-bullets {
  margin: 6px 0 12px 0 !important;
  padding-left: 20px !important;
}

.cv-bullets li {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 6px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── COMPONENTE FÓRMULA DE REDACCIÓN ATS ─────────────────────────────── */
.ats-formula-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #3b82f6;
  border-radius: 14px;
  padding: 18px 24px;
  margin: 28px 0;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  text-align: center;
}

.ats-formula-box .formula-term {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ats-formula-box .formula-plus {
  color: #38bdf8;
  font-size: 18px;
  font-weight: 800;
}

.post-content-body pre code,
.post-content pre code,
.wrapper pre code,
pre code {
  max-width: 100% !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow-x: hidden !important;
  font-family: inherit !important;
  color: inherit !important;
  box-sizing: border-box !important;
}

.post-content-body code,
code {
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* ── COMPONENTE TARJETAS DE EJEMPLO (SIN SCROLL HORIZONTAL) ─────────────── */
.ats-example-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-left: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.ats-example-card .card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ats-example-card .card-content {
  font-family: 'Consolas', 'Fira Code', 'Monaco', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #e2e8f0;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.ats-example-card .card-role {
  color: #38bdf8;
  font-size: 14.5px;
}

.ats-example-card .card-meta {
  color: #64748b;
  font-size: 12.5px;
  display: block;
  margin-bottom: 10px;
}

.ats-example-card ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

.ats-example-card li {
  margin-bottom: 6px;
  color: #cbd5e1;
}

.ats-template-card {
  background: #090d16;
  border: 1px solid #334155;
  border-radius: 14px;
  margin: 28px 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  width: 100%;
  box-sizing: border-box;
}

.template-card-header {
  background: #1e293b;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #334155;
}

.template-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.template-dot:nth-child(1) { background: #ef4444; }
.template-dot:nth-child(2) { background: #f59e0b; }
.template-dot:nth-child(3) { background: #10b981; }

.template-card-title {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.template-card-body {
  padding: 20px;
  font-family: 'Consolas', 'Fira Code', 'Monaco', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #38bdf8;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* ── COMPONENTE TABLAS DE CONTENIDO ──────────────────────────────────── */
.post-content-body table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 24px 0;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  table-layout: fixed !important;
}

.post-content-body th,
.post-content-body td {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 13.5px;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.post-content-body th {
  background: #1e293b;
  color: var(--accent-blue-light);
  font-weight: 700;
}

.post-content-body tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.4);
}

/* ── COMPONENTE FLUJO DE TRABAJO ATS (PIPELINE) ───────────────────────── */
.ats-workflow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex: 1 1 auto;
  min-width: 140px;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.workflow-step:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.workflow-step.highlight {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #60a5fa;
}

.workflow-step .step-num {
  width: 24px;
  height: 24px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-arrow {
  color: #60a5fa;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .ats-workflow-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
  }
  
  .workflow-step {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    margin: 2px 0;
    align-self: center;
  }
}

/* ── COMPONENTE ANATOMÍA DE HOJA DE VIDA ATS ─────────────────────────── */
.ats-anatomy-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  width: 100%;
  box-sizing: border-box;
}

.anatomy-block {
  background: #1e293b;
  border: 1px solid #334155;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.anatomy-block:hover {
  border-color: #60a5fa;
  background: rgba(30, 41, 59, 0.95);
}

.anatomy-block .block-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.anatomy-block .block-sub {
  font-size: 12.5px;
  color: #94a3b8;
  overflow-wrap: break-word;
}

/* ── CALL TO ACTION DENTRO DEL ARTÍCULO ────────────────────────────────── */
.in-article-cta {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1.5px solid #3b82f6;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.18);
}

.in-article-cta .cta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.in-article-cta h3 {
  margin: 0 0 6px 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.in-article-cta p {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #94a3b8 !important;
  line-height: 1.5 !important;
}

.btn-in-article-cta {
  background: #b0f2ae;
  color: #0f172a !important;
  border: 1px solid #86efac;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(134, 239, 172, 0.25);
  flex-shrink: 0;
}

.btn-in-article-cta:hover {
  background: #a0ec9d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(134, 239, 172, 0.35);
  color: #0f172a !important;
}

@media (max-width: 680px) {
  .in-article-cta {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .btn-in-article-cta {
    width: 100%;
    text-align: center;
  }
}

.post-content-body code {
  background: #1e293b;
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
}

.post-content-body pre {
  background: #0f172a;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
}

.post-content-body pre code {
  background: transparent;
  padding: 0;
}

.author-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.author-avatar {
  font-size: 28px;
  background: #1e293b;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
}

.author-info p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer {
  background: #080c14;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 24px 0;
  margin-top: auto;
}

.footer-cta-container {
  max-width: 900px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.footer-cta-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1.5px solid #3b82f6;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.footer-cta-text h3 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.footer-cta-text p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.btn-footer-cta {
  background: #b0f2ae;
  color: #0f172a;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(134, 239, 172, 0.3);
}

.btn-footer-cta:hover {
  background: #a0ec9d;
  transform: translateY(-2px);
}

.footer-main-content {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-title {
  font-size: 16px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px 0;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px 0;
}

.footer-col p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 300px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1040px;
  margin: 40px auto 0 auto;
  padding: 20px 20px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── EMPTY STATE ──────────────────────────────────────────────────────── */
.empty-posts-state {
  text-align: center;
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  padding: 48px 24px;
  max-width: 540px;
  margin: 20px auto;
}

.empty-posts-state .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-posts-state h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-posts-state p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ── RESPONSIVE ADAPTABILITY ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14.5px;
  }

  .footer-cta-card {
    flex-direction: column;
    text-align: center;
  }

  .btn-footer-cta {
    width: 100%;
    text-align: center;
  }

  .footer-main-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-nav .trigger {
    display: none;
  }

  .site-nav .menu-icon {
    display: block;
    cursor: pointer;
    padding: 6px;
    color: var(--text-secondary);
  }

  .site-nav .nav-trigger:checked ~ .trigger {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }
}

/* ── TEMPLATE GALLERY GRID & TRANSACTIONAL CTAs ──────────────────────── */
.template-gallery-container {
  margin: 32px 0;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
}

.template-gallery-header {
  text-align: center;
  margin-bottom: 24px;
}

.template-gallery-header h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.template-gallery-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.template-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.template-card {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue-light);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
  background: rgba(30, 41, 59, 0.85);
}

.template-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue-light);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.template-badge.executive {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.template-badge.tech {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.template-preview-box {
  width: 100%;
  height: 140px;
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mini-cv-line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  width: 100%;
}

.mini-cv-line.header-line {
  height: 10px;
  width: 60%;
  background: #1e293b;
  margin-bottom: 4px;
}

.mini-cv-line.sub-line {
  height: 6px;
  width: 80%;
  background: #3b82f6;
  margin-bottom: 8px;
}

.mini-cv-block {
  height: 24px;
  background: #f1f5f9;
  border-left: 3px solid #cbd5e1;
  border-radius: 2px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.template-card h4 {
  margin: 12px 0 16px 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
}

.template-card p {
  display: none;
}

.btn-template-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #022c22 !important;
  background: #34d399 !important;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.btn-template-select:hover {
  background: #6ee7b7 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4);
}

