/*
Theme Name: Dr. Julio César Coutin
Description: Tema a medida para el sitio del Dr. Julio César Coutin Roykovich, médico fisiatra en Quibdó. Tema hijo de Twenty Twenty-Five. Al activarlo crea las páginas Inicio, Sobre mí, Servicios, Investigación y Contacto.
Author: Yeidy
Template: twentytwentyfive
Version: 1.2.1
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: coutin
License: GNU General Public License v2 or later
*/

/* ---------- Tokens ---------- */
:root {
	--c-base: var(--wp--preset--color--base);
	--c-surface: var(--wp--preset--color--surface);
	--c-sand: var(--wp--preset--color--sand);
	--c-line: var(--wp--preset--color--line);
	--c-ink: var(--wp--preset--color--ink);
	--c-muted: var(--wp--preset--color--muted);
	--c-primary: var(--wp--preset--color--primary);
	--c-primary-dark: var(--wp--preset--color--primary-dark);
	--c-primary-soft: var(--wp--preset--color--primary-soft);
	--c-accent: var(--wp--preset--color--accent);
	--c-camel: var(--wp--preset--color--camel);
	--c-wa: var(--wp--preset--color--whatsapp);
	--c-serif: var(--wp--preset--font-family--literata);
	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 28px;
	/* Sombras teñidas con el índigo de marca, dos capas */
	--sh-1: 0 1px 2px rgb(30 34 87 / 0.06), 0 2px 8px rgb(30 34 87 / 0.04);
	--sh-2: 0 2px 4px rgb(30 34 87 / 0.06), 0 12px 32px rgb(30 34 87 / 0.08);
	--sh-3: 0 4px 8px rgb(30 34 87 / 0.08), 0 24px 56px rgb(30 34 87 / 0.14);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--section-y: var(--wp--preset--spacing--70);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--c-primary-soft); color: var(--c-ink); }
:where(a, button, summary, input):focus-visible {
	outline: 3px solid var(--c-camel);
	outline-offset: 3px;
	border-radius: 6px;
}
.wp-site-blocks > * + * { margin-block-start: 0; }
.c-main, .c-main > .wp-block-post-content { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 em, h2 em, .c-lead em { font-family: var(--c-serif); font-style: italic; color: var(--c-accent); }
.has-primary-background-color em, .has-primary-dark-background-color em { color: var(--c-camel); }

/* ---------- Botones ---------- */
.wp-block-button__link { transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), color .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.wp-block-button__link:active { transform: translateY(0); box-shadow: none; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--c-primary);
	border: 1.5px solid color-mix(in srgb, var(--c-primary) 30%, transparent);
	padding: calc(0.875rem - 1.5px) calc(1.5rem - 1.5px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--c-primary-soft);
	border-color: var(--c-primary);
	color: var(--c-primary);
	box-shadow: none;
}
:is(.has-primary-background-color, .has-primary-dark-background-color, .c-cta) .is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgb(255 255 255 / 0.4);
}
:is(.has-primary-background-color, .has-primary-dark-background-color, .c-cta) .is-style-outline > .wp-block-button__link:hover {
	background: rgb(255 255 255 / 0.1);
	border-color: #fff;
	color: #fff;
}
.c-btn-wa > .wp-block-button__link {
	background: var(--c-wa);
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.c-btn-wa > .wp-block-button__link:hover { background: #0C6236; color: #fff; }
.c-btn-wa > .wp-block-button__link::before {
	content: "";
	width: 1.25em;
	height: 1.25em;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.c-btn-sm > .wp-block-button__link { padding: 0.625rem 1.125rem; font-size: 0.9375rem; }
.c-actions { gap: 0.75rem; margin-block-start: 2rem; }
.c-actions--end { justify-content: flex-end; }

/* ---------- Encabezado ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.c-header {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid color-mix(in srgb, var(--c-line) 80%, transparent);
	padding-block: 0.875rem;
}
/* El desenfoque va en una capa aparte: si se pone en .c-header, el menú móvil (position: fixed) queda atrapado dentro. */
.c-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--c-base) 85%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
}
.c-header__bar { gap: 1.5rem; }
.c-brand { gap: 0.75rem; }
.c-brand__text { gap: 0.125rem; }
.c-brand__text > * { margin: 0; }
.c-brand__mark {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	border-radius: 50%;
	background: var(--c-primary);
	color: #fff;
	font-family: var(--c-serif);
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	flex: none;
}
.c-header__nav { gap: 1.75rem; }
.c-nav .wp-block-navigation-item__content { color: var(--c-muted); text-decoration: none; padding-block: 0.375rem; position: relative; }
.c-nav .wp-block-navigation-item__content:hover { color: var(--c-ink); }
.c-nav .current-menu-item > .wp-block-navigation-item__content,
.c-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--c-primary); }
.c-nav .current-menu-item > .wp-block-navigation-item__content::after,
.c-nav .wp-block-navigation-item__content[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	border-radius: 2px;
	background: var(--c-camel);
}
.c-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--c-base);
	padding: 1.5rem;
}
.c-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.5rem; color: var(--c-ink); font-family: var(--c-serif); }
.c-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.c-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 1.25rem; }
.c-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; }
.c-nav .wp-block-navigation__responsive-container-open,
.c-nav .wp-block-navigation__responsive-container-close { padding: 10px; margin: -10px; }
@media (max-width: 781px) {
	.c-header .c-header__cta.wp-block-buttons { display: none; }
	.c-header .wp-block-site-tagline { display: none; }
}
@media (max-width: 600px) {
	/* En celular la barra de administración no queda fija: el encabezado va pegado arriba. */
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; }
}

/* ---------- Secciones ---------- */
.c-section { padding-block: var(--section-y); }
.c-section--top0 { padding-block-start: 0; }
.c-section-head { max-width: 640px; margin-block-end: var(--wp--preset--spacing--50); }
.c-section-head > * { margin-block: 0; }
.c-section-head > * + * { margin-block-start: 1rem; }
.c-eyebrow {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-accent);
	margin-block-end: 0;
}
.c-eyebrow + * { margin-block-start: 0.75rem; }
.c-lead { font-size: var(--wp--preset--font-size--large); color: var(--c-muted); line-height: 1.55; max-width: 36em; }
.c-lead strong { color: var(--c-ink); font-weight: 600; }
.c-muted { color: var(--c-muted); }
.c-split { gap: clamp(2rem, 5vw, 5rem); }
.c-subhead { font-size: var(--wp--preset--font-size--x-large); margin-block: var(--wp--preset--spacing--60) 1.5rem; }

/* ---------- Portada (hero) ---------- */
.c-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 5vw, 7rem);
}
.c-hero::before, .c-page-head::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -20% -10% auto auto;
	width: min(70vw, 900px);
	aspect-ratio: 1;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--c-primary-soft) 90%, transparent), transparent);
	pointer-events: none;
}
.c-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: auto auto -30% -15%;
	width: min(60vw, 700px);
	aspect-ratio: 1;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--c-camel) 22%, transparent), transparent);
	pointer-events: none;
}
.c-hero__grid { gap: clamp(2.5rem, 6vw, 5rem); }
.c-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.375rem 0.875rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-surface);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--c-muted);
	box-shadow: var(--sh-1);
}
.c-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-camel); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-camel) 25%, transparent); }
.c-display { margin-block: 1.25rem 0; max-width: 13em; }
.c-display + .c-lead { margin-block-start: 1.5rem; }
.c-trust {
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 0.9375rem;
	color: var(--c-muted);
}
.c-trust li, .c-checks li { position: relative; padding-left: 1.75rem; }
.c-trust li::before, .c-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 50%;
	background: var(--c-primary-soft);
}
.c-trust li::after, .c-checks li::after {
	content: "";
	position: absolute;
	left: 0.3125rem;
	top: calc(0.2em + 0.28rem);
	width: 0.5rem;
	height: 0.3rem;
	border-left: 2px solid var(--c-primary);
	border-bottom: 2px solid var(--c-primary);
	transform: rotate(-45deg);
}
.c-hero__media { position: relative; }
.c-portrait { margin: 0; }
.c-portrait img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 20%;
	border-radius: var(--r-lg);
	box-shadow: var(--sh-3);
}
.c-portrait--sticky { position: sticky; top: 112px; }
.c-float {
	position: relative;
	z-index: 1;
	width: fit-content;
	max-width: 280px;
	margin: -4.5rem 0 0 -2rem !important;
	padding: 1rem 1.25rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	background: var(--c-surface);
	box-shadow: var(--sh-3);
}
.c-float > * { margin: 0; }
.c-float__title { font-family: var(--c-serif); font-size: 1.125rem; color: var(--c-ink); }
.c-float__text { font-size: 0.875rem; color: var(--c-muted); line-height: 1.4; margin-top: 0.25rem !important; }
@media (max-width: 781px) {
	.c-float { margin: -3.5rem 0 0 1rem !important; }
}

/* ---------- Franja de instituciones ---------- */
.c-strip { padding-block: 1.75rem; border-block: 1px solid var(--c-line); }
.c-strip__label { text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-muted); margin: 0; }
.c-logos { gap: 1.25rem clamp(1.75rem, 1rem + 3vw, 3.5rem) !important; align-items: center; margin-block-start: 1.25rem !important; }
.c-logos > .c-logos__item { margin: 0 !important; }
.c-logos__item img {
	display: block;
	height: 34px;
	width: auto !important;
	max-width: 170px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.62;
	transition: opacity .25s var(--ease);
}
.c-logos__item.is-tall img { height: 54px; }
.c-logos__item.is-invert img { filter: brightness(0); opacity: 0.55; }
.c-logos__item.is-gray img { filter: grayscale(1) contrast(1.15); }
.c-logos__item img:hover { opacity: 0.95; }
@media (max-width: 600px) {
	.c-logos__item img { height: 26px; max-width: 120px; }
	.c-logos__item.is-tall img { height: 42px; }
}

/* ---------- Tarjetas ---------- */
.c-card {
	position: relative;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.c-card > :first-child { margin-block-start: 0; }
.c-card > :last-child { margin-block-end: 0; }
.c-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.c-card--primary { border: 0; }
.c-card--primary p, .c-card--primary li { color: rgb(255 255 255 / 0.82); }
.c-card--primary .c-checks li::before { background: rgb(255 255 255 / 0.14); }
.c-card--primary .c-checks li::after { border-color: var(--c-camel); }
.c-card--primary h2, .c-card--primary h3 { color: #fff; }
.c-card__num {
	font-family: var(--c-serif);
	font-size: 0.9375rem;
	color: var(--c-accent);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.c-card__num::after { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.5; }
.c-card--primary .c-card__num { color: var(--c-camel); }
.c-card h3 { margin-block: 0.75rem 0.75rem; }
.c-checks { list-style: none; padding: 0; display: grid; gap: 0.625rem; }
.c-link { margin-block-start: 1.5rem; font-weight: 600; }
.c-link a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.375rem; }
.c-link a::after { content: "→"; transition: transform .2s var(--ease); }
.c-link a:hover::after { transform: translateX(4px); }
.c-card--primary .c-link a { color: #fff; }
.c-label {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}
.c-card--primary .c-label { color: var(--c-camel); }
.c-tag {
	display: inline-block;
	width: fit-content;
	margin: 0;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: var(--c-primary-soft);
	color: var(--c-primary);
	font-size: 0.8125rem;
	font-weight: 600;
}
.c-chips { gap: 0.5rem; margin-block-start: 2rem; }

/* Bento */
.c-bento { gap: 1.5rem; }
.c-bento > .wp-block-column > .c-card { height: 100%; }
.c-bento__stack { display: flex; flex-direction: column; gap: 1.5rem; }
.c-bento__stack > .c-card { flex: 1; margin: 0 !important; }
.c-bento .c-card--primary { display: flex; flex-direction: column; }
.c-bento .c-card--primary h3 { font-size: var(--wp--preset--font-size--xx-large); }
.c-bento .c-card--primary .c-link { margin-top: auto; padding-top: 1.5rem; }
.c-howto, .c-equal { gap: 1.5rem; }
.c-howto .c-card, .c-equal .c-card { height: 100%; }

/* ---------- Pasos (Mi enfoque) ---------- */
.c-steps > .c-step { margin: 0; }
.c-step {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	column-gap: 1rem;
	padding-block: 1.75rem;
	border-top: 1px solid color-mix(in srgb, var(--c-ink) 12%, transparent);
}
.c-step:first-child { border-top: 0; padding-top: 0; }
.c-step > * { margin: 0 !important; grid-column: 2; }
.c-step > .c-step__num { grid-column: 1; grid-row: 1 / span 2; font-family: var(--c-serif); font-size: 1.5rem; color: var(--c-accent); line-height: 1.2; }
.c-step h3 { font-size: var(--wp--preset--font-size--large); margin-bottom: 0.375rem !important; }
.c-step p:not(.c-step__num) { color: var(--c-muted); }

/* ---------- Cifras ---------- */
.c-stats { padding-block: var(--wp--preset--spacing--60); }
.c-stats .wp-block-columns { gap: 0; }
.c-stat { padding: 0.5rem clamp(1rem, 3vw, 2.5rem); border-left: 1px solid rgb(255 255 255 / 0.16); }
.c-stat:first-child { border-left: 0; padding-left: 0; }
.c-stat__num { font-family: var(--c-serif); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; margin: 0; color: #fff; }
.c-stat__label { margin-block-start: 0.75rem; color: rgb(255 255 255 / 0.78); max-width: 22em; }
@media (max-width: 781px) {
	.c-stat { border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.16); padding: 1.5rem 0; }
	.c-stat:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- Encabezado de páginas internas ---------- */
.c-page-head {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) var(--wp--preset--spacing--60);
}
.c-page-head h1 { font-size: var(--wp--preset--font-size--display); max-width: 14em; margin-block: 0.75rem 0; }
.c-page-head .c-lead { margin-block-start: 1.25rem; }
/* Bloques más angostos que la columna: alinearlos a la izquierda del contenido (no centrados). */
:is(.c-page-head, .c-section) > :is(h1, h2, .c-lead, .c-section-head) {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2)) !important;
	margin-right: auto !important;
}

/* ---------- Línea de tiempo ---------- */
.c-timeline { list-style: none; padding: 0 0 0 2rem; margin: 0; position: relative; }
.c-timeline::before { content: ""; position: absolute; left: 0.4375rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: color-mix(in srgb, var(--c-primary) 18%, transparent); }
.c-timeline li { position: relative; padding-bottom: 1.75rem; color: var(--c-muted); line-height: 1.5; }
.c-timeline li:last-child { padding-bottom: 0; }
.c-timeline li::before {
	content: "";
	position: absolute;
	left: -2rem;
	top: 0.35rem;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--c-sand);
	border: 3px solid var(--c-primary);
	box-sizing: border-box;
}
.c-timeline li strong { display: block; font-family: var(--c-serif); font-weight: 500; font-size: 1.1875rem; color: var(--c-ink); margin-bottom: 0.25rem; }

/* ---------- Servicios ---------- */
.c-service { padding-block: var(--wp--preset--spacing--50); border-top: 1px solid var(--c-line); margin-block: 0 !important; scroll-margin-top: 96px; }
.c-service:first-child { border-top: 0; padding-top: 0; }
.c-service h2 { font-size: var(--wp--preset--font-size--xx-large); margin-block: 0.75rem 1rem; }

/* FAQ */
.c-faq > .wp-block-details { margin: 0; border-bottom: 1px solid var(--c-line); }
.c-faq > .wp-block-details:first-child { border-top: 1px solid var(--c-line); }
.c-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-block: 1.25rem;
	font-weight: 600;
	font-size: 1.0625rem;
	min-height: 44px;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--c-primary-soft);
	color: var(--c-primary);
	font-size: 1.25rem;
	font-weight: 400;
	transition: transform .25s var(--ease);
}
.c-faq details[open] summary::after { transform: rotate(45deg); }
.c-faq details > p { color: var(--c-muted); margin: 0 0 1.25rem; max-width: 60ch; }

/* ---------- Investigación ---------- */
.c-feature { padding: clamp(2rem, 1rem + 4vw, 4rem); overflow: hidden; }
.c-feature::after {
	content: "";
	position: absolute;
	right: -10%;
	bottom: -40%;
	width: 60%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side, rgb(217 184 143 / 0.22), transparent);
	pointer-events: none;
}
.c-feature h2 { font-size: var(--wp--preset--font-size--x-large); max-width: 30em; line-height: 1.3; }
.c-feature:hover { transform: none; }
.c-equal .c-card h3 { font-size: var(--wp--preset--font-size--large); line-height: 1.35; margin-block-start: 1rem; }
.c-pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.c-pubs li {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	background: var(--c-surface);
	color: var(--c-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}
.c-pubs li strong { display: block; font-family: var(--c-serif); font-weight: 500; font-size: 1.125rem; line-height: 1.35; color: var(--c-ink); margin-bottom: 0.5rem; }

/* ---------- Contacto ---------- */
.c-contact { gap: 1.5rem; }
.c-contact__info { display: flex; flex-direction: column; gap: 1rem; }
.c-contact__info > .c-card { margin: 0 !important; }
.c-card--wa { background: #EAF5EE; border-color: #CFE7D8; }
.c-card .c-label { margin-block-end: 0.25rem; }
.c-big { font-family: var(--c-serif); font-size: var(--wp--preset--font-size--x-large); color: var(--c-ink); margin-block: 0 0; line-height: 1.25; }
.c-big--sm { font-size: var(--wp--preset--font-size--large); }
.c-big + .wp-block-buttons { margin-block-start: 1.25rem; }
.c-big + .c-muted { margin-block-start: 0.25rem; }
.c-map { height: 100%; min-height: 420px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--sh-1); }
.c-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.c-logo img { border-radius: var(--r-md); box-shadow: var(--sh-2); width: 100%; max-width: 420px; }
.c-quote { font-family: var(--c-serif); font-style: italic; font-size: var(--wp--preset--font-size--large); color: var(--c-accent); }

/* ---------- Pie de página ---------- */
.c-footer { padding-block: var(--wp--preset--spacing--60) calc(2rem + 64px); color: rgb(255 255 255 / 0.74); font-size: 0.9375rem; }
.c-footer a { color: rgb(255 255 255 / 0.88); text-decoration: none; }
.c-footer a:hover { color: #fff; text-decoration: underline; }
.c-cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2rem, 1rem + 4vw, 4rem);
	border-radius: var(--r-lg);
	background: var(--c-primary);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.c-cta::before {
	content: "";
	position: absolute;
	z-index: -1;
	right: -10%;
	top: -60%;
	width: 55%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side, rgb(217 184 143 / 0.28), transparent);
}
.c-cta__title { color: #fff; font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.c-cta__text { color: rgb(255 255 255 / 0.8); font-size: var(--wp--preset--font-size--large); margin-block: 1rem 0; }
.c-cta .c-actions { margin: 0; }
.c-footer__cols { margin-block-start: var(--wp--preset--spacing--60) !important; gap: 2rem; }
.c-footer .c-brand__mark { background: rgb(255 255 255 / 0.1); }
.c-footer__name { color: #fff; font-family: var(--c-serif); font-size: 1.25rem; margin-block: 1rem 0.25rem; }
.c-footer__small { margin: 0; max-width: 28em; }
.c-footer__title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255 255 255 / 0.56); margin: 0 0 1rem; }
.c-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; }
.c-footer__logo img { border-radius: var(--r-sm); max-width: 200px; width: 100%; opacity: 0.95; }
.c-footer__bottom {
	margin-block-start: var(--wp--preset--spacing--50) !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.6);
	gap: 0.5rem 2rem;
}
.c-footer__bottom p { margin: 0; }

/* WhatsApp flotante */
.c-wa-float {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: calc(1rem + env(safe-area-inset-bottom));
	z-index: 90;
	margin: 0 !important;
}
.c-wa-float .wp-block-button__link { box-shadow: var(--sh-3); padding: 0.875rem 1.25rem; min-height: 52px; color: #fff !important; text-decoration: none !important; }

/* ---------- Movimiento (solo si el navegador lo soporta y la persona no pidió reducirlo) ---------- */
@keyframes c-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		body:not(.editor-styles-wrapper) :is(.c-card, .c-section-head, .c-step, .c-stat, .c-timeline li, .c-pubs li, .c-faq) {
			animation: c-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 35%;
		}
	}
}

/* ---------- Editor: que se vea igual que la web ---------- */
.editor-styles-wrapper .c-float { margin-left: 0 !important; }


/* ---------- Fotos ---------- */
.c-photo { margin: 1.75rem 0 0 !important; }
.c-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--sh-1); }
.c-photo--tall img { aspect-ratio: 4 / 5; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.c-teaser .c-photo--tall { margin: 0 !important; }

/* ---------- Artículos (entradas) ---------- */
.c-articles .wp-block-post-template { gap: 1.5rem; margin: 0; }
@media (max-width: 781px) { .c-articles .wp-block-post-template { grid-template-columns: 1fr !important; } }
.c-article {
	--pad: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	padding: var(--pad);
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.c-article > .wp-block-post-featured-image { margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 1.5rem !important; overflow: hidden; }
.c-article .wp-block-post-featured-image img { border-radius: 0; transition: transform .6s var(--ease); }
.c-article:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.c-article .wp-block-post-title { font-size: var(--wp--preset--font-size--large); line-height: 1.35; margin-block: 1rem 0.75rem; }
.c-article .wp-block-post-title a { color: var(--c-ink); text-decoration: none; }
.c-article .wp-block-post-title a:hover { color: var(--c-primary); }
.c-article .wp-block-post-excerpt { margin-block: 0; color: var(--c-muted); flex: 1; display: flex; flex-direction: column; }
.c-article .wp-block-post-excerpt__more-text { margin-top: auto; padding-top: 1.25rem; margin-bottom: 0; }
.c-article .wp-block-post-excerpt__more-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.375rem; }
.c-article .wp-block-post-excerpt__more-link::after { content: "→"; transition: transform .2s var(--ease); }
.c-article .wp-block-post-excerpt__more-link:hover::after { transform: translateX(4px); }
.wp-block-post-terms.c-tag a { color: inherit; text-decoration: none; }

/* ---------- Vista de un artículo ---------- */
.c-page-head.c-post-head > * { margin-left: auto !important; margin-right: auto !important; }
.c-post-head .c-post-title { font-size: var(--wp--preset--font-size--xx-large); max-width: 820px; line-height: 1.2; margin-block: 1rem 0; }
.c-back { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.c-back a { text-decoration: none; display: inline-flex; gap: 0.375rem; }
.c-back a::before { content: "←"; transition: transform .2s var(--ease); }
.c-back a:hover::before { transform: translateX(-4px); }
.c-post-meta { gap: 0.5rem 1rem; align-items: center; margin-block-start: 1.75rem !important; }
.c-post-meta .wp-block-post-date { margin: 0; font-size: 0.875rem; }
.c-post-cover { margin-block: 0 var(--wp--preset--spacing--50) !important; }
.c-post-cover img { border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.c-nota { margin-block: 2rem !important; }
.c-nota:hover { transform: none; box-shadow: none; }
.c-post-autor { gap: 1rem; align-items: center; margin-block-start: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.c-post-autor > * { margin: 0 !important; }

/* ---------- Foto de perfil (encabezado y pie) ---------- */
.c-avatar { margin: 0 !important; flex: none; }
.c-avatar a { display: block; border-radius: 50%; }
.c-avatar img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3px var(--c-line);
}
.c-avatar a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.c-avatar--lg img { width: 72px; height: 72px; box-shadow: 0 0 0 3px rgb(255 255 255 / 0.16); }

/* ---------- Logos de estudios: en fondos claros, en gris; en fondos oscuros, en blanco ---------- */
.c-timeline li > img {
	float: right;
	height: 30px;
	width: auto;
	max-width: 112px;
	object-fit: contain;
	object-position: right center;
	margin: 0.25rem 0 0.5rem 1rem;
	filter: brightness(0);
	opacity: 0.45;
}
.c-timeline li > img[src*="samfyr"] { filter: grayscale(1); opacity: 0.7; }
@media (max-width: 600px) { .c-timeline li > img { height: 22px; max-width: 80px; } }

.c-cred { gap: 0.875rem; align-items: center; margin-block-start: 1.5rem !important; padding: 0.75rem 1rem; width: fit-content; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: var(--c-surface); }
.c-cred > * { margin: 0 !important; }
.c-cred__logo img { display: block; height: 30px; width: auto; max-width: 96px; object-fit: contain; filter: brightness(0); opacity: 0.55; }
.c-cred__logo img[src*="samfyr"] { filter: grayscale(1); opacity: 0.8; }
.c-cred__text { font-size: 0.8125rem; line-height: 1.4; color: var(--c-muted); padding-left: 0.875rem !important; border-left: 1px solid var(--c-line); }
.c-cred__text strong { color: var(--c-ink); font-weight: 600; }

.c-feature__logo { margin: 0 0 1.5rem !important; }
.c-feature__logo img { display: block; height: 68px; width: auto; opacity: 0.92; }

.c-footer__formacion { gap: 1rem clamp(1.5rem, 1rem + 2vw, 2.75rem); align-items: center; margin-block-start: var(--wp--preset--spacing--50) !important; padding-block-start: var(--wp--preset--spacing--50); border-top: 1px solid rgb(255 255 255 / 0.12); }
.c-footer__formacion .c-footer__title { margin: 0 0.5rem 0 0 !important; }
.c-footer__inst { margin: 0 !important; }
.c-footer__inst img { display: block; height: 32px; width: auto; max-width: 150px; object-fit: contain; opacity: 0.7; transition: opacity .25s var(--ease); }
.c-footer__inst img[src*="bosque"], .c-footer__inst img[src*="utch"] { height: 44px; }
.c-footer__inst img:hover { opacity: 1; }
@media (max-width: 600px) {
	.c-footer__formacion .c-footer__title { flex-basis: 100%; }
	.c-footer__inst img { height: 26px; max-width: 110px; }
	.c-footer__inst img[src*="bosque"], .c-footer__inst img[src*="utch"] { height: 36px; }
}
.c-timeline li strong + br { display: none; }
.c-cred__logo img[src*="bosque"], .c-timeline li > img[src*="bosque"] { height: 40px; }
