* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  background-color: #f4f4f4;
  color: green;
  line-height: 1.6;
  padding-bottom: 50px;
}

.sansfont {
  font-family: Verdana, sans-serif;
}

.seriffont {
  font-family: Georgia, serif;
}

a {
  text-decoration: none;
  color: #333;
}

/* ENCABEZADO */
header {
  background-color: aquamarine;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo a {
  font-size: 40px;
  font-weight: bold;
  color: #0b0311c6;
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar label {
  cursor: pointer;
  font-size: 20px;
}

.navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;

}

.navbar ul li a {
  padding: 10px;
  color: #555;
  transition: 0.3s;
}

.navbar ul li a:hover {
  color: #8a2be2;
}

/* ICONOS HEADER */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icons a {
  font-size: 16px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-icons i {
  font-size: 20px;
}

.header-icons a:hover {
  color: #8a2be2;
}

/* MODO OSCURO */
.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.mode-toggle {
  border: none;
  background: none;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}

.dark-mode .mode-toggle {
  color: #e0e0e0;
}

/* MAIN PRINCIPAL */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* TÍTULOS Y TEXTOS */
h1, h3, p {
  color: #7d48b1;
}

article, .titulo, .lateral-1 {
  text-align: justify;
}

article h1, article h2, article h3 {
  margin-bottom: 20px;
  color: #0b0311c6;
  font-size: 32px;
}

article img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin: 20px 0;
}

article p {
  margin-bottom: 20px;
}

/* BOTONES */
.botons {
  background-color: #7d48b1;
  color: white;
  border: none;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
}

/* MENÚS LATERALES */
.layout {
  display: flex;
  gap: 20px;
  padding: 20px;
  width: 100%; 
  max-width: none; 
  
}
.menu-lateral1,
.menu-lateral2 {
  width: 20%;
  padding: 20px;
  background-color: antiquewhite;
}

.content-principal {
  width: 60%;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.content-principal img {
  text-align: center;
}

.titulo {
  padding: 40px;
  flex: 3;
}

.titulo h1 {
  margin-bottom: 20px;
  font-size: 40px;
  color: #444;
}

.titulo p {
  margin: 10px auto;
  max-width: 700px;
}


.principal {
  display: flex;
  gap: 20px; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  align-items: flex-start;
}

.principal {
  flex: 3;
}

.lateral-3 {
  flex: 1;
}

.lateral-3 img {
  display: block;
  max-width: 200px;
  margin: 10px auto;
}

/* NUEVOS PRODUCTOS */
.container-nuevos-productos {
  padding: 40px;
  background-color: #fafafa;
  text-align: center;
}

.productos-nuevos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card-category {
  background-color: #fff;
  padding: 20px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.card-category img {
  width: 100%;
  border-radius: 8px;
  margin: 10px 0;
}

.card-category span {
  display: inline-block;
  margin-top: 10px;
  color: #8a2be2;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background-color: #1c1c1c;
  color: #eee;
  padding: 40px 20px;
}

.container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
}

.footer-links h4 {
  margin-bottom: 10px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li a {
  color: #ccc;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #8a2be2;
}

.social-link a {
  color: #ccc;
  margin-right: 15px;
  font-size: 20px;
  transition: 0.3s;
}

.social-link a:hover {
  color: #8a2be2;
}








