/**
 * SemiConecta — home (front-page).
 * Estilos scopeados a body.sc-home para no afectar a otras páginas.
 */

/* ===== HERO ===== */
.sc-home .hero {
	position: relative;
	min-height: max(760px, 100svh);
	overflow: hidden;
	color: var(--white);
	background: var(--navy-3);
	isolation: isolate;
}
.sc-home .hero::before {
	content: "";
	position: absolute; inset: 0;
	z-index: -3;
	background:
		radial-gradient(circle at 73% 48%, rgba(255,213,0,.10), transparent 42%),
		linear-gradient(135deg, var(--navy-3), var(--ink-strong) 62%, #333338);
}
.hero-grid-bg {
	position: absolute; inset: 0; z-index: -2;
	opacity: .12;
	background-image:
		linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(to bottom, black 0, black 76%, transparent 100%);
}
.hero-inner {
	width: var(--container);
	min-height: max(760px, 100svh);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, .93fr) minmax(500px, 1.07fr);
	gap: clamp(30px, 5vw, 82px);
	align-items: center;
	padding: calc(var(--header-h) + 64px) 0 110px;
}
.hero-copy { position: relative; z-index: 2; max-width: 730px; }
.hero .eyebrow { color: rgba(255, 255, 255, .74); }
.hero h1 { margin-bottom: 26px; color: var(--white); }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-lead { max-width: 670px; color: rgba(255, 255, 255, .72); font-size: clamp(1.08rem, 1.5vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 54px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .12); }
.hero-meta div { padding: 14px 16px; background: rgba(14,14,17, .72); }
.hero-meta strong { display: block; color: var(--yellow); font-family: var(--font-display); font-size: 1.05rem; }
.hero-meta span { display: block; margin-top: 3px; color: rgba(255, 255, 255, .56); font-size: .78rem; }
.hero-system {
	position: relative;
	aspect-ratio: 1/1;
	min-width: 0;
	transform: perspective(900px) rotateX(calc(var(--hero-y, 0) * 1deg)) rotateY(calc(var(--hero-x, 0) * 1deg));
	transition: transform .18s linear;
}
.hero-system::before {
	content: "";
	position: absolute;
	inset: 12%;
	border: 1px solid rgba(255, 213, 0, .18);
	border-radius: 50%;
	box-shadow: 0 0 0 40px rgba(255, 213, 0, .018), 0 0 100px rgba(255, 213, 0, .08);
}
.hero-system svg { width: 100%; height: 100%; overflow: visible; }
.wafer-ring { transform-origin: center; animation: wafer-spin 38s linear infinite; }
.wafer-ring--reverse { animation-direction: reverse; animation-duration: 52s; }
.hero-trace { stroke-dasharray: var(--sc-len, 340); stroke-dashoffset: var(--sc-len, 340); transition: stroke-dashoffset 1.1s var(--sc-ease-tech, ease); }
.hero-trace.is-in { stroke-dashoffset: 0; }
/* Tras dibujarse, una señal recorre la pista */
.hero-trace.is-in { animation: hero-trace-flow 3.5s linear 1.2s infinite; }
.hero-trace:nth-of-type(2n).is-in { animation-delay: 2.3s; }
@keyframes hero-trace-flow {
	0% { stroke-dasharray: var(--sc-len, 340); stroke-dashoffset: 0; }
	1% { stroke-dasharray: 8 12; stroke-dashoffset: 0; }
	100% { stroke-dasharray: 8 12; stroke-dashoffset: -180; }
}
.signal-dot { transform-origin: center; animation: signal-pulse 2.8s ease-in-out infinite; }
.signal-dot:nth-child(2n) { animation-delay: -1s; }
.hero-node-label { font: 700 12px var(--font-body); letter-spacing: .06em; fill: rgba(255, 255, 255, .7); }
.hero-scroll-line { position: absolute; left: 50%; bottom: 0; width: 1px; height: 78px; background: linear-gradient(var(--yellow), transparent); }
.hero-scroll-line::before {
	content: "";
	position: absolute;
	left: -3px; top: 0;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--yellow);
	animation: scroll-signal 2.2s ease-in-out infinite;
}

@keyframes wafer-spin { to { transform: rotate(360deg); } }
@keyframes signal-flow { to { stroke-dashoffset: -40; } }
@keyframes signal-pulse { 50% { opacity: .35; transform: scale(.75); } }
@keyframes scroll-signal { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(62px); opacity: 0; } }

@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; padding: calc(var(--header-h) + 40px) 0 60px; min-height: auto; }
	.sc-home .hero { min-height: auto; }
	.hero-system { max-width: 520px; margin-inline: auto; }
}

/* ===== ARQUITECTURA ===== */
.architecture { overflow: clip; background: var(--gray-50); }
.architecture-layout { display: grid; grid-template-columns: minmax(390px, .86fr) minmax(0, 1.14fr); gap: clamp(50px, 8vw, 128px); }
.architecture-visual {
	position: sticky;
	top: calc(var(--header-h) + 52px);
	height: min(680px, calc(100svh - var(--header-h) - 78px));
	display: grid;
	place-items: center;
}
.architecture-board {
	position: relative;
	width: min(100%, 560px);
	aspect-ratio: .92/1;
	color: var(--white);
	background: var(--navy-3);
	border: 1px solid #333338;
	box-shadow: 20px 24px 0 rgba(255, 213, 0, .13);
}
.architecture-board::before {
	content: "";
	position: absolute;
	inset: 18px;
	border: 1px solid rgba(255, 255, 255, .12);
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 35px 35px;
}
.architecture-board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.architecture-module { fill: #1B1B1E; stroke: rgba(255, 255, 255, .25); stroke-width: 1.5; transition: fill .3s, stroke .3s, filter .3s; }
.architecture-path { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 3; transition: stroke .4s, stroke-width .4s; }
.architecture[data-active="observatorio"] .module-observatorio,
.architecture[data-active="internacional"] .module-internacional,
.architecture[data-active="rdi"] .module-rdi {
	fill: #333338;
	stroke: var(--yellow);
	filter: drop-shadow(0 0 10px rgba(255, 213, 0, .35));
}
.architecture[data-active="observatorio"] .path-observatorio,
.architecture[data-active="internacional"] .path-internacional,
.architecture[data-active="rdi"] .path-rdi {
	stroke: var(--yellow);
	stroke-width: 5;
	stroke-dasharray: 8 8;
	animation: signal-flow 2s linear infinite;
}
.architecture-label { font: 800 14px var(--font-body); fill: rgba(255, 255, 255, .72); letter-spacing: .05em; }
.architecture-code { font: 900 10px var(--font-body); fill: var(--yellow); letter-spacing: .12em; }
.architecture-center-label { font: 800 18px var(--font-display); fill: var(--white); }
.architecture-caption { position: absolute; left: 36px; right: 36px; bottom: 30px; display: flex; justify-content: space-between; color: rgba(255, 255, 255, .54); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.chapters { position: relative; }
.chapter { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; padding: 80px 0; opacity: .42; transform: translateY(30px); transition: opacity .45s, transform .45s var(--ease); }
.chapter.is-active { opacity: 1; transform: translateY(0); }
.chapter-number { color: var(--ink-strong); font-size: .72rem; font-weight: 900; letter-spacing: .14em; }
.chapter h3 { margin: 22px 0 18px; font-size: clamp(2rem, 3.6vw, 3.4rem); }
.chapter > p { max-width: 650px; color: var(--gray-600); font-size: clamp(1.04rem, 1.5vw, 1.22rem); }
.chapter-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 34px; background: var(--gray-200); border: 1px solid var(--gray-200); }
.chapter-index div { min-height: 84px; padding: 17px; background: var(--white); }
.chapter-index strong { display: block; font-size: .9rem; }
.chapter-index span { display: block; margin-top: 5px; color: var(--gray-500); font-size: .78rem; }

@media (max-width: 900px) {
	.architecture-layout { grid-template-columns: 1fr; }
	.architecture-visual { position: static; height: auto; }
	.chapter { min-height: auto; padding: 40px 0; opacity: 1; transform: none; }
}

/* ===== RECURSOS (feature layout) ===== */
.featured { background: var(--white); }
.feature-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.feature-filter {
	padding: 8px 16px;
	border: 1px solid var(--gray-300);
	background: var(--white);
	font-size: .82rem;
	font-weight: 700;
	transition: background .2s, color .2s, border-color .2s;
}
.feature-filter[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.feature-filter:hover:not([aria-pressed="true"]) { background: var(--gray-50); }

.feature-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.feature-spotlight {
	background: var(--navy-3);
	color: var(--white);
	padding: clamp(30px, 4vw, 60px);
	min-height: 400px;
	display: flex;
	position: relative;
	overflow: hidden;
}
.feature-spotlight::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 40px 40px;
	pointer-events: none;
}
.feature-spotlight-content { position: relative; z-index: 1; align-self: flex-end; max-width: 560px; }
.feature-category { display: inline-block; color: var(--yellow); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.feature-spotlight h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.feature-spotlight p { color: rgba(255, 255, 255, .72); font-size: 1.05rem; margin-bottom: 26px; }
.feature-meta { display: flex; gap: 20px; color: rgba(255, 255, 255, .5); font-size: .84rem; margin-bottom: 26px; }

.feature-index { display: flex; flex-direction: column; }
.feature-item {
	display: grid;
	grid-template-columns: 40px 1fr 24px;
	gap: 14px;
	align-items: center;
	padding: 18px 16px;
	background: transparent;
	border-bottom: 1px solid var(--gray-200);
	text-align: left;
	transition: background .2s;
}
.feature-item:hover, .feature-item.is-active { background: var(--yellow-soft); }
.feature-item .index { color: var(--gray-400); font-size: .78rem; font-weight: 900; letter-spacing: .1em; }
.feature-item strong { display: block; font-size: .95rem; }
.feature-item small { display: block; margin-top: 3px; color: var(--gray-500); font-size: .8rem; }
.feature-item .arrow { color: var(--gray-400); font-size: 1.1rem; }

@media (max-width: 900px) {
	.feature-layout { grid-template-columns: 1fr; }
}

/* ===== CTA FINAL ===== */
.final-cta {
	position: relative;
	color: var(--white);
	background: var(--navy);
	padding: clamp(80px, 10vw, 140px) 0;
	overflow: hidden;
}
.final-circuit {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: .5;
	pointer-events: none;
}
.final-circuit path { animation: signal-flow 4s linear infinite; }
.final-cta-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 60px;
	align-items: center;
}
.final-cta h2 { color: var(--white); max-width: 720px; }
.final-cta h2 em { color: var(--yellow); font-style: normal; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-self: end; }

@media (max-width: 840px) {
	.final-cta-inner { grid-template-columns: 1fr; }
	.final-actions { justify-self: start; }
}

	border-color: var(--yellow);
	background: rgba(255, 255, 255, .12);
}
.hero-search-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	color: var(--yellow);
}
.hero-search-icon svg { width: 20px; height: 20px; }
.hero-search-input {
	flex: 1;
	min-width: 0;
	padding: 14px 4px;
	border: 0;
	background: transparent;
	color: var(--white);
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 500;
	outline: none;
}
.hero-search-input::placeholder { color: rgba(255, 255, 255, .5); }
.hero-search-btn {
	padding: 14px 24px;
	background: var(--yellow);
	color: var(--ink);
	font-weight: 800;
	font-size: .92rem;
	border: 0;
	cursor: pointer;
	transition: background .2s;
	white-space: nowrap;
}
.hero-search-btn:hover { background: #FFE04B; }

@media (max-width: 600px) {
	.hero-search-btn { padding: 14px 16px; font-size: .84rem; }
}

/* ===== SEARCH CONSOLE (command palette) ===== */
.search-section {
	position: relative;
	z-index: 10;
	margin-top: -52px;
	padding: 0 0 clamp(40px, 5vw, 70px);
}
.search-console {
	width: var(--container);
	margin-inline: auto;
	background: var(--white);
	border: 1px solid var(--gray-200);
	box-shadow: 0 24px 80px rgba(8,8,10, .14), 0 2px 6px rgba(0,0,0,.04);
	overflow: hidden;
}
.search-top {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--gray-200);
}
.search-symbol {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	color: var(--ink-strong);
}
.search-symbol svg { width: 22px; height: 22px; }
.search-input {
	flex: 1;
	min-width: 0;
	padding: 18px 8px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	font-weight: 500;
	outline: none;
}
.search-input::placeholder { color: var(--gray-400); }
.search-go {
	padding: 18px 28px;
	background: var(--yellow);
	color: var(--ink);
	font-weight: 800;
	font-size: .92rem;
	border: 0;
	cursor: pointer;
	transition: background .2s;
	white-space: nowrap;
}
.search-go:hover { background: #FFE04B; }
.search-hints {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	background: var(--gray-50);
	border-top: 1px solid var(--gray-100);
	font-size: .84rem;
	color: var(--gray-600);
}
.search-hints strong { margin-right: 4px; }
.search-hints a {
	display: inline-block;
	padding: 5px 12px;
	background: var(--white);
	border: 1px solid var(--gray-200);
	color: var(--gray-700);
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.search-hints a:hover {
	background: var(--yellow-soft);
	border-color: var(--yellow);
	color: var(--ink);
}

@media (max-width: 600px) {
	.search-section { margin-top: -32px; }
	.search-symbol { width: 46px; height: 46px; }
	.search-go { padding: 14px 16px; font-size: .82rem; }
}

/* ===== HOME MAP SECTION ===== */
.map-section { background: var(--white); }
.home-map {
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	padding: clamp(24px, 4vw, 50px);
}
.home-map-stage {
	position: relative;
	max-width: 720px;
	margin: 0 auto 32px;
}
.home-map-svg {
	width: 100%;
	height: auto;
}

/* Outlines y regiones */
.hmap-outline {
	fill: var(--gray-100);
	stroke: var(--gray-300);
	stroke-width: 1.5;
}
.hmap-portugal {
	fill: var(--gray-200);
	stroke: var(--gray-300);
	stroke-width: 1;
	opacity: .5;
}
.hmap-region {
	fill: none;
	stroke: var(--gray-300);
	stroke-width: .8;
	stroke-dasharray: 4 3;
}
.hmap-island {
	fill: var(--gray-100);
	stroke: var(--gray-300);
	stroke-width: 1.2;
}

/* Labels */
.hmap-label {
	font: 600 9px var(--font-body);
	fill: var(--gray-500);
	letter-spacing: .02em;
}

/* Dots */
.hmap-dot {
	fill: var(--yellow);
	stroke: var(--ink-strong);
	stroke-width: 2.5;
	cursor: pointer;
	transition: r .2s, fill .2s;
}
.hmap-dot:hover {
	r: 8;
	fill: var(--ink-strong);
	stroke: var(--yellow);
}

/* Note */
.hmap-note {
	font: 400 7px var(--font-body);
	fill: var(--gray-400);
}

/* Actions */
.home-map-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* ===== HOME LEAFLET MAP ===== */
.home-lmap { border: 1px solid var(--gray-200); background: var(--white); box-shadow: 0 24px 70px rgba(8,8,10,.10); }
.home-lmap-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; background: var(--ink-strong); border-bottom: 3px solid var(--yellow); color: var(--white); }
.home-lmap-title { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .95rem; }
.home-lmap-title em { font-style: normal; color: rgba(255,255,255,.55); font-weight: 600; font-size: .82rem; }
.home-lmap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,213,0,.22); }
.home-lmap-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.home-lmap-btn { padding: 8px 14px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: var(--white); font-weight: 800; font-size: .8rem; cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.home-lmap-btn:hover { background: rgba(255,255,255,.1); }
.home-lmap-btn.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.home-lmap-btn--link { border-color: transparent; color: var(--yellow); }
.home-lmap-canvas { width: 100%; height: 560px; }
.home-lmap-canvas .leaflet-tile-pane img { max-width: none !important; }
.home-lmap-foot { padding: 10px 18px; color: var(--gray-500); font-size: .74rem; border-top: 1px solid var(--gray-200); }
.sc-pin { background: none; border: none; }
.sc-pin span { display: block; width: 16px; height: 16px; background: var(--yellow); border: 3px solid var(--ink-strong); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
@media (max-width: 640px) { .home-lmap-canvas { height: 420px; } }

/* ===== NEWSLETTER CTA (Substack) ===== */
.newsletter-cta { margin-top: 40px; }
.newsletter-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 46px); background: var(--ink-strong); color: var(--white); border-left: 6px solid var(--yellow); }
.newsletter-cta-eyebrow { display: inline-block; color: var(--yellow); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.newsletter-cta h3 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0 0 8px; }
.newsletter-cta p { color: rgba(255,255,255,.72); margin: 0; max-width: 560px; }
.newsletter-cta-btn { flex-shrink: 0; }

/* Aviso origen Substack en single post */
.sc-substack-origin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 24px 28px; background: var(--gray-50); border-left: 5px solid var(--yellow); }
.sc-substack-origin span { font-weight: 700; color: var(--ink); }


/* ===== SPOTLIGHT CON IMAGEN REAL ===== */
.feature-spotlight.has-image { background: var(--ink); }
.feature-spotlight.has-image::after {
	content: "";
	background: var(--sc-spot-img) center/cover no-repeat !important;
	width: 46% !important;
	height: 100% !important;
	right: 0 !important;
	top: 0 !important;
	clip-path: none !important;
	box-shadow: none !important;
	opacity: 1 !important;
	border-radius: 0 !important;
}
.feature-spotlight.has-image::before {
	background: linear-gradient(90deg, var(--ink) 40%, transparent 100%) !important;
	opacity: 1 !important;
	transform: none !important;
	z-index: 1;
}
.feature-spotlight.has-image .feature-spotlight-content { position: relative; z-index: 2; }
@media (max-width: 720px) {
	.feature-spotlight.has-image::after { width: 100% !important; opacity: .25 !important; }
	.feature-spotlight.has-image::before { background: linear-gradient(180deg, rgba(14,14,17,.6), var(--ink)) !important; }
}

/* Bloques de HTML libre en el landing */
.sc-landing-custom { max-width: var(--container, 1200px); margin: 40px auto; padding: 0 24px; }

/* ===== CADENA DE VALOR: refinamiento visual ===== */
.chain-layer { transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .4s, opacity .4s; transform-origin: center; }
.chain-console[data-active] .chain-layer { opacity: .55; }
.chain-console .chain-layer.is-active,
.chain-console .chain-layer[data-active="true"] { opacity: 1; }
.chain-layer.is-active { filter: drop-shadow(0 12px 30px rgba(255,213,0,.28)); transform: scale(1.03); }
/* Señal que fluye por la cadena */
.chain-signal { stroke-dasharray: 8 14; animation: chainFlow 3.5s linear infinite; }
@keyframes chainFlow { to { stroke-dashoffset: -220; } }
/* Nodos con pulso suave */
.chain-visual svg g[fill="#FFD500"] circle { animation: chainPulse 2.6s ease-in-out infinite; transform-origin: center; }
.chain-visual svg g[fill="#FFD500"] circle:nth-child(2) { animation-delay: .3s; }
.chain-visual svg g[fill="#FFD500"] circle:nth-child(3) { animation-delay: .6s; }
.chain-visual svg g[fill="#FFD500"] circle:nth-child(4) { animation-delay: .9s; }
.chain-visual svg g[fill="#FFD500"] circle:nth-child(5) { animation-delay: 1.2s; }
@keyframes chainPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
	.chain-signal, .chain-visual svg g[fill="#FFD500"] circle { animation: none; }
}

/* ===== HERO · refinamiento art direction (v0.24) ===== */
.hero-node-idx { font: 700 9px var(--font-mono, monospace); letter-spacing: .14em; fill: rgba(255,213,0,.7); }
/* Meta como enlaces con microinteracción de nodo */
.hero-meta a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; text-decoration: none; color: inherit; transition: background .25s var(--sc-ease-tech, ease); }
.hero-meta a::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--yellow); transition: width .3s var(--sc-ease-tech, ease); }
.hero-meta a:hover { background: rgba(255,255,255,.04); }
.hero-meta a:hover::before { width: 100%; }
.hero-meta a strong { color: var(--yellow); font-family: var(--font-mono, monospace); font-size: 1rem; }
.hero-meta a span { color: rgba(255,255,255,.82); font-weight: 600; font-size: .9rem; }
/* Scan-line sutil que recorre el wafer una vez al entrar */
.hero-system { position: relative; }
.hero-system::after {
	content: "";
	position: absolute;
	left: 8%; right: 8%;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(255,213,0,.7), transparent);
	opacity: 0;
	pointer-events: none;
}
.hero-system.is-in::after { animation: hero-scan 2.4s var(--sc-ease-tech, ease) .3s 1 forwards; }
@keyframes hero-scan {
	0% { top: 6%; opacity: 0; }
	12% { opacity: 1; }
	88% { opacity: 1; }
	100% { top: 92%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.hero-trace.is-in, .hero-system.is-in::after { animation: none !important; }
	.hero-trace { stroke-dashoffset: 0 !important; stroke-dasharray: 8 12 !important; }
}

/* ===== ARQUITECTURA · core + subsistemas (v0.26) ===== */
/* La ruta activa se dibuja desde el módulo al core antes de fluir */
.architecture-path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.architecture[data-active="observatorio"] .path-observatorio,
.architecture[data-active="internacional"] .path-internacional,
.architecture[data-active="rdi"] .path-rdi {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset .7s var(--sc-ease-tech, ease), stroke .3s;
}
/* Módulo activo: elevación + halo */
.architecture-module { transition: fill .3s, stroke .3s, filter .3s, transform .35s var(--sc-ease-tech, ease); transform-origin: center; transform-box: fill-box; }
.architecture[data-active="observatorio"] .module-observatorio,
.architecture[data-active="internacional"] .module-internacional,
.architecture[data-active="rdi"] .module-rdi { filter: drop-shadow(0 0 12px rgba(255,213,0,.35)); }
/* Capítulo: numeración mono + barra de estado a la izquierda */
.chapter { position: relative; padding-left: 20px; transition: opacity .3s; }
.chapter::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--gray-200); transition: background .3s; }
.chapter.is-active::before { background: var(--yellow); }
.chapter:not(.is-active) { opacity: .5; cursor: pointer; }
.chapter-number { font-family: var(--font-mono, monospace); letter-spacing: .1em; }
.architecture-caption { font-family: var(--font-mono, monospace); letter-spacing: .08em; }
@media (prefers-reduced-motion: reduce) {
	.architecture-path { stroke-dashoffset: 0 !important; }
}

/* CTA final: circuito que se dibuja (usa .m-draw del sistema) */
.final-circuit .m-signal { transform-origin: center; }

/* ===== "Una iniciativa de AESEMI" en el hero (discreto, abajo derecha) ===== */
.search-hints { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.search-by-aesemi {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	text-decoration: none;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 999px;
	background: var(--white, #fff);
	transition: border-color .2s, transform .2s;
}
.search-by-aesemi span { color: var(--gray-500, #71717a); font-size: .72rem; font-weight: 600; }
.search-by-aesemi strong { color: var(--yellow-dark, #C9A800); font-family: var(--font-mono, monospace); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.search-by-aesemi:hover { border-color: var(--yellow, #FFD500); transform: translateY(-2px); }
@media (max-width: 700px) { .search-by-aesemi { margin: 8px auto 0; } }
