/* Estilos propios. Sin fuentes ni recursos externos. Tema claro/oscuro segun el sistema. */
:root {
	--fondo: #ffffff;
	--fondo-suave: #f2f4f7;
	--texto: #1b1f24;
	--texto-suave: #4a5260;
	--acento: #0b62c4;
	--acento-texto: #ffffff;
	--borde: #d5dae1;
	--etiqueta: #8a4b00;
	--etiqueta-fondo: #fff1d6;
	--radio: 10px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--fondo: #12151a;
		--fondo-suave: #1c2129;
		--texto: #e8ebef;
		--texto-suave: #aab2bf;
		--acento: #6cb0ff;
		--acento-texto: #0b1220;
		--borde: #2f3743;
		--etiqueta: #ffcf80;
		--etiqueta-fondo: #3a2a10;
	}
}

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

html { font-size: 100%; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
	background: var(--fondo);
	color: var(--texto);
}

img { max-width: 100%; height: auto; }

a { color: var(--acento); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--acento);
	outline-offset: 2px;
}

.contenedor {
	width: min(100% - 2rem, 64rem);
	margin-inline: auto;
}

.saltar {
	position: absolute;
	left: -999px;
	top: 0;
	padding: 0.5rem 1rem;
	background: var(--acento);
	color: var(--acento-texto);
	z-index: 10;
}
.saltar:focus { left: 1rem; }

.cabecera {
	border-bottom: 1px solid var(--borde);
	background: var(--fondo-suave);
}
.cabecera__fila {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-block: 0.75rem;
}

.marca {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--texto);
	text-decoration: none;
}

.menu {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.presentacion { padding-block: 2rem 1rem; }

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; }
h2 { margin-top: 2.5rem; }

.tarjetas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	gap: 1rem;
	list-style: none;
	padding: 0;
}

.tarjeta {
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	padding: 1rem;
	background: var(--fondo-suave);
}
.tarjeta img { border-radius: calc(var(--radio) - 4px); display: block; }
.tarjeta h3 { margin-bottom: 0.25rem; }
.tarjeta p { color: var(--texto-suave); margin-top: 0.25rem; }

.etiqueta {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0 0.4rem;
	border-radius: 4px;
	color: var(--etiqueta);
	background: var(--etiqueta-fondo);
}

.boton {
	display: inline-block;
	font: inherit;
	font-weight: 600;
	padding: 0.6rem 1.2rem;
	border: 0;
	border-radius: var(--radio);
	background: var(--acento);
	color: var(--acento-texto);
	text-decoration: none;
	cursor: pointer;
}
.boton:disabled { opacity: 0.6; cursor: default; }

.error { padding-block: 4rem; text-align: center; }

.pie {
	margin-top: 3rem;
	border-top: 1px solid var(--borde);
	color: var(--texto-suave);
	font-size: 0.9rem;
}

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