/* Bravvo · blog "Consultas Reales". Se carga después de styles.css y usa sus mismos tokens. */

/* ---------- Índice del blog ---------- */
.blog-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.blog-hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.045em; }
.blog-hero p { margin-top: 18px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); }

.post-grid { list-style: none; margin: 0; padding: 0 0 clamp(80px, 10vw, 120px); display: grid; gap: 20px; }
.post-card { position: relative; background: var(--blanco); border: 1px solid var(--ink-line); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.25s, transform 0.35s var(--ease); }
.post-card:hover { border-color: var(--indigo); transform: translateY(-3px); }
.post-card:focus-within { outline: 3px solid var(--lavanda); outline-offset: 2px; }
.post-card h2, .post-card h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.02em; }
.post-card h2 a, .post-card h3 a { color: var(--indigo); text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }

/* Sección "Del blog" en la portada */
.del-blog { padding: clamp(64px, 8vw, 110px) 0 0; }
.del-blog .trabajos-head a { color: var(--indigo); font-weight: 700; }
.del-blog .post-grid { padding-bottom: 0; }
@media (min-width: 1000px) { .del-blog .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card p { color: var(--ink-soft); font-size: 15px; }
.post-tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--cian); color: var(--indigo); }
.post-card:nth-child(3n+2) .post-tag { background: var(--lavanda); }
.post-card:nth-child(3n) .post-tag { background: var(--orbita); border: 1px solid var(--ink-line); }
.post-card .post-read { margin-top: auto; font-size: 13px; color: var(--ink-soft); }

/* ---------- Nota ---------- */
.post { padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 100px); }
.post-wrap { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 28px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--indigo); }
.post-meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.post h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.04em; }
.post-lead { margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-soft); }

.post-body { margin-top: 40px; font-size: 18px; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { margin-top: 2em; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
.post-body h3 { margin-top: 1.6em; font-size: 21px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.45em; }
.post-body li::marker { color: var(--indigo); font-weight: 700; }
.post-body a { color: var(--indigo); text-decoration-color: var(--cian); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--indigo); }
.post-body strong { color: var(--indigo); }
.post-body blockquote { margin: 1.6em 0; padding: 20px 24px; border-radius: 18px; background: var(--blanco); border-left: 5px solid var(--cian); font-size: 19px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink-line); vertical-align: top; }
.post-body th { font-weight: 700; }
.table-scroll { overflow-x: auto; }

.post-faq { margin-top: 56px; }
.post-faq h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin-bottom: 16px; }

.post-cta { margin-top: 56px; background: var(--lavanda); border-radius: 28px; padding: clamp(28px, 4vw, 44px); }
.post-cta h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -0.03em; }
.post-cta p { margin: 12px 0 24px; max-width: 32em; color: rgba(23, 27, 69, 0.85); }

.post-related { margin-top: 64px; }
.post-related h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 18px; }
.post-related .post-grid { padding-bottom: 0; }

@media (min-width: 720px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-related .post-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .blog .post-grid { grid-template-columns: repeat(3, 1fr); }
}
