/* ==========================================================================
   show.css
   Estilos exclusivos del artículo de blog (views/blog/show.php)
   Se carga ADEMÁS de css/style.css (header, tipografía base, .cta-final, etc.)
   ========================================================================== */

.post-article .fecha {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal, #0E6B5C);
  margin-bottom: 10px;
}

.post-article h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 22px;
}

.post-article > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow-soft, 0 12px 28px -20px rgba(10,35,30,0.25));
  margin-bottom: 36px;
}

/* Tipografía del contenido HTML (viene de seed.sql / panel interno) --------*/

.post-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft, #3B584F);
}

.post-content > *:first-child { margin-top: 0; }

.post-content h2 {
  font-size: 1.5rem;
  margin: 42px 0 16px;
  color: var(--teal-deep, #0A4A40);
}

.post-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
  color: var(--teal-deep, #0A4A40);
}

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

.post-content a {
  color: var(--teal, #0E6B5C);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content a:hover { color: var(--gold-deep, #B8842E); }

.post-content strong { color: var(--ink, #123832); font-weight: 600; }

.post-content ul,
.post-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.post-content li { margin-bottom: 8px; }
.post-content ul { list-style: none; padding-left: 0; }
.post-content ul li {
  position: relative;
  padding-left: 26px;
}
.post-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold, #D6A24C);
}
.post-content ol { list-style: none; counter-reset: post-ol; padding-left: 0; }
.post-content ol li {
  position: relative;
  padding-left: 30px;
  counter-increment: post-ol;
}
.post-content ol li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-deep, #0A4A40);
  background: var(--teal-tint, #E4F0EC);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--gold, #D6A24C);
  background: var(--paper-alt, #EAF0EA);
  border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
  font-family: var(--font-display, serif);
  font-style: italic;
  color: var(--teal-deep, #0A4A40);
}
.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content img {
  width: 100%;
  border-radius: var(--radius-md, 14px);
  margin: 28px 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--line, rgba(18,56,50,0.14));
  margin: 40px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.94rem;
}
.post-content th,
.post-content td {
  border: 1px solid var(--line, rgba(18,56,50,0.14));
  padding: 10px 14px;
  text-align: left;
}
.post-content th {
  background: var(--paper-alt, #EAF0EA);
  font-weight: 600;
  color: var(--teal-deep, #0A4A40);
}

.post-content code {
  font-family: var(--font-mono, monospace);
  background: var(--paper-alt, #EAF0EA);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* CTA final dentro del artículo (misma pieza, versión compacta) -----------*/

.post-article .cta-final {
  padding: 48px 40px;
}
.post-article .cta-final h2 { font-size: 1.5rem; }
.post-article .cta-final p { margin-bottom: 22px; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 640px) {
  .post-article > img { height: 220px; }
  .post-content { font-size: 1rem; }
  .post-article .cta-final { padding: 36px 24px; }
}
