* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--bg: #ffffff;
	--text: #111111;
	--muted: #777777;
	--border: #e5e5e5;
}

html,
body {
	min-height: 100%;
}

body {
	font-family: 'Montserrat', sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

.header {
	padding-top: 1rem;
	text-align: center;
}

nav {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
	padding-right: 1.3rem;
}

nav a,
.nav-button {
	color: black;
	text-decoration: none;
	font: inherit;
	background: none;
	border: none;
	cursor: pointer;
}

nav a:hover,
.nav-button:hover {
	text-decoration: underline;
}

hr {
	border: none;
	border-top: 1px solid rgb(173, 173, 173);
	margin-inline: 1.5rem;
}

.login-link {
	color: rgb(0, 0, 0);
	text-decoration: none;
	display: inline-block;
	transition: transform 0.2s ease;
}

.login-link:hover {
	transform: scale(1.15);
}

.brand {
	margin-top: 1rem;
	margin-bottom: 0.7rem;
}

main {
	display: flex;
	align-items: center;
	flex-direction: column;
	flex: 1;
}

.titulos {
	margin-top: 1rem;
	text-align: center;
	font-size: 1.2rem;
}

.coleccion {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	align-self: stretch;
	margin-inline: 10dvw;
	padding: 1.5rem;
}

.producto {
	position: relative;
	overflow: hidden;
	flex: 0 1 20rem;
	aspect-ratio: 3 / 4;
	border-radius: 10px;
	background: #f5f5f5;
}

.producto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mensaje-carga,
.mensaje-vacio,
.mensaje-error {
	width: 100%;
	padding: 1rem;
	text-align: center;
	color: var(--muted);
}

.mensaje-error {
	color: #9b1c1c;
}

.admin-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-block: 1rem;
}

.admin-btn,
.admin-action-btn {
	font: inherit;
	border: 1px solid black;
	background: white;
	color: black;
	padding: 0.65rem 1rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-btn:hover,
.admin-action-btn:hover {
	background: black;
	color: white;
}

.admin-btn:active,
.admin-action-btn:active {
	transform: scale(0.98);
}

.admin-mensaje {
	min-height: 1.4rem;
	color: var(--muted);
}

.admin-actions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.9);
}

.admin-action-btn {
	padding: 0.45rem 0.75rem;
	font-size: 0.9rem;
}

.admin-action-btn.borrar:hover {
	background: #9b1c1c;
	border-color: #9b1c1c;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: min(90vw, 360px);
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid black;
}

.login-form h2 {
	text-align: center;
	margin-bottom: 0.5rem;
}

.login-form input {
	font: inherit;
	padding: 0.7rem;
	border: 1px solid var(--border);
}

@media (max-width: 700px) {
	nav {
		justify-content: center;
		flex-wrap: wrap;
		padding-inline: 1rem;
	}

	.coleccion {
		margin-inline: 1rem;
		padding: 1rem;
	}

	.producto {
		flex-basis: 11rem;
	}
}


/* Formulario de contacto */

.contacto-form {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	width: min(90vw, 600px);
	margin-block: 2rem;
	padding: 2rem;
	border: 1px solid var(--border);
}

.contacto-form div {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.contacto-form label {
	font-size: 0.9rem;
	font-weight: 500;
}

.contacto-form input,
.contacto-form textarea {
	width: 100%;
	padding: 0.8rem;
	font: inherit;
	border: 1px solid var(--border);
	background: white;
	resize: vertical;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
	outline: 1px solid black;
	border-color: black;
}

.contacto-form button {
	align-self: flex-start;
	padding: 0.75rem 1.2rem;
	font: inherit;
	border: 1px solid black;
	background: white;
	cursor: pointer;
}

.contacto-form button:hover {
	background: black;
	color: white;
}


.campo-trampa {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mensaje-contacto {
	width: min(90vw, 600px);
	margin: 1.5rem auto 0;
	padding: 1rem;
	box-sizing: border-box;
}

.mensaje-contacto-exito {
	border: 1px solid #277a3c;
	color: #1d602e;
}

.mensaje-contacto-error {
	border: 1px solid #9b1c1c;
	color: #9b1c1c;
}