/* ==========================================================================
   PAGE: ARTÍCULO DE BLOG (plantilla)
   Prefijo: .art-
   ========================================================================== */

/* Cabecera: título algo más contenido que en las páginas de sección */
.art-head { padding-bottom: clamp(24px, 3vw, 40px); }
.art-head .h1 { font-size: clamp(36px, 4.4vw, 68px); max-width: 20ch; line-height: 1.02; }
.art-head .lead { max-width: 62ch; }

.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 6px; font-size: 13.5px; color: var(--stone);
}
.art-authors { display: flex; align-items: center; gap: 10px; }
.art-authors img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top;
  border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.art-authors img + img { margin-left: -18px; }
.art-authors span { color: var(--ink); font-weight: 500; margin-left: 4px; }
.art-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--kaki-deep); }

/* Imagen de portada: ancho completo del wrap, radio grande, nunca en el page-head */
.art-cover {
  margin: 0; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 21 / 9; max-height: 560px;
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }

/* Cuerpo */
.art-body { padding-top: clamp(40px, 5vw, 72px); }
.art-main { display: grid; gap: clamp(36px, 4.4vw, 60px); min-width: 0; }

/* "En resumen": bloque nude, útil para lectura rápida y para citación */
.art-summary {
  background: var(--nude); border-radius: var(--radius-md);
  padding: 24px 26px 26px; max-width: 68ch; display: grid; gap: 14px;
}
.art-summary ul { display: grid; gap: 10px; }
.art-summary li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.5; color: var(--stone); }
.art-summary li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 2px; background: var(--sandia); }
.art-summary strong { color: var(--ink); font-weight: 500; }

/* Prosa: hereda .prose; ajustes para artículo largo */
.art-prose { font-size: 17.5px; gap: 20px; }
.art-prose > p:first-child { font-size: 19px; color: var(--ink); }
.art-prose h2 { margin-top: 22px; scroll-margin-top: calc(var(--header-h) + 24px); }
.art-prose h2 + p, .art-prose h2 + ul, .art-prose h2 + ol { margin-top: -4px; }
.art-prose ol { display: grid; gap: 12px; padding-left: 0; margin: 0; list-style: none; counter-reset: art; }
.art-prose ol li { position: relative; padding-left: 44px; counter-increment: art; }
.art-prose ol li::before {
  content: counter(art, decimal-leading-zero);
  position: absolute; left: 0; top: 0.15em;
  font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--sandia);
}
.art-prose a:hover { border-bottom-color: var(--ink); }

/* Cita destacada dentro del flujo */
.art-pull {
  margin: 18px 0; padding: 8px 0 8px 26px;
  border-left: 2px solid var(--sandia);
}
.art-pull p {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2;
  letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
.art-pull em { color: var(--sandia); }

/* FAQ: details nativos, estilo sobrio */
.art-faq { max-width: 68ch; display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 28px; }
.art-faq .h3 { margin-bottom: 6px; }
.art-faq .h3 em { color: var(--sandia); }
.art-faq details { border-bottom: 1px solid var(--line); }
.art-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-size: 16.5px; font-weight: 500; color: var(--ink);
}
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary::after {
  content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--stone);
  transition: transform .3s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.art-faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.art-faq details p { padding: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--stone); max-width: 60ch; }

/* Autoras al pie del artículo */
.art-authors-box { display: grid; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.art-authors-box .people-title { font-size: clamp(28px, 3vw, 40px); }
.art-authors-box .founders-grid { gap: 24px; }
.art-authors-box .founder { grid-template-columns: 120px 1fr; gap: 20px; border-top: 0; padding-top: 0; }
.art-authors-box .founder img { width: 120px; height: 150px; }
.art-authors-box .founder .name { font-size: 24px; }
.art-authors-box .founder .role { font-size: 16px; }
.art-authors-box .founder p { font-size: 14px; margin-top: 10px; }

/* Aside */
.art-aside { top: calc(var(--header-h) + 24px); }
.art-toc li a { position: relative; padding-left: 16px; justify-content: flex-start; }
.art-toc li a::before {
  content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--kaki);
  transition: width .25s var(--ease-out), background-color .2s;
}
.art-toc li a:hover::before { width: 12px; background: var(--sandia); }

.aside-block.art-cta { border-top: 0; background: var(--nude); border-radius: var(--radius-md); padding: 22px 22px 24px; gap: 4px; }
.art-cta-name { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin-top: 6px; }
.art-cta-role { font-size: 12.5px; color: var(--stone); }
.art-cta .small { margin-top: 10px; line-height: 1.5; }
.art-cta .btn { margin-top: 16px; width: 100%; justify-content: center; font-size: 13px; padding: 12px 16px; }

.art-share li a { justify-content: flex-start; gap: 8px; }
.art-share svg { width: 12px; height: 12px; opacity: .6; }

/* Seguir leyendo */
.art-related-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }
.art-related-head > div { display: grid; gap: 18px; }
.art-related-head .link-arrow { flex: 0 0 auto; margin-bottom: 8px; }
.art-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.art-related .card { background: var(--paper); }
.art-related .card .h3 { font-size: clamp(19px, 1.4vw, 22px); }

@media (max-width: 1200px) {
  .art-authors-box .founders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .art-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .art-cover { aspect-ratio: 16 / 10; border-radius: var(--radius-md); }
  .art-aside { position: static; }
  /* En móvil, el aside va después del artículo: ocultamos el índice, que ya no aporta */
  .art-aside .aside-block:first-child { display: none; }
}

@media (max-width: 640px) {
  .art-head .h1 { font-size: clamp(32px, 9vw, 40px); }
  .art-meta { gap: 8px 14px; }
  .art-authors { flex-basis: 100%; }
  .art-authors + .art-dot { display: none; }
  .art-cover { aspect-ratio: 4 / 3; }
  .art-summary { padding: 20px; }
  .art-prose { font-size: 16.5px; }
  .art-prose > p:first-child { font-size: 17.5px; }
  .art-related-head { flex-direction: column; align-items: flex-start; }
  .art-related-grid { grid-template-columns: 1fr; }
  .art-authors-box .founder { grid-template-columns: 96px 1fr; gap: 16px; }
  .art-authors-box .founder img { width: 96px; height: 120px; }
}
