/* OneGetUp — Reset. Copyright © 2026 OneGetUP — JAZO. */

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

* {
	margin: 0;
}

html {
	/* stylelint-disable-next-line property-no-vendor-prefix -- Safari sigue requiriendo el prefijo. */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background-color: var(--ogu-bg);
	color: var(--ogu-text);
	font-family: var(--ogu-font-text);
	font-size: var(--ogu-text-base);
	line-height: var(--ogu-leading-normal);
	-webkit-font-smoothing: antialiased;
}

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

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

button {
	cursor: pointer;
	background: none;
	border: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
	padding: 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

hr {
	border: 0;
	border-top: 1px solid var(--ogu-border);
}

/* Foco visible SIEMPRE. Nunca se elimina (decisión C.12). */
:focus-visible {
	outline: 2px solid var(--ogu-focus);
	outline-offset: 2px;
	border-radius: var(--ogu-radius-xs);
}

/* prefers-reduced-motion: las animaciones se ELIMINAN, no se atenúan. */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important; /* stylelint-disable-line declaration-no-important -- Anula animaciones de terceros; exigido por la decisión C.12. */
		animation-iteration-count: 1 !important; /* stylelint-disable-line declaration-no-important -- Ídem. */
		transition-duration: 0.01ms !important; /* stylelint-disable-line declaration-no-important -- Ídem. */
		scroll-behavior: auto !important; /* stylelint-disable-line declaration-no-important -- Ídem. */
	}
}
