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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

nav {
  background-color: #2c3e50;
  padding: 14px 30px;
}

nav a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
  margin-right: 20px;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

nav a:hover {
  background-color: #34495e;
}

nav a.activo {
  background-color: #1abc9c;
}

header {
  background-color: #ffffff;
  padding: 10px 0;
  text-align: center;
}

main {
  max-width: 800px;
  margin: 30px auto;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1 {
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 3px solid #1abc9c;
  padding-bottom: 10px;
}

h2 {
  color: #34495e;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 10px;
}

a {
  color: #1abc9c;
}

ul.lista-datos {
  list-style: none;
  margin-top: 15px;
}

ul.lista-datos li {
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

ul.lista-datos li strong {
  color: #1abc9c;
  display: inline-block;
  width: 130px;
}

ul.lista-gustos {
  list-style: none;
  margin-top: 15px;
}

ul.lista-gustos li {
  background-color: #f9fbfa;
  border-left: 4px solid #1abc9c;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 4px;
}

ul.lista-gustos li img {
  display: block;
  width: 280px;
  height: 180px;
  object-fit: cover;
  margin-top: 10px;
  border-radius: 6px;
}

/* Practica 1: listas de frutas, carnes y verduras */
.categoria {
  margin-top: 20px;
}

.categoria ul {
  list-style: none;
  margin-top: 10px;
}

.categoria li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.categoria li img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.subrayado {
  text-decoration: underline;
}

/* Ejemplo (article / aside) */
article img {
  max-width: 100%;
  height: auto;
  margin-top: 15px;
  border-radius: 6px;
}

aside {
  margin-top: 25px;
  padding: 15px;
  background-color: #f9fbfa;
  border-left: 4px solid #1abc9c;
  border-radius: 4px;
  font-size: 0.95em;
}

footer {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 0.9em;
}
