/* ============================================================
   Lavendi Blog — Editorial Design System
   Aplica solo a single posts (single.php)
   ============================================================ */

:root {
	--lvd-navy: #0b1e3f;
	--lvd-navy-2: #142b54;
	--lvd-cyan: #02afde;
	--lvd-ink: #1a1f2e;
	--lvd-ink-soft: #4a5468;
	--lvd-line: #e3e8f0;
	--lvd-bg-soft: #f5f7fb;
	--lvd-accent: #00d28a;
	--lvd-radius: 10px;
	--lvd-font-display: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--lvd-font-body: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

/* ----- Reset GP wrapper for single posts ----- */
html, body.single-post { overflow-x: hidden; max-width: 100%; }
body.single-post .site-content { padding: 0 !important; background: #fff; }
body.single-post .content-area { width: 100% !important; max-width: 100% !important; padding: 0 !important; }
body.single-post .inside-article { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: 0 !important; }
body.single-post .entry-header,
body.single-post .entry-meta,
body.single-post .post-image { display: none !important; }
body.single-post .entry-content { margin-top: 0 !important; }

/* ============================================================
   HERO
   ============================================================ */
.lvd-hero {
	background: var(--lvd-navy);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 110px 24px 100px;
	text-align: center;
}
.lvd-hero__inner { max-width: 880px; margin: 0 auto; }

.lvd-breadcrumb {
	font-family: var(--lvd-font-display);
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 28px;
	color: rgba(255,255,255,.75);
}
.lvd-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.lvd-breadcrumb a:hover { color: #fff; }
.lvd-breadcrumb__sep { margin: 0 8px; opacity: .5; }

.lvd-hero__eyebrow {
	display: inline-block;
	font-family: var(--lvd-font-display);
	font-size: 15px;
	letter-spacing: .12em;
	text-transform: uppercase;
	background: var(--lvd-cyan);
	color: #fff;
	padding: 7px 16px;
	border-radius: 999px;
	margin-bottom: 24px;
	font-weight: 600;
}

.lvd-hero__title {
	font-family: var(--lvd-font-display);
	font-size: clamp(26px, 4.2vw, 48px);
	font-weight: 800;
	line-height: 1.18;
	margin: 0 0 24px;
	color: #fff;
	letter-spacing: -.02em;
}

.lvd-hero__lead {
	font-family: var(--lvd-font-display);
	font-size: clamp(17px, 1.8vw, 21px);
	line-height: 1.5;
	color: rgba(255,255,255,.88);
	max-width: 720px;
	margin: 0 auto 32px;
	font-weight: 400;
}

.lvd-hero__meta {
	font-family: var(--lvd-font-display);
	font-size: 15px;
	color: rgba(255,255,255,.85);
}
.lvd-hero__meta strong { color: #fff; font-weight: 600; }
.lvd-hero__sep { margin: 0 10px; opacity: .5; }

/* ============================================================
   LAYOUT (article body + sidebar TOC)
   ============================================================ */
.lvd-layout {
	max-width: 1180px;
	margin: 0 auto;
	padding: 70px 24px 60px;
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 60px;
	align-items: start;
}
.lvd-sidebar {
	position: sticky;
	top: 100px;
}
.lvd-sidebar > .entry-content,
.lvd-sidebar > p,
.lvd-sidebar > h1,
.lvd-sidebar > h2,
.lvd-sidebar > h3,
.lvd-sidebar > ul,
.lvd-sidebar > ol,
.lvd-sidebar > figure,
.lvd-sidebar > div:not(.lvd-toc),
.lvd-sidebar > details,
.lvd-sidebar > table { display: none !important; }

@media (max-width: 980px) {
	.lvd-layout { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px; }
	.lvd-sidebar { position: static; }
}

/* ----- TOC ----- */
.lvd-toc {
	background: var(--lvd-bg-soft);
	border-left: 3px solid var(--lvd-cyan);
	padding: 22px 24px;
	border-radius: var(--lvd-radius);
	font-family: var(--lvd-font-display);
}
.lvd-toc__title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lvd-navy);
	margin-bottom: 14px;
}
.lvd-toc__list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.lvd-toc__item { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--lvd-line); }
.lvd-toc__item:last-child { border-bottom: 0; }
.lvd-toc__item a {
	color: var(--lvd-ink);
	text-decoration: none;
	font-size: 15px;
	line-height: 1.45;
	display: block;
	transition: color .15s;
}
.lvd-toc__item a:hover { color: var(--lvd-cyan); }
.lvd-toc__lvl-3 { padding-left: 14px; }
.lvd-toc__lvl-3 a { font-size: 15px; color: var(--lvd-ink-soft); }

/* ============================================================
   ARTICLE BODY — Editorial typography
   ============================================================ */
.lvd-article-body {
	width: 100%;
	max-width: 720px;
	min-width: 0;
	font-family: var(--lvd-font-body);
	font-size: 18px;
	line-height: 1.75;
	color: var(--lvd-ink);
}
.lvd-article-body > * { max-width: 100%; }

.lvd-article-body p {
	margin: 0 0 22px;
}

.lvd-article-body p:first-of-type {
	font-size: 21px;
	line-height: 1.65;
	color: var(--lvd-ink-soft);
	font-weight: 400;
}

.lvd-article-body strong { color: var(--lvd-navy); font-weight: 700; }
.lvd-article-body em { font-style: italic; }

.lvd-article-body a {
	color: var(--lvd-cyan);
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}
.lvd-article-body a:hover { color: var(--lvd-navy); }

/* Headings */
.lvd-article-body h2 {
	font-family: var(--lvd-font-display);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--lvd-navy);
	margin: 60px 0 22px;
	letter-spacing: -.01em;
	scroll-margin-top: 90px;
}
.lvd-article-body h2 strong { color: inherit; font-weight: inherit; }
.lvd-article-body h2::before {
	content: "";
	display: block;
	width: 48px;
	height: 4px;
	background: var(--lvd-cyan);
	margin-bottom: 18px;
	border-radius: 2px;
}

.lvd-article-body h3 {
	font-family: var(--lvd-font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--lvd-navy);
	margin: 40px 0 16px;
	line-height: 1.3;
}

/* Lists */
.lvd-article-body ul, .lvd-article-body ol {
	margin: 0 0 26px;
	padding-left: 28px;
}
.lvd-article-body li {
	margin: 0 0 12px;
	line-height: 1.7;
}
.lvd-article-body ol > li::marker {
	font-family: var(--lvd-font-display);
	font-weight: 800;
	color: var(--lvd-cyan);
}
.lvd-article-body ul > li::marker { color: var(--lvd-cyan); }

/* Images */
.lvd-article-body figure.wp-block-image {
	margin: 40px 0;
}
/* alignwide extends only to the right and only on viewports wide enough to avoid overflow */
.lvd-article-body figure.wp-block-image.alignwide {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}
@media (min-width: 1400px) {
	.lvd-article-body figure.wp-block-image.alignwide {
		margin-right: -160px;
		max-width: calc(100% + 160px);
	}
}
.lvd-article-body figure.wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: var(--lvd-radius);
	display: block;
}
.lvd-article-body figure.wp-block-image figcaption {
	font-family: var(--lvd-font-display);
	font-size: 15px;
	color: var(--lvd-ink-soft);
	text-align: center;
	margin-top: 12px;
	font-style: italic;
}

/* Tables — horizontal scroll wrapper */
.lvd-article-body figure.wp-block-table {
	margin: 36px 0;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--lvd-line);
	border-radius: var(--lvd-radius);
}
.lvd-article-body figure.wp-block-table table,
.lvd-article-body figure.wp-block-table table.has-fixed-layout {
	table-layout: auto !important;
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-family: var(--lvd-font-display);
	font-size: 15px;
	background: #fff;
}
.lvd-article-body table th {
	background: var(--lvd-navy);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 14px 16px;
	border: 0;
	white-space: nowrap;
}
.lvd-article-body table td {
	padding: 14px 16px;
	border-top: 1px solid var(--lvd-line);
	color: var(--lvd-ink);
	white-space: nowrap;
}
.lvd-article-body table tbody tr:nth-child(even) td { background: var(--lvd-bg-soft); }
.lvd-article-body table tfoot td {
	font-size: 15px;
	color: var(--lvd-ink-soft);
	font-style: italic;
	background: var(--lvd-bg-soft);
	white-space: normal;
}

/* "Respuesta rápida" callout — auto-detect first .wp-block-group with light bg */
.lvd-article-body .wp-block-group.has-background {
	border-radius: var(--lvd-radius);
	margin: 36px 0;
	border-left: 4px solid var(--lvd-cyan);
	font-family: var(--lvd-font-display);
	text-align: left !important;
}
.lvd-article-body .wp-block-group.has-background h3 {
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lvd-navy) !important;
	margin: 0 0 12px !important;
	text-align: left !important;
}
.lvd-article-body .wp-block-group.has-background p {
	font-family: var(--lvd-font-display);
	font-size: 16px;
	line-height: 1.65;
	color: var(--lvd-ink);
	margin: 0;
	text-align: left !important;
}

/* Override for the dark CTA card group */
.lvd-article-body .wp-block-group.has-background[style*="background-color:#0b1e3f"] {
	border-left: 0;
	text-align: center;
	padding: 48px 32px !important;
}
.lvd-article-body .wp-block-group.has-background[style*="background-color:#0b1e3f"] h3 {
	font-size: 28px !important;
	letter-spacing: -.01em !important;
	text-transform: none !important;
	color: #fff !important;
	margin-bottom: 14px !important;
}
.lvd-article-body .wp-block-group.has-background[style*="background-color:#0b1e3f"] p {
	color: rgba(255,255,255,.85);
	max-width: 540px;
	margin: 0 auto 24px;
	font-size: 17px;
}

/* Buttons */
.lvd-article-body .wp-block-button__link {
	font-family: var(--lvd-font-display);
	font-weight: 600;
	font-size: 16px;
	padding: 14px 28px !important;
	border-radius: 8px !important;
	transition: transform .15s, box-shadow .15s;
}
.lvd-article-body .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.lvd-article-body .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
}

/* FAQ <details> */
.lvd-article-body details {
	background: #fff !important;
	border: 1px solid var(--lvd-line) !important;
	border-radius: var(--lvd-radius) !important;
	padding: 0 !important;
	margin: 0 0 14px !important;
	font-family: var(--lvd-font-display);
	transition: border-color .15s, box-shadow .15s;
}
.lvd-article-body details[open] {
	border-color: var(--lvd-cyan) !important;
	box-shadow: 0 4px 16px rgba(2,175,222,.08);
}
.lvd-article-body details summary {
	font-family: var(--lvd-font-display) !important;
	font-weight: 700 !important;
	color: var(--lvd-navy) !important;
	cursor: pointer;
	padding: 20px 56px 20px 22px !important;
	font-size: 18px !important;
	line-height: 1.35 !important;
	list-style: none;
	position: relative;
}
.lvd-article-body details summary::-webkit-details-marker { display: none; }
.lvd-article-body details summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 26px;
	font-weight: 300;
	color: var(--lvd-cyan);
	transition: transform .2s;
	line-height: 1;
}
.lvd-article-body details[open] summary::after { content: "−"; }
.lvd-article-body details p {
	font-family: var(--lvd-font-display) !important;
	padding: 0 22px 22px !important;
	margin: 0 !important;
	color: var(--lvd-ink-soft) !important;
	font-size: 16px !important;
	line-height: 1.65 !important;
}

/* ============================================================
   POST FOOTER
   ============================================================ */
.lvd-post-footer {
	background: #ffffff;
	padding: 60px 24px 80px;
	border-top: 1px solid var(--lvd-line);
	border-bottom: 1px solid var(--lvd-line);
}
.lvd-post-footer__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	font-family: var(--lvd-font-display);
}
.lvd-share-line {
	font-size: 16px;
	color: var(--lvd-ink-soft);
}

/* ============================================================
   MOBILE (≤640px) — enforce min 13px, keep proportions, left-align
   ============================================================ */
@media (max-width: 640px) {
	.lvd-hero { padding: 60px 18px 60px; }
	.lvd-hero__title { font-size: 26px !important; line-height: 1.2 !important; }
	.lvd-hero__lead { font-size: 16px; }
	.lvd-hero__meta, .lvd-breadcrumb { font-size: 13px; }
	.lvd-hero__eyebrow { font-size: 13px; }
	.lvd-hero__meta span { display: inline-block; }

	.lvd-layout { padding: 30px 18px 40px; }
	.lvd-article-body { font-size: 17px; line-height: 1.7; }
	.lvd-article-body p:first-of-type { font-size: 18px; }
	.lvd-article-body h2 { font-size: 30px !important; line-height: 1.25 !important; margin: 44px 0 18px; }
	.lvd-article-body h3 { font-size: 20px !important; }
	.lvd-article-body ul, .lvd-article-body ol { padding-left: 22px; }

	.lvd-article-body .wp-block-group.has-background {
		padding: 20px 22px !important;
		text-align: left !important;
	}
	.lvd-article-body .wp-block-group.has-background h3 { font-size: 13px !important; }
	.lvd-article-body .wp-block-group.has-background p { font-size: 15px; }

	.lvd-article-body .wp-block-group.has-background[style*="background-color:#0b1e3f"] {
		padding: 36px 22px !important;
		text-align: center !important;
	}
	.lvd-article-body .wp-block-group.has-background[style*="background-color:#0b1e3f"] h3 {
		font-size: 22px !important;
		text-align: center !important;
	}
	.lvd-article-body .wp-block-group.has-background[style*="background-color:#0b1e3f"] p {
		font-size: 15px;
		text-align: center !important;
	}

	.lvd-article-body details summary { font-size: 16px !important; padding: 16px 48px 16px 18px !important; }
	.lvd-article-body details summary::after { right: 18px; font-size: 24px; }
	.lvd-article-body details p { font-size: 14px !important; padding: 0 18px 18px !important; }

	.lvd-article-body figure.wp-block-table { font-size: 14px; }
	.lvd-article-body figure.wp-block-image figcaption { font-size: 13px; }

	.lvd-toc { padding: 18px 20px; }
	.lvd-toc__title { font-size: 13px; }
	.lvd-toc__item a { font-size: 14px; }
	.lvd-toc__lvl-3 a { font-size: 13px; }

	.lvd-post-footer { padding: 40px 20px 50px; }
	.lvd-share-line { font-size: 14px; }
}

/* ============================================================
   Web font (Inter) — light fetch
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
