/*
 * Tokens y reset.
 * Todos los valores provienen del archivo de Figma (M4MNwbbkr6f8gXjGXH6mI4).
 */

:root {
	/* Color */
	--mv-ink: #171717;
	--mv-white: #ffffff;
	--mv-accent: #ef0ea8;

	--mv-nav-surface: rgb(255 255 255 / 0.8);
	--mv-nav-surface-solid: rgb(255 255 255 / 0.97);
	--mv-nav-hairline: rgb(0 0 0 / 0.05);
	--mv-nav-link: #404040;

	/* Hero */
	--mv-hero-from: #212121;
	--mv-hero-to: #0f0f0f;
	--mv-hero-text: #d9d9d9;
	--mv-hairline: #e5e5e5;

	--mv-footer-hairline: #e5e5e5;
	--mv-footer-text: #d4d4d4;
	--mv-footer-divider: #404040;
	--mv-footer-legal: #8c8c8c;

	/* Tipografia */
	--mv-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mv-font-serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, "Times New Roman", serif;

	/* Layout: 1104px de contenido + 20px de canal = 168px de margen a 1440px */
	--mv-content: 1104px;
	--mv-gutter: 20px;
	--mv-header-h: 65px;

	/* Movimiento */
	--mv-blur: 6px;
	--mv-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--mv-speed: 200ms;
}

/* ---------- Reset ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Las anclas no quedan tapadas por la cabecera fija. */
	scroll-padding-top: calc(var(--mv-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--mv-white);
	color: var(--mv-ink);
	font-family: var(--mv-font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
	margin: 0;
}

ul[class],
ol[class] {
	margin: 0;
	padding: 0;
	list-style: none;
}

img,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

a {
	color: inherit;
}

/* ---------- Accesibilidad ---------- */

:focus-visible {
	outline: 2px solid var(--mv-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.mv-skip-link {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 1000;
	transform: translate(-50%, -120%);
	padding: 10px 18px;
	background: var(--mv-ink);
	color: var(--mv-white);
	font-size: 13px;
	text-decoration: none;
	border-radius: 0 0 8px 8px;
	transition: transform var(--mv-speed) var(--mv-ease);
}

.mv-skip-link:focus-visible {
	transform: translate(-50%, 0);
}

/* ---------- Layout ---------- */

.mv-site {
	display: flex;
	min-height: 100vh;
	min-height: 100dvh;
	flex-direction: column;
}

.mv-site-main {
	flex: 1 0 auto;
	/* La portada mete el hero bajo la cabecera translucida; el resto no. */
	padding-top: var(--mv-header-h);
}

.home .mv-site-main {
	padding-top: 0;
}

.mv-container {
	width: 100%;
	max-width: calc(var(--mv-content) + var(--mv-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--mv-gutter);
}

/* Bloquea el scroll de fondo con el menu movil abierto. */
body.mv-scroll-locked {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
