/* ==========================================================================
   NEXOMLS Xposure — estilos principales
   ========================================================================== */

:root {
	--nx-blue: #0a97f5;
	--nx-blue-600: #0784d9;
	--nx-blue-50: #e6f4fe;
	--nx-ink: #1e293b;
	--nx-slate-700: #334155;
	--nx-slate-600: #475569;
	--nx-slate-500: #64748b;
	--nx-slate-400: #94a3b8;
	--nx-slate-300: #cbd5e1;
	--nx-slate-200: #e2e8f0;
	--nx-slate-100: #f1f5f9;
	--nx-slate-50: #f8fafc;
	--nx-card-dark: #434b59;
	--nx-footer: #3c4e5a;
	--nx-footer-deep: #2f3e48;
	--nx-wa: #25d366;
	--nx-white: #fff;

	--nx-radius: 14px;
	--nx-radius-lg: 18px;
	--nx-header-h: 76px;
	--nx-gutter: clamp(16px, 4vw, 40px);
	--nx-max: 1200px;

	--nx-ease-out: cubic-bezier(.22, 1, .36, 1);
	--nx-ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--nx-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -8px rgba(15, 23, 42, .12);
	--nx-shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 48px -16px rgba(15, 23, 42, .25);

	--nx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nx-header-h); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--nx-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--nx-slate-700);
	background: var(--nx-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--nx-blue); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text, .nx-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.nx-skip {
	position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px;
	background: var(--nx-blue); color: #fff; border-radius: 8px; transform: translateY(-200%);
	transition: transform .25s var(--nx-ease-out);
}
.nx-skip:focus { transform: none; }

.nx-container { width: 100%; max-width: calc(var(--nx-max) + var(--nx-gutter) * 2); margin-inline: auto; padding-inline: var(--nx-gutter); }
.nx-container--narrow { max-width: calc(820px + var(--nx-gutter) * 2); }
.nx-icon { width: 1em; height: 1em; flex: none; }

/* ---------- Botones ---------- */
.nx-btn {
	--bg: var(--nx-blue);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; border: 0; border-radius: 10px;
	background: var(--bg); color: #fff; font-weight: 600; line-height: 1.2; cursor: pointer;
	transition: transform .3s var(--nx-ease-out), box-shadow .3s var(--nx-ease-out), background-color .25s;
}
.nx-btn::after { /* brillo que cruza el botón */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform .7s var(--nx-ease-out);
}
.nx-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(10, 151, 245, .7); background: var(--nx-blue-600); }
.nx-btn:hover::after { transform: translateX(120%); }
.nx-btn:active { transform: translateY(0) scale(.98); }
.nx-btn--sm { padding: .62em 1.05em; font-size: 15px; font-weight: 500; border-radius: 8px; }
.nx-btn--sm .nx-icon { font-size: 15px; }
.nx-btn--lg { padding: .85em 1.4em; font-size: 17px; font-weight: 700; }
.nx-btn--block { width: 100%; }
.nx-btn.is-loading { pointer-events: none; }
.nx-btn.is-loading .nx-btn__label { opacity: .7; }
.nx-btn.is-loading::before {
	content: ""; width: 1em; height: 1em; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
	animation: nx-spin .7s linear infinite;
}

/* ==========================================================================
   Header
   ========================================================================== */
.nx-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--nx-header-h);
	background: rgba(51, 65, 85, .55);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	transition: background-color .4s, box-shadow .4s, height .4s var(--nx-ease-out), transform .45s var(--nx-ease-out);
}
body:not(.has-hero) .nx-main { padding-top: var(--nx-header-h); }
body:not(.has-hero) .nx-header,
.nx-header.is-scrolled {
	background: rgba(30, 41, 59, .88);
	backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.nx-header.is-scrolled { height: 64px; }
.nx-header.is-hidden { transform: translateY(-100%); }
.admin-bar .nx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nx-header { top: 46px; } }

.nx-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.nx-logo { display: inline-flex; align-items: center; flex: none; transition: transform .35s var(--nx-ease-out), opacity .3s; }
.nx-logo:hover { transform: scale(1.03); }
.nx-logo__img { height: 30px; width: auto; }
.nx-logo--footer .nx-logo__img { height: 34px; }
.nx-logo--text {
	font-weight: 900; font-size: 22px; letter-spacing: .02em; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.4px #fff;
	text-shadow: 0 0 1px rgba(255, 255, 255, .2);
}
.nx-logo--text .nx-logo__x { color: var(--nx-blue); -webkit-text-stroke: 1.4px #fff; }
.nx-logo--footer.nx-logo--text { font-size: 26px; }

.nx-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nx-menu { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-inline: auto; }
.nx-menu a {
	position: relative; display: block; padding: 6px 0;
	color: rgba(255, 255, 255, .92); font-size: 16px; font-weight: 500;
	transition: color .25s;
}
.nx-menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
	background: var(--nx-blue); transform: scaleX(0); transform-origin: right;
	transition: transform .4s var(--nx-ease-out);
}
.nx-menu a:hover, .nx-menu .current-menu-item > a, .nx-menu a.is-active { color: var(--nx-blue); }
.nx-menu a:hover::after, .nx-menu a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nx-nav__extra { display: flex; align-items: center; gap: 16px; }
.nx-lang {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 8px;
	background: rgba(15, 23, 42, .45); border: 1px solid rgba(255, 255, 255, .08);
	color: #fff; font-size: 15px;
}
.nx-lang .nx-icon { color: var(--nx-blue); font-size: 13px; }
.nx-lang a { opacity: .75; transition: opacity .2s, color .2s; }
.nx-lang a:hover, .nx-lang a.is-active { opacity: 1; }
.nx-lang__sep { opacity: .7; }

/* Hamburguesa */
.nx-burger {
	display: none; position: relative; z-index: 2; margin-left: auto;
	width: 44px; height: 44px; border: 0; border-radius: 10px;
	background: rgba(15, 23, 42, .35); cursor: pointer;
}
.nx-burger span {
	position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff;
	transition: transform .45s var(--nx-ease-out), opacity .3s, top .45s var(--nx-ease-out);
}
.nx-burger span:nth-child(1) { top: 15px; }
.nx-burger span:nth-child(2) { top: 21px; }
.nx-burger span:nth-child(3) { top: 27px; }
.nx-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nx-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.nx-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(100svh, 820px);
	display: flex; align-items: center;
	padding: calc(var(--nx-header-h) + 56px) 0 72px;
	color: #fff; text-align: center;
	background: linear-gradient(160deg, #475569 0%, #334155 55%, #1e293b 100%);
}
.nx-hero__bg { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.nx-hero__bg img {
	width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(.35);
	transform: scale(1.12);
	transition: transform 2.6s var(--nx-ease-out);
}
.is-loaded .nx-hero__bg img { transform: scale(1); }
.nx-hero__overlay {
	position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse 70% 55% at 50% 45%, rgba(51, 65, 85, .35), transparent 70%),
		rgba(51, 65, 85, .68);
}
.nx-hero__content { display: flex; flex-direction: column; align-items: center; }

.nx-badge {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 16px; border-radius: 999px;
	background: rgba(10, 151, 245, .16); border: 1px solid rgba(10, 151, 245, .4);
	color: var(--nx-blue); font-size: clamp(13px, 1.3vw, 16px); font-weight: 500;
	letter-spacing: .04em; text-transform: uppercase;
	backdrop-filter: blur(4px);
}
.nx-badge .nx-icon { font-size: 1em; }

.nx-hero__title { margin-top: 28px; line-height: 1.12; letter-spacing: -.015em; }
.nx-hero__line { display: block; }
.nx-hero__line:first-child { font-size: clamp(27px, 5.6vw, 64px); font-weight: 800; }
.nx-hero__line--accent {
	margin-top: .12em;
	font-size: clamp(28px, 5vw, 58px); font-weight: 400; color: var(--nx-blue);
	background: linear-gradient(100deg, var(--nx-blue) 42%, #9ad6ff 50%, var(--nx-blue) 58%) 100% 0 / 300% 100% no-repeat;
	-webkit-background-clip: text; background-clip: text;
}
.is-loaded .nx-hero__line--accent { -webkit-text-fill-color: transparent; animation: nx-shine 1.6s 1.3s var(--nx-ease-out) both; }

.nx-hero__sub {
	max-width: 620px; margin-top: 30px;
	font-size: clamp(17px, 1.75vw, 24px); font-weight: 300; line-height: 1.3; color: rgba(255, 255, 255, .92);
}
.nx-hero__brand { display: block; font-weight: 400; }

.nx-stats {
	display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 24px;
	justify-content: center; width: 100%; margin-top: 52px;
}
.nx-stat {
	--mx: 50%; --my: 50%;
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: center; gap: 2px;
	min-height: 92px; padding: 16px 14px; border-radius: var(--nx-radius);
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .35);
	transition: transform .45s var(--nx-ease-out), background-color .35s, border-color .35s, box-shadow .45s;
}
.nx-stat::before { /* foco que sigue al cursor */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
	background: radial-gradient(220px circle at var(--mx) var(--my), rgba(10, 151, 245, .28), transparent 65%);
	transition: opacity .35s;
}
.nx-stat:hover {
	transform: translateY(-6px);
	background: rgba(255, 255, 255, .17); border-color: rgba(10, 151, 245, .55);
	box-shadow: 0 18px 40px -14px rgba(10, 151, 245, .45);
}
.nx-stat:hover::before { opacity: 1; }
.nx-stat__title { font-size: clamp(16px, 1.55vw, 22px); font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: 1.15; }
.nx-stat--accent .nx-stat__title { color: var(--nx-blue); }
.nx-stat__sub { font-size: clamp(11.5px, 1.1vw, 15px); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .78); line-height: 1.25; }

.nx-hero__scroll {
	position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
	width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px;
	opacity: 0; transition: opacity .6s 2s, border-color .3s;
}
.is-loaded .nx-hero__scroll { opacity: 1; }
.nx-hero__scroll:hover { border-color: #fff; }
.nx-hero__scroll span {
	position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
	border-radius: 2px; background: #fff; animation: nx-scroll 1.8s infinite var(--nx-ease-out);
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.nx-section { padding-block: clamp(64px, 9vw, 104px); }
.nx-heading { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.nx-eyebrow {
	color: var(--nx-blue); font-size: clamp(20px, 2.3vw, 32px); font-weight: 700;
	letter-spacing: .02em; text-transform: uppercase; line-height: 1.15;
}
.nx-eyebrow--left { text-align: left; font-size: clamp(20px, 2vw, 26px); }
.nx-title {
	margin-top: 6px; color: var(--nx-slate-400);
	font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.22; letter-spacing: -.01em;
}
.nx-title--dark { color: var(--nx-slate-700); }
.nx-lead { margin: 18px auto 0; max-width: 760px; font-size: clamp(15px, 1.4vw, 18px); color: var(--nx-slate-700); }
.nx-lead--sm { margin-top: 10px; font-size: clamp(15px, 1.3vw, 16px); color: var(--nx-slate-600); max-width: none; }

.nx-grid { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.nx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tarjetas de tecnología */
.nx-feature {
	--mx: 50%; --my: 50%;
	position: relative; overflow: hidden;
	padding: 26px 24px 34px; border-radius: var(--nx-radius-lg);
	background: var(--nx-card-dark); color: var(--nx-slate-300);
	font-size: 14.5px; line-height: 1.35;
	transition: transform .5s var(--nx-ease-out), box-shadow .5s var(--nx-ease-out);
}
.nx-feature::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
	background: radial-gradient(360px circle at var(--mx) var(--my), rgba(10, 151, 245, .18), transparent 60%);
	transition: opacity .4s;
}
.nx-feature::after { /* borde luminoso */
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	border: 1px solid rgba(10, 151, 245, 0); transition: border-color .4s;
}
.nx-feature:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -22px rgba(15, 23, 42, .6); }
.nx-feature:hover::before { opacity: 1; }
.nx-feature:hover::after { border-color: rgba(10, 151, 245, .45); }
.nx-feature__icon {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px;
	background: rgba(10, 151, 245, .22); color: var(--nx-blue); font-size: 24px;
	transition: transform .55s var(--nx-ease-spring), background-color .35s, color .35s;
}
.nx-feature:hover .nx-feature__icon { transform: translateY(-3px) rotate(-8deg) scale(1.08); background: var(--nx-blue); color: #fff; }
.nx-feature__title { margin: 28px 0 14px; color: #fff; font-size: clamp(18px, 1.45vw, 20px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.nx-feature p + p { margin-top: 1.15em; }

/* Agentes */
.nx-agents { background: var(--nx-slate-100); }
.nx-agent {
	display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 24px 18px 28px; border-radius: var(--nx-radius);
	background: #fff; box-shadow: var(--nx-shadow);
	transition: transform .5s var(--nx-ease-out), box-shadow .5s var(--nx-ease-out);
}
.nx-agent:hover { transform: translateY(-8px); box-shadow: var(--nx-shadow-lg); }
.nx-agent__photo {
	position: relative; width: 108px; height: 108px; border-radius: 50%; padding: 4px;
	background: var(--nx-blue-50);
	transition: transform .5s var(--nx-ease-out);
}
.nx-agent__photo::before { /* anillo giratorio en hover */
	content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: 0; opacity: 0;
	background: conic-gradient(from 0deg, var(--nx-blue), #8fd0ff, transparent 60%, var(--nx-blue));
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	transition: opacity .4s;
}
.nx-agent:hover .nx-agent__photo { transform: scale(1.05); }
.nx-agent:hover .nx-agent__photo::before { opacity: 1; animation: nx-rotate 2.4s linear infinite; }
.nx-agent__img, .nx-agent__initials {
	position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.nx-agent__initials {
	display: grid; place-items: center; background: linear-gradient(135deg, #cbe9fd, #e2e8f0);
	color: var(--nx-blue-600); font-size: 32px; font-weight: 800;
}
.nx-agent__name { margin-top: 18px; color: var(--nx-slate-700); font-size: 19px; font-weight: 700; line-height: 1.2; }
.nx-agent__role { margin-top: 4px; color: var(--nx-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.3; }
.nx-agent__email { margin-top: 10px; color: var(--nx-slate-400); font-size: 14.5px; overflow-wrap: anywhere; transition: color .25s; }
.nx-agent__email:hover { color: var(--nx-blue); }

/* Únete / formulario */
.nx-join__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.nx-join__copy { text-align: left; }
.nx-join__copy .nx-title { font-size: clamp(22px, 2.2vw, 30px); text-wrap: wrap; }
.nx-join__text { margin-top: 18px; font-size: clamp(15px, 1.3vw, 17px); color: var(--nx-slate-600); line-height: 1.45; }
.nx-checks { display: grid; gap: 18px; margin-top: 34px; }
.nx-checks li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--nx-slate-500); line-height: 1.3; }
.nx-checks strong { display: block; color: var(--nx-slate-700); font-size: 16px; font-weight: 700; }
.nx-checks__icon {
	display: grid; place-items: center; flex: none; width: 32px; height: 40px; border-radius: 6px;
	background: var(--nx-blue-50); color: var(--nx-blue); font-size: 15px;
	transition: transform .5s var(--nx-ease-spring), background-color .3s, color .3s;
}
.nx-checks li:hover .nx-checks__icon { transform: scale(1.12); background: var(--nx-blue); color: #fff; }

.nx-form {
	padding: clamp(24px, 3vw, 36px); border-radius: var(--nx-radius-lg);
	background: var(--nx-slate-50); border: 1px solid var(--nx-slate-200);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.nx-form__title { margin-bottom: 22px; color: var(--nx-slate-700); font-size: clamp(20px, 1.8vw, 23px); font-weight: 700; }
.nx-field { display: grid; gap: 6px; margin-bottom: 18px; }
.nx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nx-field label { color: var(--nx-slate-600); font-size: 13.5px; font-weight: 600; }
.nx-field input, .nx-field textarea {
	width: 100%; padding: 11px 16px; border-radius: 10px;
	background: #fff; border: 1px solid var(--nx-slate-200); color: var(--nx-slate-700); font-size: 15px;
	transition: border-color .25s, box-shadow .3s var(--nx-ease-out), transform .3s var(--nx-ease-out);
}
.nx-field textarea { resize: vertical; min-height: 90px; }
.nx-field input::placeholder, .nx-field textarea::placeholder { color: var(--nx-slate-400); }
.nx-field input:hover, .nx-field textarea:hover { border-color: var(--nx-slate-300); }
.nx-field input:focus, .nx-field textarea:focus {
	outline: none; border-color: var(--nx-blue);
	box-shadow: 0 0 0 4px rgba(10, 151, 245, .15);
}
.nx-field.is-invalid input { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); animation: nx-shake .4s; }
.nx-form .nx-btn { margin-top: 8px; }
.nx-form__msg {
	min-height: 0; margin-top: 0; font-size: 14px; font-weight: 500; text-align: center;
	opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .35s var(--nx-ease-out), margin .35s;
}
.nx-form__msg.is-ok, .nx-form__msg.is-error { opacity: 1; transform: none; margin-top: 14px; }
.nx-form__msg.is-ok { color: #059669; }
.nx-form__msg.is-error { color: #dc2626; }

/* ==========================================================================
   Footer
   ========================================================================== */
.nx-footer { background: var(--nx-footer); color: var(--nx-slate-300); padding-top: clamp(48px, 6vw, 70px); }
.nx-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
.nx-footer__brand { display: flex; flex-direction: column; gap: 22px; }
.nx-footer__brand .nx-logo { padding: 30px 16px 26px; }
.nx-footer__tagline { max-width: 360px; font-size: 15px; line-height: 1.4; }
.nx-footer__heading { margin-bottom: 14px; color: #fff; font-size: 15px; font-weight: 700; }
.nx-footer__links { display: grid; gap: 8px; }
.nx-footer__links a {
	position: relative; font-size: 16px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: color .25s, background-size .4s var(--nx-ease-out);
}
.nx-footer__links a:hover { color: #fff; background-size: 100% 1px; }
.nx-footer__small { font-size: 13.5px; line-height: 1.35; }

.nx-social { display: flex; align-items: center; gap: 18px; }
.nx-social__link { color: var(--nx-slate-300); font-size: 18px; transition: color .25s, transform .35s var(--nx-ease-spring); }
.nx-social__link:hover { color: #fff; transform: translateY(-3px) scale(1.12); }
.nx-social__wa {
	position: relative; display: grid; place-items: center; width: 60px; height: 50px; border-radius: 8px;
	background: var(--nx-wa); color: #fff; font-size: 26px;
	transition: transform .35s var(--nx-ease-spring), box-shadow .35s;
}
.nx-social__wa::after { /* pulso suave */
	content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--nx-wa);
	animation: nx-pulse 2.4s var(--nx-ease-out) infinite;
}
.nx-social__wa:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 24px -10px rgba(37, 211, 102, .8); }

.nx-newsletter { display: flex; flex-wrap: wrap; margin-top: 16px; }
.nx-newsletter input {
	flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px 0 0 8px;
	background: var(--nx-footer-deep); color: #fff; font-size: 14px; transition: border-color .25s, background-color .25s;
}
.nx-newsletter input::placeholder { color: var(--nx-slate-400); }
.nx-newsletter input:focus { outline: none; border-color: var(--nx-blue); background: #283640; }
.nx-newsletter button {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border: 0; border-radius: 0 8px 8px 0; background: var(--nx-blue); color: #fff;
	font-weight: 700; font-size: 14px; cursor: pointer; transition: background-color .25s;
}
.nx-newsletter button:hover { background: var(--nx-blue-600); }
.nx-newsletter button.is-loading::before {
	content: ""; width: .9em; height: .9em; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: nx-spin .7s linear infinite;
}
.nx-newsletter .nx-form__msg { flex-basis: 100%; text-align: left; }
.nx-newsletter .nx-form__msg.is-ok { color: #6ee7b7; }
.nx-newsletter .nx-form__msg.is-error { color: #fca5a5; }

.nx-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	margin-top: clamp(32px, 4vw, 48px); padding-block: 28px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	color: var(--nx-slate-400); font-size: clamp(13px, 1.1vw, 15px);
}

/* ---------- Páginas internas ---------- */
.nx-page { min-height: 60vh; }
.nx-entry + .nx-entry { margin-top: 40px; }
.nx-entry__title { font-size: 24px; color: var(--nx-slate-700); }
.nx-entry__title a:hover { color: var(--nx-blue); }
.nx-entry__content { margin-top: 20px; font-size: 17px; }
.nx-entry__content p { margin-bottom: 1em; }
.nx-entry__content a { color: var(--nx-blue); text-decoration: underline; }

/* ==========================================================================
   Animaciones
   ========================================================================== */

/* Entrada del hero (al cargar) */
.js .nx-anim {
	opacity: 0; transform: translateY(26px); filter: blur(6px);
	transition: opacity .9s var(--nx-ease-out), transform 1s var(--nx-ease-out), filter .9s var(--nx-ease-out);
	transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}
.js .is-loaded .nx-anim { opacity: 1; transform: none; filter: none; }

/* Aparición al hacer scroll */
.js [data-reveal] {
	opacity: 0; transform: translateY(34px);
	transition: opacity .8s var(--nx-ease-out), transform .9s var(--nx-ease-out);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes nx-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-rotate { to { transform: rotate(360deg); } }
@keyframes nx-scroll { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes nx-pulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes nx-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1140px) {
	.nx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nx-stats { grid-template-columns: repeat(2, minmax(0, 260px)); }
	.nx-stat__title { font-size: 20px; }
	.nx-stat__sub { font-size: 13px; }
	.nx-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.nx-footer__brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.nx-footer__brand .nx-logo { padding: 0; }
}

@media (max-width: 960px) {
	:root { --nx-header-h: 68px; }
	.nx-header.is-scrolled { height: 60px; }
	.nx-burger { display: block; }

	.nx-nav {
		position: fixed; inset: 0 0 0 auto; z-index: 1;
		width: min(86vw, 360px); height: 100dvh;
		flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
		padding: calc(var(--nx-header-h) + 24px) 28px 32px;
		background: rgba(30, 41, 59, .97);
		backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
		box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .6);
		transform: translateX(105%); visibility: hidden;
		transition: transform .55s var(--nx-ease-out), visibility 0s .55s;
		overflow-y: auto;
	}
	.admin-bar .nx-nav { top: 0; }
	.nx-nav.is-open { transform: none; visibility: visible; transition: transform .55s var(--nx-ease-out), visibility 0s; }
	.nx-menu { flex-direction: column; gap: 0; margin: 0; }
	.nx-menu li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.nx-menu a { padding: 16px 0; font-size: 19px; }
	.nx-menu a::after { display: none; }
	.nx-nav__extra { flex-direction: column; align-items: stretch; gap: 16px; }
	.nx-lang { align-self: flex-start; }
	.nx-nav__extra .nx-btn { padding: .9em 1em; font-size: 16px; }

	/* aparición escalonada de los items del menú */
	.nx-nav .nx-menu li, .nx-nav .nx-nav__extra > * {
		opacity: 0; transform: translateX(24px);
		transition: opacity .4s, transform .5s var(--nx-ease-out);
	}
	.nx-nav.is-open .nx-menu li, .nx-nav.is-open .nx-nav__extra > * { opacity: 1; transform: none; }
	.nx-nav.is-open .nx-menu li:nth-child(1) { transition-delay: .12s; }
	.nx-nav.is-open .nx-menu li:nth-child(2) { transition-delay: .17s; }
	.nx-nav.is-open .nx-menu li:nth-child(3) { transition-delay: .22s; }
	.nx-nav.is-open .nx-menu li:nth-child(4) { transition-delay: .27s; }
	.nx-nav.is-open .nx-menu li:nth-child(5) { transition-delay: .32s; }
	.nx-nav.is-open .nx-nav__extra > :nth-child(1) { transition-delay: .37s; }
	.nx-nav.is-open .nx-nav__extra > :nth-child(2) { transition-delay: .42s; }

	.nx-scrim {
		position: fixed; inset: 0; z-index: 99; background: rgba(15, 23, 42, .5);
		opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s;
	}
	.nx-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .45s, visibility 0s; }
	body.nx-menu-open { overflow: hidden; }

	.nx-join__inner { grid-template-columns: 1fr; }
	.nx-join__copy { max-width: 640px; }
}

@media (max-width: 640px) {
	.nx-hero { min-height: auto; padding: calc(var(--nx-header-h) + 40px) 0 64px; }
	.nx-hero__scroll { display: none; }
	.nx-badge { padding: 6px 12px; letter-spacing: .02em; }
	.nx-hero__sub { margin-top: 22px; }
	.nx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
	.nx-stat { min-height: 84px; padding: 14px 10px; }
	.nx-stat__title { font-size: 17px; }
	.nx-stat__sub { font-size: 11.5px; }

	.nx-grid--4.nx-features { grid-template-columns: 1fr; }
	.nx-agent-list { gap: 14px; }
	.nx-agent { padding: 20px 12px 22px; }
	.nx-agent__photo { width: 92px; height: 92px; }
	.nx-agent__name { font-size: 17px; }
	.nx-agent__role { font-size: 11.5px; }
	.nx-agent__email { font-size: 13px; }

	.nx-field-row { grid-template-columns: 1fr; gap: 0; }

	.nx-footer__grid { grid-template-columns: 1fr 1fr; }
	.nx-footer__brand { flex-direction: column; align-items: flex-start; }
	.nx-footer__col#boletin { grid-column: 1 / -1; }
	.nx-footer__bottom { flex-direction: column; text-align: left; }
}

@media (max-width: 420px) {
	.nx-agent-list { grid-template-columns: 1fr; }
	.nx-agent { flex-direction: row; text-align: left; gap: 16px; padding: 16px; }
	.nx-agent__photo { width: 76px; height: 76px; flex: none; }
	.nx-agent > :not(.nx-agent__photo) { margin-top: 0; }
	.nx-agent { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 2px; align-items: center; }
	.nx-agent__photo { grid-row: 1 / 4; }
	.nx-stat__title { font-size: 16px; }
	.nx-stat__sub { font-size: 11px; letter-spacing: .03em; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important; animation-iteration-count: 1 !important;
		transition-duration: .01ms !important; transition-delay: 0s !important;
	}
	.js .nx-anim, .js [data-reveal] { opacity: 1; transform: none; filter: none; }
	.nx-hero__bg img { transform: none; }
	.is-loaded .nx-hero__line--accent { -webkit-text-fill-color: currentColor; animation: none; }
}
