/*
 * OtakuPahp NEXO — estilos de componentes.
 * Colores, tipografía y tamaños vienen de theme.json (variables --wp--preset--*).
 */

:root {
	--nexo-azul: var(--wp--preset--color--azul);
	--nexo-navy: var(--wp--preset--color--navy);
	--nexo-deep: var(--wp--preset--color--deep);
	--nexo-signal: var(--wp--preset--color--signal);
	--nexo-ink: var(--wp--preset--color--ink);
	--nexo-text: var(--wp--preset--color--text);
	--nexo-muted: var(--wp--preset--color--muted);
	--nexo-line: var(--wp--preset--color--line);
	--nexo-mist: var(--wp--preset--color--mist);
	--nexo-surface: var(--wp--preset--color--surface);
	--nexo-sky: var(--wp--preset--color--sky);
	--nexo-sky-strong: var(--wp--preset--color--sky-strong);
	--nexo-gap: clamp(2rem, 5vw, 4rem);
	--nexo-header-h: 66px;
	--nexo-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--nexo-header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

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

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }

/* ---------- Utilidades de maquetación (todas apilan en móvil) ---------- */

.nexo-split,
.nexo-grid,
.nexo-stack,
.nexo-intro,
.nexo-faq,
.nexo-section-head,
.nexo-band {
	margin-block: 0;
}

.nexo-split.nexo-split > *,
.nexo-grid.nexo-grid > *,
.nexo-stack.nexo-stack > *,
.nexo-intro.nexo-intro > *,
.nexo-section-head.nexo-section-head > *,
.nexo-band.nexo-band > *,
.nexo-faq.nexo-faq > * {
	margin-block: 0;
}

.nexo-split {
	--nexo-min: 380px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--nexo-min)), 1fr));
	gap: var(--nexo-gap);
}
.nexo-split--420 { --nexo-min: 420px; }
.nexo-split--400 { --nexo-min: 400px; }
.nexo-split--380 { --nexo-min: 380px; }
.nexo-split--340 { --nexo-min: 340px; }
.nexo-split--center { align-items: center; }
.nexo-split--start { align-items: start; }
.nexo-split--end { align-items: end; }

.nexo-grid {
	--nexo-min: 240px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--nexo-min)), 1fr));
	gap: 1.25rem;
}
.nexo-grid--240 { --nexo-min: 240px; }
.nexo-grid--220 { --nexo-min: 220px; gap: 1rem; }
.nexo-grid--200 { --nexo-min: 200px; gap: 1rem; }
.nexo-grid--300 { --nexo-min: 300px; gap: 2rem; align-items: start; }

.nexo-stack {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.nexo-stack--lg { gap: 1.5rem; }
.nexo-stack--xl { gap: 2.5rem; }
.nexo-hero .nexo-stack--lg { align-items: flex-start; }

.nexo-intro {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	max-width: 44rem;
}
.nexo-intro--wide { max-width: 46rem; }

.nexo-section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
}

.nexo-center { text-align: center; }

/* ---------- Secciones ---------- */

.nexo-main { margin-block-start: 0; }
.nexo-main > .alignfull:first-child,
.nexo-design-content > .alignfull:first-child { margin-block-start: 0; }
.nexo-design-content > * + * { margin-block-start: 0; }

.nexo-section {
	padding-block: var(--wp--preset--spacing--70);
	margin-block: 0;
}
.nexo-main > .nexo-section,
.nexo-main > * + * { margin-block-start: 0; }
.nexo-section--tall { padding-block: clamp(3.5rem, 7vw, 6rem); }
.nexo-section--short { padding-block: clamp(2.5rem, 5vw, 4rem); }
.nexo-section--head { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.nexo-section--featured { padding-block: 1rem 2.5rem; }
.nexo-section--list { padding-block: clamp(2.5rem, 5vw, 4rem); }
.nexo-center.nexo-section > * + * { margin-block-start: 1rem; }
.nexo-section--tall.nexo-center > * + * { margin-block-start: 1.4rem; }

.nexo-anchor { scroll-margin-top: calc(var(--nexo-header-h) + 0.5rem); }

/* ---------- Tipografía de componentes ---------- */

.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--nexo-azul);
	margin-block: 0;
}
.nexo-eyebrow-muted { color: var(--nexo-muted); }

.nexo-hero__title {
	max-width: 16ch;
	margin-block: 0;
}
.nexo-hero__title--17 { max-width: 17ch; }
.nexo-hero__title--20 { max-width: 20ch; }

.nexo-lead {
	font-size: var(--wp--preset--font-size--lead);
	max-width: 52ch;
	margin-block: 0;
}
.nexo-lead--56 { max-width: 56ch; }
.nexo-lead strong,
.nexo-strong-copy { color: var(--nexo-ink); }
.nexo-strong-copy { font-weight: 500; }

.nexo-microcopy {
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--nexo-muted);
	margin-block: 0;
}

.nexo-muted { color: var(--nexo-muted); }
.nexo-heavy { font-weight: 800; line-height: 1.18; }

.nexo-cta-block {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.nexo-cta-block > * { margin-block: 0; }

.nexo-more-link { margin-block: 0; }
.nexo-more-link a {
	font-weight: 700;
	text-decoration: none;
}

/* Fondos oscuros */
.nexo-dark { color: var(--nexo-sky); }
.nexo-dark h1,
.nexo-dark h2,
.nexo-dark h3 { color: #fff; }
.nexo-dark .is-style-eyebrow { color: var(--nexo-signal); }
.nexo-dark .nexo-microcopy { color: var(--nexo-sky); }
.nexo-dark a:where(:not(.wp-element-button)) { color: #fff; }

/* ---------- Botones ---------- */

.wp-element-button,
.wp-block-button__link {
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wp-block-button.is-style-light .wp-block-button__link {
	background-color: #fff;
	color: var(--nexo-deep);
}
.wp-block-button.is-style-light .wp-block-button__link:hover,
.wp-block-button.is-style-light .wp-block-button__link:focus-visible {
	background-color: var(--nexo-signal);
	color: var(--nexo-deep);
}
.wp-block-button.is-style-compact .wp-block-button__link,
.nexo-callout .wp-block-button__link {
	padding: 0.9rem 1.4rem;
	font-size: 1rem;
}
.nexo-buttons-full .wp-block-button { width: 100%; }
.nexo-buttons-full .wp-block-button__link { width: 100%; text-align: center; }

/* ---------- Cabecera ---------- */

.nexo-header-wrap {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .nexo-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) {
	.admin-bar .nexo-header-wrap { top: 0; }
}

.nexo-header {
	border-bottom: 1px solid var(--nexo-line);
	margin-block: 0;
}
.nexo-header__inner {
	padding-block: 0.75rem;
	gap: 0.75rem 1.5rem;
	min-height: var(--nexo-header-h);
}
.nexo-brand { gap: 0.5rem; flex-shrink: 0; }
.nexo-brand .wp-block-site-logo img,
.nexo-logo img {
	height: 40px;
	width: auto;
	display: block;
}
.nexo-brand:has(.wp-block-site-logo img) .wp-block-site-title { display: none; }
.nexo-site-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
}
.nexo-site-title a { color: var(--nexo-ink); text-decoration: none; }

.nexo-header__actions { gap: 1.5rem; flex-wrap: nowrap; }

.nexo-nav .wp-block-navigation-item__content {
	color: var(--nexo-text);
	text-decoration: none;
}
.nexo-nav .wp-block-navigation-item__content:hover,
.nexo-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--nexo-azul);
}
.nexo-nav .wp-block-navigation__container { gap: 1.5rem; }
.nexo-nav .nexo-lang .wp-block-navigation-item__content {
	color: var(--nexo-muted);
	font-weight: 500;
	font-size: 0.8rem;
	border: 1px solid var(--nexo-line);
	border-radius: var(--wp--custom--radius--chip);
	padding: 0.2rem 0.45rem;
	line-height: 1.3;
}
.nexo-header__cta { margin: 0; }
.nexo-header__cta .wp-block-button__link {
	white-space: nowrap;
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
}

/* Menú desplegable en móvil */
.nexo-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem;
}
.nexo-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.25rem;
	font-size: 1.25rem;
}
.nexo-nav .wp-block-navigation__responsive-container-open svg,
.nexo-nav .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

@media (max-width: 1080px) {
	.nexo-nav .wp-block-navigation__container { gap: 1rem; }
	.nexo-header__actions { gap: 1rem; }
}
@media (min-width: 600px) and (max-width: 1000px) {
	.nexo-header .nexo-header__inner { flex-wrap: wrap; }
	.nexo-header .nexo-header__actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 400px) {
	.nexo-header__cta { display: none; }
}

/* ---------- Tarjetas y paneles ---------- */

.is-style-card {
	background: #fff;
	border: 1px solid var(--nexo-line);
	border-radius: var(--wp--custom--radius--card);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.is-style-card-dashed {
	background: transparent;
	border: 1.5px dashed var(--nexo-sky-strong);
	border-radius: var(--wp--custom--radius--card);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.is-style-panel {
	background: var(--nexo-mist);
	border-radius: var(--wp--custom--radius--card);
	padding: 1.5rem 1.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.is-style-card > *,
.is-style-card-dashed > *,
.is-style-panel > * { margin-block: 0; }

.nexo-feature h3 { font-size: var(--wp--preset--font-size--large); margin: 0; }
.nexo-feature p { line-height: 1.65; }
.nexo-feature .nexo-icon,
.nexo-feature svg { color: var(--nexo-azul); display: block; }

/* ---------- Hero: diagrama del recorrido ---------- */

.nexo-flow {
	border-radius: var(--wp--custom--radius--panel);
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--wp--custom--shadow--soft);
	gap: 1.25rem;
}
.nexo-flow__caption {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nexo-muted);
	line-height: 1.4;
}
.nexo-flow__steps {
	counter-reset: nexo-step;
	display: flex;
	flex-direction: column;
}
.nexo-flow__steps > * { margin-block: 0; }
.nexo-flow__row {
	counter-increment: nexo-step;
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: 0.85rem 0;
	border-bottom: 1px dashed var(--nexo-line);
}
.nexo-flow__row:last-child { border-bottom: 0; }
.nexo-flow__row > * { margin-block: 0; }
.nexo-flow__row::before {
	content: counter(nexo-step);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--nexo-sky);
	color: var(--nexo-azul);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nexo-flow__text {
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--nexo-muted);
}
.nexo-flow__text strong {
	display: block;
	color: var(--nexo-ink);
	font-size: 1.02rem;
	margin-bottom: 0.15rem;
}
.nexo-tag {
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nexo-deep);
	background: var(--nexo-signal);
	border-radius: var(--wp--custom--radius--chip);
	padding: 0.25rem 0.5rem;
	white-space: nowrap;
}
.nexo-flow__total {
	background: var(--nexo-deep);
	border-radius: 0.75rem;
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}
.nexo-flow__total > * { margin-block: 0; }
.nexo-flow__total p {
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--nexo-sky);
	flex: 1 1 180px;
}
.nexo-flow__total .nexo-flow__hours {
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	flex: 0 0 auto;
}

/* ---------- Retratos ---------- */

.nexo-portrait { margin: 0; }
.nexo-portrait img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--panel);
	display: block;
}
.nexo-portrait--420 { max-width: 420px; }
.nexo-portrait--440 { max-width: 440px; }
.nexo-portrait--480 { max-width: 480px; }
.nexo-portrait--center { justify-self: center; }

.nexo-portrait-stat { position: relative; }
.nexo-portrait-stat > * { margin-block: 0; }
.nexo-portrait-stat__card {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	background: #fff;
	border-radius: 0.75rem;
	padding: 1rem 1.2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	box-shadow: 0 10px 30px rgba(23, 47, 94, 0.12);
}
.nexo-portrait-stat__card > * { margin-block: 0; }
.nexo-portrait-stat__card p { font-size: 0.88rem; line-height: 1.5; }
.nexo-portrait-stat__card .nexo-portrait-stat__hours {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	color: var(--nexo-azul);
	flex: none;
}

.nexo-person {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.nexo-person > * { margin-block: 0; }
.nexo-person__name {
	font-size: 0.88rem;
	color: var(--nexo-muted);
	line-height: 1.5;
}
.nexo-person__name strong {
	display: block;
	color: var(--nexo-ink);
	font-size: 1.05rem;
}

.nexo-inline-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	padding-top: 0.5rem;
}
.nexo-inline-cta > * { margin-block: 0; }
.nexo-inline-cta .nexo-microcopy { font-size: 0.9rem; font-weight: 400; }

/* ---------- La idea ---------- */

.nexo-idea-key {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.nexo-idea-key > * { margin-block: 0; }
.nexo-idea-key__text {
	font-size: 1.12rem;
	line-height: 1.6;
	font-weight: 600;
	color: #fff;
}

/* ---------- Método ---------- */

.nexo-steps { list-style: none; }
.nexo-step { padding: 1.5rem; gap: 0.75rem; }
.nexo-step h3 { font-size: 1.1rem; margin: 0; }
.nexo-step__num {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--nexo-azul);
}
.is-style-card-dashed .nexo-step__num { color: var(--nexo-muted); }
.nexo-step__desc {
	font-size: 0.94rem;
	line-height: 1.6;
	flex: 1;
}
.nexo-step__get {
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--nexo-ink);
	border-top: 1px solid var(--nexo-line);
	padding-top: 0.75rem;
}
.nexo-step__get strong { color: var(--nexo-azul); }
.is-style-card-dashed .nexo-step__get { border-top: 1px dashed var(--nexo-sky-strong); }
.is-style-card-dashed .nexo-step__get strong { color: var(--nexo-navy); }

.nexo-step--mini { padding: 1.4rem; gap: 0.5rem; }
.nexo-step--mini .nexo-step__num { font-size: 1.4rem; }
.nexo-step--mini h3 { font-size: 1.04rem; }
.nexo-step--mini .nexo-step__desc { font-size: 0.92rem; line-height: 1.55; }

.nexo-chip {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
	background: var(--nexo-sky);
	color: var(--nexo-navy);
	border-radius: var(--wp--custom--radius--chip);
	padding: 0.25rem 0.5rem;
	margin-block: 0;
}
.nexo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.nexo-chips > * { margin-block: 0; }
.nexo-chips .nexo-chip {
	font-size: 0.84rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	padding: 0.35rem 0.65rem;
}

.nexo-method-end {
	font-size: 1.04rem;
	line-height: 1.7;
	font-weight: 600;
	color: var(--nexo-ink);
	max-width: 48rem;
}
.nexo-method-end mark {
	padding: 0.05rem 0.35rem;
	border-radius: 0.25rem;
	color: var(--nexo-ink);
}

/* ---------- Oferta y precio ---------- */

.nexo-price {
	background: #fff;
	border: 1px solid var(--nexo-line);
	border-radius: var(--wp--custom--radius--panel);
	overflow: hidden;
	box-shadow: var(--wp--custom--shadow--raised);
}
.nexo-price > * { margin-block: 0; }
.nexo-price__head {
	background: var(--nexo-azul);
	color: #fff;
	padding: 1.75rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.nexo-price__head > * { margin-block: 0; }
.nexo-price__head .is-style-eyebrow { color: var(--nexo-sky); }
.nexo-price__amount {
	font-size: var(--wp--preset--font-size--price);
	font-weight: 800;
	line-height: 1;
	color: #fff;
}
.nexo-price__amount mark {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	margin-left: 0.4rem;
	vertical-align: baseline;
}
.nexo-price__body {
	padding: 1.75rem 2rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}
.nexo-price__body > * { margin-block: 0; }
@media (max-width: 480px) {
	.nexo-price__head { padding: 1.5rem 1.25rem; }
	.nexo-price__body { padding: 1.5rem 1.25rem 1.75rem; }
}

.nexo-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
}
.nexo-facts > * { margin-block: 0; }
.nexo-fact {
	background: var(--nexo-mist);
	border-radius: 0.75rem;
	padding: 0.9rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	line-height: 1.4;
}
.nexo-fact span {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nexo-muted);
}
.nexo-fact strong { color: var(--nexo-ink); }

.is-style-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.is-style-checks li {
	position: relative;
	padding-left: 1.85rem;
	color: var(--nexo-ink);
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
}
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.12em;
	width: 20px;
	height: 20px;
	background: var(--nexo-azul);
	-webkit-mask: var(--nexo-check) center / contain no-repeat;
	mask: var(--nexo-check) center / contain no-repeat;
}

.nexo-math { display: flex; flex-direction: column; gap: 0.4rem; }
.nexo-math > * { margin-block: 0; }
.nexo-math__line {
	font-weight: 800;
	color: var(--nexo-ink);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.2;
}
.nexo-math__line mark { margin-inline: 0.35rem; }

.nexo-note {
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.4rem 1.5rem;
}
.nexo-note::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--nexo-sky);
}
.nexo-note { position: relative; }
.nexo-note::after {
	content: "";
	position: absolute;
	left: calc(1.5rem + 0.5rem);
	top: calc(1.4rem + 0.5rem);
	width: 1rem;
	height: 1rem;
	background: var(--nexo-azul);
	-webkit-mask: var(--nexo-check) center / contain no-repeat;
	mask: var(--nexo-check) center / contain no-repeat;
}
.nexo-note p { line-height: 1.65; }

/* ---------- FAQ ---------- */

.nexo-faq {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nexo-gap);
	align-items: flex-start;
}
.nexo-faq__intro {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}
.nexo-faq__intro > * { margin-block: 0; }
.nexo-faq__list {
	flex: 2 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--nexo-line);
}
.nexo-faq__list > * { margin-block: 0; }
.nexo-faq__item {
	border-bottom: 1px solid var(--nexo-line);
}
.nexo-faq__item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 0;
	font-weight: 700;
	color: var(--nexo-ink);
	font-size: 1.04rem;
	line-height: 1.45;
}
.nexo-faq__item summary::-webkit-details-marker { display: none; }
.nexo-faq__item summary::after {
	content: "+";
	flex: none;
	color: var(--nexo-azul);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1;
	transition: transform 0.2s;
}
.nexo-faq__item[open] summary::after { transform: rotate(45deg); }
.nexo-faq__item summary:focus-visible {
	outline: 2px solid var(--nexo-azul);
	outline-offset: 2px;
}
.nexo-faq__item > p {
	margin: 0 0 1.25rem;
	line-height: 1.7;
	max-width: 60ch;
}

/* ---------- Tarjetas de artículos ---------- */

.nexo-cards {
	--nexo-min: 300px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--nexo-min)), 1fr));
	gap: 1.25rem;
}
.nexo-cards--text {
	--nexo-min: 280px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--nexo-min)), 1fr));
}
.nexo-cards > li { margin: 0; display: flex; }
.nexo-cards > li > .nexo-post-card { width: 100%; }

.nexo-post-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--nexo-line);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.15s ease;
}
.nexo-post-card:hover,
.nexo-post-card:focus-within { border-color: var(--nexo-sky-strong); }
.nexo-post-card > * { margin-block: 0; }
.nexo-post-card.is-style-card { gap: 0.8rem; }
.nexo-post-card__media { margin: 0; background: var(--nexo-sky); }
.nexo-post-card__media img { display: block; width: 100%; object-fit: cover; }
.nexo-post-card__body {
	padding: 1.4rem 1.5rem 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	flex: 1;
}
.nexo-post-card__body > * { margin-block: 0; }
.nexo-post-card--compact .nexo-post-card__body { padding: 1.3rem 1.5rem 1.5rem; gap: 0.6rem; }

.nexo-post-card__cat,
.nexo-article-cats {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.4;
}
.nexo-post-card__cat a,
.nexo-article-cats a {
	color: var(--nexo-azul);
	text-decoration: none;
	position: relative;
	z-index: 2;
}
.nexo-post-card__cat a:hover,
.nexo-article-cats a:hover { text-decoration: underline; }
.nexo-article-cats .wp-block-post-terms__separator { color: var(--nexo-sky-strong); }

.nexo-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem;
	font-size: 0.76rem;
}
.nexo-meta > * { margin: 0; }
.nexo-meta__date,
.nexo-meta__flag { color: var(--nexo-muted); }
.nexo-meta__date::before,
.nexo-meta__flag::before { content: "· "; }

.nexo-post-card__title {
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 0;
}
.nexo-cards--text .nexo-post-card__title { font-size: 1.15rem; }
.nexo-post-card--compact .nexo-post-card__title { font-size: 1.05rem; }
.nexo-post-card__title a {
	color: var(--nexo-ink);
	text-decoration: none;
}
.nexo-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.nexo-post-card__title a:focus-visible { outline: none; }
.nexo-post-card:has(.nexo-post-card__title a:focus-visible) {
	outline: 2px solid var(--nexo-azul);
	outline-offset: 2px;
}

.nexo-post-card__excerpt {
	font-size: 0.92rem;
	line-height: 1.6;
	flex: 1;
}
.nexo-post-card__excerpt p { margin: 0; }
.nexo-post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }

.nexo-read-more {
	font-weight: 700;
	color: var(--nexo-azul);
	font-size: 0.9rem;
	text-decoration: none;
	margin-top: auto;
}

/* Destacado del blog */
.nexo-featured {
	list-style: none;
	margin: 0;
	padding: 0;
}
.nexo-featured > li { margin: 0; }
.nexo-featured__card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	border-radius: var(--wp--custom--radius--panel);
}
.nexo-featured__media { margin: 0; height: 100%; }
.nexo-featured__media a { display: block; height: 100%; }
.nexo-featured__media img {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	display: block;
	background: var(--nexo-sky);
}
.nexo-featured__body {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
}
.nexo-featured__body > * { margin-block: 0; }
.nexo-featured__title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	line-height: 1.25;
}
.nexo-featured .nexo-meta { font-size: 0.8rem; }
.paged .nexo-section--featured { display: none; }

/* Filtro por categoría */
.nexo-filters {
	gap: 0.5rem;
	align-items: center;
}
.nexo-filters > * { margin: 0; }
.nexo-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nexo-pills li { margin: 0; }
.nexo-pill a,
.nexo-pills a {
	display: inline-block;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.4;
	border-radius: var(--wp--custom--radius--button);
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--nexo-line);
	background: #fff;
	color: var(--nexo-text);
	text-decoration: none;
}
.nexo-pill a:hover,
.nexo-pills a:hover { border-color: var(--nexo-sky-strong); color: var(--nexo-text); }
.nexo-pills .current-cat > a,
.nexo-is-blog-home .nexo-pill--all a {
	background: var(--nexo-azul);
	border-color: var(--nexo-azul);
	color: #fff;
}

/* Paginación */
.nexo-pagination {
	margin-top: 2rem;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.9rem;
}
.nexo-pagination a,
.nexo-pagination .page-numbers {
	display: inline-block;
	padding: 0.45rem 0.8rem;
	border-radius: var(--wp--custom--radius--button);
	border: 1px solid var(--nexo-line);
	background: #fff;
	color: var(--nexo-text);
	text-decoration: none;
}
.nexo-pagination .page-numbers.current {
	background: var(--nexo-azul);
	border-color: var(--nexo-azul);
	color: #fff;
}
.nexo-pagination .page-numbers.dots { border: 0; background: none; }

/* Banda CTA del blog */
.nexo-band {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}
.nexo-band .nexo-intro { max-width: 40rem; gap: 0.6rem; }
.nexo-band__title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.nexo-band .wp-block-buttons { margin: 0; }

/* ---------- Artículo ---------- */

.nexo-breadcrumb {
	gap: 0.5rem;
	font-size: 0.84rem;
	color: var(--nexo-muted);
	line-height: 1.5;
}
.nexo-breadcrumb > * { margin: 0; }
.nexo-breadcrumb a { color: var(--nexo-muted); }
.nexo-breadcrumb .wp-block-post-terms a { color: var(--nexo-muted); }

.nexo-article-title {
	font-size: clamp(2.1rem, 4vw, 3.1rem);
	line-height: 1.14;
	max-width: 22ch;
	margin: 0;
}

.nexo-byline { gap: 0.9rem; align-items: center; }
.nexo-byline > * { margin: 0; }
.nexo-avatar img { border-radius: 50%; display: block; object-fit: cover; }
.nexo-byline__text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	font-size: 0.88rem;
	line-height: 1.4;
}
.nexo-byline__text > * { margin: 0; }
.nexo-byline .wp-block-post-author-name { font-weight: 700; color: var(--nexo-ink); }
.nexo-byline .wp-block-post-date { color: var(--nexo-muted); }

.nexo-article-media { padding-bottom: 2.5rem; margin-block: 0; }
.nexo-article-media:not(:has(img)) { padding-bottom: 0; }
.nexo-article-cover { margin-block: 0; }
.nexo-article-cover img {
	width: 100%;
	aspect-ratio: 3 / 1.4;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--panel);
	display: block;
	background: var(--nexo-sky);
}

.nexo-article {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nexo-gap);
	align-items: flex-start;
}
.nexo-article > * { margin-block: 0; }
.nexo-article__main {
	flex: 999 1 520px;
	min-width: 0;
	max-width: 44rem;
}
.nexo-article__main > * + * { margin-block-start: 2rem; }

.nexo-toc {
	flex: 1 1 240px;
	position: sticky;
	top: calc(var(--nexo-header-h) + 1.5rem);
	background: var(--nexo-mist);
	border-radius: var(--wp--custom--radius--card);
	padding: 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.nexo-toc[hidden] { display: none; }
.nexo-toc > * { margin: 0; }
.nexo-toc__label {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nexo-muted);
}
.nexo-toc nav {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.nexo-toc nav a {
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.45;
	font-weight: 600;
	color: var(--nexo-text);
}
.nexo-toc nav a:hover { color: var(--nexo-azul); }
@media (max-width: 860px) {
	.nexo-toc { position: static; order: -1; }
}

/* Texto largo (artículos y páginas simples) */
.nexo-prose {
	font-size: 1.06rem;
	line-height: 1.8;
}
.nexo-prose > * { margin-block: 0; }
.nexo-prose > * + * { margin-block-start: 1.2rem; }
.nexo-prose > h2 {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.3;
	margin-block-start: 2.5rem;
}
.nexo-prose > h3 {
	font-size: var(--wp--preset--font-size--large);
	margin-block-start: 2rem;
}
.nexo-prose h2,
.nexo-prose h3 { scroll-margin-top: calc(var(--nexo-header-h) + 1.5rem); }
.nexo-article__content > p:first-child {
	font-size: 1.18rem;
	line-height: 1.7;
	color: var(--nexo-ink);
	font-weight: 500;
}
.nexo-prose ul,
.nexo-prose ol { padding-left: 1.4rem; }
.nexo-prose li + li { margin-top: 0.4rem; }
.nexo-prose img { border-radius: 0.75rem; }
.nexo-prose figure { margin-inline: 0; }
.nexo-prose .wp-block-image figcaption { margin-top: 0.5rem; }
.nexo-prose code {
	background: var(--nexo-mist);
	border-radius: 0.3rem;
	padding: 0.1rem 0.35rem;
	font-size: 0.92em;
}
.nexo-prose pre {
	background: var(--nexo-deep);
	color: var(--nexo-sky);
	border-radius: 0.75rem;
	padding: 1.25rem;
	overflow-x: auto;
	font-size: 0.9rem;
}
.nexo-prose pre code { background: none; padding: 0; }
.nexo-article__content .alignwide,
.nexo-article__content .alignfull { max-width: 100%; margin-inline: 0; }
.nexo-page-content { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* Etiquetas en píldora */
.is-style-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nexo-line);
}
.is-style-chips .wp-block-post-terms__separator { display: none; }
.is-style-chips a {
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--nexo-navy);
	background: var(--nexo-sky);
	border-radius: var(--wp--custom--radius--chip);
	padding: 0.3rem 0.6rem;
	text-decoration: none;
}

/* Caja azul (artículo y contacto) */
.nexo-callout {
	border-radius: var(--wp--custom--radius--card);
	padding: clamp(1.5rem, 3vw, 2rem);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}
.nexo-callout > * { margin-block: 0; }
.nexo-callout p { line-height: 1.65; }
.nexo-callout .nexo-callout__title {
	font-size: 1.3rem;
	line-height: 1.35;
	font-weight: 700;
	color: #fff;
}
.nexo-callout .wp-block-buttons { margin: 0; }

/* Caja de autor */
.nexo-author {
	gap: 1.1rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--nexo-line);
	font-size: 0.94rem;
	line-height: 1.6;
}
.nexo-author > * { margin: 0; }
.nexo-author .nexo-avatar { flex: none; }
.nexo-author__text {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.nexo-author__text > * { margin: 0; }
.nexo-author .wp-block-post-author-name { font-weight: 700; color: var(--nexo-ink); }
.nexo-author .wp-block-post-author-biography:empty { display: none; }

.nexo-related-title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 0; }

/* ---------- Acerca de ---------- */

.nexo-clients {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 3.5rem;
}
.nexo-center .nexo-clients { margin-block-start: 1.5rem; }
.nexo-clients > p {
	margin: 0;
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	font-weight: 800;
	color: var(--nexo-deep);
	line-height: 1.3;
}

/* ---------- Contacto ---------- */

.nexo-form-card {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: var(--wp--custom--shadow--soft);
	border-radius: var(--wp--custom--radius--panel);
	gap: 1.2rem;
}
.nexo-form-card__title {
	font-size: 0.9rem;
	color: var(--nexo-muted);
	line-height: 1.5;
}
.nexo-form-card__title strong {
	display: block;
	font-size: 1.15rem;
	color: var(--nexo-ink);
	margin-bottom: 0.3rem;
}
.nexo-form-card__privacy {
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--nexo-muted);
}
.nexo-form-card__privacy a { color: var(--nexo-muted); }

/* Campos del formulario de contacto (AI Engine [mwai_form] o HTML estándar) */
.nexo-form-card label {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--nexo-ink);
}
.nexo-form-card input[type="text"],
.nexo-form-card input[type="email"],
.nexo-form-card input[type="tel"],
.nexo-form-card input[type="url"],
.nexo-form-card textarea,
.nexo-form-card select {
	font: inherit;
	font-weight: 500;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--nexo-line);
	border-radius: 0.45rem;
	background: var(--nexo-surface);
	color: var(--nexo-ink);
	line-height: 1.6;
}
.nexo-form-card input:focus,
.nexo-form-card textarea:focus,
.nexo-form-card select:focus {
	outline: 2px solid var(--nexo-azul);
	outline-offset: 1px;
	border-color: var(--nexo-azul);
}
.nexo-form-card textarea { resize: vertical; }
.nexo-form-card button[type="submit"],
.nexo-form-card input[type="submit"],
.nexo-form-card [class*="mwai"] button {
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	border: 0;
	cursor: pointer;
	width: 100%;
	background: var(--nexo-azul) !important;
	color: #fff !important;
	border-radius: var(--wp--custom--radius--button) !important;
	padding: 1rem 1.4rem !important;
}
.nexo-form-card button[type="submit"]:hover,
.nexo-form-card input[type="submit"]:hover,
.nexo-form-card [class*="mwai"] button:hover { background: var(--nexo-navy) !important; }

.nexo-admin-note {
	background: var(--nexo-signal);
	color: var(--nexo-deep);
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
}

/* ---------- Buscador ---------- */

.nexo-search .wp-block-search__input {
	font: inherit;
	padding: 0.75rem 1rem;
	border: 1px solid var(--nexo-line);
	border-radius: var(--wp--custom--radius--button);
	background: #fff;
}
.nexo-search .wp-block-search__button {
	margin-left: 0.5rem;
	padding: 0.75rem 1.2rem;
	font-size: 0.95rem;
}
.nexo-search--center { max-width: 520px; margin-inline: auto; }

/* ---------- Pie ---------- */

.nexo-footer {
	padding-block: clamp(3rem, 5vw, 4rem) 2rem;
	margin-block: 0;
	position: relative;
	overflow: hidden;
}
.nexo-footer > * + * { margin-block-start: 2rem; }
.nexo-footer__about { display: flex; flex-direction: column; gap: 1rem; }
.nexo-footer__about > * { margin: 0; }
.nexo-footer__brand {
	font-size: 1.4rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
}
.nexo-footer__bio {
	line-height: 1.7;
	font-size: 0.94rem;
	max-width: 44ch;
}

.nexo-footer .nexo-social.wp-block-social-links {
	gap: 0.6rem;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
}
@media (max-width: 680px) {
	.nexo-footer .nexo-social.wp-block-social-links { justify-content: flex-start; }
}
.nexo-social .wp-social-link {
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: #fff;
	margin: 0;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.nexo-social.is-style-logos-only .wp-social-link { color: #fff; }
.nexo-social .wp-social-link a {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: inherit;
}
.nexo-social .wp-social-link svg { width: 18px; height: 18px; }
.nexo-social .wp-social-link:hover,
.nexo-social .wp-social-link:focus-within,
.nexo-social.is-style-logos-only .wp-social-link:hover {
	background: #fff;
	color: var(--nexo-deep);
	border-color: #fff;
	transform: none;
}

.nexo-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 1.25rem;
	gap: 1rem;
	font-size: 0.84rem;
	color: var(--nexo-sky-strong);
}
.nexo-footer__bottom > * { margin: 0; }
.nexo-footer__bottom p { line-height: 1.5; }
.nexo-footer .nexo-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}
.nexo-footer .nexo-footer__legal a { color: var(--nexo-sky-strong); }
.nexo-footer .nexo-footer__legal a:hover { color: #fff; }

/* Resaltados de texto (formato "Resaltado" del editor) sin fondo amarillo por defecto */
mark.has-inline-color { background-color: transparent; }

/* AI Engine: el formulario hereda la tipografía y el ritmo de la tarjeta */
.nexo-form-card [class*="mwai"] { font-family: inherit; }
.nexo-form-card [class*="mwai-form"] { display: flex; flex-direction: column; gap: 1.2rem; }
