* {
  box-sizing: border-box;
}

.body_index {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;

  background-image: url('fondo2.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.botonera {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 2rem;
}

/* contenedor de cada botón + su submenú */
.menu-item {
  position: relative;
}

/* BOTÓN PRINCIPAL */
.boton {
  padding: 15px 25px;
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

/* HOVER PRINCIPAL */
.boton:hover {
  background-color: #7e5a5a;
}

/* SUBMENÚ PRINCIPAL */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 10;
}

.submenu a,
.submenu .submenu-item {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #555;
  transition: background 0.3s;
  white-space: nowrap;
}

.submenu a:last-child,
.submenu .submenu-item:last-child {
  border-bottom: none;
}

.submenu a:hover,
.submenu .submenu-item:hover {
  background-color: #555;
}

/* mostrar submenu al tener clase "activo" en el contenedor */
.menu-item.activo .submenu {
  display: block;
}

/* SUBMENÚ LATERAL */
.submenu-item {
  position: relative;
  padding-right: 10px;
}

.submenu-lateral {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: -4px;
  background-color: #555;
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 20;
}

.submenu-lateral a {
  padding: 10px 15px;
  display: block;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #666;
}

.submenu-lateral a:last-child {
  border-bottom: none;
}

.submenu-item:hover .submenu-lateral {
  display: block;
}
