/* Reset y configuración base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	background-color: #FFF;
	color: #0047FF;
	height: 100%;
	font-size: 16px; /* Base para usar rem */
	transition: all 0.3s ease; /* Transición para cambios de tema */
}

body {
	min-height: 100%;
	display: flex;
	box-sizing: border-box;
	// background-color: #eee;
	border: 1.5rem solid #FFF;
	justify-content: center;
	transition: all 0.3s ease;
}

section {
	width: 90%; /* Adapta el ancho al contenedor */
	max-width: 944px;
	margin: 1.5rem auto;
	color: #111;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
p::selection, a::selection, h1::selection {
	background: #111;
	color: #CCC;
}

main {
	max-width: 720px;
	width: 100%; /* Se adapta al tamaño disponible */
}

.logo {
	height: 3rem;
	width: auto;
	margin-bottom: 3rem;
}

.logo svg {
	width: 4rem;
	height: auto;
	
}

h1 {
	font-family: 'Nitti medium', 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.25rem;
	line-height: 1.75rem;
	margin-bottom: 1.5rem;
}
p, li {
	font-family: 'Nitti light', 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.25rem;
	line-height: 1.75rem;
	margin-bottom: 1.5rem;
}
a {
	color: #0047FF;
	text-decoration: none;
	transition: all 0.3s ease;
}
a:hover {
	color: #333;
}
.button {
	background-color: #0047FF;
	border: none;
	color: #FFF;
	height: 2.75rem;
	font-family: 'Nitti medium', 'Helvetica Neue', Arial, sans-serif;
	text-transform: uppercase;
	line-height: 2.75rem;
	padding: 0 1.5rem;
	border-radius: 0;
	font-weight: 500;
	font-size: 1rem;
	cursor: pointer;
	display: inline-block;
}
.button:hover {
	color: white;
	background: #333;
}
ul.menu {
	display: flex;
	flex-wrap: wrap;
	margin-top: 3rem;
	padding: 0;
}
	li {
		margin-right: 2.5rem;
		list-style-type: none;
		margin-bottom: 0;
	}
	li a {
		font-family: 'Nitti light', 'Helvetica Neue', Arial, sans-serif;
		font-size: 1.25rem;
		line-height: 2 rem;
		
		transition: all 0.3s ease;
	}

/* Media Queries */
@media (max-width: 768px) {
	body {
		border-width: 1rem;
	}
	section {
		margin: 2rem 1rem;
	}
	h1, p, li a {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}
	h1 {
		margin-bottom: 1.5rem;
	}
	ul.menu {
		flex-direction: column;
	}
	li {
		margin-right: 0;
		margin-bottom: 1rem;
	}
}

@media screen and (max-width: 420px) {
	body {
		padding: 10px;  /* Ajustamos padding para que no quede apretado */
	}
	main {
		margin-bottom: 6rem;
	}
	.logo {
			margin-bottom: 6rem;
	}
	h1 {
		font-size: 1.25rem;
	}
	p, li, a {
		font-size: 1.25rem;  /* Aumentamos el tamaño del texto para que sea legible */
		line-height: 1.75rem;
	}

	.button {
		height: 60px;  /* Botones más grandes */
		font-size: 1.125rem;
		line-height: 60px;
		padding: 0 40px;
		width: 100%;
		text-align: center;
	}

	ul.menu {
		flex-direction: column;
		align-items: left;
	}

	li {
		margin-bottom: 12px;  /* Espaciado entre elementos del menú */
		margin-right: 0;
	}
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
	html {
		background-color: #111;
	}

	body {
		background-color: #222;
		border: 1.5rem solid #111;
	}
	p, h1 {
		color: #FFF;
	}
	svg path {
		fill: #FFF;
	}
	a {
		color: #9cf;
	}
	a:hover {
		color: #FFF;
	}

	.button {
		background-color: #FFF;
		color: #111;
	}
	.button:hover {
		background-color: #DDD;
		color: #000;
	}
	@media (max-width: 768px) {
		body {
			border-width: 1rem;
		}
	}
	@media (max-width: 420px) {
		body {
			border-width: 0.75rem;
		}
	}
}

/* Fonts */
@font-face {
	font-family: 'Nitti light';
	src: url('../fonts/nitti_light.eot');
	src: url('../fonts/nitti_light.eot?#iefix') format('embedded-opentype'),
		url('../fonts/nitti_light.woff') format('woff'),
		url('../fonts/nitti_light.ttf') format('truetype');
	text-rendering: optimizeLegibility;
}

@font-face {
	font-family: 'Nitti medium';
	src: url('../fonts/nitti_medium.eot');
	src: url('../fonts/nitti_medium.eot?#iefix') format('embedded-opentype'),
		url('../fonts/nitti_medium.woff') format('woff'),
		url('../fonts/nitti_medium.ttf') format('truetype');
	text-rendering: optimizeLegibility;
}