/* ===================================================
   BLOG SINGLE - LAYOUT & TYPOGRAPHY
   =================================================== */

.blog-single {
	padding: 60px 0 80px;
}

.blog-header {
	max-width: 800px;
	margin: 0 auto 32px;
	text-align: left;
}

.blog-header h1 {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	color: var(--dark-teal);
	line-height: 1.3;
	margin-bottom: 12px;
}

.blog-meta {
	font-size: 13px;
	color: #999;
	margin: 0;
	letter-spacing: 0.01em;
}

.blog-hero {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 6px;
	margin: 0 auto 48px;
	display: block;
}

.blog-content {
	max-width: 800px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.85;
	color: #2d2d2d;
}

/* ===================================================
   HEADINGS INSIDE CONTENT
   =================================================== */

.blog-content h2 {
	font-size: 1.4rem;
	color: var(--dark-teal);
	margin: 52px 0 14px;
	line-height: 1.3;
	font-weight: 700;
}

.blog-content h2::before {
	content: '';
	display: block;
	width: 32px;
	height: 2px;
	background: var(--dark-teal);
	margin-bottom: 14px;
	opacity: 0.25;
}

.blog-content h3 {
	font-size: 1.1rem;
	color: var(--pizarra);
	margin: 32px 0 10px;
	font-weight: 600;
}

.blog-content p {
	margin-bottom: 1.2rem;
	color: var(--texto-2);
}

/* Inline links: bold + 2px brand-color underline so they are unmistakably
   identifiable as links (Google UX/SEO requirement). */
.blog-content a {
	color: var(--dark-teal);
	text-decoration: underline;
	text-decoration-color: var(--primary-green);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	font-weight: 600;
	transition: color 0.2s, text-decoration-color 0.2s, background-color 0.2s;
}

.blog-content a:hover,
.blog-content a:focus-visible {
	color: var(--cian-texto);
	text-decoration-color: var(--dark-teal);
}

.blog-content a:focus-visible {
	outline: 2px solid var(--dark-teal);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Exception: the "doctor-mention" card is a link, but its affordance is the
   whole card (avatar + name + arrow), not an underline. */
.blog-content a.doctor-mention { text-decoration: none; font-weight: inherit; }

/* ===================================================
   LISTS
   =================================================== */

.blog-content ul,
.blog-content ol {
	margin: 0 0 1.4rem 0;
	padding-left: 0;
	list-style: none;
}

.blog-content ul li,
.blog-content ol li {
	position: relative;
	padding: 6px 0 6px 22px;
	margin-bottom: 4px;
	font-size: 0.96rem;
	color: var(--pizarra);
	line-height: 1.65;
	border-bottom: 1px solid #f0f0f0;
}

.blog-content ul li:last-child,
.blog-content ol li:last-child {
	border-bottom: none;
}

.blog-content ul li::before {
	content: '•';
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--primary-green);
	font-size: 14px;
	font-weight: 700;
}

.blog-content ol {
	counter-reset: blog-ol;
}

.blog-content ol li {
	counter-increment: blog-ol;
}

.blog-content ol li::before {
	content: counter(blog-ol) '.';
	position: absolute;
	left: 0;
	top: 6px;
	color: #aaa;
	font-size: 12px;
	font-weight: 600;
}

/* ===================================================
   BLOCKQUOTE - Doctor quotes
   =================================================== */

.blog-content blockquote {
	margin: 36px 0;
	padding: 20px 24px 20px 28px;
	border-left: 3px solid #1a1a2e;
	background: var(--fondo);
	border-radius: 0 4px 4px 0;
	font-style: italic;
}

.blog-content blockquote p {
	font-size: 1rem;
	color: var(--pizarra);
	margin-bottom: 8px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.7;
}

.blog-content blockquote footer {
	font-size: 0.78rem;
	color: var(--texto-2);
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* FAQ - global design defined in assets/css/style.css (.faq-item) */

/* ===================================================
   CONCLUSION BOX
   =================================================== */

.blog-content > div:last-child {
	background: #f7f7f7;
	border-top: 2px solid var(--linea);
	border-radius: 0;
	padding: 24px 28px;
	margin-top: 48px;
}

.blog-content > div:last-child p {
	color: var(--pizarra);
	margin: 0;
	font-size: 0.96rem;
}

/* ===================================================
   IFRAME
   =================================================== */

.blog-single iframe:not(.instagram-media) {
	max-width: 100%;
	aspect-ratio: 16/9;
	height: unset;
}

/* ===================================================
   AUTHOR BOX
   =================================================== */

.author-box {
	background: var(--fondo);
	border: 1px solid var(--linea);
	border-radius: 4px;
	padding: 20px 25px;
	margin: 40px 0 30px 0;
	display: flex;
	align-items: center;
	gap: 20px;
}

.author-box__image {
	flex-shrink: 0;
}

.author-box__image img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--linea);
}

.author-box__content h3 {
	font-size: 10px;
	color: #bbb;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 500;
	margin: 0 0 4px 0;
}

.author-box__name {
	font-size: 15px;
	color: var(--pizarra);
	font-weight: 600;
	margin: 0 0 2px 0;
	line-height: 1.3;
}

.author-box__role {
	font-size: 13px;
	color: var(--texto-2);
	margin: 0 0 2px 0;
	font-weight: 400;
}

.author-box__org {
	font-size: 12px;
	color: #aaa;
	margin: 0 0 8px 0;
}

.author-box__link {
	display: inline-block;
	color: var(--texto-2);
	padding: 4px 0;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	border-bottom: 1px solid #ddd;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.author-box__link:hover {
	color: var(--dark-teal);
	border-color: var(--dark-teal);
}

@media (max-width: 768px) {
	.author-box { padding: 16px 18px; gap: 14px; }
	.author-box__image img { width: 60px; height: 60px; }
	.author-box__name { font-size: 14px; }
	.author-box__role,
	.author-box__org { font-size: 12px; }
}

/* ===================================================
   DOCTOR MENTION CARD
   =================================================== */

.doctor-mention {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--fondo);
	border: 1px solid var(--linea);
	border-radius: 4px;
	padding: 12px 16px;
	margin: 20px 0;
	text-decoration: none;
	transition: border-color 0.2s ease;
	max-width: 100%;
}

.doctor-mention:hover {
	border-color: #aaa;
}

.doctor-mention__image img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--linea);
}

.doctor-mention__info { flex: 1; min-width: 0; }

.doctor-mention__name {
	font-size: 15px;
	font-weight: 600;
	color: var(--pizarra);
	margin: 0 0 3px 0;
	line-height: 1.2;
}

.doctor-mention__role {
	font-size: 12px;
	color: var(--texto-2);
	margin: 0 0 2px 0;
}

.doctor-mention__org {
	font-size: 11px;
	color: #aaa;
	margin: 0;
}

.doctor-mention__arrow {
	flex-shrink: 0;
	color: #ccc;
	font-size: 18px;
	transition: color 0.2s ease;
}

.doctor-mention:hover .doctor-mention__arrow { color: var(--texto-2); }

.doctor-mention--block { display: flex; width: 100%; margin: 28px 0; }

@media (max-width: 768px) {
	.doctor-mention { padding: 10px 12px; gap: 10px; }
	.doctor-mention__image img { width: 44px; height: 44px; }
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 768px) {
	.blog-single { padding: 36px 0 56px; }
	.blog-header h1 { font-size: 1.35rem; }
	.blog-content h2 { font-size: 1.2rem; margin-top: 40px; }
	.blog-content blockquote { padding: 16px 18px 16px 22px; }
	.blog-content > div:last-child { padding: 18px 20px; }
}

/* Legacy h2 styling - scoped to the blog article so it does not leak
   into global sections (final form, footer, etc.) */
.blog-single h2 {
	font-size: 3rem;
	color: var(--dark-teal);
	margin-bottom: 20px;
}

/* ==========================================================================
   BLOG FAQ · acordeón visible + integra con schema FAQPage
   ========================================================================== */
/* Blog post FAQ section: visual separator + heading.
   Items use the global .faq-item / .faq-content (assets/css/style.css). */
.blog-faq {
	margin: 48px 0 0;
	padding: 32px 0 0;
	border-top: 1px solid #e5e7eb;
}
.blog-faq h2 {
	font-size: 2rem;
	margin-bottom: 24px;
}

/* ==========================================================================
   BLOG DISCLAIMER · medical notice at the foot of the post
   ========================================================================== */
.blog-disclaimer {
	margin: 48px 0 0;
	padding: 22px 26px;
	background: #f8fafc;
	border-left: 3px solid var(--dark-teal, var(--cian-texto));
	border-radius: 6px;
	color: #475569;
	font-size: 0.93rem;
	line-height: 1.7;
}
.blog-disclaimer p { margin: 0; }
.blog-disclaimer a {
	color: var(--dark-teal, var(--cian-texto));
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--cian-texto);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.blog-disclaimer a:hover,
.blog-disclaimer a:focus-visible {
	color: var(--cian-texto);
	text-decoration-color: var(--dark-teal, var(--cian-texto));
}

@media (max-width: 768px) {
	.blog-disclaimer { padding: 18px 18px; font-size: .9rem; }
}

/* Bloque «Tratamientos relacionados» (partials/blog-servicios.php) */
.post-services {
	margin: 48px 0 0;
	padding: 28px 32px;
	background: #f4f8f1;
	border-left: 4px solid var(--pizarra);
	border-radius: 0 8px 8px 0;
}

.post-services__title {
	font-size: .85rem;
	font-weight: 700;
	color: var(--pizarra);
	margin: 0 0 16px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.post-services__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 28px;
}

.post-services__list li { margin: 0; padding: 0; }

.blog-content .post-services__list a {
	color: var(--pizarra);
	font-size: .95rem;
	line-height: 1.45;
	text-decoration: none;
}

.blog-content .post-services__list a:hover,
.blog-content .post-services__list a:focus-visible {
	color: var(--pizarra);
	text-decoration: underline;
}

@media (max-width: 600px) {
	.post-services { padding: 22px 20px; }
	.post-services__list { grid-template-columns: 1fr; }
}

/* ===================================================
   Copia de las reglas de post de assets/css/footer.css (2026-10-27)
   footer.css se carga en diferido (media=print → all) y, al llegar, cambiaba el
   ancho, los márgenes y los tamaños del post: CLS de 0,23 en móvil. Aquí se aplican
   desde el primer pintado; footer.css repite las mismas reglas y ya no mueve nada.
   Si se cambian, cambiarlas en los dos sitios.
   =================================================== */
/* ---------------------------------------------------
     SECCIÓN: BLOG SINGLE
     --------------------------------------------------- */

.blog-single {
	background-color: var(--white);
	padding: 50px 20px;
	max-width: 800px;
	margin: 0 auto;

	h1, h2, h3 {
		color: var(--dark-teal);
		line-height: 1.1;
	}

	h1 {
		font-size: 2.75rem;
		margin-bottom: 2rem;

	}

	h2 {
		font-size: 2.25rem;
		margin-bottom: 1.5rem;
	}

	h3 {
		font-size: 1.75rem;
		margin-bottom: 1.2rem;
	}

	.blog-meta {
		font-size: 0.9rem;
		color: var(--text-light);
		margin-bottom: 2.5rem;

		span {
			margin-right: 15px;
		}
	}

	.blog-content {
		font-size: 1.25rem;
		color: var(--text-light);
		line-height: 1.7;
		margin-top: 40px;

		p {
			margin-bottom: 1rem;
		}

		p:has(+h2),
		p:has(+h3),
		p:has(+div),
		p:last-child {
			margin-bottom: 4rem;
		}

		.video-wrapper {
			width: 100%;
			display: flex;
			justify-content: center;
		}

		.video-container {
			position: relative;
			width: 100%;
			max-width: 800px;
			/* ajusta el ancho máximo si quieres */
			padding-bottom: 56.25%;
			/* relación 16:9 */
			height: 0;
			overflow: hidden;
		}

		.video-container iframe {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}
	}
}
/* ---------------------------------------------------
     BlOG SINGLE IFRAME OVERRIDE
     --------------------------------------------------- */

/* Los reels de Instagram fijan su alto con el atributo height (partials/instagram-embed.php) */
.blog-single iframe:not(.instagram-media) {
	max-width: 100%;
	aspect-ratio: 16/9;
	height: unset;
}
