/* Prueba 3: Tienda de ropa "Moda Fresca" */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  color: #2b1b3d;
}

/* Título y menú centrados, uno debajo del otro */
header {
  background: #7e22ce;
  color: #fff;
  padding: 1.2rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.menu { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; }
.menu li { position: relative; }

.menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.3rem;
}

.menu > li:hover > a { background: #581c87; }

/* Submenús con las esquinas inferiores redondeadas */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #581c87;
  list-style: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  z-index: 10;
}

.menu li:hover > .submenu { display: block; }
.submenu a:hover { background: #a855f7; }

main {
  max-width: 700px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

main h2 { color: #7e22ce; margin-bottom: 1rem; }
main p { margin-bottom: 1rem; line-height: 1.6; }
footer { text-align: center; padding: 1.5rem; color: #6b5a7d; }
