html {
  scroll-behavior: smooth;
}
body {
  font-family: "Arial", sans-serif, times new roman;
  background-color: #fef9f9;
  margin: 0;
  padding: 0;
  color: #333;
}
header {
  background-color: #f8c8dc;
  text-align: center;
  padding: 20px;
}
header h1 {
  margin: 0;
  font-size: 2.5em;
}
nav {
  background-color: #d8e2dc;
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 15px;
  border-bottom: 3px solid #f8c8dc;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  background-color: #fcd5ce;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.3s;
}

nav a:hover {
  background-color: #f8c8dc;
}

/* --- Dropdown --- */
.dropdown {
  position: relative;
}

/* Caja del menú */
.dropdown-content {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 40px;
  left: 0;
  background-color: #fcd5ce;
  border-radius: 10px;
  padding: 5px 0;
  min-width: 150px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

/* Links dentro del dropdown */
.dropdown-content a {
  padding: 8px 12px;
  border-radius: 0;
  background: none;
}

.dropdown-content a:hover {
  background-color: #f8c8dc;
}

/* Clase que activa JS */
.show {
  display: flex;
}

.busqueda {
  text-align: center;
  margin: 20px 0;
}
.busqueda input {
  width: 60%;
  padding: 10px;
  border: 2px solid #f8c8dc;
  border-radius: 15px;
}

main {
  display: flex;
  margin: 20px;
  gap: 20px;
}

#recetas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

article {
  background-color: #fff0f3;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

article:first-child {
  grid-row: span 1 / span 2;
  background-color: #ffe5ec;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

aside {
  background-color: #d8e2dc;
  padding: 15px;
  border-radius: 20px;
  height: fit-content;
  width: 40vw;
}

footer {
  background-color: #fcd5ce;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
  border-radius: 20px 20px 0 0;
}

.categorias button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f8c8dc;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}
.categorias button:hover {
  background-color: #fcd5ce;
}

blockquote {
  font-style: italic;
  background: #fff0f3;
  padding: 10px;
  border-left: 5px solid #f8c8dc;
  border-radius: 10px;
}

a {
  text-decoration: none;
  color: #333;
}
