/* =============================================================
   SINGLE POST — diseño Pencil (Blog Article). Prefijo .art
   ============================================================= */
.art {
	--art-blue:    var(--son-primary-blue, #1F4768);
	--art-green:   var(--son-secondary-green, #3E775E);
	--art-burg:    var(--son-deep-burgundy, #752632);
	--art-rose:    var(--son-rose-red, #AF4462);
	--art-bg:      var(--son-background, #F8F8F5);
	--art-surface: var(--son-surface, #FFFFFF);
	--art-text:    var(--son-text, #10202D);
	--art-text-2:  var(--son-text-secondary, #4A5A66);
	--art-border:  var(--son-border-subtle, #E4E4DD);
	--art-head:    var(--son-font-heading, 'Cormorant Garamond', serif);
	--art-body:    'Inter', 'Noto Sans', sans-serif;
	background: var(--art-bg); color: var(--art-text); font-family: var(--art-body);
}
.art-eyebrow { font-size: 1.3rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--art-green); margin-bottom: 1.2rem; }
.art-h2 { font-family: var(--art-head); font-size: clamp(3.2rem, 4vw, 4.6rem); font-weight: 500; line-height: 1.05; }

/* ═══ HERO ═══ */
.art-hero { position: relative; min-height: 58rem; display: flex; align-items: flex-end; background-size: cover; background-position: center; background-color: var(--art-blue); color: #fff; }
.art-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,45,.25) 0%, rgba(16,32,45,.4) 45%, rgba(16,32,45,.95) 100%); }
.art-hero__content { position: relative; z-index: 1; max-width: 120rem; width: 100%; margin-inline: auto; padding: 0 4rem 7rem; }
.art-hero__crumb { font-size: 1.3rem; color: rgba(255,255,255,.7); margin-bottom: 1.8rem; letter-spacing: .03em; }
.art-hero__crumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.art-hero__crumb a:hover { color: #fff; }
.art-hero__tag { display: inline-block; background: linear-gradient(90deg, var(--art-burg), var(--art-rose)); color: #fff; font-size: 1.1rem; font-weight: 600; letter-spacing: .16em; padding: .8rem 1.8rem; border-radius: 100px; margin-bottom: 1.8rem; }
.art-hero__title { font-family: var(--art-head); font-size: clamp(3.8rem, 5.5vw, 6.4rem); font-weight: 500; line-height: 1.04; max-width: 18ch; margin-bottom: 2.4rem; }
.art-hero__meta { display: flex; align-items: center; gap: 1.2rem; font-size: 1.5rem; color: rgba(255,255,255,.8); flex-wrap: wrap; }
.art-avatar { width: 4.4rem; height: 4.4rem; border-radius: 999px; }
.art-hero__author { font-weight: 600; color: #fff; }
.art-hero__dot { color: rgba(255,255,255,.5); }

/* ═══ BODY ═══ */
.art-body { padding: 8rem 4rem; }
.art-layout { max-width: 120rem; margin-inline: auto; display: grid; grid-template-columns: 30rem 1fr; gap: 7.2rem; align-items: start; }

/* Sidebar */
.art-side { position: sticky; top: 9rem; display: flex; flex-direction: column; gap: 2.4rem; }
/* ── TOC (Pencil "On This Page") — solo títulos, sin números/líneas ── */
.art-toc { background: var(--art-surface); border: 1px solid var(--art-border); border-radius: 2rem; padding: 2.6rem 2.4rem; box-shadow: 0 1.2rem 3rem rgba(16,32,45,.06); }
.art-toc__title { display: flex; align-items: center; gap: .9rem; font-size: 1.25rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--art-text-2); margin-bottom: 1.8rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--art-border); }
.art-toc__title .sonadv-ic { width: 1.7rem; height: 1.7rem; color: var(--art-green); }
.art-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.art-toc li { font-size: 1.5rem; line-height: 1.4; }
.art-toc li.art-toc__lvl-3 { padding-left: 1.6rem; }
.art-toc a { display: block; padding: .9rem 0; color: var(--art-text-2); text-decoration: none; transition: color .2s ease, padding .2s ease; border-left: 2px solid transparent; font-size: 1.4rem;}
.art-toc a:hover { color: var(--art-burg); }
.art-toc a.is-active { color: var(--art-burg); font-weight: 700; }

/* ── CTA card mejorada (línea gráfica de la web) ── */
.art-cta-card {
	position: relative; overflow: hidden;
	background: linear-gradient(160deg, var(--art-surface) 0%, var(--art-bg) 100%);
	border: 1px solid var(--art-border);
	border-radius: 2rem;
	padding: 3rem 2.6rem 2.8rem;
	text-align: center;
	box-shadow: 0 1.6rem 4rem rgba(16,32,45,.08);
}
.art-cta-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: .5rem; background: linear-gradient(90deg, var(--art-burg), var(--art-rose)); }
.art-cta-card__badge { display: inline-grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 999px; background: rgba(62,119,94,.12); margin-bottom: 1.4rem; }
.art-cta-card__badge .sonadv-ic { width: 2.4rem; height: 2.4rem; color: var(--art-green); }
.art-cta-card h4 { font-family: var(--art-head); font-size: 2.4rem; font-weight: 600; margin-bottom: .8rem; color: var(--art-text); }
.art-cta-card p { font-size: 1.45rem; line-height: 1.55; color: var(--art-text-2); margin-bottom: 2rem; }
.art-btn { display: flex; align-items: center; justify-content: center; gap: .7rem; font-size: 1.45rem; font-weight: 700; padding: 1.5rem 2rem; border-radius: 100px; text-decoration: none; margin-bottom: 1rem; transition: transform .2s ease, box-shadow .2s ease; }
.art-btn:last-child { margin-bottom: 0; }
.art-btn:hover { transform: translateY(-2px); }
.art-btn--dark { background: var(--art-blue); color: #fff; box-shadow: 0 .8rem 2rem rgba(31,71,104,.25); }
.art-btn--dark .sonadv-ic { width: 1.6rem; height: 1.6rem; }
.art-btn--wa { background: var(--color-whatsapp, #25d366); color: #fff; box-shadow: 0 .8rem 2rem rgba(37,211,102,.28); }
.art-btn i { font-size: 1.6rem; }

/* Contenido (prose) */
.art-content { min-width: 0; font-size: 1.7rem; line-height: 1.8; color: var(--art-text-2); }
.art-content > p:first-of-type { font-size: 2rem; line-height: 1.7; color: var(--art-text); }
.art-content h2 { font-family: var(--art-head); font-size: clamp(2.8rem, 3.2vw, 3.6rem); font-weight: 600; line-height: 1.1; color: var(--art-text); margin: 4.2rem 0 1.8rem; scroll-margin-top: 9rem; }
.art-content h3 { font-family: var(--art-head); font-size: 2.6rem; font-weight: 600; color: var(--art-text); margin: 3rem 0 1.2rem; scroll-margin-top: 9rem; }
.art-content p { margin-bottom: 1.8rem; }
.art-content a { color: var(--art-burg); text-decoration: underline; }
.art-content ul, .art-content ol { margin: 0 0 2rem 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.art-content ul li, .art-content ol li { position: relative; padding-left: 2.8rem; font-size: 1.6rem; line-height: 1.6; }
.art-content ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--art-green); font-weight: 700; }
.art-content ol { counter-reset: ol; }
.art-content ol li::before { counter-increment: ol; content: counter(ol); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: rgba(31,71,104,.1); color: var(--art-blue); border-radius: 999px; font-size: 1.2rem; font-weight: 700; display: grid; place-items: center; }
.art-content img { max-width: 100%; height: auto; border-radius: 1.6rem; margin: 2.4rem 0; }
.art-content blockquote { border-left: 3px solid var(--art-burg); padding: .4rem 0 .4rem 2.8rem; margin: 3rem 0; font-family: var(--art-head); font-size: 2.6rem; font-style: italic; line-height: 1.3; color: var(--art-text); }
.art-content strong { color: var(--art-text); }

/* ═══ RELATED ═══ */
.art-related { background: var(--art-surface); padding: 8rem 4rem; }
.art-related__head { max-width: 120rem; margin: 0 auto 4.8rem; text-align: center; }
.art-related__grid { max-width: 120rem; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.6rem; }
.art-rel-card__img { display: block; position: relative; height: 24rem; border-radius: 2rem; overflow: hidden; background-size: cover; background-position: center; background-color: var(--art-border); }
.art-rel-card__tag { position: absolute; top: 1.6rem; left: 1.6rem; background: rgba(255,255,255,.94); color: var(--art-burg); font-size: 1rem; font-weight: 600; letter-spacing: .12em; padding: .7rem 1.4rem; border-radius: 100px; }
.art-rel-card__body { padding: 1.6rem .4rem 0; }
.art-rel-card__meta { font-size: 1.3rem; color: var(--art-text-2); }
.art-rel-card__title { font-family: var(--art-head); font-size: 2.4rem; font-weight: 600; line-height: 1.12; margin: .6rem 0; }
.art-rel-card__title a { color: var(--art-text); text-decoration: none; }
.art-rel-card__title a:hover { color: var(--art-burg); }
.art-rel-card__excerpt { font-size: 1.45rem; line-height: 1.5; color: var(--art-text-2); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
	.art-body { padding: 5rem 2.4rem; }
	.art-layout { grid-template-columns: 1fr; gap: 4rem; }
	.art-side { position: static; flex-direction: column; }
	.art-toc { display: none; }
	.art-related { padding: 5rem 2.4rem; }
	.art-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.art-hero__content { padding: 0 2rem 5rem; }
	.art-related__grid { grid-template-columns: 1fr; }
}
