html {
	box-sizing: border-box;
	font-size: 62.5%;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body {
	font-family: "Montserrat", sans-serif;
	font-size: 1.6rem;
	line-height: 1.5;
}

/* ===================== */
/* ===================== */
/* Globales */
/* ===================== */
/* ===================== */

h1,
h2,
h3 {
	font-family: "DM Serif Display", serif;
	font-weight: normal;
	margin: 0 0 2rem 0;
}

h1 {
	font-size: 4rem;
}
@media (min-width: 768px) {
	h1 {
		font-size: 5rem;
	}
}

h2 {
	font-size: 3rem;
}
@media (min-width: 768px) {
	h2 {
		font-size: 4rem;
	}
}

h3 {
	font-size: 2.4rem;
}
@media (min-width: 768px) {
	h3 {
		font-size: 3rem;
	}
}

a {
	text-decoration: none;
	color: #000;
}

img {
	max-width: 100%;
	display: block;
}

.contenedor {
	max-width: 120rem;
	margin: 0 auto;
}

.btn {
	background-color: #de541e;
	color: #fff;
	display: block;
	font-weight: 700;
	padding: 1rem;
	text-transform: uppercase;
	text-align: center;
	transition: background-color 0.3s ease-in;
	border: none;
	width: 100%;
}

.btn:hover {
	background-color: #963b17;
	cursor: pointer;
}
@media (min-width: 768px) {
	.btn {
		width: auto;
	}
}

/* ===================== */
/* ===================== */
/* Utilidades */
/* ===================== */
/* ===================== */

.text-center {
	text-align: center;
}

@media (min-width: 768px) {
	.m-w-30 {
		max-width: 30rem;
	}
}
/* Header y Navegacion */
.nombre-sitio {
	margin-top: 5rem;
	text-align: center;
}

.nombre-sitio span {
	color: #017070;
}

.contenedor-nav {
	border-top: 1px solid #e1e1e1;
}

.nav-principal {
	padding: 2rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

@media (min-width: 768px) {
	.nav-principal {
		flex-direction: row;
		justify-content: space-around;
	}
}

.hero {
	background-image: url(../img/principal.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	height: 25rem;
}
@media (min-width: 768px) {
	.hero {
		height: 55rem;
	}
}

/* ===================== */
/* ===================== */
/* Categorias */
/* ===================== */
/* ===================== */

.categorias {
	padding: 5rem 0;
}
@media (min-width: 768px) {
	.categorias {
		padding: 6rem 0;
	}
}
.categoria {
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	.categoria {
		margin-bottom: 0rem;
	}
}
.categoria img {
	width: 100%;
}

.categoria a {
	display: block;
	text-align: center;
	padding: 1.5rem;
}

.categoria a:hover {
	background-color: #017070;
	color: #fff;
	cursor: pointer;
	border-bottom-right-radius: 1rem;
	font-weight: 700;
}

@media (min-width: 768px) {
	.listado-categorias {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* ===================== */
/* ===================== */
/* Bloque Nosotros */
/* ===================== */
/* ===================== */
.sobre-nosotros {
	background-image: linear-gradient(to bottom, transparent 50%, teal 50%, teal 100%),
		url(../img/nosotros.jpg);
	background-position: center, top center;
	background-repeat: no-repeat;
	/* tamaño del gradient, luego el url */
	background-size: 100%, 70rem;
}

@media (min-width: 768px) {
	.sobre-nosotros {
		background-image: linear-gradient(to right, transparent 50%, teal 50%, teal 100%),
			url(../img/nosotros.jpg);
		background-position: left center;
		background-repeat: no-repeat;
		/* tamaño del gradient, luego el url */
		background-size: 100%, 160rem;
		padding: 10rem 0;
	}
}

.sobre-nosotros-grid {
	display: grid;
	grid-template-rows: repeat(2, 1fr);
}

.texto-nosotros {
	grid-row: 2/3;
	color: #fff;
	padding: 5rem;
}

@media (min-width: 768px) {
	.sobre-nosotros-grid {
		grid-template-rows: unset;
		grid-template-columns: repeat(2, 1fr);
		gap: 8rem;
	}

	.texto-nosotros {
		grid-column: 2/3;
	}
}

/* .sobre-nosotros-grid {
	display: flex;
	justify-content: flex-end;
}  
.texto-nosotros {
	flex-basis: 50%;
	padding-left: 5rem;
	color: #fff;
} */

/* ===================== */
/* ===================== */
/* Listado de Productos */
/* ===================== */
/* ===================== */
.contenido-principal {
	padding-top: 5rem;
}

@media (min-width: 768px) {
	.listado-productos {
		display: grid;
		grid-template-columns: repeat(6, 1fr);
		gap: 2rem;
	}

	.producto:nth-child(1) {
		grid-column-start: 1;
		grid-column-end: 7;
		display: grid;
		grid-template-columns: 3fr 1fr;
	}

	.producto:nth-child(1) img {
		height: 43rem;
		width: 100%;
		object-fit: cover;
	}

	.producto:nth-child(2) {
		grid-column: 1/4;
	}

	.producto:nth-child(3) {
		grid-column: 4/7;
	}

	.producto:nth-child(2) img,
	.producto:nth-child(3) img {
		height: 30rem;
		width: 100%;
		object-fit: cover;
	}

	.producto:nth-child(4) {
		grid-column: 1/3;
	}

	.producto:nth-child(5) {
		grid-column: 3/5;
	}

	.producto:nth-child(6) {
		grid-column: 5/7;
	}
}

/* .producto:nth-child(4) img,
.producto:nth-child(5) img,
.producto:nth-child(6) img {
	height: 40rem;
	width: 100%;
	object-fit: cover;
} */

.producto {
	background-color: #017070;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.producto {
		margin-bottom: 0rem;
	}
}

.producto:last-of-type {
	margin-bottom: 0rem;
}

.texto-producto {
	color: #fff;
	text-align: center;
	padding: 2rem;
}

.texto-producto h3 {
	margin: 0;
}

.texto-producto p {
	margin: 0 0 0.5rem 0;
}

.precio {
	font-size: 2.8rem;
	font-weight: 700;
}

/* ===================== */
/* ===================== */
/* Footer */
/* ===================== */
/* ===================== */

.site-footer {
	border-top: 1px solid #e1e1e1;
	margin-top: 5rem;
	padding-top: 5rem;
}
.site-footer h3 {
	margin-bottom: 0.5rem;
}

.grid-footer {
	display: grid;
	grid-template-rows: repeat(3, 1fr);
	padding: 0 3rem;
	gap: 2rem;
}

@media (min-width: 768px) {
	.grid-footer {
		display: grid;
		grid-template-rows: unset;
		grid-template-columns: repeat(3, 1fr);
		/* gap: 2rem; */
	}
}

.nav-footer a {
	display: block;
}

.copyright {
	text-align: center;
	margin-top: 5rem;
	font-size: 1.2rem;
}

@media (min-width: 768px) {
	.copyright {
		font-size: 1.5rem;
	}
}

/* ===================== */
/* ===================== */
/* Nosotros */
/* ===================== */
/* ===================== */
.contenido-nosotros {
	display: grid;
	grid-template-columns: 1fr 2fr;
	grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
	gap: 4rem;
}

.info-nosotros {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem 5rem 5rem;
}

@media (min-width: 768px) {
	.info-nosotros {
		padding: 0rem;
	}
}

/* ===================== */
/* ===================== */
/* Blog */
/* ===================== */
/* ===================== */

@media (min-width: 768px) {
	.contenedor-blog {
		display: grid;
		grid-template-columns: 2fr 1fr;
		gap: 4rem;
	}
}

.entrada {
	border-bottom: 2px solid #e1e1e1;
	padding-bottom: 4rem;
	margin-bottom: 2rem;
}

.entrada h2 {
	padding-left: 2.5rem;
}

.contenido-blog {
	padding: 2.5rem;
}

.entrada:last-of-type {
	border: none;
}
@media (min-width: 768px) {
	.entrada-meta {
		display: flex;
		justify-content: space-between;
	}
}
.entrada-meta p {
	font-weight: 700;
}
.entrada-meta span {
	color: #017070;
}

.otras-entradas h3 {
	padding-left: 2.5rem;
}
.otras-entradas ul {
	padding-left: 6.5rem;
}
@media (min-width: 768px) {
	.otras-entradas h3 {
		padding-left: 0rem;
	}
	.otras-entradas ul {
		padding-left: 4rem;
	}
}

/* ===================== */
/* ===================== */
/* Entrada Blog */
/* ===================== */
/* ===================== */
.contenido-entrada-blog {
	max-width: 60rem;
	margin: 0 auto;
}

/* ===================== */
/* ===================== */
/* Galería */
/* ===================== */
/* ===================== */

.galeria {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.galeria {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1020px) {
	.galeria {
		grid-template-columns: repeat(3, 1fr);
	}
}

.galeria img {
	width: 40rem;
	height: 40rem;
	object-fit: cover;
}

/* ===================== */
/* ===================== */
/* Formulario */
/* ===================== */
/* ===================== */

.formulario {
	max-width: 60rem;
	margin: 0 auto;
	padding: 1rem 1rem 5rem 1rem;
}

.formulario fieldset {
	border: 1px solid #000;
	margin-bottom: 2rem;
}

.formulario legend {
	background-color: #017070;
	width: 95%;
	padding: 1.5rem;
	margin: 2rem auto;
	text-align: center;
	color: #fff;
	text-transform: uppercase;
	font-size: 1.8rem;
	font-weight: 700;
}

.campo {
	display: flex;
	margin-bottom: 2rem;
}

.campo label {
	flex-basis: 10rem;
}

.campo input:not([type="radio"]),
textarea,
select {
	flex: 1;
	border: 1px solid #e1e1e1;
	padding: 1rem;
}
