/* ==========================================================================
   NexusOrbita · Hero
   Visualización orbital: núcleo + órbitas + módulos conectados.
   ========================================================================== */

.no-hero {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: 0;
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 78% 40%, rgba(47, 107, 255, .16) 0%, rgba(10, 18, 38, 0) 70%),
		radial-gradient(40% 50% at 10% 0%, rgba(127, 166, 255, .07) 0%, rgba(10, 18, 38, 0) 70%),
		var(--no-noche);
}

/* Fondo: retícula de puntos + órbitas gigantes */
.no-hero > .no-hero__bg {
	position: absolute; inset: 0; z-index: -1; max-width: none !important; margin: 0 !important;
	pointer-events: none;
}
.no-hero__bg::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(127, 166, 255, .22) 1px, transparent 1.2px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%);
	opacity: .5;
}
.no-hero__bg svg { position: absolute; width: 1600px; height: auto; left: 50%; top: 50%; transform: translate(-30%, -55%); opacity: .55; }

/* Rejilla principal */
.no-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: clamp(2rem, 4vw, 4rem);
}
.no-hero__grid > * { margin: 0 !important; }

.no-hero__content { display: grid; gap: 1.5rem; justify-items: start; }
.no-hero__content > * { margin: 0 !important; }
.no-hero__content .no-eyebrow { color: var(--no-suave); }
.no-hero__title {
	font-size: clamp(2.5rem, 5.4vw, 4.5rem) !important;
	line-height: 1.02 !important;
	letter-spacing: -.04em !important;
	max-width: 13ch;
	color: #fff;
	text-wrap: balance;
}
.no-hero__title em { font-style: normal; color: var(--no-suave); position: relative; white-space: nowrap; }
.no-hero__title em::after {
	content: ""; display: inline-block; width: .2em; height: .2em; border-radius: 50%;
	background: var(--no-nucleo); margin-left: .06em; vertical-align: .08em;
	box-shadow: 0 0 0 .08em rgba(255, 122, 26, .18);
}
.no-hero__lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.65; color: var(--no-gris-claro); max-width: 56ch; }
.no-hero .wp-block-buttons { gap: .75rem; margin-top: .5rem !important; }
.no-hero__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
	font-family: var(--no-mono); font-size: .75rem; letter-spacing: .08em; color: rgba(169, 182, 211, .75);
}
.no-hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.no-hero__meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--no-orbita); }

/* Entrada (CSS puro: no retrasa el LCP con JavaScript) */
.no-hero__content > * { animation: no-rise .9s var(--no-ease) both; }
.no-hero__content > *:nth-child(2) { animation-delay: .08s; }
.no-hero__content > *:nth-child(3) { animation-delay: .16s; }
.no-hero__content > *:nth-child(4) { animation-delay: .24s; }
.no-hero__content > *:nth-child(5) { animation-delay: .32s; }
.no-hero__visual { animation: no-fade 1.4s var(--no-ease) .2s both; }
@keyframes no-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes no-fade { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* --- Visualización orbital ---------------------------------------------- */
.no-hero__visual {
	position: relative;
	width: 100%;
	max-width: 600px;
	aspect-ratio: 1;
	justify-self: end;
	container-type: inline-size;
}
.no-orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.no-orbit-svg .ring { fill: none; stroke: rgba(127, 166, 255, .14); }
.no-orbit-svg .ring--dash { stroke-dasharray: 2 7; stroke: rgba(127, 166, 255, .3); }
.no-orbit-svg .orbit-thin { fill: none; stroke: var(--no-orbita); stroke-opacity: .45; stroke-width: 2.5; }
.no-orbit-svg .orbit-thick { fill: none; stroke: var(--no-orbita); stroke-width: 7; }
.no-orbit-svg .link { fill: none; stroke: rgba(127, 166, 255, .35); stroke-width: 1; stroke-dasharray: 3 5; }
.no-orbit-svg .packet { fill: var(--no-suave); }
.no-orbit-svg .packet--hot { fill: var(--no-nucleo); }
.no-orbit-svg .core-pulse { fill: none; stroke: var(--no-nucleo); transform-origin: 300px 300px; animation: no-pulse 3.2s var(--no-ease) infinite; }
.no-orbit-svg .spin { transform-origin: 300px 300px; animation: no-spin 90s linear infinite; }
@keyframes no-pulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes no-spin { to { transform: rotate(360deg); } }

/* Etiqueta del núcleo */
.no-core-label {
	position: absolute; left: 50%; top: calc(50% + 11cqw); transform: translateX(-50%);
	text-align: center; white-space: nowrap;
	font-family: var(--no-mono); font-size: max(9px, 1.75cqw); letter-spacing: .16em; color: #F2F5FA;
	background: rgba(10, 18, 38, .85); border: 1px solid rgba(127, 166, 255, .25);
	border-radius: 999px; padding: .35em .9em;
}

/* Tarjetas de módulos */
.no-hcard {
	position: absolute;
	width: 36cqw;
	min-width: 150px;
	padding: 2.4cqw 2.6cqw;
	border-radius: 2.6cqw;
	background: linear-gradient(180deg, rgba(22, 35, 72, .86), rgba(13, 22, 46, .86));
	border: 1px solid rgba(127, 166, 255, .2);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #E6ECF8;
	font-family: var(--no-mono);
	font-size: max(9.5px, 1.85cqw);
	line-height: 1.5;
	animation: no-float 7s ease-in-out infinite;
}
.no-hcard__head { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-bottom: 1.6cqw; }
.no-hcard__tag { color: var(--no-suave); letter-spacing: .12em; font-weight: 600; }
.no-hcard__dim { color: rgba(169, 182, 211, .7); }
.no-hcard__live { display: inline-flex; align-items: center; gap: .45em; color: #9FE2B9; }
.no-hcard__live::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 .25em rgba(61, 214, 140, .2); }
.no-hcard__row { display: flex; justify-content: space-between; gap: .75em; white-space: nowrap; }
.no-hcard__row + .no-hcard__row { margin-top: .5em; }
.no-hcard__ok { color: #9FE2B9; }
.no-hcard__hot { color: #FFB27A; }

.no-hcard--wms { left: -2%; top: 6%; animation-delay: -1s; }
.no-hcard--tms { right: -4%; top: 14%; animation-delay: -3s; width: 38cqw; }
.no-hcard--api { left: -6%; bottom: 14%; animation-delay: -5s; }
.no-hcard--bi { right: -2%; bottom: 3%; animation-delay: -2s; width: 34cqw; }
@keyframes no-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4cqw); } }

/* Mini rack (WMS) */
.no-rack { display: grid; grid-template-columns: repeat(8, 1fr); gap: .55cqw; margin-bottom: 1.6cqw; }
.no-rack i { aspect-ratio: 1.4; border-radius: .5cqw; background: rgba(127, 166, 255, .16); }
.no-rack i.f { background: rgba(127, 166, 255, .5); }
.no-rack i.p { background: var(--no-nucleo); box-shadow: 0 0 1.4cqw rgba(255, 122, 26, .6); animation: no-blink 2.4s ease-in-out infinite; }
@keyframes no-blink { 50% { opacity: .45; } }

/* Ruta (transporte) */
.no-route { position: relative; display: flex; justify-content: space-between; margin: 1.8cqw 0 .6cqw; padding-top: 2cqw; color: rgba(169, 182, 211, .8); }
.no-route::before { content: ""; position: absolute; left: .4em; right: .4em; top: .55cqw; height: 1px; background: linear-gradient(90deg, var(--no-suave), rgba(127, 166, 255, .2)); }
.no-route span { position: relative; }
.no-route span::before { content: ""; position: absolute; top: -2cqw; left: 0; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: var(--no-noche); border: 1px solid var(--no-suave); }
.no-route span:first-child::before { background: var(--no-suave); }
.no-route span.is-now::before { background: var(--no-nucleo); border-color: var(--no-nucleo); }
.no-route span:last-child { text-align: right; }
.no-route span:last-child::before { left: auto; right: 0; }

/* Sparkline (analítica) */
.no-spark { display: block; width: 100%; height: 9cqw; margin: .4cqw 0 1cqw; overflow: visible; }

/* Franja de procesos (marquee) */
.no-marquee {
	position: relative; margin-top: clamp(3rem, 6vw, 5rem) !important;
	border-top: 1px solid var(--no-linea-oscura);
	padding-block: 1.35rem;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	max-width: none !important;
}
.no-marquee__track { display: flex; width: max-content; animation: no-marquee 48s linear infinite; }
.no-marquee:hover .no-marquee__track { animation-play-state: paused; }
.no-marquee ul { display: flex; gap: 2.75rem; margin: 0; padding: 0 1.375rem; list-style: none; }
.no-marquee li {
	display: inline-flex; align-items: center; gap: .75rem; white-space: nowrap;
	font-family: var(--no-mono); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(169, 182, 211, .8);
}
.no-marquee li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--no-suave); }
.no-marquee li:nth-child(3n)::before { background: var(--no-nucleo); border-color: var(--no-nucleo); }
@keyframes no-marquee { to { transform: translateX(-50%); } }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
	.no-hero__title { font-size: clamp(2.4rem, 5.6vw, 3.6rem) !important; }
}
@media (max-width: 900px) {
	.no-hero__grid { grid-template-columns: 1fr; }
	.no-hero__visual { justify-self: center; max-width: 560px; margin-top: 1rem !important; }
	.no-hero__title { max-width: 14ch; }
}
@media (max-width: 600px) {
	.no-hero { padding-top: 2.25rem; }
	.no-hero__visual { width: 112%; max-width: none; margin-inline: -6% !important; }
	.no-hcard { min-width: 0; width: 42cqw; padding: 3cqw; font-size: max(9px, 2.5cqw); }
	.no-hcard--tms { width: 43cqw; right: 3%; top: 20%; }
	.no-hcard--wms { left: 3%; top: 2%; width: 40cqw; }
	.no-hcard--api { display: none; }
	.no-hcard--bi { right: 4%; bottom: 6%; width: 40cqw; }
	.no-hero .wp-block-buttons { width: 100%; }
	.no-hero .wp-block-button { flex: 1 1 100%; }
	.no-hero .wp-block-button__link { width: 100%; }
}
