/* ==========================================================================
   Reset moderno minimalista. Mantiene comportamientos sensatos sin imponer
   estilo. Se complementa con typography.css para tipografía base.
   ========================================================================== */

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

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	min-height: 100svh;
	background: var(--color-cream);
	color: var(--color-text);
}

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

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

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

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

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

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

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Accesibilidad: solo visible para lectores de pantalla. Cubre tanto la clase
   nativa de WordPress (.screen-reader-text) como la que emite Genesis para los
   skip-links (.screen-reader-shortcut). */
.screen-reader-text,
.screen-reader-shortcut,
.genesis-skip-link a {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Cuando el usuario tabula a un skip-link, debe verse para poder usarlo.
   Patrón estándar a11y: aparece en la esquina superior izquierda con foco. */
.screen-reader-text:focus,
.screen-reader-shortcut:focus,
.genesis-skip-link a:focus {
	background: var(--color-cream);
	border: 2px solid var(--color-navy);
	border-radius: var(--radius-button);
	clip: auto !important;
	clip-path: none;
	color: var(--color-navy);
	display: block;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 600;
	height: auto;
	left: 8px;
	line-height: 1.2;
	padding: 12px 18px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* Respeta la preferencia del usuario de reducir animaciones. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Container base (usado por secciones que NO van a sangre). */
.container {
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--container-pad-x);
}
