/* Base de NM Vitrina: reset, tipografía y utilidades. Corte principal: 820px. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--nm-white);
	color: var(--nm-ink);
	font-family: var(--nm-font-body);
	font-size: var(--nm-fs-14);
	line-height: 1.5;
}

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

/* Los controles nativos no heredan la tipografía: sin esto salen en Arial. */
button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: var(--nm-navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--nm-navy);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--nm-font-display);
	color: var(--nm-navy);
	line-height: 1.1;
	text-wrap: balance;
}

h1 {
	font-size: var(--nm-fs-34);
	font-weight: 800;
	text-transform: uppercase;
}

h2 {
	font-size: var(--nm-fs-24);
	font-weight: 700;
}

h3 {
	font-size: var(--nm-fs-18);
	font-weight: 700;
}

.nm-wrap {
	max-width: var(--nm-container);
	margin-inline: auto;
	padding-inline: var(--nm-gutter);
}

.nm-main {
	min-height: 50vh;
	padding-block: 32px 56px;
}

.nm-entry + .nm-entry {
	margin-top: 32px;
}

.nm-entry-content {
	max-width: 75ch;
}

.nm-screen-reader,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.nm-nowrap {
	white-space: nowrap;
}

/* iOS Safari hace zoom al enfocar un campo con letra menor a 16px: en pantallas
   táctiles angostas todos los campos de texto van a 16px como mínimo. */
@media (max-width: 820px) {
	input:where(:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"])),
	select,
	textarea {
		/* !important: los campos del buscador, la ficha y Contacto fijan 14px con
		   selectores de clase, y esta es una corrección de accesibilidad solo para móvil. */
		font-size: max(16px, 1em) !important;
	}
}

.nm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: var(--nm-radius);
	background: var(--nm-navy);
	color: var(--nm-white);
	font: 700 var(--nm-fs-14) / 1 var(--nm-font-display);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.nm-btn:hover {
	background: var(--nm-navy-dark);
}

@media (max-width: 480px) {
	:root {
		--nm-gutter: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
