/*
 * Landing TECSA — nueva identidad visual (Figma TECSAAC_DESIGN).
 * Tokens y secciones. Base de diseño: 1899px. Mobile-first donde aplica.
 */

/* Secciones (cada partial trae su CSS propio, prefijado). */
@import url('pilares.css');
@import url('ecosistema.css');
@import url('plataformas.css');
@import url('organigrama.css');
@import url('cta-final.css');
@import url('footer.css');

:root {
	--st-navy:        #0a1628; /* fondo oscuro / texto principal */
	--st-navy-border: #0d2347;
	--st-accent:      #00d7f3; /* cian */
	--st-accent-2:    #00aeef; /* underline activo */
	--st-accent-text: #00d9f6; /* link activo */
	--st-bg:          #ffffff;
	--st-muted:       #6b6b6b;
	--st-divider:     #e0e0e0;
	--st-maxw:        1899px;
	--st-pad-x:       clamp(16px, 4.2vw, 80px);
	--st-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset acotado a la landing ---- */
.lp, .lp * { box-sizing: border-box; }
.lp {
	font-family: var(--st-font);
	color: var(--st-navy);
	background: var(--st-bg);
	line-height: 1.5;
	overflow-x: hidden;
}
.lp img { max-width: 100%; display: block; }
.lp a { text-decoration: none; color: inherit; }
.lp ul { list-style: none; margin: 0; padding: 0; }

/* ---- Botones ---- */
.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 4px;
	padding: 11.5px 21.5px;
	font-weight: 600;
	font-size: 13px;
	line-height: 19.5px;
	letter-spacing: 0.3px;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: filter .15s ease, background .15s ease, color .15s ease;
}
/* Doble clase para superar a `.lp a { color: inherit }` sin subir la cascada global. */
.lp-btn.lp-btn--accent { background: var(--st-accent); color: var(--st-navy); border-color: var(--st-navy-border); }
.lp-btn.lp-btn--accent:hover { filter: brightness(1.08); }
.lp-btn.lp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.lp-btn.lp-btn--ghost:hover { border-color: #fff; }
/* Icono opcional dentro de un botón (p. ej. usuario en "Iniciar sesión", Figma). */
.lp-btn__ico { flex: 0 0 auto; width: 16px; height: 16px; display: block; }

/* ====================================================================
   NAVBAR
   ==================================================================== */
.lp-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--st-navy);
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 0 var(--st-pad-x);
}
.lp-nav__logo img { height: 40px; width: auto; }
/* Envoltura links+CTA: transparente al layout en desktop (logo | links | cta). */
.lp-nav__menu { display: contents; }
.lp-nav__links { display: flex; gap: 32px; align-items: center; }
.lp-nav__links a {
	font-weight: 500;
	font-size: 13px;
	line-height: 19.5px;
	color: rgba(255,255,255,0.8);
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color .15s ease, border-color .15s ease;
}
.lp-nav__links a:hover { color: #fff; }
.lp-nav__links a.is-active { color: var(--st-accent-text); border-bottom-color: var(--st-accent-2); }
.lp-nav__cta { display: flex; gap: 12px; align-items: center; }

/* Toggle móvil (oculto en desktop) */
.lp-nav__toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 1024px) {
	.lp-nav__toggle { display: block; }

	/* La envoltura se vuelve un panel desplegable bajo la barra. */
	.lp-nav__menu { display: none; }
	.lp-nav.is-open .lp-nav__menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--st-navy);
		border-top: 1px solid var(--st-navy-border);
		padding: 20px var(--st-pad-x) 28px;
		box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
	}
	.lp-nav.is-open .lp-nav__links {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.lp-nav.is-open .lp-nav__links a {
		padding: 8px 0;
		border-bottom: 0;
		font-size: 15px;
	}
	.lp-nav.is-open .lp-nav__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-top: 4px;
		padding-top: 18px;
		border-top: 1px solid var(--st-navy-border);
	}
	.lp-nav.is-open .lp-nav__cta .lp-btn { width: 100%; padding-top: 13px; padding-bottom: 13px; }
}

/* ====================================================================
   HERO
   ==================================================================== */
.lp-hero__media { width: 100%; position: relative; }
.lp-hero__media img,
.lp-hero__media video { width: 100%; height: auto; display: block; object-fit: cover; }

/* Velo para dar contraste al texto superpuesto (más oscuro a la izquierda). */
.lp-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10,22,40,0.62) 0%, rgba(10,22,40,0.30) 45%, rgba(10,22,40,0.05) 100%);
	pointer-events: none;
}

/* Botón de sonido (Figma: Frame 3 / 2299:1832 — icono blanco en la esquina
   superior izquierda del video). Área táctil ≥44px; el icono va más chico. */
.lp-hero__sound {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.9;
	transition: opacity 0.2s ease, transform 0.2s ease;
	filter: drop-shadow(0 1px 4px rgba(10, 22, 40, 0.6));
}
.lp-hero__sound:hover { opacity: 1; transform: scale(1.06); }
.lp-hero__sound:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.lp-hero__sound svg { width: 34px; height: 35px; display: block; }
/* Se muestra el icono de la ACCIÓN: bocina con ondas mientras está silenciado
   (clic para activar el sonido) y tachada mientras suena (clic para callarlo). */
.lp-hero__sound .lp-hero__sound-off { display: none; }
.lp-hero__sound.is-on .lp-hero__sound-off { display: block; }
.lp-hero__sound.is-on .lp-hero__sound-on { display: none; }

@media (max-width: 600px) {
	.lp-hero__sound { top: 8px; left: 8px; width: 44px; height: 44px; }
	.lp-hero__sound svg { width: 26px; height: 27px; }
}

/* El hero (según Figma) no lleva texto sobre el video. Conservamos el H1 de la
   home pero oculto visualmente (accesible para lectores de pantalla y SEO). */
.lp-hero__srtitle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.lp-hero__stats {
	display: flex;
	align-items: stretch;
	background: #fff;
	padding: 22px var(--st-pad-x);
	gap: 0;
}
.lp-hero__stat {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 40px;
	border-right: 1px solid var(--st-divider);
}
.lp-hero__stat:first-child { padding-left: 0; }
.lp-hero__stat:last-child { border-right: 0; }
.lp-hero__stat-icon {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border: 2px solid var(--st-navy);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--st-navy);
}
.lp-hero__stat-icon svg { width: 24px; height: 24px; }
.lp-hero__stat-label { font-weight: 500; font-size: 11px; letter-spacing: 0.5px; color: var(--st-muted); line-height: 15.4px; }
.lp-hero__stat-value { font-weight: 800; font-size: 15px; color: var(--st-navy); line-height: 18px; }

/* Tablet (~768): se mantienen 3 columnas, con menos padding. */
@media (max-width: 1024px) {
	.lp-hero__stats { padding-left: var(--st-pad-x); padding-right: var(--st-pad-x); }
	.lp-hero__stat { padding: 0 16px; gap: 12px; }
	.lp-hero__stat-icon { flex-basis: 44px; width: 44px; height: 44px; }
}
/* Móvil (~393): stats apiladas, una por fila. */
@media (max-width: 600px) {
	.lp-hero__stats { flex-direction: column; gap: 18px; }
	.lp-hero__stat { border-right: 0; padding: 0; }
}

/* ====================================================================
   SECCIONES PENDIENTES (placeholders mientras se construyen)
   ==================================================================== */
.lp-section--todo {
	padding: 64px var(--st-pad-x);
	text-align: center;
	color: var(--st-muted);
	border-top: 1px solid var(--st-divider);
}
.lp-section--todo h2 { color: var(--st-navy); font-size: 22px; margin: 0 0 8px; }
