/* ============================================================
   Visible Studio — blog.css
   Tipografía de artículo y tarjetas del blog. Hereda tokens de styles.css.
   ============================================================ */

.blogmain { padding-top: 5.5rem; padding-bottom: clamp(4.5rem, 9vw, 8rem); }

/* ---------- Encabezado de sección blog (índice) ---------- */
.blog-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 1rem; }
.blog-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 16ch; }
.blog-hero p { color: var(--ink-2); font-size: 1.15rem; margin-top: .7rem; max-width: 52ch; }

/* ---------- Chips de categoría (navegación del hub) ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: .6rem; padding: .5rem 0 1.5rem; border-bottom: 1px solid var(--sand-dark); }
.blog-cats a {
  font-family: var(--font-display); font-weight: 500; font-size: .82rem; color: var(--ink-2);
  border: 1px solid var(--sand-dark); border-radius: 100px; padding: .5rem 1.05rem;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.blog-cats a:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ---------- Bloque de categoría ---------- */
.blog-cat { padding-top: 2.6rem; }
.blog-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.blog-cat__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3.5vw, 1.9rem); color: var(--ink); }
.blog-cat__desc { color: var(--khaki-dark); font-size: .95rem; }

/* ---------- Post destacado (featured) ---------- */
.post-featured {
  display: grid; gap: 0; background: var(--ink); color: var(--bone); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 2.4rem; border: 1px solid var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.post-featured__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-dark); }
.post-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.post-featured__body { padding: clamp(1.6rem, 4vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.post-featured__tag { font-family: var(--font-display); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--persimmon); margin-bottom: .7rem; }
.post-featured__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; color: var(--bone); margin-bottom: .7rem; letter-spacing: -0.01em; }
.post-featured__excerpt { color: var(--sand); font-size: 1.05rem; margin-bottom: 1.2rem; max-width: 46ch; }
.post-featured__more { color: var(--persimmon); font-family: var(--font-display); font-weight: 500; }
@media (min-width: 860px) { .post-featured { grid-template-columns: 1.1fr 1fr; } .post-featured__media { aspect-ratio: auto; height: 100%; } }

/* ---------- Grid de posts ---------- */
.post-grid { display: grid; gap: 1.4rem; padding-block: 1.6rem 1rem; }
@media (min-width: 720px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--sand-dark); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { font-family: var(--font-display); font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--persimmon-dark); margin-bottom: .6rem; }
.post-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; color: var(--ink); margin-bottom: .5rem; }
.post-card__excerpt { color: var(--ink-2); font-size: .98rem; margin-bottom: 1.1rem; }
.post-card__meta { margin-top: auto; font-size: .82rem; color: var(--khaki-dark); display: flex; gap: .5rem; align-items: center; }
.post-card__more { color: var(--persimmon); font-family: var(--font-display); font-weight: 500; font-size: .92rem; }

/* ============================================================
   ARTÍCULO
   ============================================================ */
.article { max-width: 760px; margin-inline: auto; padding-block: 2rem 1rem; }
.breadcrumb { font-size: .85rem; color: var(--khaki-dark); margin-bottom: 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--khaki-dark); }
.breadcrumb a:hover { color: var(--persimmon); }

.article__kicker { font-family: var(--font-display); font-weight: 500; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--persimmon-dark); }
.article h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); line-height: 1.08; margin: .8rem 0 1.1rem; letter-spacing: -0.02em; }
.article__meta { display: flex; align-items: center; gap: .8rem; color: var(--khaki-dark); font-size: .92rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--sand-dark); margin-bottom: 2rem; }
.article__author { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); color: var(--ink); }
.article__author .dotavatar { width: 30px; height: 30px; border-radius: 50%; background: var(--persimmon); display: grid; place-items: center; color: var(--bone); font-size: .8rem; font-weight: 500; }
.article__meta .sep { color: var(--sand-dark); }

.article__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 2.2rem; border: 1px solid var(--sand-dark); }
.article__cover img { width: 100%; height: auto; display: block; }

/* ---------- Prosa ---------- */
.prose { font-family: var(--font-body); color: var(--ink-2); font-size: 1.12rem; line-height: 1.75; }
.prose > p { margin-bottom: 1.3rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 3.5vw, 1.9rem); color: var(--ink); line-height: 1.2; margin: 2.4rem 0 .9rem; letter-spacing: -0.01em; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); margin: 1.6rem 0 .6rem; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--persimmon-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin: 0 0 1.4rem 0; padding-left: 0; }
.prose li { position: relative; padding-left: 1.7rem; margin-bottom: .7rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--persimmon); }
.prose ol { counter-reset: li; }
.prose ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: .05em; width: 22px; height: 22px; border-radius: 50%; background: var(--sand); color: var(--khaki-dark); font-family: var(--font-display); font-size: .78rem; font-weight: 600; display: grid; place-items: center; }
.prose blockquote { border-left: 3px solid var(--persimmon); padding: .2rem 0 .2rem 1.3rem; margin: 1.6rem 0; font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.prose .lead { font-size: 1.25rem; color: var(--ink); font-family: var(--font-display); font-weight: 300; line-height: 1.5; margin-bottom: 1.8rem; }

/* Caja de respuesta directa (buena para IA/GEO) */
.answer-box { background: var(--sand); border: 1px solid var(--sand-dark); border-radius: 14px; padding: 1.2rem 1.4rem; margin: 1.6rem 0; font-size: 1.02rem; }
.answer-box strong { color: var(--ink); }

/* ---------- FAQ dentro del artículo ---------- */
.article-faq { margin-top: 2.6rem; }
.article-faq h2 { margin-bottom: 1.2rem; }
.faq-item { border-top: 1px solid var(--sand-dark); padding: 1.1rem 0; }
.faq-item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--ink); margin-bottom: .4rem; }
.faq-item p { color: var(--ink-2); margin: 0; }

/* ---------- CTA de artículo ---------- */
.article-cta { margin: 3rem 0 1rem; background: var(--ink); color: var(--bone); border-radius: var(--radius-lg); padding: clamp(1.8rem, 5vw, 2.8rem); text-align: center; }
.article-cta h2 { font-family: var(--font-display); font-weight: 300; color: var(--bone); font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: .6rem; }
.article-cta p { color: var(--sand); margin-bottom: 1.6rem; }

/* ---------- Relacionados ---------- */
.related { margin: 3.5rem auto 1rem; max-width: 760px; }
.related h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 1.2rem; color: var(--ink); }
.related__list { display: grid; gap: 1rem; }
@media (min-width: 640px) { .related__list { grid-template-columns: 1fr 1fr; } }
.related__item { display: block; padding: 1.1rem 1.3rem; background: var(--white); border: 1px solid var(--sand-dark); border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.related__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.related__item span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--persimmon-dark); font-family: var(--font-display); font-weight: 500; }
.related__item p { margin: .3rem 0 0; font-family: var(--font-display); color: var(--ink); font-weight: 500; }
