/* Reset/normalización ligera */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	font-size: 16px;
	line-height: 1.5;
	background: var(--color-bg);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
}

/* Accesibilidad: foco visible */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Utilidades */
.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 var(--space-4);
}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Controles base */
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	cursor: pointer;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.15s ease, transform 0.05s ease;
}

button:hover,
button:focus-visible {
	box-shadow: var(--shadow-md);
}
button:active {
	transform: translateY(0.5px) scale(0.99);
	box-shadow: var(--shadow-sm);
}
button.primary {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: white;
}

button:disabled,
button:disabled:hover,
button:disabled:focus-visible {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}
