/* ============================================================
   articulo.css — guías y blog (páginas generadas por tools/contenido.mjs)
   Se carga después de styles.css y theme.css. Prefijos: art-, blog-.
   ============================================================ */

/* — hero — */
.art-hero { padding-top: clamp(130px, 15vw, 170px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } /* sin cuña arriba: queda bajo la cabecera */
.art-hero-ctas { margin-top: 22px; }
.art-hero .contenedor.pp-hero-solo { max-width: var(--ancho); }
.art-hero h1 { max-width: 22ch; }
.art-hero .pp-lead { max-width: 62ch; }
.art-hero-bg img { opacity: 0.26; }
.art-meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; color: rgba(239, 238, 225, 0.72) !important; margin-top: 10px; }

/* — cuerpo + columna lateral — */
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.art-cuerpo { max-width: 68ch; }
.art-cuerpo > :first-child { margin-top: 0; }
.art-cuerpo h2 { font-family: var(--display); font-weight: 600; font-size: clamp(25px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -0.018em; color: var(--forest); margin: 56px 0 16px; scroll-margin-top: 110px; }
.art-cuerpo h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--forest); margin: 32px 0 10px; }
.art-cuerpo p, .art-cuerpo li { font-size: 17px; line-height: 1.72; color: var(--ink); }
.art-cuerpo p { margin: 0 0 18px; }
.art-cuerpo ul, .art-cuerpo ol { margin: 0 0 20px; padding-left: 0; }
.art-cuerpo ul { list-style: none; }
.art-cuerpo ul li { position: relative; padding-left: 30px; margin: 0 0 10px; }
.art-cuerpo ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 16px; height: 5px; background: var(--lime); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.art-cuerpo ol { padding-left: 24px; }
.art-cuerpo ol li { margin: 0 0 10px; padding-left: 6px; }
.art-cuerpo ol li::marker { font-family: var(--mono); font-weight: 500; color: var(--petrol); }
.art-cuerpo a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.art-cuerpo a:hover { color: var(--petrol); text-decoration-thickness: 2px; }
.art-cuerpo strong { color: var(--forest); font-weight: 600; }
.art-cuerpo blockquote { margin: 26px 0; padding: 20px 24px; background: var(--warm-white); border: 1px solid var(--hairline); border-radius: 16px; }
.art-cuerpo blockquote p:last-child { margin: 0; }
.art-cuerpo table { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 15px; background: var(--warm-white); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.art-cuerpo th, .art-cuerpo td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hairline); line-height: 1.5; }
.art-cuerpo th { font-family: var(--prosa); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: var(--forest); background: rgba(35, 54, 46, 0.05); }
.art-cuerpo tr:last-child td { border-bottom: 0; }

.art-aside { position: sticky; top: 104px; display: grid; gap: 22px; }
.art-indice { border-top: 1px solid var(--hairline); padding-top: 16px; }
.art-indice-tit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.art-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.art-indice a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--forest); text-decoration: none; }
.art-indice a:hover { color: var(--petrol); text-decoration: underline; }
.art-cta { background: var(--forest); color: var(--warm-white); border-radius: 18px; padding: 24px; }
.art-cta-tit { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; margin: 0 0 8px; color: var(--warm-white); }
.art-cta p { font-size: 14.5px; line-height: 1.55; color: rgba(239, 238, 225, 0.86); margin: 0 0 16px; }
.art-cta .btn { width: 100%; justify-content: center; }

/* — FAQ, fuentes, relacionados, cierre — */
.art-estrecho > * { max-width: 820px; }
.art-faq .faq-lista { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.art-faq details { border-bottom: 1px solid var(--hairline); }
.art-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--forest); min-height: 44px; }
.art-faq summary::-webkit-details-marker { display: none; }
.art-faq summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 4px; }
.art-faq details p { font-size: 16px; line-height: 1.7; color: var(--ink); max-width: 66ch; margin: 0 0 20px; }
.art-fuentes { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.art-fuentes-tit { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--forest); margin: 0 0 14px; }
.art-fuentes ul { margin: 0 0 14px; padding-left: 18px; }
.art-fuentes li { font-size: 15px; line-height: 1.6; margin: 0 0 6px; }
.art-fuentes a { color: var(--forest); text-underline-offset: 2px; }
.art-nota { font-size: 13.5px; color: var(--muted); max-width: 70ch; }
.art-rel-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--hairline); }
.art-rel-lista li { border-bottom: 1px solid var(--hairline); }
.art-rel-lista a { display: grid; gap: 6px; padding: 22px 24px 22px 0; text-decoration: none; }
.art-rel-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--petrol); }
.art-rel-tit { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--forest); }
.art-rel-lista a:hover .art-rel-tit { text-decoration: underline; text-underline-offset: 3px; }
.art-final .pp-h2 { max-width: 20ch; }

/* — índice del blog — */
.blog-item { display: grid; gap: 18px; align-items: start; }
.blog-item-destacado { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--hairline); }
.blog-item-img { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--warm-white); }
.blog-item-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.45s var(--sv-ease); }
.blog-item:hover .blog-item-img img { scale: 1.03; }
.blog-item-tit { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.012em; margin: 6px 0 10px; }
.blog-item-destacado .blog-item-tit { font-size: clamp(26px, 3vw, 36px); }
.blog-item-tit a { color: var(--forest); text-decoration: none; }
.blog-item-tit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blog-item-txt p:last-child { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.blog-resto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.blog-resto .blog-item { grid-template-columns: 180px minmax(0, 1fr); }
.blog-resto .blog-item-img { aspect-ratio: 4 / 3; }

@media (max-width: 960px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-aside { position: static; }
  .art-indice { display: none; }
}
@media (max-width: 760px) {
  .blog-item-destacado, .blog-resto, .blog-resto .blog-item { grid-template-columns: 1fr; }
  .art-cuerpo p, .art-cuerpo li { font-size: 16.5px; }
}

/* Tablas en fichas en móvil (las marca tools/contenido.mjs con .tabla-fichas y data-label) */
@media (max-width: 640px) {
  .art-cuerpo table.tabla-fichas { display: block; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .art-cuerpo table.tabla-fichas thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .art-cuerpo table.tabla-fichas tbody,
  .art-cuerpo table.tabla-fichas tr,
  .art-cuerpo table.tabla-fichas td,
  .art-cuerpo table.tabla-fichas tbody th { display: block; width: auto; }
  .art-cuerpo table.tabla-fichas tr { background: var(--warm-white); border: 1px solid var(--hairline); border-radius: 14px; margin: 0 0 12px; padding: 8px 0; }
  .art-cuerpo table.tabla-fichas td,
  .art-cuerpo table.tabla-fichas tbody th { border-bottom: 0; padding: 6px 16px; background: transparent; }
  .art-cuerpo table.tabla-fichas tr > :first-child { font-weight: 600; color: var(--forest); font-size: 15.5px; }
  .art-cuerpo table.tabla-fichas [data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 700 12px/1.4 var(--prosa); letter-spacing: 0.02em; color: var(--petrol); }
  .art-cuerpo table.tabla-fichas tr > :first-child::before { display: none; }
}
