/* ==========================================================================
   Nexar — hoja de estilos principal
   Paleta derivada del logo: azul noche, turquesa, azul profundo y morado.
   ========================================================================== */

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--nx-ink: #0e1024;
	--nx-ink-2: #161a38;
	--nx-ink-3: #20264d;
	--nx-cyan: #16c1c8;
	--nx-cyan-600: #0f9aa1;
	--nx-cyan-700: #0a7279; /* turquesa con contraste AA sobre blanco */
	--nx-blue: #233f8a;
	--nx-purple: #6a3fc0;
	--nx-purple-700: #55349b;
	--nx-text: #1a1d33;
	--nx-muted: #4f5672;
	--nx-line: #e1e5ef;
	--nx-soft: #f3f5fa;
	--nx-white: #fff;
	--nx-on-dark-muted: #b9bfd8;
	--nx-danger: #b3261e;
	--nx-success: #0b6e4f;
	--nx-grad: linear-gradient(100deg, var(--nx-cyan) 0%, #3b5bb5 55%, var(--nx-purple) 100%);
	--nx-radius: 14px;
	--nx-radius-lg: 22px;
	--nx-shadow: 0 1px 2px rgb(14 16 36 / 6%), 0 8px 24px rgb(14 16 36 / 8%);
	--nx-shadow-lg: 0 2px 6px rgb(14 16 36 / 8%), 0 18px 40px rgb(14 16 36 / 12%);
	--nx-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nx-header-h: 72px;
	--nx-gutter: 16px;
}

@media (min-width: 768px) {
	:root { --nx-gutter: 28px; --nx-header-h: 80px; }
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nx-header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--nx-font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--nx-text);
	background: var(--nx-white);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.18; color: var(--nx-ink); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--nx-cyan-700); text-underline-offset: 3px; }
a:hover { color: var(--nx-purple-700); }
:focus-visible { outline: 3px solid var(--nx-cyan); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.nx-icon { width: 1.25em; height: 1.25em; flex: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nx-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--nx-white); color: var(--nx-ink); padding: 12px 18px; border-radius: 10px; font-weight: 700;
}
.nx-skip:focus { top: 12px; }

.nx-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--nx-gutter); }
.nx-container--narrow { max-width: 860px; }
.nx-center { text-align: center; }

/* Botones ---------------------------------------------------------------- */
.nx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.35em; border-radius: 999px;
	font: 700 1rem/1.2 var(--nx-font); text-decoration: none; text-align: center;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nx-btn:hover { transform: translateY(-1px); }
.nx-btn--lg { min-height: 54px; padding: .8em 1.6em; font-size: 1.05rem; }
.nx-btn--primary { background: var(--nx-cyan); color: var(--nx-ink); box-shadow: 0 6px 18px rgb(22 193 200 / 28%); }
.nx-btn--primary:hover { background: #3fd3d9; color: var(--nx-ink); }
.nx-btn--outline { border-color: rgb(255 255 255 / 70%); color: var(--nx-white); background: rgb(14 16 36 / 25%); }
.nx-btn--outline:hover { border-color: var(--nx-white); background: rgb(255 255 255 / 10%); color: var(--nx-white); }
.nx-btn--light { background: var(--nx-white); color: var(--nx-ink); }
.nx-btn--light:hover { color: var(--nx-purple-700); }
.nx-btn--ghost { border-color: var(--nx-line); color: var(--nx-ink); background: var(--nx-white); }
.nx-btn .nx-icon { width: 1.15em; height: 1.15em; }

.nx-link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; }

/* Franja de aviso -------------------------------------------------------- */
.nx-announce { background: var(--nx-grad); color: var(--nx-white); text-align: center; font-weight: 600; font-size: .95rem; }
.nx-announce p { margin: 0; padding: .55em var(--nx-gutter); }

/* Cabecera --------------------------------------------------------------- */
.nx-header {
	position: sticky; top: 0; z-index: 100;
	background: rgb(14 16 36 / 97%); /* sin backdrop-filter: crearía un contenedor para el menú fijo */
	border-bottom: 1px solid rgb(255 255 255 / 8%);
}
.nx-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nx-header-h); gap: 16px; }
.nx-header__brand { display: inline-flex; align-items: center; border-radius: 50%; }
.nx-logo { display: block; border-radius: 50%; }
.nx-header .nx-logo { width: 48px; height: 48px; }
@media (min-width: 768px) { .nx-header .nx-logo { width: 56px; height: 56px; } }

.nx-menu-toggle, .nx-menu-close {
	display: inline-flex; align-items: center; gap: .5em; min-height: 48px; min-width: 48px; padding: 0 14px;
	background: transparent; color: var(--nx-white); border: 1px solid rgb(255 255 255 / 25%); border-radius: 12px;
	font: 700 .95rem var(--nx-font); cursor: pointer; justify-content: center;
}
.nx-menu-toggle .nx-icon, .nx-menu-close .nx-icon { width: 24px; height: 24px; }

.nx-nav__head { display: none; }
.nx-nav__list { list-style: none; margin: 0; padding: 0; }
.nx-nav__list a {
	display: block; color: var(--nx-white); text-decoration: none; font-weight: 600; font-size: .95rem;
	padding: .6em .7em; border-radius: 10px;
}
.nx-nav__list a:hover { background: rgb(255 255 255 / 8%); color: var(--nx-white); }
.nx-nav__list .current-menu-item > a, .nx-nav__list a[aria-current="page"] { color: var(--nx-cyan); }

/* Móvil: panel lateral (solo con JS; sin JS el menú queda visible en bloque). */
@media (max-width: 1239.98px) {
	.nx-menu-toggle { display: inline-flex; }
	html:not(.js) .nx-menu-toggle { display: none; }
	html:not(.js) .nx-header__inner { flex-wrap: wrap; }
	html:not(.js) .nx-nav { width: 100%; padding-bottom: 12px; }
	.js .nx-nav {
		position: fixed; inset: 0 0 0 auto; z-index: 200;
		width: min(88vw, 380px); padding: 16px 20px 32px;
		background: var(--nx-ink); box-shadow: -20px 0 60px rgb(0 0 0 / 45%);
		display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
		transform: translateX(105%); visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.js .nx-nav.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
	.js .nx-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
	.nx-nav__title { color: var(--nx-on-dark-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
	.nx-nav__list a { font-size: 1.1rem; padding: .8em .75em; }
	.nx-nav__cta { margin-top: 12px; width: 100%; }
	.nx-backdrop { position: fixed; inset: 0; z-index: 150; background: rgb(5 6 18 / 60%); }
	/* Con el menú abierto, la cabecera (que contiene el panel) va por encima del fondo y del aviso de cookies. */
	body.nx-menu-open .nx-header { z-index: 400; }
	body.nx-menu-open { overflow: hidden; }
}
@media (min-width: 1240px) {
	.nx-menu-toggle { display: none; }
	.nx-nav__list a { white-space: nowrap; font-size: .92rem; padding: .55em .6em; }
	.nx-nav__cta { white-space: nowrap; }
	.nx-nav { display: flex; align-items: center; gap: 10px; }
	.nx-nav__list { display: flex; gap: 2px; }
	.nx-nav__cta { margin-left: 8px; min-height: 44px; }
}

/* Hero ------------------------------------------------------------------- */
.nx-hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--nx-ink); color: var(--nx-white);
	padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 120px);
}
.nx-hero__bg, .nx-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-hero__bg { z-index: -2; }
.nx-hero__bg img { object-fit: cover; object-position: 60% 40%; }
.nx-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgb(14 16 36 / 96%) 0%, rgb(14 16 36 / 88%) 42%, rgb(14 16 36 / 55%) 75%, rgb(14 16 36 / 45%) 100%),
		linear-gradient(0deg, rgb(14 16 36 / 90%) 0%, rgb(14 16 36 / 0%) 45%);
}
.nx-hero__lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; z-index: -1; pointer-events: none; }
.nx-hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .nx-hero__inner { grid-template-columns: 1.25fr .75fr; gap: 56px; } }
.nx-eyebrow {
	display: inline-flex; align-items: center; gap: .45em; margin-bottom: 1.1em;
	font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--nx-cyan); background: rgb(22 193 200 / 12%); border: 1px solid rgb(22 193 200 / 35%);
	padding: .4em .85em; border-radius: 999px;
}
.nx-hero__title { color: var(--nx-white); max-width: 16ch; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); }
.nx-hero__text { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: #d9ddef; max-width: 46ch; }
.nx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.nx-hero__from { margin: 0; color: var(--nx-on-dark-muted); }
.nx-hero__from strong { color: var(--nx-white); font-size: 1.15em; }
.nx-hero__credit { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: .7rem; color: rgb(255 255 255 / 70%); }
@media (max-width: 479.98px) {
	.nx-hero__actions .nx-btn { width: 100%; }
}

.nx-speedcard {
	background: rgb(14 16 36 / 80%); border: 1px solid rgb(255 255 255 / 12%);
	border-radius: var(--nx-radius-lg); padding: 24px; box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}
.nx-speedcard__title { font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.nx-speedcard__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nx-speedcard__list a {
	display: grid; grid-template-columns: 6.2em 1fr auto; align-items: center; gap: 14px;
	padding: 12px 14px; border-radius: 12px; color: var(--nx-white); text-decoration: none;
	background: rgb(255 255 255 / 5%); border: 1px solid transparent; transition: border-color .15s, background-color .15s;
}
.nx-speedcard__list a:hover { border-color: rgb(22 193 200 / 60%); background: rgb(22 193 200 / 10%); color: var(--nx-white); }
.nx-speedcard__speed { font-weight: 800; font-size: 1.25rem; }
.nx-speedcard__speed small { font-size: .7em; font-weight: 600; color: var(--nx-on-dark-muted); }
.nx-speedcard__bar { height: 6px; border-radius: 6px; background: rgb(255 255 255 / 10%); position: relative; overflow: hidden; }
.nx-speedcard__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--level) * 100%); background: var(--nx-grad); border-radius: inherit; }
.nx-speedcard__price { font-weight: 700; }
.nx-speedcard__note { margin: 14px 0 0; font-size: .8rem; color: var(--nx-on-dark-muted); }

/* Secciones -------------------------------------------------------------- */
.nx-section { padding: clamp(56px, 8vw, 104px) 0; }
.nx-section--soft { background: var(--nx-soft); }
.nx-section--dark { background: var(--nx-ink); color: #d9ddef; }
.nx-section--dark h2, .nx-section--dark h3 { color: var(--nx-white); }
.nx-section__head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.nx-section__head p:last-child { color: var(--nx-muted); margin-bottom: 0; }
.nx-section--dark .nx-section__head p:last-child { color: var(--nx-on-dark-muted); }
.nx-kicker {
	display: inline-block; margin-bottom: .6em; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--nx-cyan-700);
}
.nx-section--dark .nx-kicker { color: var(--nx-cyan); }
.nx-section__head .nx-kicker { margin-bottom: .6em; }

/* Servicios */
.nx-services__grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .nx-services__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.nx-service {
	display: flex; flex-direction: column; padding: 28px; border-radius: var(--nx-radius-lg);
	border: 1px solid var(--nx-line); background: var(--nx-white); color: var(--nx-text); text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.nx-service:hover { box-shadow: var(--nx-shadow-lg); transform: translateY(-3px); border-color: transparent; color: var(--nx-text); }
.nx-service p { color: var(--nx-muted); }
.nx-service__icon {
	display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px;
	background: linear-gradient(135deg, rgb(22 193 200 / 16%), rgb(106 63 192 / 16%)); color: var(--nx-blue);
}
.nx-service__icon .nx-icon { width: 28px; height: 28px; }
.nx-service__link { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--nx-cyan-700); }

/* Pestañas de planes */
.nx-tabs__list {
	display: flex; gap: 6px; padding: 6px; margin: 0 auto 32px; width: max-content; max-width: 100%;
	background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: 999px; overflow-x: auto;
}
.nx-tabs__list [role="tab"] {
	min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; white-space: nowrap;
	font: 700 .95rem var(--nx-font); color: var(--nx-muted); cursor: pointer;
}
.nx-tabs__list [role="tab"][aria-selected="true"] { background: var(--nx-ink); color: var(--nx-white); }
.nx-tabs.is-enhanced .nx-tabs__fallback-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nx-tabs:not(.is-enhanced) .nx-tabs__panel + .nx-tabs__panel { margin-top: 48px; }
.nx-tabs__fallback-title { font-size: 1.3rem; margin-bottom: 18px; }

/* Tarjetas de plan */
.nx-plans { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .nx-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nx-plans { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.nx-plans--tv { max-width: 380px; margin-inline: auto; grid-template-columns: 1fr !important; }
.nx-plan {
	position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px;
	background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius-lg);
	box-shadow: var(--nx-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.nx-plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--nx-radius-lg) var(--nx-radius-lg) 0 0; background: var(--nx-grad); }
.nx-plan:hover { transform: translateY(-3px); box-shadow: var(--nx-shadow-lg); }
.nx-plan__type { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-cyan-700); }
.nx-plan--combo .nx-plan__type { color: var(--nx-purple-700); }
.nx-plan--tv .nx-plan__type { color: var(--nx-blue); }
.nx-plan__name { margin: 0 0 12px; display: flex; align-items: baseline; gap: .35em; flex-wrap: wrap; }
.nx-plan__speed { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--nx-ink); }
.nx-plan__speed--text { font-size: 2rem; }
.nx-plan__unit { font-size: 1.1rem; font-weight: 700; color: var(--nx-muted); }
.nx-plan__meter { display: block; height: 6px; border-radius: 6px; background: var(--nx-soft); margin-bottom: 18px; position: relative; overflow: hidden; }
.nx-plan__meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--level) * 100%); background: var(--nx-grad); border-radius: inherit; }
.nx-plan__price { margin: 0 0 16px; display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.nx-plan__amount { font-size: 1.9rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.02em; }
.nx-plan__currency { font-weight: 600; color: var(--nx-muted); font-size: .95rem; }
.nx-plan__features { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.nx-plan__features li { padding-left: 1.4em; position: relative; }
.nx-plan__features li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55em; height: .55em; border-radius: 50%; background: var(--nx-cyan); }
.nx-plan__provider { font-size: .82rem; color: var(--nx-muted); margin: 0 0 16px; }
.nx-plan__cta { margin-top: auto; width: 100%; }
.nx-plans__note { margin: 22px auto 0; max-width: 760px; text-align: center; font-size: .9rem; color: var(--nx-muted); }
.nx-empty { text-align: center; color: var(--nx-muted); }

/* Comparativa */
.nx-compare { margin: 32px 0; }
.nx-compare table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); overflow: hidden; }
.nx-compare caption { caption-side: top; text-align: left; padding: 0 0 12px; color: var(--nx-muted); font-size: .95rem; }
.nx-compare th, .nx-compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--nx-line); }
.nx-compare thead th { background: var(--nx-ink); color: var(--nx-white); font-size: .9rem; }
.nx-compare tbody tr:last-child > * { border-bottom: 0; }
.nx-compare tbody th { font-weight: 800; color: var(--nx-ink); }
.nx-compare__note { font-size: .88rem; color: var(--nx-muted); margin-top: 10px; }
@media (max-width: 599.98px) {
	.nx-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.nx-compare table, .nx-compare tbody, .nx-compare tr, .nx-compare th, .nx-compare td { display: block; width: 100%; }
	.nx-compare tr { border-bottom: 1px solid var(--nx-line); padding: 6px 0; }
	.nx-compare tbody th { border: 0; padding-bottom: 4px; font-size: 1.1rem; }
	.nx-compare td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 18px; }
	.nx-compare td::before { content: attr(data-label); color: var(--nx-muted); font-weight: 600; }
}

/* Por qué Nexar */
.nx-why__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .nx-why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nx-why__grid { grid-template-columns: repeat(4, 1fr); } }
.nx-why__grid li { padding: 26px; border-radius: var(--nx-radius-lg); background: var(--nx-ink-2); border: 1px solid rgb(255 255 255 / 8%); }
.nx-why__grid .nx-icon { width: 34px; height: 34px; color: var(--nx-cyan); margin-bottom: 14px; }
.nx-why__grid p { margin: 0; color: var(--nx-on-dark-muted); font-size: .97rem; }

/* Cobertura */
.nx-coverage__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .nx-coverage__inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.nx-coverage__media { margin: 0; }
.nx-coverage__media img { width: 100%; aspect-ratio: 1024 / 646; object-fit: cover; border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow-lg); }
.nx-coverage__media figcaption, .nx-figure figcaption { font-size: .8rem; color: var(--nx-muted); margin-top: 8px; }
.nx-coverage__copy p { color: var(--nx-muted); }

/* Pasos */
.nx-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 768px) { .nx-steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .nx-steps__list { grid-template-columns: repeat(4, 1fr); } }
.nx-steps__list li { counter-increment: step; padding: 26px; background: var(--nx-white); border-radius: var(--nx-radius-lg); border: 1px solid var(--nx-line); }
.nx-steps__list li::before {
	content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
	border-radius: 50%; background: var(--nx-grad); color: var(--nx-white); font-weight: 800;
}
.nx-steps__list p { margin: 0; color: var(--nx-muted); font-size: .97rem; }

/* Preguntas frecuentes */
.nx-faq { display: grid; gap: 10px; margin-bottom: 28px; }
.nx-faq__item { border: 1px solid var(--nx-line); border-radius: var(--nx-radius); background: var(--nx-white); }
.nx-faq__q {
	list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative;
	font-weight: 700; color: var(--nx-ink); min-height: 48px;
}
.nx-faq__q::-webkit-details-marker { display: none; }
.nx-faq__q::after {
	content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2.5px solid var(--nx-cyan-700); border-bottom: 2.5px solid var(--nx-cyan-700); transform: rotate(45deg); transition: transform .2s ease;
}
.nx-faq__item[open] .nx-faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.nx-faq__a { padding: 0 20px 6px; color: var(--nx-muted); }

/* CTA de cierre */
.nx-cta { background: var(--nx-grad); color: var(--nx-white); padding: clamp(44px, 6vw, 72px) 0; }
.nx-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.nx-cta h2 { color: var(--nx-white); margin-bottom: .25em; }
.nx-cta p { margin: 0; font-size: 1.1rem; }
.nx-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nx-cta .nx-btn--outline { background: transparent; }

/* Páginas interiores ----------------------------------------------------- */
.nx-page-hero {
	background:
		radial-gradient(1200px 400px at 85% -20%, rgb(106 63 192 / 35%), transparent 60%),
		radial-gradient(900px 400px at 0% 120%, rgb(22 193 200 / 22%), transparent 60%),
		var(--nx-ink);
	color: var(--nx-white); padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
}
.nx-page-hero h1 { color: var(--nx-white); margin-bottom: .3em; max-width: 22ch; }
.nx-page-hero__lede { color: #d9ddef; font-size: 1.15rem; max-width: 60ch; margin: 0; }
.nx-breadcrumb { margin: 0 0 .6em; font-size: .9rem; }
.nx-breadcrumb a { color: var(--nx-cyan); }

.nx-content { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); }
.nx-content > :where(p, ul, ol, h2, h3, h4, blockquote, .wp-block-list, .nx-notice, .nx-draft-notice, .nx-updated, .nx-callout, details) { max-width: 760px; }
.nx-content h2 { margin-top: 1.6em; }
.nx-content h3 { margin-top: 1.4em; }
.nx-content > :first-child { margin-top: 0; }
.nx-content ul, .nx-content ol { padding-left: 1.3em; }
.nx-content li { margin-bottom: .35em; }
.nx-content .nx-plans, .nx-content .nx-compare, .nx-content .nx-grid-cards { margin-top: 24px; margin-bottom: 32px; }
.nx-content table:not(.nx-compare table) { width: 100%; max-width: 760px; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.nx-content table:not(.nx-compare table) th, .nx-content table:not(.nx-compare table) td { border: 1px solid var(--nx-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.nx-content table:not(.nx-compare table) th { background: var(--nx-soft); }
@media (max-width: 599.98px) {
	.nx-content table:not(.nx-compare table) { font-size: .88rem; }
	.nx-content table:not(.nx-compare table) :is(th, td) { padding: 8px; overflow-wrap: anywhere; hyphens: auto; }
}

.nx-draft-notice, .nx-notice, .nx-callout {
	border-radius: var(--nx-radius); padding: 16px 20px; margin: 0 0 28px;
	background: #fff8e1; border: 1px solid #f0d58a; color: #5c4400;
}
.nx-draft-notice p, .nx-notice p, .nx-callout p:last-child { margin: 0; }
.nx-callout { background: #eef9fa; border-color: #b5e6e9; color: var(--nx-text); }
.nx-callout--purple { background: #f3effb; border-color: #d8ccf1; }
mark.nx-pending { background: #fff1c2; color: #5c4400; padding: 0 .25em; border-radius: 4px; font-weight: 600; }
.nx-updated { font-size: .88rem; color: var(--nx-muted); margin-top: 40px; }

.nx-grid-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.nx-card { padding: 22px; border: 1px solid var(--nx-line); border-radius: var(--nx-radius-lg); background: var(--nx-white); }
.nx-card :is(h2, h3) { margin-top: 0; font-size: 1.1rem; }
.nx-card p:last-child { margin-bottom: 0; }
.nx-card .nx-icon { width: 30px; height: 30px; color: var(--nx-cyan-700); margin-bottom: 10px; }
a.nx-card { display: block; text-decoration: none; color: var(--nx-text); transition: box-shadow .2s, border-color .2s; }
a.nx-card:hover { box-shadow: var(--nx-shadow); border-color: transparent; color: var(--nx-text); }
a.nx-card :is(h2, h3) { color: var(--nx-cyan-700); }

.nx-figure { margin: 24px 0; max-width: 760px; }
.nx-figure img { width: 100%; border-radius: var(--nx-radius-lg); }

/* Canales de contacto */
.nx-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nx-channels a, .nx-channels div { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-height: 44px; }
.nx-channels .nx-icon { width: 22px; height: 22px; color: var(--nx-cyan-700); }
.nx-channels > li > * > span { display: flex; flex-direction: column; line-height: 1.3; }
.nx-channels__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .75; }
.nx-channels__value { font-weight: 600; word-break: break-word; }
.nx-content .nx-channels { max-width: 760px; margin-bottom: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.nx-content .nx-channels > li { border: 1px solid var(--nx-line); border-radius: var(--nx-radius); padding: 10px 16px; }

/* Formularios ------------------------------------------------------------ */
.nx-form-wrap { max-width: 860px; background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--nx-shadow); margin: 24px 0 32px; }
.nx-form-wrap > h2:first-child { margin-top: 0; }
.nx-form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .nx-form__grid { grid-template-columns: 1fr 1fr; } .nx-field--wide { grid-column: 1 / -1; } }
.nx-field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--nx-ink); }
.nx-field input[type="text"], .nx-field input[type="email"], .nx-field input[type="tel"], .nx-field select, .nx-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #c5cbdb; border-radius: 12px;
	font: 500 1rem/1.4 var(--nx-font); color: var(--nx-text); background: var(--nx-white);
}
.nx-field textarea { min-height: 130px; resize: vertical; }
.nx-field :is(input, select, textarea):focus-visible { border-color: var(--nx-cyan-700); outline: 3px solid rgb(22 193 200 / 45%); outline-offset: 1px; }
.nx-field.has-error :is(input, select, textarea) { border-color: var(--nx-danger); }
.nx-field__error { color: var(--nx-danger); font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.nx-field__error::before { content: "⚠ "; }
.nx-req { color: var(--nx-danger); }
.nx-field--check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 22px 0 10px; }
.nx-field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--nx-cyan-700); }
.nx-field--check label { font-weight: 500; font-size: .93rem; color: var(--nx-text); }
.nx-field--check .nx-field__error { grid-column: 2; }
.nx-form__required-note { font-size: .9rem; color: var(--nx-muted); }
.nx-form__disclaimer { font-size: .9rem; color: var(--nx-muted); margin: 14px 0 20px; }
.nx-form__errors { border: 2px solid var(--nx-danger); background: #fdecea; color: #5f1410; border-radius: var(--nx-radius); padding: 14px 18px; margin-bottom: 22px; }
.nx-form__errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.nx-form__errors a { color: #5f1410; font-weight: 600; }
.nx-form-result { border: 2px solid var(--nx-success); background: #e8f6f0; color: #083d2c; border-radius: var(--nx-radius); padding: 20px 22px; margin: 24px 0; max-width: 760px; }
.nx-form-result__title { font-weight: 800; font-size: 1.15rem; margin-bottom: .4em; }
.nx-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nx-form button[type="submit"] { width: 100%; }
@media (min-width: 640px) { .nx-form button[type="submit"] { width: auto; } }

/* Pie de página ---------------------------------------------------------- */
.nx-footer { background: var(--nx-ink); color: var(--nx-on-dark-muted); padding: 48px 0 28px; font-size: .95rem; }
.nx-footer a { color: #e3e7f7; }
.nx-footer a:hover { color: var(--nx-cyan); }
.nx-rpu-banner {
	display: flex; align-items: center; gap: 14px; width: 80%; margin: 0 auto 44px;
	padding: 16px 22px; border-radius: var(--nx-radius); text-decoration: none;
	background: var(--nx-ink-3); border: 1px solid rgb(22 193 200 / 40%); color: #e3e7f7 !important; line-height: 1.45;
}
.nx-rpu-banner:hover { border-color: var(--nx-cyan); }
.nx-rpu-banner .nx-icon { width: 34px; height: 34px; color: var(--nx-cyan); }
@media (max-width: 599.98px) { .nx-rpu-banner { width: 100%; font-size: .9rem; } }
.nx-footer__grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .nx-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nx-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.nx-footer__brand .nx-logo { width: 72px; height: 72px; margin-bottom: 12px; }
.nx-footer__slogan { color: var(--nx-white); font-weight: 700; }
.nx-footer .nx-channels .nx-icon { color: var(--nx-cyan); }
.nx-footer__title { color: var(--nx-white); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.nx-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nx-footer__list a { display: inline-block; padding: 6px 0; text-decoration: none; }
.nx-footer__list a:hover { text-decoration: underline; }
.nx-footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: .88rem; }
.nx-footer__legal p { margin: 0 0 8px; }
.nx-footer__tv { display: flex; align-items: center; gap: 8px; color: #e3e7f7; font-weight: 600; }
.nx-footer__tv .nx-icon { color: var(--nx-cyan); }

/* Barra móvil de acciones ------------------------------------------------ */
.nx-mobilebar { display: none; }
@media (max-width: 767.98px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.nx-mobilebar {
		position: fixed; inset: auto 0 0; z-index: 90; display: flex;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
		background: rgb(14 16 36 / 97%); border-top: 1px solid rgb(255 255 255 / 10%);
	}
	.nx-mobilebar a {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
		min-height: 52px; border-radius: 12px; color: var(--nx-white); text-decoration: none; font-size: .78rem; font-weight: 700;
	}
	.nx-mobilebar a.is-primary { background: var(--nx-cyan); color: var(--nx-ink); }
	.nx-mobilebar .nx-icon { width: 22px; height: 22px; }
	body.nx-menu-open .nx-mobilebar { display: none; }
}

/* Movimiento reducido ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.nx-btn:hover, .nx-plan:hover, .nx-service:hover { transform: none; }
}

@media print {
	.nx-header, .nx-mobilebar, .nx-cta, .nx-hero__lines { display: none !important; }
	body { padding: 0; }
}

/* Protección al usuario y enlaces de interés ----------------------------- */
.nx-legal-home__grid { display: grid; gap: 18px; margin-bottom: 40px; }
@media (min-width: 860px) { .nx-legal-home__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.nx-legal-home__card { padding: 28px; background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius-lg); box-shadow: var(--nx-shadow); }
.nx-legal-home__card > .nx-icon { width: 36px; height: 36px; color: var(--nx-cyan-700); margin-bottom: 12px; }
.nx-legal-home__card p { color: var(--nx-muted); }
.nx-legal-home__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.nx-legal-home__subtitle { text-align: center; font-size: 1.3rem; margin-bottom: 20px; }

.nx-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.nx-content .nx-links { margin: 16px 0 32px; }
.nx-link-card {
	display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 16px 18px; text-decoration: none;
	background: var(--nx-white); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); color: var(--nx-text);
	transition: border-color .15s, box-shadow .15s;
}
.nx-link-card:hover { border-color: var(--nx-cyan-600); box-shadow: var(--nx-shadow); color: var(--nx-text); }
.nx-link-card > .nx-icon { width: 28px; height: 28px; color: var(--nx-cyan-700); margin-top: 2px; }
.nx-link-card > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.nx-link-card strong { color: var(--nx-ink); }
.nx-link-card span span { font-size: .88rem; color: var(--nx-muted); }

/* Botón destacado del menú principal */
.nx-nav__list .nx-menu-highlight > a { border: 1.5px solid var(--nx-cyan); color: var(--nx-cyan); }
.nx-nav__list .nx-menu-highlight > a:hover { background: rgb(22 193 200 / 12%); color: var(--nx-white); }
@media (max-width: 1239.98px) { .nx-nav__list .nx-menu-highlight { margin-top: 6px; } }

.nx-consecutivo { font-size: 1.15em; letter-spacing: .03em; }
.nx-form--inline { margin-top: 8px; }

/* Página de planes unificada --------------------------------------------- */
.nx-chips {
	position: sticky; top: var(--nx-header-h); z-index: 20;
	display: flex; gap: 8px; overflow-x: auto; margin: 8px calc(-1 * var(--nx-gutter)) 8px; padding: 12px var(--nx-gutter);
	background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--nx-line); scrollbar-width: none;
}
.nx-chips::-webkit-scrollbar { display: none; }
.nx-chips a {
	flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1.5px solid var(--nx-line); background: var(--nx-white); color: var(--nx-ink); font-weight: 700; font-size: .92rem; text-decoration: none;
}
.nx-chips a:hover { border-color: var(--nx-cyan-600); color: var(--nx-cyan-700); }
.nx-plan-section { padding: clamp(32px, 5vw, 56px) 0 8px; scroll-margin-top: calc(var(--nx-header-h) + 76px); }
.nx-plan-section + .nx-plan-section { border-top: 1px solid var(--nx-line); }
.nx-plan-section > h2 { margin-top: 0; }
.nx-plan-section > :is(p, ul, .nx-callout) { max-width: 760px; }
.nx-plan-section .nx-plans { margin-top: 24px; }

/* Documentos del servicio */
.nx-docs { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; max-width: 960px; }
.nx-doc {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	padding: 18px 20px; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); background: var(--nx-white);
	scroll-margin-top: calc(var(--nx-header-h) + 16px);
}
.nx-doc:target { border-color: var(--nx-cyan-600); box-shadow: 0 0 0 3px rgb(22 193 200 / 25%); }
.nx-doc__head { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; }
.nx-doc__service { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-cyan-700); }
.nx-doc__title { color: var(--nx-ink); font-size: 1.05rem; }
.nx-doc__desc { color: var(--nx-muted); font-size: .9rem; }
.nx-doc__status { color: var(--nx-muted); font-size: .9rem; max-width: 280px; }
.nx-doc.is-pending { background: var(--nx-soft); }
.nx-doc__link { flex-direction: column; gap: 0; }
.nx-doc__link small { font-weight: 500; font-size: .75rem; color: var(--nx-muted); }

/* Nosotros */
.nx-about { display: grid; gap: 28px; align-items: center; margin-bottom: 16px; }
@media (min-width: 900px) { .nx-about { grid-template-columns: 1fr 1fr; gap: 48px; } }
.nx-about h2 { margin-top: 0; }
.nx-about .nx-figure { margin: 0; }
.nx-about__slogan { font-size: 1.25rem; font-weight: 800; color: var(--nx-purple-700); }
.nx-content :is(.nx-docs, .nx-links, .nx-channels) { padding-left: 0; }

/* Atribución discreta del proveedor de televisión */
.nx-provider-note { font-size: .8rem; color: var(--nx-muted); margin: 8px 0 0; }
.nx-plans-section .nx-provider-note { margin-top: 18px; }

/* Consentimiento de cookies --------------------------------------------- */
.nx-cookies {
	position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px;
	max-width: 560px; margin-left: auto;
	background: var(--nx-white); color: var(--nx-text); border: 1px solid var(--nx-line);
	border-radius: var(--nx-radius-lg); box-shadow: 0 20px 50px rgb(14 16 36 / 28%);
}
.nx-cookies[hidden] { display: none; }
.nx-cookies__inner { padding: 20px 22px; max-height: min(80vh, 560px); overflow-y: auto; }
.nx-cookies__title { font-size: 1.05rem; margin: 0 0 6px; }
.nx-cookies__text { font-size: .92rem; color: var(--nx-muted); margin-bottom: 14px; }
.nx-cookies__prefs fieldset { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.nx-cookies__opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .9rem; cursor: pointer; }
.nx-cookies__opt input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--nx-cyan-700); }
.nx-cookies__opt strong { display: block; color: var(--nx-ink); }
.nx-cookies__opt span { color: var(--nx-muted); }
.nx-cookies__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-cookies__actions .nx-btn { flex: 1 1 140px; min-height: 46px; font-size: .92rem; padding: .55em 1em; }
.nx-btn--cookie { background: var(--nx-ink); color: var(--nx-white); }
.nx-btn--cookie:hover { background: var(--nx-ink-3); color: var(--nx-white); }
.nx-btn--cookie-ghost { background: var(--nx-white); color: var(--nx-ink); border-color: var(--nx-line); }
@media (max-width: 767.98px) {
	.nx-cookies { left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); }
}
.nx-footer__cookies { background: none; border: 0; padding: 6px 0; color: #e3e7f7; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.nx-footer__cookies:hover { color: var(--nx-cyan); }
.nx-content .nx-cookie-table { max-width: 960px; }
.nx-content .nx-cookie-table code { font-size: .85em; word-break: break-word; }
.nx-cookies [hidden] { display: none !important; }
@media (max-width: 479.98px) {
	.nx-cookies__inner { padding: 16px; }
	.nx-cookies__text { font-size: .86rem; margin-bottom: 12px; }
	.nx-cookies__actions .nx-btn { flex-basis: 110px; min-height: 44px; font-size: .86rem; }
	.nx-cookies__actions [data-consent="config"], .nx-cookies__actions [data-consent="save"] { flex-basis: 100%; }
}

/* WhatsApp y conversión ------------------------------------------------- */
.nx-btn--whatsapp { background: #25d366; color: var(--nx-ink); box-shadow: 0 6px 18px rgb(37 211 102 / 30%); }
.nx-btn--whatsapp:hover { background: #3ee07c; color: var(--nx-ink); }
.nx-btn--whatsapp .nx-icon { width: 1.3em; height: 1.3em; }
.nx-cta .nx-btn--light .nx-icon { color: #1aa652; }
.nx-plan__alt { display: block; margin-top: 10px; text-align: center; font-size: .85rem; color: var(--nx-muted); }
.nx-plan__alt:hover { color: var(--nx-cyan-700); }
.nx-hero__reassure { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 18px; font-size: .92rem; color: #d9ddef; }
.nx-hero__reassure .nx-icon { color: #25d366; width: 1.1em; height: 1.1em; }
.nx-steps__cta { margin: 32px 0 0; }
.nx-coverage__copy .nx-hero__actions { margin: 24px 0 0; }

.nx-wa-box {
	max-width: 760px; margin: 32px auto; padding: 24px; text-align: center;
	background: linear-gradient(135deg, rgb(37 211 102 / 10%), rgb(22 193 200 / 10%));
	border: 1px solid rgb(37 211 102 / 35%); border-radius: var(--nx-radius-lg);
}
.nx-content .nx-wa-box { margin-left: 0; }
.nx-wa-box__title { font-size: 1.2rem; font-weight: 800; color: var(--nx-ink); margin-bottom: 4px; }
.nx-wa-box__note { color: var(--nx-muted); margin-bottom: 16px; }

.nx-wa-float {
	position: fixed; right: 24px; bottom: 24px; z-index: 95;
	display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 20px 0 14px;
	background: #25d366; color: var(--nx-ink); border-radius: 999px; text-decoration: none;
	box-shadow: 0 10px 30px rgb(14 16 36 / 30%); font-weight: 700;
	transition: transform .15s ease, box-shadow .15s ease;
}
.nx-wa-float:hover { transform: translateY(-2px); color: var(--nx-ink); box-shadow: 0 14px 36px rgb(14 16 36 / 35%); }
.nx-wa-float .nx-icon { width: 32px; height: 32px; }
.nx-wa-float__label { display: flex; flex-direction: column; line-height: 1.1; font-size: .8rem; font-weight: 600; }
.nx-wa-float__label strong { font-size: 1rem; font-weight: 800; }
body.nx-has-cookies .nx-wa-float { display: none; }
@media (max-width: 767.98px) { .nx-wa-float { display: none; } }
.nx-mobilebar a.is-whatsapp { background: #25d366; color: var(--nx-ink); }
@media print { .nx-wa-float { display: none !important; } }
