:root {
	/* Accent: verde árbol */
	--accent: #3a7d44;
	--accent-dark: #2d5e34;
	--accent-darker: #1f4224;
	--accent-shadow: rgba(58, 125, 68, 0.5);

	/* Secondary: café madera */
	--secondary: #795548;
	--secondary-dark: #5d4037;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
a {
	text-decoration: none;
}

h1 {
	font-size: 1.5rem;
	margin-top: 10px;
	padding: 0;
	line-height: 1.4em;
}
h2 {
	font-size: 1.25rem;
	margin-top: 10px;
	padding: 0;
	line-height: 1.4em;
}
h3 {
	font-size: 1rem;
	margin-top: 10px;
	padding: 0;
	line-height: 1.4em;
}
p {
	margin-bottom: 10px;
}

body {
	background: #f5f5f7;
	font-family:
		-apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial,
		sans-serif;
	color: #1d1d1f;
	overflow-y: auto;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
}

/* Contenedor del formulario */
form {
	background: white;
	padding: 30px;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	box-sizing: border-box;
	color: #191919;
}

/* Etiquetas de los campos */
form label {
	display: block;
	margin-bottom: 8px;
	margin-top: 15px;
	font-weight: 500;
	font-size: 14px;
	color: #333;
}

/* Inputs y Selects */
form input,
form select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: #333;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

/* Inputs y Selects al enfocarse */
form input:focus,
form select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 3px var(--accent-shadow);
	outline: none;
}
form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	color: #333;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

/* Botones */
button,
.boton {
	display: inline-block;
	padding: 10px 15px;
	margin-top: 1rem;
	border: none;
	border-radius: 8px;

	color: #fff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition:
		background 0.3s,
		transform 0.1s;
	text-decoration: none;
}

button {
	background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.boton {
	background-color: var(--accent);
}

/* Botón al pasar el cursor */
button:hover {
	background: linear-gradient(135deg, var(--accent-dark), var(--accent-darker));
}

/* Botón al hacer clic */
button:active {
	transform: scale(0.97);
}
/* Botón deshabilitado */
button:disabled {
	background: linear-gradient(135deg, #b0b0b0, #8f8f8f);
	color: #e0e0e0;
	cursor: not-allowed;
	box-shadow: none;
}

/* Contenedor de cada campo */
form div {
	margin-bottom: 1rem;
}

/* Placeholder estilizado */
form input::placeholder {
	color: #999;
	font-style: italic;
}

/* Botón dentro de un campo dinámico */
form .removeHobby {
	background: #ff3b30;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 5px 10px;
	font-size: 12px;
	cursor: pointer;
	margin-left: 10px;
	transition: background 0.3s;
}

form .removeHobby:hover {
	background: #d32f2f;
}

/* Títulos */
form h3 {
	margin: 0 0 20px;
	font-weight: 600;
	font-size: 1.25rem;
	color: #333;
}

main {
	position: relative;
	z-index: 0;
	max-width: 500px;
	margin: 0 auto;
	text-align: center;
	padding: 5px;
}

ul {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 14px;
	color: #333;
}

li {
	padding: 1px 12px;
	border-radius: 8px;
	margin-bottom: 4px;
	transition:
		background-color 0.2s,
		box-shadow 0.2s;
	cursor: pointer;
}

li:hover {
	background-color: #f5f5f7;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

li:active {
	background-color: #e5e5e5;
}

li.cumplido {
	color: green;
	font-weight: bold;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	color: #1d1d1f;
	position: sticky;
	top: 0;
	z-index: 2;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
header img {
	height: 60px;
}
header a h1 {
	color: var(--accent);
}
