/*
Theme Name: AvanCer
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avancer
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === local fonts (RGPD: no remote Google Fonts) === */
@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/open-sans-400.woff2") format("woff2");
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/open-sans-600.woff2") format("woff2");
}

:root {
	--site-bg: var(--wp--preset--color--base);
	--site-text: var(--wp--preset--color--gray);
	--brand: var(--wp--preset--color--primary);
	--teal-dark: var(--wp--preset--color--teal-dark);
	--teal-light: var(--wp--preset--color--teal-light);
	--accent: var(--wp--preset--color--accent);
	--accent-dark: var(--wp--preset--color--accent-dark);
	--ink: var(--wp--preset--color--ink);
	--cream: var(--wp--preset--color--cream);
	--sand: var(--wp--preset--color--sand);
	--brown: var(--wp--preset--color--brown);
	--radius: 20px;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* === eyebrow/label === */
.eyebrow {
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--teal-dark);
}
.eyebrow.on-dark {
	color: var(--teal-light);
}

/* === hero === */
.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #2FAEBB 0%, #1B7F89 100%);
	color: #fff;
	padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero-title {
	color: #fff !important;
	margin-block-start: 1rem;
}
.hero-sub {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.15rem;
	max-width: 34rem;
}
.hero-cta .wp-element-button {
	color: var(--ink);
}

/* hero cover: sizing, framing and copy width */
.hero-cover {
	min-height: clamp(560px, 72vh, 680px);
}
.hero-cover img.wp-block-cover__image-background,
.hero-cover .hero-zoom {
	object-position: 50% 25%;
	transform-origin: 60% 20%;
}
.hero-cover .hero-title {
	max-width: 640px;
	margin-inline: 0 !important;
}
.hero-cover .hero-sub {
	max-width: 520px;
}
@media (max-width: 768px) {
	.hero-cover img.wp-block-cover__image-background,
	.hero-cover .hero-zoom {
		object-position: 65% 20%;
	}
}

/* === data strip / counters === */
.data-strip {
	background: var(--cream);
}
.data-item {
	text-align: center;
	padding: 0.5rem;
}
.data-num {
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	line-height: 1;
	color: var(--teal-dark);
	white-space: nowrap;
}
.data-num .suffix {
	color: var(--accent-dark);
}
.data-label {
	margin-top: 0.5rem;
	color: var(--brown);
	font-size: 0.95rem;
}

/* === cards === */
.section-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: nowrap;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(38, 44, 61, 0.08);
	padding: 1.75rem;
	gap: 0.75rem;
	height: auto;
}
.icon-badge {
	box-sizing: content-box;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0.9rem;
	border-radius: 999px;
	background: var(--teal-light);
	color: var(--teal-dark);
	flex: none;
	display: block;
}

.section-card h3 {
	margin-block: 0 0.5rem;
}
.section-card p {
	margin: 0;
}

/* === bands === */
.band {
	padding-block: clamp(3rem, 8vw, 5.5rem);
}
.band-ink {
	background: var(--ink);
	color: #fff;
}
.band-teal {
	background: var(--teal-light);
}
.band-cream {
	background: var(--cream);
}
.band-sand {
	background: var(--sand);
}

/* === counters animation (enhanced; base state is final) === */
.data-num[data-count] {
	opacity: 1;
}
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* === header === */
.topbar {
	color: #fff;
}
.topbar .wp-block-group {
	gap: 1rem;
}
.topbar-contact {
	align-items: center;
	gap: 0.5rem;
}
.topbar-contact p {
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
}
.topbar svg {
	color: var(--teal-light);
}
.mainbar {
	background: #fff;
}
.mainbar {
	padding-top: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--sand);
}
.mainbar .wp-block-site-title {
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--teal-dark);
	margin: 0;
	white-space: nowrap;
}

/* navigation: one row on desktop, hamburger on tablet/mobile */
.mainbar .wp-block-group.is-content-justification-space-between {
	flex-wrap: nowrap;
	min-width: 0;
}
.mainbar .nav-cta {
	min-width: 0;
}
.mainbar .site-logo {
	margin: 0;
	line-height: 0;
	flex: 0 0 auto;
}
.mainbar .site-logo img {
	width: 155px;
	max-width: 155px;
	height: auto;
	display: block;
}
@media (max-width: 600px) {
	.mainbar .site-logo img {
		width: 130px;
	}
}
.wp-block-navigation__responsive-container-open {
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: var(--ink);
	padding: 0.25rem;
	cursor: pointer;
}
@media (max-width: 1024px) {
	.wp-block-navigation__responsive-container-open {
		display: flex !important;
	}
	.wp-block-navigation__responsive-container:not(.has-modal-open):not(.is-menu-open) {
		display: none !important;
	}
}
@media (min-width: 1025px) {
	.wp-block-navigation__responsive-container-open {
		display: none !important;
	}
}
.wp-block-navigation__responsive-container .wp-block-navigation-item a {
	color: var(--ink);
}
.wp-block-navigation__responsive-container-close {
	color: var(--ink);
}
.nav-cta {
	gap: 2rem;
	flex-wrap: nowrap;
	align-items: center;
}
.nav-cta .wp-block-navigation {
	flex-wrap: nowrap;
}
.nav-cta .wp-block-navigation .wp-block-navigation-item a {
	color: var(--ink);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}
.nav-cta .wp-block-navigation .wp-block-navigation-item a:hover {
	color: var(--teal-dark);
}
.nav-cta .wp-block-navigation__container {
	gap: 0.95rem;
	flex-wrap: nowrap;
}
.nav-cta .wp-block-button__link {
	padding: 0.7rem 1.3rem;
	font-size: 0.9rem;
}
.nav-cta .wp-block-buttons {
	margin: 0;
}

/* === footer === */
.site-footer {
	color: #fff;
}
.site-footer .site-logo {
	margin: 0 0 1rem;
	line-height: 0;
}
.site-footer .site-logo img {
	width: 200px;
	height: auto;
}
.site-footer .wp-block-site-title {
	color: #fff;
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 1.2;
	margin-block-start: 0;
}
.site-footer h3 {
	color: var(--teal-light);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 16px;
}
.site-footer p {
	color: rgba(255, 255, 255, 0.85);
}
.site-footer a {
	color: var(--teal-light);
	text-decoration: none;
}
.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}
.site-footer .wp-block-list {
	list-style: none;
	padding-inline-start: 0;
	margin: 0;
}
.site-footer .wp-block-list li a {
	line-height: 2;
}
/* brand column: top padding + big column gap */
.site-footer > .wp-block-columns {
	padding-block-start: 72px;
	padding-block-end: 64px;
	column-gap: 48px;
}
/* compact contact list with small linear icons */
.footer-contact {
	margin-block-start: 1.25rem;
}
.footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	line-height: 1.9;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.85);
}
.footer-contact li + li {
	margin-block-start: 0.4rem;
}
.footer-contact svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	color: var(--teal-light);
	margin-top: 0.35em;
}

/* === eu / Kit Digital white band === */
.eu-band {
	background: #fff;
}
.eu-band .alignwide {
	padding-block: 24px;
	justify-content: center;
	gap: 40px;
}
.eu-logo-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.eu-logo-slot {
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed rgba(38, 44, 61, 0.35);
	border-radius: 8px;
	background: rgba(38, 44, 61, 0.04);
	color: rgba(38, 44, 61, 0.55);
	font-size: 0.75rem;
	text-align: center;
	margin: 0;
	padding: 0.5rem 0.9rem;
	white-space: nowrap;
}
/* placed eu logos (image) override the dashed placeholder box */
.eu-band .wp-block-image.eu-logo-slot {
	border: none;
	border-radius: 0;
	background: none;
	min-height: 0;
	padding: 0;
}
.eu-band .eu-logo-slot img {
	height: 64px;
	width: auto;
}
.eu-band .eu-logo-slot figcaption {
	display: none;
}
.eu-logo-label {
	color: #262C3D;
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0;
}

/* === footer bottom copyright === */
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-block: 24px;
}
.footer-bottom p {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
}
.footer-bottom .footer-legal a {
	color: var(--teal-light);
}
.footer-bottom .footer-legal a:hover {
	color: #fff;
}

@media (max-width: 781px) {
	.site-footer > .wp-block-columns {
		column-gap: 0;
		row-gap: 40px;
	}
}

/* === home === */
.hero-eyebrow {
	color: #fff;
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hero-cover .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--content-size, 1000px);
	margin-inline: auto;
	padding-block: 2rem;
	text-align: left;
}
.hero-cover .hero-eyebrow {
	text-align: left;
}
.hero-cover .hero-sub {
	margin-inline: 0 !important;
	max-width: 520px;
	margin-block: 1rem 1.5rem;
	text-align: left;
}
.hero-cover .hero-cta {
	justify-content: flex-start;
}
.hero-cover .wp-block-cover__background {
	opacity: 1 !important;
	background-color: transparent !important;
	background-image: linear-gradient(90deg,
		rgba(27, 127, 137, 0.85) 0%,
		rgba(27, 127, 137, 0.66) 35%,
	rgba(27, 127, 137, 0.36) 65%,
	rgba(27, 127, 137, 0.06) 100%);
}
.band h2 {
	margin-block: 0.25rem 2rem;
}
.section-card h3 {
	color: var(--teal-dark);
}
.section-card a {
	font-weight: 600;
}
.data-item {
	flex-direction: column;
	gap: 0.75rem;
}
.data-number .num + .suffix {
	margin-inline-start: 0.1em;
}

/* authority (ink) */
.band.authority {
	padding-block: 72px;
}
.band.authority h3 {
	color: #fff;
	font-size: 1.15rem;
}
.band.authority h2 {
	color: #fff;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	line-height: 1.25;
}
.band.authority h4 {
	color: #fff;
	font-size: 1.02rem;
}
.band.authority p {
	color: rgba(255, 255, 255, 0.82);
}
.band.authority .icon-badge {
	background: rgba(182, 223, 227, 0.18);
	color: var(--teal-light);
	margin-block-end: 0.5rem;
}
.authority-lead {
	gap: 0.6rem;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: nowrap;
}
.authority-lead .wp-block-heading {
	margin-block-start: 0;
}
.collab-label {
	color: var(--teal-light) !important;
	font-size: 0.78rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-block-start: 0;
	margin-block-end: 1.5rem;
}
.band.authority .wp-block-columns .wp-block-column .partner {
	gap: 0.75rem;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: nowrap;
}
.band.authority .partner .wp-block-heading {
	margin-block-start: 0;
}
.band.authority .partner-logo {
	min-height: 64px;
	min-width: 142px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.75rem;
	text-align: center;
	margin: 0;
	padding: 0.5rem 0.9rem;
}
/* placed logos (image) override the dashed placeholder box */
.band.authority .wp-block-image.partner-logo {
	border: none;
	background: none;
	min-height: 0;
	min-width: 0;
	padding: 0;
}
.band.authority .ucam-logo img {
	height: 100px;
	width: auto;
}
.band.authority .region-logo img {
	height: 100px;
	width: auto;
}
.band.authority .partner-logo figcaption {
	display: none;
}

@media (max-width: 781px) {
	.band.authority {
		padding-block: 48px;
	}
	.partner-logo {
		min-width: 100%;
	}
}

/* final CTA band */
.band.cta {
	background: linear-gradient(135deg, #2FAEBB 0%, #1B7F89 100%);
	color: var(--ink);
	text-align: center;
}
.band.cta h2,
.cta-cover h2 {
	color: #fff;
	margin-block: 0.5rem 1rem;
}
.band.cta p,
.cta-cover p {
	color: rgba(255, 255, 255, 0.92);
	max-width: 40rem;
	margin-inline: auto;
}
.band.cta .eyebrow,
.cta-cover .eyebrow {
	color: var(--teal-light);
}

/* CTA as a photo cover with an 85% teal veil */
.cta-cover {
	text-align: center;
}
.cta-cover .wp-block-cover__background {
	background-color: rgba(27, 127, 137, 0.85) !important;
	opacity: 1 !important;
}

/* interior page: photographic banner header with teal veil */
.page-hero {
	min-height: clamp(320px, 45vh, 420px);
}
.page-hero .wp-block-cover__inner-container {
	min-height: clamp(320px, 45vh, 420px);
	display: flex;
	align-items: flex-end;
}
.page-hero .hero-title {
	max-width: 640px;
	margin-inline: 0 !important;
}
.page-hero .hero-sub {
	max-width: 520px;
	margin-inline: 0 !important;
}
.page-hero .wp-block-cover__inner-container > .wp-block-group {
	width: min(100%, 1200px);
	margin-inline: auto !important;
}
.page-hero .hero-eyebrow {
	margin-inline: 0 !important;
}
.page-hero .wp-block-cover__background {
	opacity: 1 !important;
	background-color: transparent !important;
	background-image: linear-gradient(115deg,
		rgba(15, 82, 92, 0.94) 0%,
		rgba(27, 127, 137, 0.82) 40%,
		rgba(27, 127, 137, 0.62) 70%,
		rgba(27, 127, 137, 0.46) 100%);
}

/* featured quote: left teal rule, italic text, visible source */
.featured-quote {
	border-left: 3px solid var(--teal);
	padding-left: 1.5rem;
	max-width: 46rem;
}
.featured-quote .quote-text {
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1.6;
	color: var(--ink);
	margin: 0;
}
.featured-quote .quote-source {
	font-weight: 600;
	color: var(--teal-dark);
	margin-block: 1rem 0;
}

/* why-grid: 3 / 2 / 1 columns, cards at natural height */
.why-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.why-grid .section-card {
	gap: 1rem;
}
/* the flow block-gap adds a top margin to 2nd+ grid items, misaligning rows */
.why-grid > * {
	margin-block-start: 0 !important;
	margin-block-end: 0;
}
.why-grid .section-card h3,
.why-grid .section-card p {
	margin: 0;
}
@media (max-width: 1024px) {
	.why-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.why-grid {
		grid-template-columns: 1fr;
	}
}

/* recorrido cards: keep words whole */
.band.summaries .section-card h3 {
	font-size: 1.25rem;
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}
/* equal-height cards per row: column becomes flex, card fills it */
.band.summaries .wp-block-column {
	display: flex;
}
.band.summaries .wp-block-column .section-card {
	flex: 1;
	width: 100%;
}
/* \"Saber más\" pinned to the card footer */
.band.summaries .card-link {
	margin-top: auto;
	white-space: nowrap;
}
.badge {
	display: inline-block;
	background: var(--teal-dark);
	color: #fff;
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 0.4rem 1rem;
	margin: 0;
}
.quote-card {
	background: var(--teal-light);
}
.quote-card .wp-block-quote {
	margin: 0;
	padding: 0;
	border: none;
}
.quote-card .wp-block-quote p {
	color: var(--ink);
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 1.12rem;
	font-style: normal;
	margin: 0;
}
.quote-source {
	margin-block-start: 1rem !important;
	color: var(--teal-dark) !important;
	font-size: 0.85rem;
	font-weight: 600;
}
.highlight-card {
	background: var(--sand);
}
.note-card {
	background: var(--teal-light);
}
.note-card h4 {
	color: var(--teal-dark);
}
.note-small {
	font-size: 0.85rem;
	color: var(--brown);
	border-top: 1px solid rgba(27, 127, 137, 0.25);
	padding-top: 0.75rem;
}
.phase-title {
	color: var(--accent-dark) !important;
	font-size: 1.3rem;
	margin-block: 2.5rem 1rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.img-band {
	margin: 0;
}
.img-band img {
	display: block;
	width: 100%;
	max-height: 440px;
	object-fit: cover;
}
.data-strip {
	padding-block: clamp(2.5rem, 7vw, 4.5rem);
}
.section-card {
	gap: 0.75rem;
}
.section-card h4 {
	color: var(--teal-dark);
	margin: 0;
	font-size: 1.05rem;
}
.section-card ul,
.section-card .wp-block-list {
	margin: 0;
	padding-inline-start: 1.1rem;
}
.section-card li {
	margin-block: 0.3rem;
}
.band h3 {
	margin-block: 0 0.75rem;
}
.legal {
	max-width: 760px;
}
.legal h2 {
	font-size: 1.3rem;
	margin-block: 2rem 0.5rem;
}
.legal p {
	color: var(--gray);
}
.legal-notice {
	background: var(--sand);
	border: 1px solid var(--teal-light);
	border-left: 4px solid var(--teal-dark);
	border-radius: 12px;
	padding: 1rem 1.2rem;
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	color: var(--teal-dark);
}
.legal-index {
	margin-block: 0 1rem;
	padding-left: 1.2rem;
}
.legal-index li {
	margin-block: 0.35rem;
}
.legal-index a {
	color: var(--teal-dark);
	font-weight: 600;
	text-underline-offset: 3px;
}
.legal h2[id],
.legal section[id] {
	scroll-margin-top: 140px;
}

/* remove the 24px seam between top-level full-bleed sections inside content */
.wp-block-post-content > * + * {
	margin-block-start: 0;
}
main.is-flush > * + * {
	margin-block-start: 0;
}

/* === motion ===
   Progressive enhancement: elements are visible by default; the motion
   script adds .js and the hidden states only apply under it. */

/* Sticky, compacting header */
.mainbar {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 60;
	transition: box-shadow 0.25s ease, padding 0.25s ease;
}
body .topbar {
	transition: opacity 0.25s ease, max-height 0.25s ease, padding 0.25s ease;
}
body.is-scrolled .topbar {
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	padding-block: 0;
}
body.is-scrolled .mainbar {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	box-shadow: 0 4px 20px rgba(38, 44, 61, 0.14);
}

/* Scroll reveals: section titles and cards */
.js .band h2,
.js .band h3,
.js .section-card {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease-out var(--stagger, 0ms),
		transform 0.6s ease-out var(--stagger, 0ms);
}
.js .band h2.is-visible,
.js .band h3.is-visible,
.js .section-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* card hover + focus-within (only after it has revealed) */
.js .section-card.is-visible {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.section-card:hover,
.section-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 12px 26px rgba(38, 44, 61, 0.16);
}
.section-card:hover .icon-badge,
.section-card:focus-within .icon-badge {
	background-color: var(--teal-dark);
	color: #fff;
}

/* === factor grid (Lancet risk factors) === */
.factor-grid {
	gap: 1rem;
}
.factor-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	background: #fff;
	border: 1px solid var(--sand);
	border-radius: var(--radius);
	box-shadow: 0 6px 18px rgba(38, 44, 61, 0.07);
	padding: 1.1rem 1.2rem;
	font-size: 0.95rem;
	color: var(--ink);
}
.factor-card p {
	margin: 0;
}
.factor-icon-badge {
	box-sizing: content-box;
	width: 1.375rem;
	height: 1.375rem;
	padding: 0.6875rem;
	border-radius: 999px;
	background: var(--teal-light);
	color: var(--teal-dark);
	flex: none;
	display: block;
}
/* reveal + staggered appearance */
.js .factor-card {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease-out var(--stagger, 0ms),
		transform 0.6s ease-out var(--stagger, 0ms);
}
.js .factor-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.factor-card:hover {
	transform: translateY(-3px);
	border-color: var(--teal-light);
	box-shadow: 0 10px 22px rgba(38, 44, 61, 0.12);
}
.factor-card:hover .factor-icon-badge,
.factor-card:focus-within .factor-icon-badge {
	background-color: var(--teal-dark);
	color: #fff;
}

/* === timeline SVG === */
.timeline-svg {
	display: block;
	width: 100%;
	height: auto;
	max-width: 340px;
	margin: 0 auto;
}
.tl-line {
	stroke: var(--brand);
	stroke-width: 3;
	stroke-linecap: round;
}
.tl-dot {
	fill: #fff;
	stroke: var(--teal-dark);
	stroke-width: 3;
}
.tl-node.tl-b .tl-dot {
	fill: var(--teal-light);
	stroke: var(--teal-dark);
}
.tl-title {
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 15px;
	fill: var(--ink);
}
.tl-title.tl-b {
	fill: var(--teal-dark);
}
.tl-sub {
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 12.5px;
	fill: var(--brown);
}

/* === highlight datum (25 %) === */
.highlight-datum {
	text-align: left;
	flex-direction: column;
	align-items: flex-start;
}
.highlight-datum .datum-number {
	justify-content: flex-start;
}
.highlight-datum .data-num {
	font-size: clamp(3rem, 8vw, 5rem);
}
.highlight-datum h3 {
	margin-block: 0.25rem 0.5rem;
}
.highlight-datum p:last-child {
	max-width: 760px;
	margin-inline: 0;
}

/* equal-height companion cards (OMS / Reserva) */
.columns-equal > .wp-block-column {
	display: flex;
}
.columns-equal > .wp-block-column > .wp-block-group {
	height: 100%;
}

/* === responsive: factor grid 4 / 3 / 2 columns === */
@media (max-width: 1024px) {
	.factor-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}
@media (max-width: 768px) {
	.factor-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* hero image: slow zoom once */
.js .hero-zoom {
	animation: heroZoom 12s ease-out 1 both;
}
@keyframes heroZoom {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.06);
	}
}

/* hero copy cascade */
.js .hero-eyebrow,
.js .hero-title,
.js .hero-sub,
.js .hero-cta {
	opacity: 0;
}
.js.loaded .hero-eyebrow {
	animation: fadeUp 0.6s ease-out 0.1s both;
}
.js.loaded .hero-title {
	animation: fadeUp 0.6s ease-out 0.28s both;
}
.js.loaded .hero-sub {
	animation: fadeUp 0.6s ease-out 0.46s both;
}
.js.loaded .hero-cta {
	animation: fadeUp 0.6s ease-out 0.64s both;
}
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* buttons: hover lift + soft orange shadow */
.wp-block-button__link {
	transition: transform 0.25s ease, box-shadow 0.25s ease,
		background-color 0.25s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(253, 128, 2, 0.35);
}

@media (prefers-reduced-motion: reduce) {
	.js .band h2,
	.js .band h3,
	.js .section-card,
	.js .factor-card,
	.js .hero-eyebrow,
	.js .hero-title,
	.js .hero-sub,
	.js .hero-cta,
	.js .hero-zoom {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}
	.mainbar,
	body .topbar {
		transition: none;
	}
}

/* === «El programa»: cita lateral destacada (sección 1) === */
.lateral-quote {
	margin-block: 1.4rem;
	padding: 1.1rem 1.3rem;
	border-left: 4px solid var(--accent);
	background: var(--cream);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.lateral-quote p {
	margin: 0;
	color: var(--brown);
	font-weight: 600;
	font-size: 1.02rem;
}

/* === tarjetas 2×2 «¿A quién va dirigido?» === */
.band.quien .section-card {
	height: 100%;
}
.band.quien .section-card h3 {
	font-size: 1.05rem;
}

/* === valoración: cabeceras de fase + paso a paso === */
.valoracion-content {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
}
.phase-block {
	scroll-margin-top: 130px;
}
/* cabecera de cada fase: círculo numerado + h3 */
.phase-head {
	align-items: center;
	gap: 0.85rem;
	margin-block: 2.5rem 1rem;
}
.phase-badge-num {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: var(--teal-dark);
	color: #fff;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 1.15rem;
	margin: 0;
	flex: none;
}
.phase-title {
	color: var(--accent-dark) !important;
	font-size: 1.3rem;
	margin: 0 !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	scroll-margin-top: 130px;
}
/* paso a paso accesible (bloque de navegación) */
.phase-nav.wp-block-navigation {
	font-size: inherit;
}
.phase-nav .wp-block-navigation__container {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	align-items: stretch;
	width: 100%;
	gap: 0;
	counter-reset: step;
}
.phase-nav .wp-block-navigation-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	margin: 0;
	padding: 0;
}
.phase-nav .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex: 1 1 0;
	min-width: 0;
	text-decoration: none;
	padding: 0.9rem;
	border-radius: var(--radius);
	background: #fff;
	border: 1px solid var(--sand);
	box-shadow: 0 6px 18px rgba(38, 44, 61, 0.06);
	transition: box-shadow 0.2s ease;
	color: var(--ink);
}
.phase-nav .wp-block-navigation-item__content::before {
	content: counter(step);
	counter-increment: step;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: var(--teal-dark);
	color: #fff;
	flex: none;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 1.15rem;
}
.phase-nav .wp-block-navigation-item__content:hover {
	box-shadow: 0 10px 24px rgba(38, 44, 61, 0.12);
}
.phase-nav .wp-block-navigation-item:not(:last-child)::after {
	content: "";
	flex: none;
	width: 34px;
	height: 2px;
	background: var(--teal-light);
	align-self: center;
	margin-inline: 0.5rem;
}
.phase-nav .wp-block-navigation-item__label {
	font-size: 0.98rem;
	line-height: 1.3;
	display: block;
	padding: 0;
}
/* foco visible en los enlaces */
.phase-nav .wp-block-navigation-item__content:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

/* === Fase 1: cuadrícula de 9 valoraciones (3 / 2 / 1) === */
.assessment-grid {
	gap: 1rem;
}
@media (max-width: 1024px) {
	.assessment-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 560px) {
	.assessment-grid {
		grid-template-columns: 1fr !important;
	}
}

/* === caja naranja: nota biomarcadores === */
.note-nueva {
	background: var(--cream);
	border: 2px solid var(--accent);
	border-radius: var(--radius);
	padding: 1.1rem 1.3rem;
	margin-top: 1.5rem;
}
.note-nueva .info-icon {
	background: var(--accent);
	color: var(--ink);
}
.note-nueva .note-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 1.02rem;
	color: var(--accent-dark);
}
.note-nueva p:last-child {
	margin: 0.4rem 0 0;
	color: var(--brown);
	font-size: 0.92rem;
}

/* === Fase 2: listas con marcas de verificación turquesa === */
ul.check-list {
	list-style: none;
	padding-inline-start: 0;
	margin: 0;
}
ul.check-list li {
	position: relative;
	padding-inline-start: 1.6rem;
	margin-block: 0.35rem;
}
ul.check-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--teal-dark);
	font-weight: 700;
}

/* paso a paso: en vertical en móvil */
@media (max-width: 768px) {
	.phase-nav .wp-block-navigation__container {
		flex-direction: column;
		gap: 0.75rem;
	}
	.phase-nav .wp-block-navigation-item {
		flex: 1 1 auto;
	}
	.phase-nav .wp-block-navigation-item:not(:last-child)::after {
		display: none;
	}
}

/* === «El programa»: cuadrícula 2×2 «¿A quién va dirigido?» === */
.quien-grid,
.plan-grid {
	gap: 24px;
}
.quien-grid .section-card,
.plan-grid .section-card {
	margin: 0;
	height: 100%;
}
.quien-grid .section-card h3 {
	font-size: 1.05rem;
}

/* === «El programa»: Fase 2, 2 columnas a la misma altura === */
.plan-grid {
	align-items: stretch;
}

@media (max-width: 768px) {
	.quien-grid,
	.plan-grid {
		grid-template-columns: 1fr !important;
	}
}

/* === Equipo y colaboradores === */
.team-grid {
	gap: 1.5rem;
	margin-block: 1rem 0;
}
.team-card {
	align-items: center;
	text-align: center;
	height: 100%;
}
.team-photo {
	margin: 0 0 1rem;
}
.team-photo img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	height: auto;
}
.team-card h3 {
	color: var(--teal-dark);
	font-size: 1.12rem;
	line-height: 1.3;
	margin-block: 0 0.45rem;
}
.team-card p {
	margin-block: 0;
}
.team-pending {
	font-size: 0.8rem;
	font-style: italic;
	letter-spacing: 0.02em;
	color: var(--brown);
	margin-block: 0.65rem 0 0;
}

@media (max-width: 768px) {
	.team-grid .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === Preguntas frecuentes (acordeón details) === */
:root {
	interpolate-size: allow-keywords;
}
.faq-stack {
	gap: 1rem;
	margin-block: 0.5rem 0;
	max-width: 820px;
	margin-inline: 0 !important;
}
.faq-item summary:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}
.faq-stack details.faq-item {
	background: #fff;
	border: 1px solid var(--sand);
	border-radius: var(--radius);
	box-shadow: 0 6px 18px rgba(38, 44, 61, 0.05);
	overflow: hidden;
}
.faq-item summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 1.1rem 3.4rem 1.1rem 1.4rem;
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.3;
	color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
	display: none;
}
.faq-item summary::marker {
	content: "";
}
/* icono +/− construido con dos barras */
.faq-item summary::before,
.faq-item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.3rem;
	width: 16px;
	height: 2px;
	background: var(--teal-dark);
	border-radius: 2px;
}
.faq-item summary::after {
	transform: translateY(-50%); /* barra horizontal (menos) */
}
.faq-item summary::before {
	transform: translateY(-50%) rotate(90deg); /* barra vertical -> forma el más */
	transition: transform 0.28s ease, opacity 0.28s ease;
}
.faq-item[open] > summary::before {
	transform: translateY(-50%) rotate(0deg);
	opacity: 0;
}
/* transición de altura suave (progressive enhancement) */
.faq-item > .wp-block-details-content {
	height: 0;
	overflow: hidden;
	transition: height 0.3s ease;
}
.faq-item[open] > .wp-block-details-content {
	height: auto;
}
.faq-item .wp-block-details-content {
	margin: 0;
}
.faq-item .wp-block-details-content p {
	padding: 0 1.4rem 1.2rem;
	margin: 0;
	color: var(--gray);
}

/* === Contacto === */
.contact-columns {
	align-items: stretch;
}
.contact-columns > .wp-block-column {
	align-self: stretch;
}
.contact-columns .section-card {
	height: 100%;
}
.contact-line {
	font-size: 1rem;
	margin-block: 0.15rem;
}
.contact-line a {
	color: var(--teal-dark);
	font-weight: 600;
}
.form-legal {
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--brown);
	margin-block: 1.1rem 0.4rem;
}
.form-legal a {
	color: var(--teal-dark);
	font-weight: 600;
}
/* campos del formulario Jetpack */
.wp-block-jetpack-contact-form label {
	font-family: var(--wp--preset--font-family--poppins);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--ink);
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form input[type="number"],
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--sand);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 1rem;
}
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form select:focus,
.wp-block-jetpack-contact-form textarea:focus {
	outline: 2px solid var(--teal-dark);
	outline-offset: 1px;
}
.wp-block-jetpack-contact-form .grunion-field-label {
	margin-bottom: 0.25rem;
}
/* mapa perezoso */
.map-lazy {
	text-align: center;
	gap: 0.75rem;
}
.map-lazy__icon {
	color: var(--teal-dark);
	margin-inline: auto;
}
.map-lazy .wp-block-button__link {
	width: auto;
	display: inline-block;
}
.map-lazy__note {
	font-size: 0.78rem;
	color: var(--brown);
	margin: 0;
}
.map-lazy iframe {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 0;
	border-radius: 12px;
}
