:root {
	--color-fondo-header: rgb(255,255, 255);  /*rgb(228, 248, 247);*/
	--color-letra-header: rgb(  0,  0,   0);

	--color-fondo-hover: rgb(255,206,255);    /*rgb(255, 182, 193);*/
	--color-letra-hover: rgb(  0,  0,  0);

	--color-separador: rgb(255, 20, 147);

	--color-fondo-body: rgb(255, 255, 255);

	--color-productos-fondo-lista: rgb(255,255,255); /*rgb(255, 182, 193);*/
	--color-productos-letra-lista: rgb(  0,  0,  0);
	--color-productos-fondo_pedir: rgb(229,248,248);

	--color-span-carrito: rgb(255, 0, 0);
}

/* Propiedades Globales*/
html {
	box-sizing: border-box;
	font-size: 62.5%; /* => 10px - 62.5 de 16 nos da 10px */
	/* width: 100%; */
}

/* selector universal  */
*,
*::before,
*::after {
	box-sizing: inherit;
}

body {
	margin: 0;
	padding: 0;
	line-height: 1.6;
	/* width: 100vw; */
	user-select: none;
	-moz-user-select: none;
	background-color: var(--color-fondo-body);
}

/* Encabezado de la pagina */
header {
	background-color: var(--color-fondo-header);
	color: var(--color-letra-header);
	height: 70px;
}

header nav div{
	position: relative;
}

#logo{
	width: 100%;
}

.img-carrito{
	height: 40px;
}

#cuenta-carrito{
	background-color: var(--color-span-carrito);
	border-radius: 100%;
	display: inline-block;
	width: 30px;
	aspect-ratio: 1; /* para que sea redondo */
	text-align: center;
	line-height: 30px;
	position: absolute;
	color: white;
}

.contenedor-flex-1 {
	display: flex;
	justify-content: space-between; /* alinear el flex en el eje principal */
	width: 80%;
	margin: auto;
	height: 70px;
}

.contenedor-flex-1 ul {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 70px;
	margin: 0;
	padding: 0;
}

.contenedor-flex-1 li {
	list-style-type: none;
	padding-right: 20px;
}

.contenedor-flex-1 li a {
	text-decoration: none;
	color: var(--color-letra-header);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.9em;
	font-weight: normal;
	letter-spacing: 1.75px;
	padding: 23px 20px 22px 20px;
}

.contenedor-flex-1 li a:hover {
	background-color: var(--color-fondo-hover);
	color: var(--color-letra-hover);
}

#cart{
	transition: transform 0.3s ease;
}
#cart:hover{
	transform: scale(1.1);
}

/* ---- MENU MOVIL ---- */
.contenedor-menu {
	display: none;
	margin-left: 15px;
}

/* Estilos para el menú hamburguesa */
.hamburguer {
	display: block;
	width: 30px;
	height: 3px;
	background-color: black;
	border: none;
	position: relative;
	cursor: pointer;
	transition: background-color 0.3s ease;
	top: -30px;
}

.hamburguer:before,
.hamburguer:after {
	content: "";
	display: block;
	width: 100%;
	height: 3px;
	background-color: black;
	position: absolute;
	transition: transform 0.3s ease;
}

.hamburguer:before {
	top: -8px;
}

.hamburguer:after {
	top: 8px;
}

/* Estilos para el menú */
.menu {
	position: absolute;
	top: 0;
	right: 1000%;
	width: 70%;
	height: 100%;
	background-color: rgb(255,255,255); /*darkgray;*/
	color: white;
	transition: right 0.3s ease;
	overflow-x: hidden; Oculta el contenido que se desborde horizontalmente
}

.menu ul {
	list-style: none;
	padding: 0;
}

.menu li {
	padding: 15px;
	border-bottom: 1px solid #333;
}

.menu a {
	text-decoration: none;
	color: #333;  /*estilos.css*/
	font-size: 24px;
	font-weight: bolder;
}

/* Ocultar el checkbox */
#toggle-menu {
	display: none;
}

/* Estilos para el menú cuando está activo */
#toggle-menu:checked ~ .menu {
	right: 0;
}

#toggle-menu:checked ~ .hamburguer {
	background-color: transparent;
}

#toggle-menu:checked ~ .hamburguer:before {
	transform: translateY(8px) rotate(45deg);
}

#toggle-menu:checked ~ .hamburguer:after {
	transform: translateY(-8px) rotate(-45deg);
}
/* ---- FIN MENU MOVIL ---- */

/* SECCION PORTADA */
.grid {
	width: 80%;
	margin: auto;
	font-family: Arial, Helvetica, sans-serif;
	display: grid;
	grid-row-gap: 4em;
	grid-column-gap: 3em;
	grid-template-rows: auto;
	grid-template-columns: 60% 40%;
	grid-template-areas:
		"hogar novedades"
		"hogar ofertas";
}

.hogar {
	grid-area: hogar;
	background: url("../img/todo_para_el_hogar.png") no-repeat;
	margin-bottom: 10px;
	margin-top: 10px;
	width: 100%;
}

.novedades {
	grid-area: novedades;
	background: url("../img/novedades.png") no-repeat;
	margin-bottom: 10px;
	margin-top: 10px;
	width: 100%;
	transition: transform 0.3s ease;
	cursor: pointer;
}
.novedades:hover {
	transform: scale(0.9);
}

.ofertas {
	grid-area: ofertas;
	background: url("../img/ofertas_semanales.png") no-repeat;
	margin-bottom: 10px;
	margin-top: 10px;
	width: 100%;
	transition: transform 0.3s ease;
	cursor: pointer;
}
.ofertas:hover {
	transform: scale(0.9);
}

.grid h2::before {
	content: "\2022";
	color: #b7905a;
	font-size: 32px;
	padding-right: 10px;
}

.espacio-portada {
	margin-top: 50px;
	margin-bottom: 50px;
}

/* cuota */
.cuota {
	background-color: var(--color-fondo-header);
	color: var(--color-letra-header);
	min-height: 120px;
	padding: 10px;
	font-style: italic;
	font-family: Palatino, Georgia, serif;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	text-align: center;
}

.cuota span {
	font-size: 2em;
	padding-right: 20px;
}

.cuota a {
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;

	background-color: var(--color-fondo-hover);
	color: black;
	font-size: 1.7em;

	border-radius: 16px;
	padding: 5px 12px 5px 12px; /* top - right- abajo- left */
	width: 160px;
}

/* Servicios */
.contenedor-flex-2 {
	display: flex;
	justify-content: center;
}

.contenedor-flex-2 div {
	text-align: center;
	font-size: 1.6em;
	font-family: Arial, Helvetica, sans-serif;
	padding: 20px;
	margin: 10px;
}

/* --------- Footer --------- */
footer {
	text-align: center;
	font-size: 1.2em;
	height: 170px;
	padding-top: 30px;
	margin-bottom: 0px;
}

.contenedor-flex-3 {
	display: grid;
	grid-gap: 15em;
	grid-template-rows: auto;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-areas: "footer-1 footer-2 footer-3";
	width: 80%;
	margin: auto;
}

.contenedor-flex-3 div span {
	display: block;
}

.footer-1 {
	grid-area: footer-1;
	/* background-color: aquamarine; */
}

.footer-2 {
	grid-area: footer-2;
	/* background-color: violet; */
}

.footer-3 {
	grid-area: footer-3;
	/* background-color: coral; */
}

.footer-1,
.footer-2,
.footer-3 {
	text-align: left;
}

.footer-1 .negrita {
	font-weight: bolder;
}

.footer-2 nav ul {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.footer-2 nav ul li {
	list-style-type: none;
}

.footer-2 nav ul li a {
	padding-left: 10px;
	padding-right: 10px;
	text-decoration: none;
	color: #212121;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.95em;
	font-weight: normal;
}

.footer-2 nav ul li a:hover {
	color: #b7905a;
}

.footer-3 {
	color: #212121;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.95em;
	font-weight: normal;
}

.whatsapp-icon {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
}

.whatsapp-icon img {
	width: 60px; /* Ajusta el tamaño del icono según tu preferencia */
	height: auto;
	border-radius: 50%; /* Para hacer un círculo con la imagen */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra suave para resaltar */
}

/* MEDIA QUERYS */
@media screen and (max-width: 1366px) {
	/* SECCION PORTADA */
	.grid {
		width: 80%;
		grid-row-gap: 2.5em;
		grid-column-gap: 3em;
		grid-template-rows: auto;
		grid-template-columns: 60% 40%;
	}
}

/* dispositivos medianos - pantallas menores a 768 */
@media screen and (max-width: 768px) {
	html {
		box-sizing: border-box;
		font-size: 62.5%; /* => 10px - 62.5 de 16 nos da 10px */
		/* width: 100%; */
	}

	header {
		margin-bottom: 75px;
		width: 100%;
	}
	.contenedor-flex-1 {
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}
	.contenedor-flex-1 ul {
		display: none;
	}

	.contenedor-menu {
		display: block;
	}

	#cart{
		display: inline-block;
		position: absolute;
		top: 15px;
		right: 40px;
		height: 40px;
		width: 40px;
	}

	.contenedor-flex-2 {
		flex-wrap: wrap;
	}

	.equipo {
		display: none;
	}
	.grid {
		grid-gap: 1em;
		grid-template-rows: auto;
		grid-template-columns: 1fr;
		grid-template-areas:
			"hogar"
			"novedades"
			"ofertas";
	}

	.hogar {
		margin-bottom: 10px;
		margin-top: 10px;
		width: 100%;
		height: 100%;
	}

	.novedades {
		margin-bottom: 10px;
		margin-top: 10px;
		width: 100%;
	}

	.ofertas {
		margin-bottom: 10px;
		margin-top: 10px;
		width: 100%;
	}

	.contenedor-flex-3 {
		display: grid;
		grid-gap: 0em;
		grid-template-rows: 1fr 1fr;
		grid-template-columns: 60% 40%;
		grid-template-areas:
			"footer-1 footer-2"
			"footer-3 footer-2";
		width: 90%;
		margin: auto;
	}

	.footer-2 nav ul {
		justify-content: space-evenly;  /* alinear el flex en el eje principal */
		align-items: start;             /* ajustar en el eje cruzado */
		border-left: 1px solid #b7905a;
	}
	.footer-2 nav ul li {
		font-size: 1.1em;
		/* border: 1px solid black; */
		width: 100%;
		padding: 10px 0 10px 15px;
	}
}
