/* Pensura — sitio institucional. Estático (Cloudflare Pages), sin build ni terceros.
   Reusa los tokens de marca de la app: Geist, acento violeta y el panel oscuro
   punteado que la app usa en las pantallas de auth. */

/* ---- Fuentes self-hosted (mismas variable fonts que la app) ---- */
@font-face {
	font-family: "Geist";
	src: url("fonts/Geist-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Geist Mono";
	src: url("fonts/GeistMono-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---- Tokens ---- */
:root {
	--acento: #6b58e8;
	--acento-hover: #5b3dcc;
	--acento-suave: rgba(107, 88, 232, 0.12);

	--fondo: #ffffff;
	--fondo-sutil: #fafafa;
	--texto: #0a0a0a;
	--texto-muted: #666666;
	--texto-tenue: #8f8f8f;
	--borde: #eaeaea;
	--borde-fuerte: #d9d9d9;

	--tira-oscura: #0a0a0a;

	--radio: 0.625rem;
	--radio-lg: 1rem;
	--ancho: 68rem;
	--fuente: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--acento: #9b8cf5;
		--acento-hover: #b3a1f5;
		--acento-suave: rgba(155, 140, 245, 0.16);

		--fondo: #0a0a0a;
		--fondo-sutil: #111111;
		--texto: #ededed;
		--texto-muted: #a1a1a1;
		--texto-tenue: #7a7a7a;
		--borde: #242424;
		--borde-fuerte: #333333;
	}
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--fuente);
	font-size: 16px;
	line-height: 1.6;
	color: var(--texto);
	background: var(--fondo);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; }

h1, h2, h3 {
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0;
	font-weight: 600;
}

.envoltura {
	width: 100%;
	max-width: var(--ancho);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ---- Marca (punto rotado + wordmark, igual que la app) ---- */
.marca {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	text-decoration: none;
	color: inherit;
}
.marca-punto {
	width: 0.9375rem;
	height: 0.9375rem;
	border-radius: 4px;
	background: var(--acento);
	transform: rotate(45deg);
	flex: none;
}

/* ---- Navbar ---- */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--fondo) 82%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--borde);
}
.nav-cont {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 3.75rem;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.nav-links a {
	font-size: 0.875rem;
	color: var(--texto-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--texto); }
.nav-derecha { display: flex; align-items: center; gap: 1.75rem; }

/* ---- Botones ---- */
.boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.625rem;
	padding: 0 1.15rem;
	border-radius: var(--radio);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.boton:active { transform: translateY(1px); }
.boton-sm { height: 2.25rem; padding: 0 0.9rem; }

.boton-primario {
	background: var(--texto);
	color: var(--fondo);
}
.boton-primario:hover { background: #262626; }
@media (prefers-color-scheme: dark) {
	.boton-primario { background: #ededed; color: #0a0a0a; }
	.boton-primario:hover { background: #ffffff; }
}

.boton-secundario {
	background: transparent;
	color: var(--texto);
	border-color: var(--borde-fuerte);
}
.boton-secundario:hover { border-color: var(--texto-muted); background: var(--fondo-sutil); }

/* Botones sobre fondo oscuro del hero (siempre claros) */
.tira-oscura .boton-primario { background: #ffffff; color: #0a0a0a; }
.tira-oscura .boton-primario:hover { background: #e5e5e5; }
.tira-oscura .boton-secundario { color: #ededed; border-color: #2f2f2f; }
.tira-oscura .boton-secundario:hover { border-color: #4a4a4a; background: rgba(255,255,255,0.04); }

/* ---- Hero (siempre oscuro, con grilla punteada como la app) ---- */
.hero {
	position: relative;
	overflow: hidden;
	background-color: var(--tira-oscura);
	background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
	background-size: 22px 22px;
	color: #ededed;
	text-align: center;
	padding: 6.5rem 0 7rem;
}
/* halo violeta sutil */
.hero::before {
	content: "";
	position: absolute;
	top: -30%;
	left: 50%;
	transform: translateX(-50%);
	width: 46rem;
	height: 46rem;
	background: radial-gradient(circle, rgba(123, 89, 232, 0.28) 0%, transparent 62%);
	pointer-events: none;
	filter: blur(8px);
}
.hero > .envoltura { position: relative; z-index: 1; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.8rem;
	margin-bottom: 1.75rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	font-family: var(--mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #b9b9b9;
}
.eyebrow .marca-punto { width: 0.6rem; height: 0.6rem; }

.hero h1 {
	font-size: clamp(2.5rem, 6vw, 4.25rem);
	font-weight: 600;
	letter-spacing: -0.04em;
	max-width: 15ch;
	margin: 0 auto;
	color: #ffffff;
}
.hero p.sub {
	max-width: 42ch;
	margin: 1.5rem auto 0;
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	line-height: 1.55;
	color: #a9a9a9;
}
.hero-acciones {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}

/* ---- Secciones ---- */
.seccion { padding: 5.5rem 0; }
.seccion-sutil { background: var(--fondo-sutil); border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); }

.seccion-cabecera { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.seccion-cabecera .kicker {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--acento);
}
.seccion-cabecera h2 {
	margin-top: 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.seccion-cabecera p {
	margin-top: 1rem;
	font-size: 1.05rem;
	color: var(--texto-muted);
}

/* ---- Grilla de features ---- */
.grilla {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
.tarjeta {
	padding: 1.75rem;
	border: 1px solid var(--borde);
	border-radius: var(--radio-lg);
	background: var(--fondo);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.tarjeta:hover { border-color: var(--borde-fuerte); transform: translateY(-2px); }
.tarjeta-icono {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radio);
	background: var(--acento-suave);
	color: var(--acento);
	margin-bottom: 1.15rem;
}
.tarjeta-icono svg { width: 1.25rem; height: 1.25rem; }
.tarjeta h3 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.tarjeta p { margin: 0; font-size: 0.9375rem; color: var(--texto-muted); line-height: 1.6; }

/* ---- Bloque split (texto + lista) ---- */
.split {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 4rem;
	align-items: center;
}
.split h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.split .kicker {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--acento);
	display: block;
	margin-bottom: 0.75rem;
}
.split p.intro { margin: 1rem 0 0; font-size: 1.05rem; color: var(--texto-muted); }

.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.lista-check li { display: flex; gap: 0.85rem; align-items: flex-start; }
.lista-check .tic {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.1rem;
	border-radius: 999px;
	background: var(--acento-suave);
	color: var(--acento);
}
.lista-check .tic svg { width: 0.85rem; height: 0.85rem; }
.lista-check strong { display: block; font-weight: 600; font-size: 0.95rem; }
.lista-check span { color: var(--texto-muted); font-size: 0.9rem; }

/* ---- CTA final ---- */
.cta {
	text-align: center;
	background-color: var(--tira-oscura);
	background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
	background-size: 22px 22px;
	color: #ededed;
	border-radius: var(--radio-lg);
	padding: 4rem 1.5rem;
	position: relative;
	overflow: hidden;
}
.cta h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; }
.cta p { margin: 1rem auto 0; max-width: 38ch; color: #a9a9a9; }
.cta .hero-acciones { margin-top: 2rem; }

/* ---- Footer ---- */
.footer {
	border-top: 1px solid var(--borde);
	padding: 3rem 0 2.5rem;
	font-size: 0.875rem;
	color: var(--texto-muted);
}
.footer-cont {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--texto-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--texto); }
.footer .copy { color: var(--texto-tenue); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.grilla { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
	.nav-links { display: none; }
	.hero { padding: 4.5rem 0 5rem; }
	.seccion { padding: 4rem 0; }
	.hero-acciones { flex-direction: column; }
	.hero-acciones .boton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
