/*
Theme Name: NEURONIX
Theme URI: https://agencianeuronix.com
Description: Tema hijo de Twenty Twenty-Five para NEURONIX, Agencia de Inteligencia Artificial.
Author: NEURONIX
Template: twentytwentyfive
Version: 0.7.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: neuronix
*/

:root {
	--nx-bg: var(--wp--preset--color--base);
	--nx-surface: var(--wp--preset--color--accent-3);
	--nx-blue: var(--wp--preset--color--accent-1);
	--nx-blue-light: var(--wp--preset--color--accent-2);
	--nx-muted: var(--wp--preset--color--accent-4);
	--nx-line: rgba(148, 170, 255, .1);
	--nx-line-strong: rgba(122, 180, 255, .35);
	--nx-glow: rgba(47, 107, 255, .35);
	--nx-radius: 16px;
	--nx-grid: 56px;
	--nx-gold: var(--wp--preset--color--gold);
	--nx-gold-metal: linear-gradient(180deg, #FFF1B5 0%, #FFD24A 38%, #C98B12 52%, #FFD860 66%, #E9A920 100%);
	--nx-gold-line: linear-gradient(90deg, transparent, #F2B533 30%, #FFE08A 50%, #F2B533 70%, transparent);
	/* Tesela de pistas de circuito para fondos de sección */
	--nx-circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' fill='none' stroke='%232F6BFF' stroke-width='1.2'%3E%3Cpath d='M0 40H70l30 30h80M320 110h-60l-30 30v50M40 320v-70l30-30h60M160 0v40l40 40h70l30 30M0 180h40l25 25h55M320 270h-90l-20-20h-40M250 320v-40l20-20'/%3E%3Cg fill='%237AB4FF' stroke='none'%3E%3Ccircle cx='184' cy='70' r='3.5'/%3E%3Ccircle cx='230' cy='194' r='3.5'/%3E%3Ccircle cx='134' cy='220' r='3.5'/%3E%3Ccircle cx='303' cy='113' r='3'/%3E%3Ccircle cx='124' cy='205' r='3'/%3E%3Ccircle cx='166' cy='250' r='3'/%3E%3Ccircle cx='272' cy='258' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	background:
		radial-gradient(1200px 700px at 30% -10%, rgba(47, 107, 255, .22), transparent 70%),
		radial-gradient(900px 600px at 100% 30%, rgba(20, 70, 200, .14), transparent 70%),
		var(--nx-bg);
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--nx-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--nx-blue-light); outline-offset: 3px; }
p, li { color: color-mix(in srgb, var(--wp--preset--color--contrast) 82%, transparent); }

/* ---------- Cabecera ---------- */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 100;
}
.nx-header {
	padding: 14px clamp(16px, 4vw, 48px);
	gap: 24px;
	background: var(--nx-bg);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid var(--nx-line);
}
.nx-header .wp-block-site-title { font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; letter-spacing: .12em; font-size: 1.05rem; }
.nx-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.wp-block-site-logo img { filter: drop-shadow(0 0 8px rgba(255, 196, 70, .25)); }
.nx-header .wp-block-navigation { font-size: .92rem; }
.nx-header .wp-block-navigation a { color: color-mix(in srgb, var(--wp--preset--color--contrast) 78%, transparent); text-decoration: none; transition: color .2s; }
.nx-header .wp-block-navigation a:hover,
.nx-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--contrast); }
.wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--nx-surface) !important;
	border: 1px solid var(--nx-line) !important;
	border-radius: 12px;
	padding: 8px !important;
	min-width: 260px !important;
	box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6);
}
.wp-block-navigation .wp-block-navigation__submenu-container a { padding: 10px 12px !important; border-radius: 8px; }
.wp-block-navigation .wp-block-navigation__submenu-container a:hover { background: rgba(47, 107, 255, .12); }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--nx-bg) !important; }
.nx-lang { display: flex; gap: 2px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--nx-line); border-radius: 999px; padding: 3px; }
.nx-lang a { text-decoration: none; color: var(--nx-muted); padding: 3px 9px; border-radius: 999px; transition: all .2s; }
.nx-lang a[aria-current="true"] { background: rgba(47, 107, 255, .18); color: var(--wp--preset--color--contrast); }
.nx-header .nx-cta .wp-block-button__link { padding: .55em 1.1em; font-size: .85rem; white-space: nowrap; }
@media (max-width: 781px) {
	.nx-header .nx-cta { display: none; }
}

/* ---------- Secciones ---------- */
.nx-section { position: relative; padding: clamp(64px, 9vw, 120px) 16px; }
.nx-section > * + * { margin-block-start: 1.25rem; }
.nx-section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.nx-section h3 { font-size: 1.2rem; font-weight: 500; }
.nx-intro { color: var(--nx-muted); font-size: 1.1rem; max-width: 620px; }
.nx-section > .wp-block-columns { margin-top: clamp(32px, 4vw, 56px); gap: 20px; }

/* Cabeceras centradas en secciones con tarjetas o llamadas a la acción */
.nx-section:has(> .wp-block-columns) > :is(h2, .nx-intro),
.nx-section:has(> .wp-block-buttons) > :is(h2, .nx-intro) { text-align: center; margin-inline: auto; }
.nx-section:has(> .wp-block-buttons) > .wp-block-buttons { justify-content: center; }
/* Línea dorada bajo los títulos centrados, como en el banner */
.nx-section:not(.nx-hero):has(> .wp-block-columns) > h2::after,
.nx-section:not(.nx-hero):has(> .wp-block-buttons) > h2::after {
	content: "";
	display: block;
	width: 120px;
	height: 2px;
	margin: 18px auto 0;
	background: var(--nx-gold-line);
}

/* Secciones alternas con pistas de circuito */
.nx-section.nx-alt {
	background-color: var(--wp--preset--color--accent-5);
	border-block: 1px solid var(--nx-line);
}
.nx-section.nx-alt::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: var(--nx-circuit);
	background-size: 320px 320px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 15%, transparent 80%);
	mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, #000 15%, transparent 80%);
	opacity: .28;
}
.nx-section > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.nx-hero {
	overflow: hidden;
	padding-block: clamp(96px, 13vw, 170px) clamp(64px, 9vw, 120px);
	text-align: center;
	isolation: isolate;
}
.nx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(rgba(122, 180, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(122, 180, 255, .05) 1px, transparent 1px);
	background-size: var(--nx-grid) var(--nx-grid);
	background-position: center center;
	-webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
}
/* Línea de luz azul al pie del hero, como en el banner */
.nx-hero > .nx-beam {
	position: absolute !important;
	left: 50%;
	bottom: 0;
	width: min(1100px, 90%);
	max-width: none !important;
	height: 2px;
	margin: 0 !important;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, rgba(47, 107, 255, .9) 25%, #BFE0FF 50%, rgba(47, 107, 255, .9) 75%, transparent);
	box-shadow: 0 0 18px 2px rgba(47, 107, 255, .6);
	pointer-events: none;
}
.nx-hero::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -20%;
	z-index: -2;
	width: min(900px, 120vw);
	aspect-ratio: 1;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(47, 107, 255, .28), transparent 62%);
	filter: blur(20px);
	animation: nx-pulse 8s ease-in-out infinite;
}
.nx-hero > .nx-network {
	position: absolute !important;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
	-webkit-mask-image: radial-gradient(ellipse 100% 95% at 50% 50%, #000 55%, transparent 100%);
	mask-image: radial-gradient(ellipse 100% 95% at 50% 50%, #000 55%, transparent 100%);
}
.nx-hero > * { margin-inline: auto; }
.nx-hero h1 {
	font-size: clamp(2.5rem, 6.4vw, 5rem);
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.02;
	max-width: 15ch;
	background: linear-gradient(180deg, #FFFFFF 35%, #9CC3FF 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nx-hero .nx-intro { font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-inline: auto; }
.nx-hero .wp-block-buttons { justify-content: center; margin-top: 2.25rem; }
.nx-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	padding: 6px 14px;
	border: 1px solid rgba(242, 181, 51, .45);
	border-radius: 999px;
	background: rgba(242, 181, 51, .07);
	color: #FFD978 !important;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .72rem;
	font-weight: 600;
}
.nx-kicker::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FFD978;
	box-shadow: 0 0 10px #F2B533;
	animation: nx-blink 2.4s ease-in-out infinite;
}
/* Presentación de marca en la portada: logo + NEURONIX + "Agencia de IA" */
.nx-hero-brand > .nx-brand {
	gap: clamp(16px, 3vw, 40px);
	align-items: center;
	max-width: none;
}
.nx-brand-logo { position: relative; margin: 0; }
/* Estallido de luz azul detrás del logo */
.nx-brand-logo::before {
	content: "";
	position: absolute;
	inset: -45%;
	z-index: -1;
	background: radial-gradient(circle, rgba(70, 150, 255, .45) 0%, rgba(47, 107, 255, .18) 35%, transparent 65%);
	pointer-events: none;
}
.nx-brand-logo img {
	width: clamp(180px, 22vw, 300px) !important;
	filter: drop-shadow(0 0 24px rgba(255, 190, 60, .35)) drop-shadow(0 0 60px rgba(47, 107, 255, .3));
	animation: nx-float 6s ease-in-out infinite;
}
.nx-brand-text { text-align: left; }
.nx-hero h1.nx-wordmark {
	max-width: none;
	margin: 0;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: clamp(3rem, 9.2vw, 8rem);
	font-weight: 800;
	letter-spacing: .01em;
	line-height: .95;
	/* Cromo plateado con reflejos azules */
	background: linear-gradient(180deg, #FFFFFF 0%, #EAF2FF 38%, #9DB3DA 50%, #F4F8FF 62%, #C7D7F2 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 0 rgba(10, 30, 80, .6)) drop-shadow(0 0 22px rgba(47, 107, 255, .45));
}
.nx-wordmark .nx-neu {
	/* Oro metálico con banda de reflejo, como en el banner */
	background: var(--nx-gold-metal);
	filter: drop-shadow(0 0 16px rgba(242, 181, 51, .45));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nx-tagline {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: .9rem !important;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: clamp(.74rem, 1.35vw, 1.12rem);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #E8EEFF !important;
	/* El texto se ajusta al ancho de NEURONIX sin ensanchar el bloque */
	width: 0;
	min-width: 100%;
	text-align: center;
	line-height: 1.55;
	text-wrap: balance;
}
.nx-tagline::before,
.nx-tagline::after {
	content: "";
	flex: 1;
	min-width: clamp(28px, 5vw, 72px);
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, #F2B533 60%, #FFE08A);
	box-shadow: 0 0 8px rgba(242, 181, 51, .5);
}
.nx-tagline::after { background: linear-gradient(90deg, #FFE08A, #F2B533 40%, transparent); }
.nx-slogan {
	margin-top: clamp(2rem, 4vw, 3rem) !important;
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: clamp(1.15rem, 2.1vw, 1.6rem);
	font-weight: 500;
	color: #BFDBFF !important;
}
.nx-slogan .nx-gold { color: #FFC93C; text-shadow: 0 0 14px rgba(242, 181, 51, .35); }
.nx-hero-brand .nx-intro { margin-top: .75rem !important; text-shadow: 0 1px 12px rgba(3, 10, 34, .9); }
@media (max-width: 781px) {
	.nx-hero-brand > .nx-brand { flex-direction: column; }
	.nx-brand-text { text-align: center; }
	.nx-tagline { font-size: .66rem; letter-spacing: .1em; gap: 8px; }
	.nx-tagline::before, .nx-tagline::after { min-width: 28px; }
}
@keyframes nx-float { 50% { transform: translateY(-8px); } }

@keyframes nx-pulse { 50% { opacity: .65; transform: translateX(-50%) scale(1.06); } }
@keyframes nx-blink { 50% { opacity: .35; } }

/* ---------- Botones ---------- */
.wp-block-button__link { transition: background-color .2s, box-shadow .25s, transform .2s, border-color .2s; }
/* Botón principal en oro metálico */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: linear-gradient(180deg, #FFE38F 0%, #F5BE3A 50%, #DA9A1C 100%);
	color: #1A1100;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 24px -8px rgba(242, 181, 51, .6);
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: linear-gradient(180deg, #FFEDB0 0%, #FFCB4D 50%, #E8A824 100%);
	color: #1A1100;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 32px -4px rgba(242, 181, 51, .75);
	transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, .02);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--nx-line-strong);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--nx-blue-light); background: rgba(47, 107, 255, .1); }

/* ---------- Tarjetas (con foco de luz que sigue al cursor) ---------- */
.nx-card {
	position: relative;
	height: 100%;
	padding: 30px;
	border: 1px solid var(--nx-line);
	border-radius: var(--nx-radius);
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
	overflow: hidden;
	transition: border-color .3s, transform .3s, box-shadow .3s;
}
.nx-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(47, 107, 255, .14), transparent 45%);
	opacity: 0;
	transition: opacity .3s;
}
.nx-card:hover { border-color: var(--nx-line-strong); transform: translateY(-3px); box-shadow: 0 24px 48px -24px var(--nx-glow); }
.nx-card:hover::before { opacity: 1; }
.nx-card > * { position: relative; }
.nx-card > * + * { margin-block-start: .8rem; }
.nx-card h3 { color: var(--wp--preset--color--contrast); font-size: 1.25rem; }
.nx-section .wp-block-column p:not(.nx-step-num):not(.nx-price) { font-size: 1rem; line-height: 1.6; color: var(--nx-muted); }
.nx-card a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nx-card a:hover { text-decoration: underline; }

/* Pasos */
.nx-section .wp-block-column:has(> .nx-step-num) { border-top: 1px solid var(--nx-line); padding-top: 24px; }
.nx-step-num {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .1em;
	color: #FFC93C !important;
}

/* Planes */
.nx-plan { display: flex; flex-direction: column; }
.nx-plan .wp-block-list { padding-left: 0; list-style: none; flex: 1; }
.nx-plan .wp-block-list li { padding-left: 26px; position: relative; margin-bottom: .45rem; }
.nx-plan .wp-block-list li::before { content: "✓"; position: absolute; left: 0; color: #FFC93C; font-weight: 700; }
.nx-plan .wp-block-buttons .wp-block-button,
.nx-plan .wp-block-buttons .wp-block-button__link { width: 100%; text-align: center; }
.nx-plan h3 { color: var(--nx-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.nx-plan .nx-price { font-family: var(--wp--preset--font-family--montserrat); font-size: 2rem; font-weight: 500; color: var(--wp--preset--color--contrast) !important; letter-spacing: -0.02em; }
.nx-plan:not(.nx-featured) .wp-block-button__link,
.nx-plan:not(.nx-featured) .wp-block-button__link:hover { background: rgba(255, 255, 255, .06); border: 1px solid var(--nx-line-strong); color: var(--wp--preset--color--contrast); box-shadow: none; }
.nx-plan:not(.nx-featured) .wp-block-button__link:hover { border-color: #F2B533; }
.nx-plan.nx-featured {
	border-color: rgba(47, 107, 255, .7);
	background: linear-gradient(180deg, rgba(47, 107, 255, .14), rgba(47, 107, 255, .02));
	box-shadow: 0 0 0 1px rgba(47, 107, 255, .25), 0 30px 60px -30px var(--nx-glow);
}
.nx-plan.nx-featured::after {
	content: "Más popular";
	position: absolute;
	top: 22px;
	right: 22px;
	padding: 4px 10px;
	border-radius: 999px;
	background: linear-gradient(180deg, #FFE38F, #E9A920);
	color: #1A1100;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
:lang(en) .nx-plan.nx-featured::after { content: "Most popular"; }
.nx-note { color: var(--nx-muted) !important; font-size: .85rem; text-align: center; }

/* Listas en secciones de texto */
.nx-section > .wp-block-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.nx-section > .wp-block-list li {
	padding: 14px 18px 14px 46px;
	position: relative;
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, .02);
}
.nx-section > .wp-block-list li::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: var(--nx-blue-light);
	box-shadow: 0 0 10px var(--nx-blue-light);
}

/* FAQ */
.nx-faq .wp-block-details { padding: 20px 0; border-bottom: 1px solid var(--nx-line); }
.nx-faq summary { list-style: none; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; color: var(--wp--preset--color--contrast); }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after { content: "+"; color: var(--nx-blue-light); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.nx-faq details[open] summary::after { transform: rotate(45deg); }
.nx-faq details p { margin-top: 12px; }

/* ---------- Secciones: blanco y azul oscuro alternos ----------
   Entre el hero y la llamada final, las secciones normales son blancas y las .nx-alt
   azul oscuro. Cada cambio de color es un corte en diagonal sólido con una línea dorada. */
.wp-block-post-content > .nx-section {
	--nx-cut: clamp(48px, 7vw, 110px);
	--nx-pad: clamp(64px, 9vw, 120px);
	/* Franja superior: triángulo del color de arriba + línea dorada (de abajo-izquierda a arriba-derecha) */
	--nx-cut-top-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23F2B533' stop-opacity='.3'/%3E%3Cstop offset='.5' stop-color='%23FFE08A'/%3E%3Cstop offset='1' stop-color='%23F2B533' stop-opacity='.3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='0,0 100,0 0,10' fill='%23FFFFFF'/%3E%3Cline x1='0' y1='10' x2='100' y2='0' stroke='url(%23g)' stroke-width='6' stroke-opacity='.22' vector-effect='non-scaling-stroke'/%3E%3Cline x1='0' y1='10' x2='100' y2='0' stroke='url(%23g)' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	--nx-cut-top-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23F2B533' stop-opacity='.3'/%3E%3Cstop offset='.5' stop-color='%23FFE08A'/%3E%3Cstop offset='1' stop-color='%23F2B533' stop-opacity='.3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='0,0 100,0 0,10' fill='%23030A22'/%3E%3Cline x1='0' y1='10' x2='100' y2='0' stroke='url(%23g)' stroke-width='6' stroke-opacity='.22' vector-effect='non-scaling-stroke'/%3E%3Cline x1='0' y1='10' x2='100' y2='0' stroke='url(%23g)' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	/* Franja inferior de las oscuras: triángulo blanco + la misma línea, paralela a la de arriba */
	--nx-cut-bottom-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23F2B533' stop-opacity='.3'/%3E%3Cstop offset='.5' stop-color='%23FFE08A'/%3E%3Cstop offset='1' stop-color='%23F2B533' stop-opacity='.3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='100,0 100,10 0,10' fill='%23FFFFFF'/%3E%3Cline x1='0' y1='10' x2='100' y2='0' stroke='url(%23g)' stroke-width='6' stroke-opacity='.22' vector-effect='non-scaling-stroke'/%3E%3Cline x1='0' y1='10' x2='100' y2='0' stroke='url(%23g)' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	margin-block: 0 !important;
}
/* Cada sección se solapa 1px con la anterior para que no se vea ninguna rendija */
.wp-block-post-content > .nx-section + .nx-section { margin-top: -1px !important; }

/* Blancas */
.wp-block-post-content > .nx-section:not(.nx-hero):not(.nx-alt):not(:last-child) {
	--wp--preset--color--contrast: #0A1929;
	--wp--preset--color--accent-2: #0F2A6B;
	--nx-blue-light: #0F2A6B;
	--nx-muted: #52607C;
	--nx-line: rgba(10, 36, 99, .12);
	--nx-line-strong: rgba(10, 36, 99, .35);
	--nx-glow: rgba(10, 36, 99, .25);
	color: #0A1929;
	background: #FFFFFF;
	border: 0;
	overflow: hidden;
}
/* La primera tras el hero entra con el corte desde el oscuro */
.wp-block-post-content > .nx-hero + .nx-section:not(.nx-alt):not(:last-child) {
	padding-top: calc(var(--nx-cut) + var(--nx-pad) * .6);
	background: var(--nx-cut-top-dark) top / 100% var(--nx-cut) no-repeat, #FFFFFF;
}

/* Azul oscuro, con corte diagonal arriba y abajo cuando la vecina es blanca */
.wp-block-post-content > .nx-section.nx-alt:not(.nx-hero):not(:last-child) {
	--nx-ft: var(--nx-cut);
	--nx-fb: var(--nx-cut);
	padding-top: calc(var(--nx-pad) + var(--nx-ft));
	padding-bottom: calc(var(--nx-pad) + var(--nx-fb));
	background:
		var(--nx-cut-top-white) top / 100% var(--nx-ft) no-repeat,
		var(--nx-cut-bottom-white) bottom / 100% var(--nx-fb) no-repeat,
		var(--nx-bg);
	border: 0;
	overflow: hidden;
}
/* Sin corte cuando la sección vecina también es oscura */
.wp-block-post-content > :is(.nx-hero, .nx-alt) + .nx-section.nx-alt:not(:last-child) { --nx-ft: 0px; }
.wp-block-post-content > .nx-section.nx-alt:not(:last-child):has(+ .nx-alt, + .nx-section:last-child) { --nx-fb: 0px; }
/* Las pistas de circuito solo en la zona oscura */
.wp-block-post-content > .nx-section.nx-alt:not(.nx-hero):not(:last-child)::before {
	inset: var(--nx-ft) 0 var(--nx-fb);
}

/* Red de nodos en movimiento (la dibuja neuronix.js) */
.nx-section > .nx-net {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
/* Brillos suaves (azul marino y oro) que flotan detrás del contenido de las blancas */
.wp-block-post-content > .nx-section:not(.nx-hero):not(.nx-alt):not(:last-child)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(520px 380px at 8% 35%, rgba(20, 40, 110, .09), transparent 70%),
		radial-gradient(460px 340px at 94% 72%, rgba(242, 181, 51, .1), transparent 70%);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
	animation: nx-drift 18s ease-in-out infinite alternate;
}
@keyframes nx-drift { to { transform: translate3d(3%, -4%, 0) scale(1.05); } }

/* Componentes dentro de las secciones blancas */
.wp-block-post-content > .nx-section:not(.nx-hero):not(.nx-alt):not(:last-child) {
	& .nx-card {
		/* Filo superior azul marino → oro */
		background: linear-gradient(90deg, #0A2463, #3A4F8C 55%, #F2B533) top / 100% 3px no-repeat, #FFFFFF;
		box-shadow: 0 1px 2px rgba(10, 25, 41, .04), 0 14px 34px -22px rgba(10, 36, 99, .35);
		transition: background-color .35s, border-color .35s, transform .3s, box-shadow .35s;
	}
	& .nx-card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(122, 160, 255, .12), transparent 45%); }
	/* Al pasar el ratón, la tarjeta se vuelve azul oscuro */
	& .nx-card:not(.nx-plan):hover {
		--wp--preset--color--contrast: #F1F5FF;
		--wp--preset--color--accent-2: #FFD978;
		--nx-muted: #B4C0DD;
		background: linear-gradient(90deg, #F2B533, #FFE08A 50%, #F2B533) top / 100% 3px no-repeat, linear-gradient(160deg, #0E1F55, #050D2B);
		border-color: #0A1A44;
		box-shadow: 0 26px 50px -24px rgba(3, 10, 34, .7);
	}
	& .nx-step-num,
	& .nx-plan .wp-block-list li::before { color: #C2850C !important; }
	& .nx-plan.nx-featured {
		border-color: rgba(10, 36, 99, .55);
		background: linear-gradient(180deg, #EEF1F8, #FFFFFF);
		box-shadow: 0 0 0 1px rgba(10, 36, 99, .15), 0 30px 60px -30px var(--nx-glow);
	}
	& .nx-plan:not(.nx-featured) .wp-block-button__link { background: #FFFFFF; }
	& .wp-block-button.is-style-outline .wp-block-button__link { background: #FFFFFF; }
	& .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #EEF1F8; }
	& > .wp-block-list li { background: #FFFFFF; }
}

/* Pasos en recuadros: del blanco (paso 1) al azul oscuro (último paso) */
.nx-section .wp-block-columns:has(> .wp-block-column > .nx-step-num) > .wp-block-column {
	padding: 28px 24px 30px !important;
	border: 1px solid rgba(122, 160, 255, .22) !important;
	border-radius: var(--nx-radius);
	background: linear-gradient(150deg, var(--nx-s1), var(--nx-s2));
	box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .6);
	transition: transform .3s, box-shadow .3s;
	--wp--preset--color--contrast: #0A1929;
	--nx-muted: #4A587A;
}
.nx-section .wp-block-columns:has(> .wp-block-column > .nx-step-num) > .wp-block-column:hover { transform: translateY(-3px); }
.nx-section .wp-block-columns:has(> .wp-block-column > .nx-step-num) > .wp-block-column:nth-child(1) { --nx-s1: #FFFFFF; --nx-s2: #E9EDF6; }
.nx-section .wp-block-columns:has(> .wp-block-column > .nx-step-num) > .wp-block-column:nth-child(2) { --nx-s1: #E3E8F3; --nx-s2: #B9C3DC; }
.nx-section .wp-block-columns:has(> .wp-block-column > .nx-step-num) > .wp-block-column:nth-child(3) {
	--nx-s1: #3A4C82; --nx-s2: #1A2A5E;
	--wp--preset--color--contrast: #F1F5FF; --nx-muted: #C3CDE6;
}
.nx-section .wp-block-columns:has(> .wp-block-column > .nx-step-num) > .wp-block-column:nth-child(4) {
	--nx-s1: #15245A; --nx-s2: #070F33;
	--wp--preset--color--contrast: #F1F5FF; --nx-muted: #AFBBD9;
}
.nx-section .wp-block-columns:has(> .wp-block-column > .nx-step-num) > .wp-block-column:nth-child(-n+2) .nx-step-num { color: #B87C0A !important; }

/* Llamada final (azul oscuro) */
.wp-block-post-content > .nx-section:last-child:not(.nx-hero) {
	background: var(--nx-bg);
	border: 0;
}
/* Si viene de una sección blanca, entra con el corte diagonal */
.wp-block-post-content > .nx-section:not(.nx-hero):not(.nx-alt):not(:last-child) + .nx-section:last-child {
	padding-top: calc(var(--nx-cut) + var(--nx-pad) * .6);
	background: var(--nx-cut-top-white) top / 100% var(--nx-cut) no-repeat, var(--nx-bg);
}
.wp-block-post-content > .nx-section:last-child:not(.nx-hero)::before {
	-webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 70%, #000 15%, transparent 80%);
	mask-image: radial-gradient(ellipse 85% 60% at 50% 70%, #000 15%, transparent 80%);
}
.wp-block-post-content > .nx-section:last-child:not(.nx-hero)::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: min(760px, 100vw);
	height: 420px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(47, 107, 255, .18), transparent 65%);
	pointer-events: none;
}

/* Páginas legales (plantilla con título) */
.wp-block-post-title { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.wp-block-post-content > h2 { font-size: 1.4rem; margin-top: 2.5rem; }

/* ---------- Pie ---------- */
.nx-footer {
	position: relative;
	padding: clamp(48px, 6vw, 80px) clamp(16px, 4vw, 48px) 28px;
	border-top: 1px solid var(--nx-line);
	background: #020717;
	font-size: .92rem;
}
.nx-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: var(--nx-circuit);
	background-size: 320px 320px;
	opacity: .12;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
	mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.nx-footer::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -1px;
	height: 2px;
	background: var(--nx-gold-line);
	opacity: .7;
}
.nx-footer > * { position: relative; }
.nx-footer .wp-block-site-title { font-family: var(--wp--preset--font-family--montserrat); font-weight: 800; letter-spacing: .12em; }
.nx-footer .wp-block-site-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.nx-footer p { color: var(--nx-muted); }
.nx-footer h2 { font-family: var(--wp--preset--font-family--inter); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--wp--preset--color--contrast); margin-bottom: 1rem; }
.nx-footer ul { list-style: none; padding: 0; margin: 0; }
.nx-footer li + li { margin-top: .55rem; }
.nx-footer a { color: var(--nx-muted); text-decoration: none; transition: color .2s; }
.nx-footer a:hover { color: var(--wp--preset--color--contrast); }
.nx-copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--nx-line); font-size: .8rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.nx-whatsapp {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 8px 28px rgba(37, 211, 102, .35);
	transition: transform .2s;
}
.nx-whatsapp::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid #25d366;
	animation: nx-ring 2.8s ease-out infinite;
}
.nx-whatsapp:hover { transform: scale(1.08); }
.nx-whatsapp svg { width: 30px; height: 30px; fill: currentColor; }
@keyframes nx-ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animación de entrada ---------- */
.nx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.nx-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
