:root {
	--bg: #0b1020;
	--panel: rgba(255, 255, 255, 0.06);
	--panel2: rgba(255, 255, 255, 0.1);
	--text: rgba(255, 255, 255, 0.92);
	--muted: rgba(255, 255, 255, 0.7);
	--muted2: rgba(255, 255, 255, 0.55);
	--line: rgba(255, 255, 255, 0.12);
	--accent: #7dd3fc;
	--accent2: #a78bfa;
	--ok: #34d399;
	--warn: #fbbf24;
	--danger: #fb7185;
	--shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	--radius: 18px;
	--radius2: 24px;
	--max: 1120px;
	--pad: 22px;
	--pad2: 28px;
	--font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
		"Segoe UI Emoji";
}
* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	font-family: var(--font);
	background: radial-gradient(1200px 600px at 70% -10%, rgba(167, 139, 250, 0.28), transparent 55%),
		radial-gradient(900px 500px at 10% 10%, rgba(125, 211, 252, 0.22), transparent 55%),
		linear-gradient(180deg, #070a14, var(--bg));
	color: var(--text);
}
a {
	color: inherit;
	text-decoration: none;
}
.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--pad);
}
.grid {
	display: grid;
	gap: 18px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
	-webkit-user-select: none;
	user-select: none;
	font-weight: 600;
}
.btn:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.18);
}
.btn.primary {
	border: 1px solid rgba(125, 211, 252, 0.45);
	background: linear-gradient(90deg, rgba(125, 211, 252, 0.18), rgba(167, 139, 250, 0.18));
}
.btn.primary:hover {
	border-color: rgba(125, 211, 252, 0.65);
}
.btn.small {
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted);
	font-size: 14px;
}
.card {
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.06);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: var(--pad2);
}
.muted {
	color: var(--muted);
}
.muted2 {
	color: var(--muted2);
}
.title {
	font-size: clamp(28px, 3.6vw, 44px);
	line-height: 1.08;
	margin: 10px 0 10px;
}
.h2 {
	font-size: clamp(20px, 2.3vw, 28px);
	margin: 0 0 8px;
}
.h3 {
	font-size: 18px;
	margin: 0 0 8px;
}
.lead {
	font-size: 17px;
	line-height: 1.55;
	color: var(--muted);
	max-width: 68ch;
}
.kicker {
	font-weight: 700;
	letter-spacing: 0.02em;
	color: rgba(125, 211, 252, 0.95);
}
.section {
	padding: 72px 0 0;
}
.section:first-of-type {
	padding-top: 32px;
}

/* Navbar */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	background: rgba(10, 14, 28, 0.55);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px var(--pad);
	max-width: var(--max);
	margin: 0 auto;
	gap: 14px;
}
main.wrap {
	padding-top: 72px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 180px;
	font-weight: 800;
}
.logo {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(125, 211, 252, 0.75), rgba(167, 139, 250, 0.75));
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.navlinks {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}
.navlinks a {
	padding: 8px 10px;
	border-radius: 12px;
	color: var(--muted);
	border: 1px solid transparent;
	font-size: 14px;
}
.navlinks a:hover {
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
}
.navlinks a.active {
	color: var(--text);
	border-color: rgba(125, 211, 252, 0.35);
	background: rgba(125, 211, 252, 0.08);
}

.navcta {
	display: flex;
	align-items: center;
	gap: 10px;
}
.menuBtn {
	display: none;
}

/* Hero */
.hero {
	padding: 48px 0 0;
}
.heroGrid {
	display: grid;
	gap: 18px;
	grid-template-columns: 1.2fr 0.8fr;
	align-items: stretch;
}
.hero .card {
	border-radius: var(--radius2);
}
.heroAside {
	display: grid;
	gap: 18px;
}
.heroList {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
.heroList li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: var(--muted);
}
.dot {
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(125, 211, 252, 0.95), rgba(167, 139, 250, 0.95));
	flex: 0 0 auto;
}

/* Feature cards */
.cols3 {
	grid-template-columns: repeat(3, 1fr);
}
.cols2 {
	grid-template-columns: repeat(2, 1fr);
}
.mini {
	padding: 18px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.05);
}
.mini p {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
	font-size: 14.5px;
}
.mini .tag {
	font-size: 12px;
	color: rgba(125, 211, 252, 0.9);
	font-weight: 700;
	letter-spacing: 0.02em;
}
.mini .head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
.mini .icon {
	width: 28px;
	height: 28px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	display: grid;
	place-items: center;
	color: var(--muted);
	font-weight: 800;
}

/* Steps */
.steps {
	counter-reset: step;
}
.step {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.05);
}
.stepNum {
	width: 36px;
	height: 36px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(125, 211, 252, 0.1);
	border: 1px solid rgba(125, 211, 252, 0.25);
	color: var(--text);
	font-weight: 800;
	flex: 0 0 auto;
}
.step p {
	margin: 6px 0 0;
	color: var(--muted);
	line-height: 1.5;
}

/* Form */
form {
	display: grid;
	gap: 12px;
}
.row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
input,
textarea {
	width: 100%;
	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(0, 0, 0, 0.18);
	color: var(--text);
	outline: none;
	font-family: var(--font);
	font-size: 14.5px;
}
input:focus,
textarea:focus {
	border-color: rgba(125, 211, 252, 0.45);
	box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.12);
}
textarea {
	min-height: 120px;
	resize: vertical;
}
.fineprint {
	font-size: 12.5px;
	color: var(--muted2);
	line-height: 1.5;
}
.toast {
	display: none;
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid rgba(52, 211, 153, 0.35);
	background: rgba(52, 211, 153, 0.1);
	color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
	padding: 48px 0;
	color: var(--muted2);
}
footer .inner {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px) {
	.heroGrid {
		grid-template-columns: 1fr;
	}
	.cols3 {
		grid-template-columns: 1fr;
	}
	.cols2 {
		grid-template-columns: 1fr;
	}
	.row2 {
		grid-template-columns: 1fr;
	}
	.brand {
		min-width: auto;
	}
	.navlinks {
		display: none;
	}
	.menuBtn {
		display: inline-flex;
	}
	.navlinks.open {
		display: flex;
		width: 100%;
		padding: 10px 0 0;
	}
	.nav .inner {
		flex-wrap: wrap;
	}
}

/* Image modal */
.img-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 22px;
	z-index: 9999;
}

.img-modal-backdrop.open {
	display: flex;
}

.img-modal {
	width: min(1400px, 96vw);
	max-height: 90vh;
	border-radius: 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(10, 14, 28, 0.92);
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.img-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.img-modal-title {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.img-modal-body {
	padding: 14px;
	display: grid;
	place-items: center;
}

.img-modal-body img {
	width: auto;
	height: auto;

	/* Se ajusta sin estirar */
	max-width: min(1900px, 71vw);
	max-height: calc(90vh - 64px);

	object-fit: contain;
	border-radius: 14px;

	/* Mejora la nitidez al reescalar */
	image-rendering: auto;
	-webkit-font-smoothing: antialiased;
	transform: translateZ(0);
}

/* Hint cursor for zoomable images */
.zoomable {
	cursor: zoom-in;
}

/* Consent */
.consent {
	display: flex;
	align-items: center;
}

.consentLabel {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.4;
	font-size: 14px;
}

.consentLabel input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: currentColor;
}

/* Button spinner */
.btn .spinner {
	display: none;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: rgba(255, 255, 255, 0.95);
	animation: spin 0.8s linear infinite;
}

.btn.is-loading .spinner {
	display: inline-block;
}

.btn.is-loading {
	pointer-events: none;
	opacity: 0.92;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ===== Legal pages (privacy, terms, etc.) ===== */
.legalWrap .title {
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.1;
}

.legalCard {
	padding: 0; /* el .card ya tiene padding; lo ajustamos dentro */
}

.legalDoc {
	max-width: 920px;
	margin: 0 auto;
}

.legalDoc p {
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
	margin: 12px 0;
}

.legalDoc h2 {
	margin-top: 22px;
}

.legalDoc h3 {
	margin-top: 14px;
}

.legalHr {
	margin: 18px 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legalList {
	margin: 10px 0 14px;
	padding-left: 18px;
	color: rgba(255, 255, 255, 0.82);
}

.legalList li {
	margin: 8px 0;
	line-height: 1.7;
}

.legalMeta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.legalActions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
}

/* ===== Legal-friendly layout (TOC + anchors) ===== */

.legalLayout {
	display: grid;
	gap: 16px;
	align-items: start;
}

/* 2 columnas en pantallas grandes: TOC + contenido */
@media (min-width: 980px) {
	.legalLayout {
		grid-template-columns: 320px 1fr;
	}
	.legalToc {
		position: sticky;
		top: 90px; /* ajusta según altura real de tu nav */
	}
}

.legalToc {
	padding: 16px;
}

.legalTocHeader {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.legalTocList {
	margin: 0;
	padding-left: 18px;
}

.legalTocList li {
	margin: 8px 0;
	line-height: 1.5;
}

.legalTocList a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.legalTocList a:hover {
	text-decoration: underline;
}

/* Secciones + “Arriba” */
.legalSection {
	scroll-margin-top: 96px; /* para que el anchor no quede oculto por el nav sticky */
}

.legalSectionHead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.legalTop {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.62);
	text-decoration: none;
	white-space: nowrap;
}

.legalTop:hover {
	text-decoration: underline;
}

/* Mejoras de legibilidad (si no las tienes ya) */
.legalDoc {
	max-width: 920px;
	margin: 0 auto;
}

.legalDoc p {
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.82);
	margin: 12px 0;
}

.legalHr {
	margin: 18px 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legalList {
	margin: 10px 0 14px;
	padding-left: 18px;
	color: rgba(255, 255, 255, 0.82);
}

.legalList li {
	margin: 8px 0;
	line-height: 1.7;
}

/* ===== Footer legal mini ===== */
.footerGrid {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.footerLeft {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.footerLegal {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
}

.footerLegal a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.footerLegal a:hover {
	text-decoration: underline;
}

.footerLegal .sep {
	opacity: 0.5;
}

/* Mobile */
@media (max-width: 680px) {
	.footerGrid {
		flex-direction: column;
		align-items: flex-start;
	}
	.footerLegal {
		margin-top: 6px;
	}
}

/* ===== Ajuste de márgenes internos legal (card vs doc) ===== */

.legalCard {
	padding: 18px 16px; /* móvil */
}

@media (min-width: 768px) {
	.legalCard {
		padding: 24px 28px;
	}
}

@media (min-width: 1100px) {
	.legalCard {
		padding: 32px 36px;
	}
}

/* El contenido no añade padding extra */
.legalDoc {
	padding: 0;
	margin: 0 auto;
	max-width: 920px;
}

.legalDoc > .legalSection {
	margin-bottom: 26px;
}

/* ===== Cookie banner ===== */
.cookieBanner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
}

.cookieInner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 14px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(10, 10, 12, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.cookieMsg {
	margin: 0;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.84);
	font-size: 14px;
}

.cookieMsg a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}

.cookieActions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* Móvil: botones apilados */
@media (max-width: 680px) {
	.cookieBanner {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.cookieActions {
		flex-direction: column;
	}

	.cookieActions .btn {
		width: 100%;
		justify-content: center;
	}
}

/* ===== Cookie banner ===== */
.cookieBanner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
}
.cookieInner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(10, 10, 12, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.cookieMsg {
	margin: 0;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.84);
	font-size: 14px;
}
.cookieMsg a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
}
.cookieActions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* Móvil: botones apilados */
@media (max-width: 680px) {
	.cookieBanner {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}
	.cookieActions {
		flex-direction: column;
	}
	.cookieActions .btn {
		width: 100%;
		justify-content: center;
	}
}

/* ===== Cookie modal ===== */
.cookieModal {
	position: fixed;
	inset: 0;
	z-index: 10000;
}
.cookieModalBackdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.cookieModalCard {
	position: relative;
	width: min(720px, calc(100% - 24px));
	margin: 72px auto 24px;
	padding: 16px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(10, 10, 12, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}
.cookieModalHead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.cookiePrefRow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cookiePrefRow:first-child {
	border-top: 0;
}

/* Switch */
.cookieSwitch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	-webkit-user-select: none;
	user-select: none;
}
.cookieSwitch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.cookieSlider {
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.14);
	position: relative;
	flex: 0 0 auto;
}
.cookieSlider::after {
	content: "";
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	position: absolute;
	top: 2px;
	left: 2px;
	transition: transform 0.18s ease;
}
.cookieSwitch input:checked + .cookieSlider {
	background: rgba(255, 255, 255, 0.26);
}
.cookieSwitch input:checked + .cookieSlider::after {
	transform: translateX(18px);
}

.cookieModalActions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Móvil: botones modal apilados */
@media (max-width: 680px) {
	.cookieModalCard {
		margin-top: 48px;
	}
	.cookieModalActions {
		flex-direction: column;
	}
	.cookieModalActions .btn {
		width: 100%;
		justify-content: center;
	}
}

.hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.logoHeader {
	width: 20%;
}

/* CTA row (inline buttons) */
.ctaRow {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

/* Screenshoots gallery */
.galleryGrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.galleryItem {
	padding: 14px;
}

.galleryItem img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.galleryCaption {
	margin-top: 10px;
	line-height: 1.5;
}

.videoCard {
	padding: 14px;
}

.videoCard video {
	width: 100%;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 680px) {
	.logoHeader {
		width: 45%;
	}
	.galleryGrid {
		grid-template-columns: 1fr;
	}
}
